amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ReplaceNetworkAclAssociation

Description

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

Creating a Request

data ReplaceNetworkAclAssociation Source #

See: newReplaceNetworkAclAssociation smart constructor.

Constructors

ReplaceNetworkAclAssociation' 

Fields

  • dryRun :: Maybe Bool

    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.

  • associationId :: Text

    The ID of the current association between the original network ACL and the subnet.

  • networkAclId :: Text

    The ID of the new network ACL to associate with the subnet.

Instances

Instances details
ToHeaders ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

ToPath ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

ToQuery ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

AWSRequest ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Generic ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Associated Types

type Rep ReplaceNetworkAclAssociation :: Type -> Type #

Read ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Show ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

NFData ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Eq ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Hashable ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

type AWSResponse ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

type Rep ReplaceNetworkAclAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

type Rep ReplaceNetworkAclAssociation = D1 ('MetaData "ReplaceNetworkAclAssociation" "Amazonka.EC2.ReplaceNetworkAclAssociation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReplaceNetworkAclAssociation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "associationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "networkAclId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newReplaceNetworkAclAssociation Source #

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 #

Constructors

ReplaceNetworkAclAssociationResponse' 

Fields

Instances

Instances details
Generic ReplaceNetworkAclAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Read ReplaceNetworkAclAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Show ReplaceNetworkAclAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

NFData ReplaceNetworkAclAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

Eq ReplaceNetworkAclAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceNetworkAclAssociation

type Rep ReplaceNetworkAclAssociationResponse Source # 
Instance details

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