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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.networkfirewall.vpc_endpoint_associations
WHERE
Identifier = '{{ vpc_endpoint_association_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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