| 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.OpenInstancePublicPorts
Description
Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol.
The OpenInstancePublicPorts 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 OpenInstancePublicPorts = OpenInstancePublicPorts' {
- portInfo :: PortInfo
- instanceName :: Text
- newOpenInstancePublicPorts :: PortInfo -> Text -> OpenInstancePublicPorts
- openInstancePublicPorts_portInfo :: Lens' OpenInstancePublicPorts PortInfo
- openInstancePublicPorts_instanceName :: Lens' OpenInstancePublicPorts Text
- data OpenInstancePublicPortsResponse = OpenInstancePublicPortsResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newOpenInstancePublicPortsResponse :: Int -> OpenInstancePublicPortsResponse
- openInstancePublicPortsResponse_operation :: Lens' OpenInstancePublicPortsResponse (Maybe Operation)
- openInstancePublicPortsResponse_httpStatus :: Lens' OpenInstancePublicPortsResponse Int
Creating a Request
data OpenInstancePublicPorts Source #
See: newOpenInstancePublicPorts smart constructor.
Constructors
| OpenInstancePublicPorts' | |
Fields
| |
Instances
newOpenInstancePublicPorts Source #
Arguments
| :: PortInfo | |
| -> Text | |
| -> OpenInstancePublicPorts |
Create a value of OpenInstancePublicPorts 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:OpenInstancePublicPorts', openInstancePublicPorts_portInfo - An object to describe the ports to open for the specified instance.
OpenInstancePublicPorts, openInstancePublicPorts_instanceName - The name of the instance for which to open ports.
Request Lenses
openInstancePublicPorts_portInfo :: Lens' OpenInstancePublicPorts PortInfo Source #
An object to describe the ports to open for the specified instance.
openInstancePublicPorts_instanceName :: Lens' OpenInstancePublicPorts Text Source #
The name of the instance for which to open ports.
Destructuring the Response
data OpenInstancePublicPortsResponse Source #
See: newOpenInstancePublicPortsResponse smart constructor.
Constructors
| OpenInstancePublicPortsResponse' | |
Fields
| |
Instances
newOpenInstancePublicPortsResponse Source #
Create a value of OpenInstancePublicPortsResponse 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:OpenInstancePublicPortsResponse', openInstancePublicPortsResponse_operation - An array of objects that describe 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:OpenInstancePublicPortsResponse', openInstancePublicPortsResponse_httpStatus - The response's http status code.
Response Lenses
openInstancePublicPortsResponse_operation :: Lens' OpenInstancePublicPortsResponse (Maybe Operation) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
openInstancePublicPortsResponse_httpStatus :: Lens' OpenInstancePublicPortsResponse Int Source #
The response's http status code.