Skip to main content

resource_endpoint_associations

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

Overview

Nameresource_endpoint_associations
TypeResource
Idaws.vpc_lattice.resource_endpoint_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the VPC endpoint association. (pattern: <code>rea-[0-9a-f]{17}</code>)
arnstringThe Amazon Resource Name (ARN) of the VPC endpoint association. (pattern: <code>arn:[a-z0-9-]+:vpc-lattice:[a-zA-Z0-9-]+:\d{12}:resourceendpointassociation/rea-[0-9a-f]{17}</code>)
created_atstring (date-time)The date and time that the VPC endpoint association was created, in ISO-8601 format.
created_bystringThe account that created the association. (pattern: <code>[0-9]{12}</code>)
resource_configuration_arnstringThe Amazon Resource Name (ARN) of the resource configuration. (pattern: <code>arn:[a-z0-9f-]+:vpc-lattice:[a-zA-Z0-9-]+:\d{12}:resourceconfiguration/rcfg-[0-9a-z]{17}</code>)
resource_configuration_idstringThe ID of the resource configuration. (pattern: <code>rcfg-[0-9a-z]{17}</code>)
resource_configuration_namestringThe name of the resource configuration. (pattern: <code>(?!rcfg-)(?![-])(?!.[-]$)(?!.[-]{2})[a-z0-9-]+</code>)
vpc_endpoint_idstringThe ID of the VPC endpoint. (pattern: <code>vpce-[0-9a-f]{17}</code>)
vpc_endpoint_ownerstringThe owner of the VPC endpoint. (pattern: <code>\d{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_resource_endpoint_associationsselectresourceConfigurationIdentifier, regionresourceEndpointAssociationIdentifier, vpcEndpointId, vpcEndpointOwner, maxResults, nextTokenLists the associations for the specified VPC endpoint.
delete_resource_endpoint_associationdeleteresource_endpoint_association_identifier, regionDisassociates the resource configuration from the resource VPC endpoint.

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)
resourceConfigurationIdentifierstringThe ID for the resource configuration associated with the VPC endpoint.
resource_endpoint_association_identifierstringThe ID or ARN of the association.
maxResultsintegerThe maximum page size.
nextTokenstringA pagination token for the next page of results.
resourceEndpointAssociationIdentifierstringThe ID of the association.
vpcEndpointIdstringThe ID of the VPC endpoint in the association.
vpcEndpointOwnerstringThe owner of the VPC endpoint in the association.

SELECT examples

Lists the associations for the specified VPC endpoint.

SELECT
id,
arn,
created_at,
created_by,
resource_configuration_arn,
resource_configuration_id,
resource_configuration_name,
vpc_endpoint_id,
vpc_endpoint_owner
FROM aws.vpc_lattice.resource_endpoint_associations
WHERE resourceConfigurationIdentifier = '{{ resourceConfigurationIdentifier }}' -- required
AND region = '{{ region }}' -- required
AND resourceEndpointAssociationIdentifier = '{{ resourceEndpointAssociationIdentifier }}'
AND vpcEndpointId = '{{ vpcEndpointId }}'
AND vpcEndpointOwner = '{{ vpcEndpointOwner }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

DELETE examples

Disassociates the resource configuration from the resource VPC endpoint.

DELETE FROM aws.vpc_lattice.resource_endpoint_associations
WHERE resource_endpoint_association_identifier = '{{ resource_endpoint_association_identifier }}' --required
AND region = '{{ region }}' --required
;