Skip to main content

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

Namevpc_block_public_access_exclusions
TypeResource
DescriptionResource Type definition for AWS::EC2::VPCBlockPublicAccessExclusion.
Idaws.ec2.vpc_block_public_access_exclusions

Fields

NameDatatypeDescription
exclusion_idstringThe ID of the exclusion
internet_gateway_exclusion_modestringThe desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
vpc_idstringThe ID of the vpc. Required only if you don't specify SubnetId.
subnet_idstringThe ID of the subnet. Required only if you don't specify VpcId
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTInternetGatewayExclusionMode, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.ec2.vpc_block_public_access_exclusions (
InternetGatewayExclusionMode,
region
)
SELECT
'{{ InternetGatewayExclusionMode }}',
'{{ region }}';

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