vpc_block_public_access_exclusions
Creates, updates, deletes or gets a vpc_block_public_access_exclusion
resource or lists vpc_block_public_access_exclusions
in a region
Overview
Name | vpc_block_public_access_exclusions |
Type | Resource |
Description | Resource Type definition for AWS::EC2::VPCBlockPublicAccessExclusion. |
Id | aws.ec2.vpc_block_public_access_exclusions |
Fields
Name | Datatype | Description |
---|---|---|
exclusion_id | string | The ID of the exclusion |
internet_gateway_exclusion_mode | string | The desired Block Public Access Exclusion Mode for a specific VPC/Subnet. |
vpc_id | string | The ID of the vpc. Required only if you don't specify SubnetId. |
subnet_id | string | The ID of the subnet. Required only if you don't specify VpcId |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
For more information, see AWS::EC2::VPCBlockPublicAccessExclusion
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | InternetGatewayExclusionMode, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all vpc_block_public_access_exclusions
in a region.
SELECT
region,
exclusion_id,
internet_gateway_exclusion_mode,
vpc_id,
subnet_id,
tags
FROM aws.ec2.vpc_block_public_access_exclusions
WHERE region = 'us-east-1';
Gets all properties from an individual vpc_block_public_access_exclusion
.
SELECT
region,
exclusion_id,
internet_gateway_exclusion_mode,
vpc_id,
subnet_id,
tags
FROM aws.ec2.vpc_block_public_access_exclusions
WHERE region = 'us-east-1' AND data__Identifier = '<ExclusionId>';
INSERT
example
Use the following StackQL query and manifest file to create a new vpc_block_public_access_exclusion
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.vpc_block_public_access_exclusions (
InternetGatewayExclusionMode,
region
)
SELECT
'{{ InternetGatewayExclusionMode }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.vpc_block_public_access_exclusions (
InternetGatewayExclusionMode,
VpcId,
SubnetId,
Tags,
region
)
SELECT
'{{ InternetGatewayExclusionMode }}',
'{{ VpcId }}',
'{{ SubnetId }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vpc_block_public_access_exclusion
props:
- name: InternetGatewayExclusionMode
value: '{{ InternetGatewayExclusionMode }}'
- name: VpcId
value: '{{ VpcId }}'
- name: SubnetId
value: '{{ SubnetId }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.vpc_block_public_access_exclusions
WHERE data__Identifier = '<ExclusionId>'
AND region = 'us-east-1';
Permissions
To operate on the vpc_block_public_access_exclusions
resource, the following permissions are required:
Create
ec2:DescribeVpcBlockPublicAccessExclusions,
ec2:CreateVpcBlockPublicAccessExclusion,
ec2:CreateTags
Read
ec2:DescribeVpcBlockPublicAccessExclusions
Update
ec2:DescribeVpcBlockPublicAccessExclusions,
ec2:ModifyVpcBlockPublicAccessExclusion,
ec2:CreateTags,
ec2:DeleteTags
Delete
ec2:DescribeVpcBlockPublicAccessExclusions,
ec2:DeleteVpcBlockPublicAccessExclusion
List
ec2:DescribeVpcBlockPublicAccessExclusions