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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTNetworkAclId, SubnetId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all subnet_network_acl_associations in a region.

SELECT
region,
subnet_id,
network_acl_id,
association_id
FROM aws.ec2.subnet_network_acl_associations
WHERE region = 'us-east-1';

Gets all properties from an individual subnet_network_acl_association.

SELECT
region,
subnet_id,
network_acl_id,
association_id
FROM aws.ec2.subnet_network_acl_associations
WHERE region = 'us-east-1' AND data__Identifier = '<AssociationId>';

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 aws.ec2.subnet_network_acl_associations (
SubnetId,
NetworkAclId,
region
)
SELECT
'{{ SubnetId }}',
'{{ NetworkAclId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ec2.subnet_network_acl_associations
WHERE data__Identifier = '<AssociationId>'
AND region = 'us-east-1';

Permissions

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

Create

ec2:DescribeNetworkAcls,
ec2:ReplaceNetworkAclAssociation

Read

ec2:DescribeNetworkAcls

Delete

ec2:DescribeNetworkAcls,
ec2:ReplaceNetworkAclAssociation

List

ec2:DescribeNetworkAcls