Skip to main content

vpc_endpoint_associations

Creates, updates, deletes, gets or lists a vpc_endpoint_associations resource.

Overview

Namevpc_endpoint_associations
TypeResource
Idaws.network_firewall.vpc_endpoint_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
vpc_endpoint_associationobjectThe configuration settings for the VPC endpoint association. These settings include the firewall and the VPC and subnet to use for the firewall endpoint.
vpc_endpoint_association_statusobjectDetailed information about the current status of a VpcEndpointAssociation. You can retrieve this by calling DescribeVpcEndpointAssociation and providing the VPC endpoint association ARN.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vpc_endpoint_associationselectregionReturns the data object for the specified VPC endpoint association.
list_vpc_endpoint_associationsselectregionRetrieves the metadata for the VPC endpoint associations that you have defined. If you specify a fireawll, this returns only the endpoint associations for that firewall. Depending on your setting for max results and the number of associations, a single call might not return the full list.
create_vpc_endpoint_associationinsertregion, FirewallArn, VpcId, SubnetMappingCreates a firewall endpoint for an Network Firewall firewall. This type of firewall endpoint is independent of the firewall endpoints that you specify in the Firewall itself, and you define it in addition to those endpoints after the firewall has been created. You can define a VPC endpoint association using a different VPC than the one you used in the firewall specifications.
delete_vpc_endpoint_associationdeleteregionDeletes the specified VpcEndpointAssociation. You can check whether an endpoint association is in use by reviewing the route tables for the Availability Zones where you have the endpoint subnet mapping. You can retrieve the subnet mapping by calling DescribeVpcEndpointAssociation. You define and update the route tables through Amazon VPC. As needed, update the route tables for the Availability Zone to remove the firewall endpoint for the association. When the route tables no longer use the firewall endpoint, you can remove the endpoint association safely.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the data object for the specified VPC endpoint association.

SELECT
vpc_endpoint_association,
vpc_endpoint_association_status
FROM aws.network_firewall.vpc_endpoint_associations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a firewall endpoint for an Network Firewall firewall. This type of firewall endpoint is independent of the firewall endpoints that you specify in the Firewall itself, and you define it in addition to those endpoints after the firewall has been created. You can define a VPC endpoint association using a different VPC than the one you used in the firewall specifications.

INSERT INTO aws.network_firewall.vpc_endpoint_associations (
FirewallArn,
VpcId,
SubnetMapping,
Description,
Tags,
region
)
SELECT
'{{ FirewallArn }}' /* required */,
'{{ VpcId }}' /* required */,
'{{ SubnetMapping }}' /* required */,
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
vpc_endpoint_association,
vpc_endpoint_association_status
;

DELETE examples

Deletes the specified VpcEndpointAssociation. You can check whether an endpoint association is in use by reviewing the route tables for the Availability Zones where you have the endpoint subnet mapping. You can retrieve the subnet mapping by calling DescribeVpcEndpointAssociation. You define and update the route tables through Amazon VPC. As needed, update the route tables for the Availability Zone to remove the firewall endpoint for the association. When the route tables no longer use the firewall endpoint, you can remove the endpoint association safely.

DELETE FROM aws.network_firewall.vpc_endpoint_associations
WHERE region = '{{ region }}' --required
;