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. This action also closes all currently open ports that are
not included in the request. Include all of the ports and the protocols
you want to open in your PutInstancePublicPorts
request. Or use the
OpenInstancePublicPorts
action to open ports without closing currently
open ports.
The PutInstancePublicPorts
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 PutInstancePublicPorts = PutInstancePublicPorts' {
- portInfos :: [PortInfo]
- instanceName :: Text
- newPutInstancePublicPorts :: Text -> PutInstancePublicPorts
- putInstancePublicPorts_portInfos :: Lens' PutInstancePublicPorts [PortInfo]
- putInstancePublicPorts_instanceName :: Lens' PutInstancePublicPorts Text
- data PutInstancePublicPortsResponse = PutInstancePublicPortsResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newPutInstancePublicPortsResponse :: Int -> PutInstancePublicPortsResponse
- putInstancePublicPortsResponse_operation :: Lens' PutInstancePublicPortsResponse (Maybe Operation)
- putInstancePublicPortsResponse_httpStatus :: Lens' PutInstancePublicPortsResponse Int
Creating a Request
data PutInstancePublicPorts Source #
See: newPutInstancePublicPorts
smart constructor.
PutInstancePublicPorts' | |
|
Instances
newPutInstancePublicPorts Source #
Create a value of PutInstancePublicPorts
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:portInfos:PutInstancePublicPorts'
, putInstancePublicPorts_portInfos
- An array of objects to describe the ports to open for the specified
instance.
$sel:instanceName:PutInstancePublicPorts'
, putInstancePublicPorts_instanceName
- The name of the instance for which to open ports.
Request Lenses
putInstancePublicPorts_portInfos :: Lens' PutInstancePublicPorts [PortInfo] Source #
An array of objects to describe the ports to open for the specified instance.
putInstancePublicPorts_instanceName :: Lens' PutInstancePublicPorts Text Source #
The name of the instance for which to open ports.
Destructuring the Response
data PutInstancePublicPortsResponse Source #
See: newPutInstancePublicPortsResponse
smart constructor.
PutInstancePublicPortsResponse' | |
|
Instances
Eq PutInstancePublicPortsResponse Source # | |
Read PutInstancePublicPortsResponse Source # | |
Show PutInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.PutInstancePublicPorts | |
Generic PutInstancePublicPortsResponse Source # | |
NFData PutInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.PutInstancePublicPorts rnf :: PutInstancePublicPortsResponse -> () # | |
type Rep PutInstancePublicPortsResponse Source # | |
Defined in Amazonka.Lightsail.PutInstancePublicPorts type Rep PutInstancePublicPortsResponse = D1 ('MetaData "PutInstancePublicPortsResponse" "Amazonka.Lightsail.PutInstancePublicPorts" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "PutInstancePublicPortsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutInstancePublicPortsResponse Source #
Create a value of PutInstancePublicPortsResponse
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:PutInstancePublicPortsResponse'
, putInstancePublicPortsResponse_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:PutInstancePublicPortsResponse'
, putInstancePublicPortsResponse_httpStatus
- The response's http status code.
Response Lenses
putInstancePublicPortsResponse_operation :: Lens' PutInstancePublicPortsResponse (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.
putInstancePublicPortsResponse_httpStatus :: Lens' PutInstancePublicPortsResponse Int Source #
The response's http status code.