Skip to main content

network_acls

Creates, updates, deletes or gets a network_acl resource or lists network_acls in a region

Overview

Namenetwork_acls
TypeResource
DescriptionSpecifies a network ACL for your VPC.
To add a network ACL entry, see [AWS::EC2::NetworkAclEntry](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html).
Idawscc.ec2.network_acls

Fields

NameDatatypeDescription
vpc_idstringThe ID of the VPC for the network ACL.
idstring
tagsarrayThe tags for the network ACL.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcenetwork_aclsINSERTVpcId, region
delete_resourcenetwork_aclsDELETEIdentifier, region
update_resourcenetwork_aclsUPDATEIdentifier, PatchDocument, region
list_resourcesnetwork_acls_list_onlySELECTregion
get_resourcenetwork_aclsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual network_acl.

SELECT
region,
vpc_id,
id,
tags
FROM awscc.ec2.network_acls
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.ec2.network_acls (
VpcId,
region
)
SELECT
'{{ vpc_id }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a network_acl resource, using stack-deploy.

/*+ update */
UPDATE awscc.ec2.network_acls
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.network_acls
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

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

ec2:DescribeNetworkAcls,
ec2:DescribeTags