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 |
Returns the firewall port states for a specific Amazon Lightsail instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.
Synopsis
- data GetInstancePortStates = GetInstancePortStates' {
- instanceName :: Text
- newGetInstancePortStates :: Text -> GetInstancePortStates
- getInstancePortStates_instanceName :: Lens' GetInstancePortStates Text
- data GetInstancePortStatesResponse = GetInstancePortStatesResponse' {}
- newGetInstancePortStatesResponse :: Int -> GetInstancePortStatesResponse
- getInstancePortStatesResponse_portStates :: Lens' GetInstancePortStatesResponse (Maybe [InstancePortState])
- getInstancePortStatesResponse_httpStatus :: Lens' GetInstancePortStatesResponse Int
Creating a Request
data GetInstancePortStates Source #
See: newGetInstancePortStates
smart constructor.
GetInstancePortStates' | |
|
Instances
newGetInstancePortStates Source #
Create a value of GetInstancePortStates
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:instanceName:GetInstancePortStates'
, getInstancePortStates_instanceName
- The name of the instance for which to return firewall port states.
Request Lenses
getInstancePortStates_instanceName :: Lens' GetInstancePortStates Text Source #
The name of the instance for which to return firewall port states.
Destructuring the Response
data GetInstancePortStatesResponse Source #
See: newGetInstancePortStatesResponse
smart constructor.
GetInstancePortStatesResponse' | |
|
Instances
newGetInstancePortStatesResponse Source #
Create a value of GetInstancePortStatesResponse
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:portStates:GetInstancePortStatesResponse'
, getInstancePortStatesResponse_portStates
- An array of objects that describe the firewall port states for the
specified instance.
$sel:httpStatus:GetInstancePortStatesResponse'
, getInstancePortStatesResponse_httpStatus
- The response's http status code.
Response Lenses
getInstancePortStatesResponse_portStates :: Lens' GetInstancePortStatesResponse (Maybe [InstancePortState]) Source #
An array of objects that describe the firewall port states for the specified instance.
getInstancePortStatesResponse_httpStatus :: Lens' GetInstancePortStatesResponse Int Source #
The response's http status code.