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 |
Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
This is an idempotent operation.
Synopsis
- data ReplaceNetworkAclAssociation = ReplaceNetworkAclAssociation' {
- dryRun :: Maybe Bool
- associationId :: Text
- networkAclId :: Text
- newReplaceNetworkAclAssociation :: Text -> Text -> ReplaceNetworkAclAssociation
- replaceNetworkAclAssociation_dryRun :: Lens' ReplaceNetworkAclAssociation (Maybe Bool)
- replaceNetworkAclAssociation_associationId :: Lens' ReplaceNetworkAclAssociation Text
- replaceNetworkAclAssociation_networkAclId :: Lens' ReplaceNetworkAclAssociation Text
- data ReplaceNetworkAclAssociationResponse = ReplaceNetworkAclAssociationResponse' {}
- newReplaceNetworkAclAssociationResponse :: Int -> ReplaceNetworkAclAssociationResponse
- replaceNetworkAclAssociationResponse_newAssociationId :: Lens' ReplaceNetworkAclAssociationResponse (Maybe Text)
- replaceNetworkAclAssociationResponse_httpStatus :: Lens' ReplaceNetworkAclAssociationResponse Int
Creating a Request
data ReplaceNetworkAclAssociation Source #
See: newReplaceNetworkAclAssociation
smart constructor.
ReplaceNetworkAclAssociation' | |
|
Instances
newReplaceNetworkAclAssociation Source #
:: Text | |
-> Text | |
-> ReplaceNetworkAclAssociation |
Create a value of ReplaceNetworkAclAssociation
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:dryRun:ReplaceNetworkAclAssociation'
, replaceNetworkAclAssociation_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
ReplaceNetworkAclAssociation
, replaceNetworkAclAssociation_associationId
- The ID of the current association between the original network ACL and
the subnet.
ReplaceNetworkAclAssociation
, replaceNetworkAclAssociation_networkAclId
- The ID of the new network ACL to associate with the subnet.
Request Lenses
replaceNetworkAclAssociation_dryRun :: Lens' ReplaceNetworkAclAssociation (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
replaceNetworkAclAssociation_associationId :: Lens' ReplaceNetworkAclAssociation Text Source #
The ID of the current association between the original network ACL and the subnet.
replaceNetworkAclAssociation_networkAclId :: Lens' ReplaceNetworkAclAssociation Text Source #
The ID of the new network ACL to associate with the subnet.
Destructuring the Response
data ReplaceNetworkAclAssociationResponse Source #
See: newReplaceNetworkAclAssociationResponse
smart constructor.
ReplaceNetworkAclAssociationResponse' | |
|
Instances
Generic ReplaceNetworkAclAssociationResponse Source # | |
Read ReplaceNetworkAclAssociationResponse Source # | |
Show ReplaceNetworkAclAssociationResponse Source # | |
NFData ReplaceNetworkAclAssociationResponse Source # | |
Defined in Amazonka.EC2.ReplaceNetworkAclAssociation rnf :: ReplaceNetworkAclAssociationResponse -> () # | |
Eq ReplaceNetworkAclAssociationResponse Source # | |
type Rep ReplaceNetworkAclAssociationResponse Source # | |
Defined in Amazonka.EC2.ReplaceNetworkAclAssociation type Rep ReplaceNetworkAclAssociationResponse = D1 ('MetaData "ReplaceNetworkAclAssociationResponse" "Amazonka.EC2.ReplaceNetworkAclAssociation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReplaceNetworkAclAssociationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "newAssociationId'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newReplaceNetworkAclAssociationResponse Source #
Create a value of ReplaceNetworkAclAssociationResponse
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:newAssociationId':ReplaceNetworkAclAssociationResponse'
, replaceNetworkAclAssociationResponse_newAssociationId
- The ID of the new association.
$sel:httpStatus:ReplaceNetworkAclAssociationResponse'
, replaceNetworkAclAssociationResponse_httpStatus
- The response's http status code.
Response Lenses
replaceNetworkAclAssociationResponse_newAssociationId :: Lens' ReplaceNetworkAclAssociationResponse (Maybe Text) Source #
The ID of the new association.
replaceNetworkAclAssociationResponse_httpStatus :: Lens' ReplaceNetworkAclAssociationResponse Int Source #
The response's http status code.