Skip to main content

vpc_endpoint_access

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

Overview

Namevpc_endpoint_access
TypeResource
Idaws.es.vpc_endpoint_access

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
authorized_principal_listarrayList of AuthorizedPrincipal describing the details of the permissions to manage VPC endpoints against the specified domain.
next_tokenstringPaginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_vpc_endpoint_accessselectdomain_name, regionnextTokenRetrieves information about each principal that is allowed to access a given Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
authorize_vpc_endpoint_accessupdatedomain_name, region, AccountProvides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
revoke_vpc_endpoint_accessexecdomain_name, region, AccountRevokes access to an Amazon OpenSearch Service domain that was provided through an interface 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
domain_namestringThe name of the OpenSearch Service domain.
regionstringAWS region (default: us-east-1)
nextTokenstringProvides an identifier to allow retrieval of paginated results.

SELECT examples

Retrieves information about each principal that is allowed to access a given Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

SELECT
authorized_principal_list,
next_token
FROM aws.es.vpc_endpoint_access
WHERE domain_name = '{{ domain_name }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.

UPDATE aws.es.vpc_endpoint_access
SET
Account = '{{ Account }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
AND Account = '{{ Account }}' --required
RETURNING
authorized_principal;

Lifecycle Methods

Revokes access to an Amazon OpenSearch Service domain that was provided through an interface VPC endpoint.

EXEC aws.es.vpc_endpoint_access.revoke_vpc_endpoint_access
@domain_name='{{ domain_name }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Account": "{{ Account }}"
}'
;