Skip to main content

subnet_network_acl_associations

Creates, updates, deletes or gets a subnet_network_acl_association resource or lists subnet_network_acl_associations in a region

Overview

Namesubnet_network_acl_associations
TypeResource
DescriptionResource Type definition for AWS::EC2::SubnetNetworkAclAssociation
Idawscc.ec2.subnet_network_acl_associations

Fields

NameDatatypeDescription
subnet_idstringThe ID of the subnet
network_acl_idstringThe ID of the network ACL
association_idstring
regionstringAWS region.

For more information, see AWS::EC2::SubnetNetworkAclAssociation.

Methods

NameResourceAccessible byRequired Params
create_resourcesubnet_network_acl_associationsINSERTNetworkAclId, SubnetId, region
delete_resourcesubnet_network_acl_associationsDELETEIdentifier, region
list_resourcessubnet_network_acl_associations_list_onlySELECTregion
get_resourcesubnet_network_acl_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual subnet_network_acl_association.

SELECT
region,
subnet_id,
network_acl_id,
association_id
FROM awscc.ec2.subnet_network_acl_associations
WHERE
region = '{{ region }}' AND
Identifier = '{{ association_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new subnet_network_acl_association resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.ec2.subnet_network_acl_associations (
SubnetId,
NetworkAclId,
region
)
SELECT
'{{ subnet_id }}',
'{{ network_acl_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.subnet_network_acl_associations
WHERE
Identifier = '{{ association_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the subnet_network_acl_associations resource, the following permissions are required:

ec2:DescribeNetworkAcls,
ec2:ReplaceNetworkAclAssociation