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 |
Removes the specified subnet associations from the firewall. This removes the firewall endpoints from the subnets and removes any network filtering protections that the endpoints were providing.
Synopsis
- data DisassociateSubnets = DisassociateSubnets' {
- updateToken :: Maybe Text
- firewallArn :: Maybe Text
- firewallName :: Maybe Text
- subnetIds :: [Text]
- newDisassociateSubnets :: DisassociateSubnets
- disassociateSubnets_updateToken :: Lens' DisassociateSubnets (Maybe Text)
- disassociateSubnets_firewallArn :: Lens' DisassociateSubnets (Maybe Text)
- disassociateSubnets_firewallName :: Lens' DisassociateSubnets (Maybe Text)
- disassociateSubnets_subnetIds :: Lens' DisassociateSubnets [Text]
- data DisassociateSubnetsResponse = DisassociateSubnetsResponse' {}
- newDisassociateSubnetsResponse :: Int -> DisassociateSubnetsResponse
- disassociateSubnetsResponse_subnetMappings :: Lens' DisassociateSubnetsResponse (Maybe [SubnetMapping])
- disassociateSubnetsResponse_updateToken :: Lens' DisassociateSubnetsResponse (Maybe Text)
- disassociateSubnetsResponse_firewallArn :: Lens' DisassociateSubnetsResponse (Maybe Text)
- disassociateSubnetsResponse_firewallName :: Lens' DisassociateSubnetsResponse (Maybe Text)
- disassociateSubnetsResponse_httpStatus :: Lens' DisassociateSubnetsResponse Int
Creating a Request
data DisassociateSubnets Source #
See: newDisassociateSubnets
smart constructor.
DisassociateSubnets' | |
|
Instances
newDisassociateSubnets :: DisassociateSubnets Source #
Create a value of DisassociateSubnets
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:updateToken:DisassociateSubnets'
, disassociateSubnets_updateToken
- An optional token that you can use for optimistic locking. Network
Firewall returns a token to your requests that access the firewall. The
token marks the state of the firewall resource at the time of the
request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your
update request. Network Firewall uses the token to ensure that the
firewall hasn't changed since you last retrieved it. If it has changed,
the operation fails with an InvalidTokenException
. If this happens,
retrieve the firewall again to get a current copy of it with a new
token. Reapply your changes as needed, then try the operation again
using the new token.
$sel:firewallArn:DisassociateSubnets'
, disassociateSubnets_firewallArn
- The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
$sel:firewallName:DisassociateSubnets'
, disassociateSubnets_firewallName
- The descriptive name of the firewall. You can't change the name of a
firewall after you create it.
You must specify the ARN or the name, and you can specify both.
$sel:subnetIds:DisassociateSubnets'
, disassociateSubnets_subnetIds
- The unique identifiers for the subnets that you want to disassociate.
Request Lenses
disassociateSubnets_updateToken :: Lens' DisassociateSubnets (Maybe Text) Source #
An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your
update request. Network Firewall uses the token to ensure that the
firewall hasn't changed since you last retrieved it. If it has changed,
the operation fails with an InvalidTokenException
. If this happens,
retrieve the firewall again to get a current copy of it with a new
token. Reapply your changes as needed, then try the operation again
using the new token.
disassociateSubnets_firewallArn :: Lens' DisassociateSubnets (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
disassociateSubnets_firewallName :: Lens' DisassociateSubnets (Maybe Text) Source #
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
disassociateSubnets_subnetIds :: Lens' DisassociateSubnets [Text] Source #
The unique identifiers for the subnets that you want to disassociate.
Destructuring the Response
data DisassociateSubnetsResponse Source #
See: newDisassociateSubnetsResponse
smart constructor.
DisassociateSubnetsResponse' | |
|
Instances
newDisassociateSubnetsResponse Source #
Create a value of DisassociateSubnetsResponse
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:subnetMappings:DisassociateSubnetsResponse'
, disassociateSubnetsResponse_subnetMappings
- The IDs of the subnets that are associated with the firewall.
$sel:updateToken:DisassociateSubnets'
, disassociateSubnetsResponse_updateToken
- An optional token that you can use for optimistic locking. Network
Firewall returns a token to your requests that access the firewall. The
token marks the state of the firewall resource at the time of the
request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your
update request. Network Firewall uses the token to ensure that the
firewall hasn't changed since you last retrieved it. If it has changed,
the operation fails with an InvalidTokenException
. If this happens,
retrieve the firewall again to get a current copy of it with a new
token. Reapply your changes as needed, then try the operation again
using the new token.
$sel:firewallArn:DisassociateSubnets'
, disassociateSubnetsResponse_firewallArn
- The Amazon Resource Name (ARN) of the firewall.
$sel:firewallName:DisassociateSubnets'
, disassociateSubnetsResponse_firewallName
- The descriptive name of the firewall. You can't change the name of a
firewall after you create it.
$sel:httpStatus:DisassociateSubnetsResponse'
, disassociateSubnetsResponse_httpStatus
- The response's http status code.
Response Lenses
disassociateSubnetsResponse_subnetMappings :: Lens' DisassociateSubnetsResponse (Maybe [SubnetMapping]) Source #
The IDs of the subnets that are associated with the firewall.
disassociateSubnetsResponse_updateToken :: Lens' DisassociateSubnetsResponse (Maybe Text) Source #
An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your
update request. Network Firewall uses the token to ensure that the
firewall hasn't changed since you last retrieved it. If it has changed,
the operation fails with an InvalidTokenException
. If this happens,
retrieve the firewall again to get a current copy of it with a new
token. Reapply your changes as needed, then try the operation again
using the new token.
disassociateSubnetsResponse_firewallArn :: Lens' DisassociateSubnetsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall.
disassociateSubnetsResponse_firewallName :: Lens' DisassociateSubnetsResponse (Maybe Text) Source #
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
disassociateSubnetsResponse_httpStatus :: Lens' DisassociateSubnetsResponse Int Source #
The response's http status code.