OpenSearchServiceServerless.Client.
create_vpc_endpoint
(**kwargs)¶Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
See also: AWS API Documentation
Request Syntax
response = client.create_vpc_endpoint(
clientToken='string',
name='string',
securityGroupIds=[
'string',
],
subnetIds=[
'string',
],
vpcId='string'
)
Unique, case-sensitive identifier to ensure idempotency of the request.
This field is autopopulated if not provided.
[REQUIRED]
The name of the interface endpoint.
The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
[REQUIRED]
The ID of one or more subnets from which you'll access OpenSearch Serverless.
[REQUIRED]
The ID of the VPC from which you'll access OpenSearch Serverless.
dict
Response Syntax
{
'createVpcEndpointDetail': {
'id': 'string',
'name': 'string',
'status': 'PENDING'|'DELETING'|'ACTIVE'|'FAILED'
}
}
Response Structure
(dict) --
createVpcEndpointDetail (dict) --
Details about the created interface VPC endpoint.
id (string) --
The unique identifier of the endpoint.
name (string) --
The name of the endpoint.
status (string) --
The current status in the endpoint creation process.
Exceptions
OpenSearchServiceServerless.Client.exceptions.InternalServerException
OpenSearchServiceServerless.Client.exceptions.ConflictException
OpenSearchServiceServerless.Client.exceptions.ValidationException