| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lightsail.CloseInstancePublicPorts
Description
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.
Constructors
| CloseInstancePublicPorts' | |
Fields
| |
Instances
newCloseInstancePublicPorts Source #
Arguments
| :: 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.
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.
Constructors
| CloseInstancePublicPortsResponse' | |
Fields
| |
Instances
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.