Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Closes ports for a specific Amazon Lightsail instance.
The CloseInstancePublicPorts
action supports tag-based access control
via resource tags applied to the resource identified by instanceName
.
For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data CloseInstancePublicPorts = CloseInstancePublicPorts' {
- portInfo :: PortInfo
- instanceName :: Text
- newCloseInstancePublicPorts :: PortInfo -> Text -> CloseInstancePublicPorts
- closeInstancePublicPorts_portInfo :: Lens' CloseInstancePublicPorts PortInfo
- closeInstancePublicPorts_instanceName :: Lens' CloseInstancePublicPorts Text
- data CloseInstancePublicPortsResponse = CloseInstancePublicPortsResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newCloseInstancePublicPortsResponse :: Int -> CloseInstancePublicPortsResponse
- closeInstancePublicPortsResponse_operation :: Lens' CloseInstancePublicPortsResponse (Maybe Operation)
- closeInstancePublicPortsResponse_httpStatus :: Lens' CloseInstancePublicPortsResponse Int
Creating a Request
data CloseInstancePublicPorts Source #
See: newCloseInstancePublicPorts
smart constructor.
CloseInstancePublicPorts' | |
|
Instances
newCloseInstancePublicPorts Source #
:: PortInfo | |
-> Text | |
-> CloseInstancePublicPorts |
Create a value of CloseInstancePublicPorts
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:portInfo:CloseInstancePublicPorts'
, closeInstancePublicPorts_portInfo
- An object to describe the ports to close for the specified instance.
$sel:instanceName:CloseInstancePublicPorts'
, closeInstancePublicPorts_instanceName
- The name of the instance for which to close ports.
Request Lenses
closeInstancePublicPorts_portInfo :: Lens' CloseInstancePublicPorts PortInfo Source #
An object to describe the ports to close for the specified instance.
closeInstancePublicPorts_instanceName :: Lens' CloseInstancePublicPorts Text Source #
The name of the instance for which to close ports.
Destructuring the Response
data CloseInstancePublicPortsResponse Source #
See: newCloseInstancePublicPortsResponse
smart constructor.
CloseInstancePublicPortsResponse' | |
|
Instances
Eq CloseInstancePublicPortsResponse Source # | |
Read CloseInstancePublicPortsResponse Source # | |
Show CloseInstancePublicPortsResponse Source # | |
Generic CloseInstancePublicPortsResponse Source # | |
NFData CloseInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.CloseInstancePublicPorts rnf :: CloseInstancePublicPortsResponse -> () # | |
type Rep CloseInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.CloseInstancePublicPorts type Rep CloseInstancePublicPortsResponse = D1 ('MetaData "CloseInstancePublicPortsResponse" "Amazonka.Lightsail.CloseInstancePublicPorts" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CloseInstancePublicPortsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCloseInstancePublicPortsResponse Source #
Create a value of CloseInstancePublicPortsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:operation:CloseInstancePublicPortsResponse'
, closeInstancePublicPortsResponse_operation
- An object that describes the result of the action, such as the status of
the request, the timestamp of the request, and the resources affected by
the request.
$sel:httpStatus:CloseInstancePublicPortsResponse'
, closeInstancePublicPortsResponse_httpStatus
- The response's http status code.
Response Lenses
closeInstancePublicPortsResponse_operation :: Lens' CloseInstancePublicPortsResponse (Maybe Operation) Source #
An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
closeInstancePublicPortsResponse_httpStatus :: Lens' CloseInstancePublicPortsResponse Int Source #
The response's http status code.