Skip to main content

vpc_endpoint_access

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

Overview

Namevpc_endpoint_access
TypeResource
Idaws.opensearch.vpc_endpoint_access

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
authorized_principal_listarrayA list of IAM principals that can currently access the domain.
next_tokenstringWhen nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_vpc_endpoint_accessselectdomain_name, regionnextTokenRetrieves information about each Amazon Web Services 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, regionProvides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
revoke_vpc_endpoint_accessexecdomain_name, regionRevokes 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)
nextTokenstringIf your initial ListVpcEndpointAccess operation returns a nextToken, you can include the returned nextToken in subsequent ListVpcEndpointAccess operations, which returns results in the next page.

SELECT examples

Retrieves information about each Amazon Web Services 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.opensearch.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.opensearch.vpc_endpoint_access
SET
Account = '{{ Account }}',
Service = '{{ Service }}',
ServiceOptions = '{{ ServiceOptions }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
RETURNING
authorized_principal;

Lifecycle Methods

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

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