Skip to main content

vpc_endpoint_connections

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

Overview

Namevpc_endpoint_connections
TypeResource
Idaws.ec2.vpc_endpoint_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestampstringThe date and time that the VPC endpoint was created.
dns_entriesstringThe DNS entries for the VPC endpoint.
gateway_load_balancer_arnsstringThe Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service.
ip_address_typestringThe IP address type for the endpoint.
network_load_balancer_arnsstringThe Amazon Resource Names (ARNs) of the network load balancers for the service.
payer_responsibilitiesstringThe payer responsibility settings for the endpoint.
service_idstringThe ID of the service to which the endpoint is connected.
tagsstringThe tags.
vpc_endpoint_connection_idstringThe ID of the VPC endpoint connection.
vpc_endpoint_idstringThe ID of the VPC endpoint.
vpc_endpoint_ownerstringThe ID of the Amazon Web Services account that owns the VPC endpoint.
vpc_endpoint_regionstringThe Region of the endpoint.
vpc_endpoint_statestringThe state of the VPC endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vpc_endpoint_connectionsselectregionDryRun, Filter, MaxResults, NextTokenDescribes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.
accept_vpc_endpoint_connectionsexecServiceId, VpcEndpointId, regionDryRunAccepts connection requests to your VPC endpoint service.
reject_vpc_endpoint_connectionsexecServiceId, VpcEndpointId, regionDryRunRejects VPC endpoint connection requests to your VPC endpoint service.

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
ServiceIdstringThe ID of the service.
VpcEndpointIdarrayThe IDs of the VPC endpoints.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters. ip-address-type - The IP address type (ipv4 | ipv6). service-id - The ID of the service. vpc-endpoint-owner - The ID of the Amazon Web Services account ID that owns the endpoint. vpc-endpoint-region - The Region of the endpoint or cross-region to find endpoints for other Regions. vpc-endpoint-state - The state of the endpoint (pendingAcceptance | pending | available | deleting | deleted | rejected | failed). vpc-endpoint-id - The ID of the endpoint.
MaxResultsintegerThe maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results are returned.
NextTokenstringThe token to retrieve the next page of results.

SELECT examples

Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.

SELECT
creation_timestamp,
dns_entries,
gateway_load_balancer_arns,
ip_address_type,
network_load_balancer_arns,
payer_responsibilities,
service_id,
tags,
vpc_endpoint_connection_id,
vpc_endpoint_id,
vpc_endpoint_owner,
vpc_endpoint_region,
vpc_endpoint_state
FROM aws.ec2.vpc_endpoint_connections
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;

Lifecycle Methods

Accepts connection requests to your VPC endpoint service.

EXEC aws.ec2.vpc_endpoint_connections.accept_vpc_endpoint_connections
@ServiceId='{{ ServiceId }}' --required,
@VpcEndpointId='{{ VpcEndpointId }}' --required,
@region='{{ region }}' --required,
@DryRun={{ DryRun }}
;