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 |
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.
OpenInstancePublicPorts' | |
|
Instances
newOpenInstancePublicPorts Source #
:: 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.
$sel:instanceName: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.
OpenInstancePublicPortsResponse' | |
|
Instances
Eq OpenInstancePublicPortsResponse Source # | |
Read OpenInstancePublicPortsResponse Source # | |
Show OpenInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.OpenInstancePublicPorts | |
Generic OpenInstancePublicPortsResponse Source # | |
NFData OpenInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.OpenInstancePublicPorts rnf :: OpenInstancePublicPortsResponse -> () # | |
type Rep OpenInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.OpenInstancePublicPorts type Rep OpenInstancePublicPortsResponse = D1 ('MetaData "OpenInstancePublicPortsResponse" "Amazonka.Lightsail.OpenInstancePublicPorts" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "OpenInstancePublicPortsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.