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
Name | subnet_network_acl_associations |
Type | Resource |
Description | Resource Type definition for AWS::EC2::SubnetNetworkAclAssociation |
Id | aws.ec2.subnet_network_acl_associations |
Fields
Name | Datatype | Description |
---|---|---|
subnet_id | string | The ID of the subnet |
network_acl_id | string | The ID of the network ACL |
association_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | NetworkAclId, SubnetId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.subnet_network_acl_associations (
SubnetId,
NetworkAclId,
region
)
SELECT
'{{ SubnetId }}',
'{{ NetworkAclId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.subnet_network_acl_associations (
SubnetId,
NetworkAclId,
region
)
SELECT
'{{ SubnetId }}',
'{{ NetworkAclId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: subnet_network_acl_association
props:
- name: SubnetId
value: '{{ SubnetId }}'
- name: NetworkAclId
value: '{{ NetworkAclId }}'
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