Skip to content

replace_network_acl_association

Operation

replace_network_acl_association

replace_network_acl_association(request: ReplaceNetworkAclAssociationInput | ReplaceNetworkAclAssociationInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ReplaceNetworkAclAssociationInputDict]) -> ReplaceNetworkAclAssociationOutput

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 VPC User Guide.

This is an idempotent operation.

Parameters:

Name Type Description Default
request ReplaceNetworkAclAssociationInput | ReplaceNetworkAclAssociationInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[ReplaceNetworkAclAssociationInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ReplaceNetworkAclAssociationOutput

An instance of ReplaceNetworkAclAssociationOutput.

replace_network_acl_association async

replace_network_acl_association(request: ReplaceNetworkAclAssociationInput | ReplaceNetworkAclAssociationInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ReplaceNetworkAclAssociationInputDict]) -> ReplaceNetworkAclAssociationOutput

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 VPC User Guide.

This is an idempotent operation.

Parameters:

Name Type Description Default
request ReplaceNetworkAclAssociationInput | ReplaceNetworkAclAssociationInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[ReplaceNetworkAclAssociationInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ReplaceNetworkAclAssociationOutput

An instance of ReplaceNetworkAclAssociationOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

ReplaceNetworkAclAssociationInputDict

Bases: TypedDict

Dictionary form of ReplaceNetworkAclAssociationInput.

Attributes

association_id instance-attribute
association_id: Required[str]

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

dry_run instance-attribute
dry_run: bool | None

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.

network_acl_id instance-attribute
network_acl_id: Required[str]

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

ReplaceNetworkAclAssociationInput dataclass

Bases: _SerdeShape

Dataclass for ReplaceNetworkAclAssociationInput structure.

Attributes

association_id class-attribute instance-attribute
association_id: str | None = ...

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

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

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.

network_acl_id class-attribute instance-attribute
network_acl_id: str | None = ...

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

Output

ReplaceNetworkAclAssociationOutput dataclass

Bases: _SerdeShape

Dataclass for ReplaceNetworkAclAssociationOutput structure.

Attributes

new_association_id class-attribute instance-attribute
new_association_id: str | None = ...

The ID of the new association.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.