Skip to main content

vpc_endpoint_associations

Creates, updates, deletes or gets a vpc_endpoint_association resource or lists vpc_endpoint_associations in a region

Overview

Namevpc_endpoint_associations
TypeResource
DescriptionResource type definition for AWS::NetworkFirewall::VpcEndpointAssociation
Idawscc.networkfirewall.vpc_endpoint_associations

Fields

NameDatatypeDescription
vpc_endpoint_association_arnstringA resource ARN.
vpc_endpoint_association_idstring
descriptionstring
vpc_idstring
endpoint_idstringAn endpoint Id.
subnet_mappingobject
tagsarray
regionstringAWS region.

For more information, see AWS::NetworkFirewall::VpcEndpointAssociation.

Methods

NameResourceAccessible byRequired Params
create_resourcevpc_endpoint_associationsINSERTFirewallArn, VpcId, SubnetMapping, region
delete_resourcevpc_endpoint_associationsDELETEIdentifier, region
update_resourcevpc_endpoint_associationsUPDATEIdentifier, PatchDocument, region
list_resourcesvpc_endpoint_associations_list_onlySELECTregion
get_resourcevpc_endpoint_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual vpc_endpoint_association.

SELECT
region,
vpc_endpoint_association_arn,
vpc_endpoint_association_id,
description,
firewall_arn,
vpc_id,
endpoint_id,
subnet_mapping,
tags
FROM awscc.networkfirewall.vpc_endpoint_associations
WHERE
region = 'us-east-1' AND
Identifier = '{{ vpc_endpoint_association_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.networkfirewall.vpc_endpoint_associations (
FirewallArn,
VpcId,
SubnetMapping,
region
)
SELECT
'{{ firewall_arn }}',
'{{ vpc_id }}',
'{{ subnet_mapping }}',
'{{ region }}';

UPDATE example

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

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

DELETE example

/*+ delete */
DELETE FROM awscc.networkfirewall.vpc_endpoint_associations
WHERE
Identifier = '{{ vpc_endpoint_association_arn }}' AND
region = 'us-east-1';

Permissions

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

network-firewall:CreateVpcEndpointAssociation,
network-firewall:DescribeVpcEndpointAssociation,
network-firewall:ListFirewalls,
network-firewall:TagResource,
ec2:CreateVpcEndpoint,
ec2:DescribeVpcEndpoints,
ec2:DescribeSubnets,
ec2:DescribeVpcs,
iam:CreateServiceLinkedRole