create_vpc_endpoint
async
¶
create_vpc_endpoint(
domain_arn: DomainArn,
vpc_options: VPCOptions,
*,
config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> CreateVpcEndpointResponse
Creates an Amazon OpenSearch Service-managed VPC endpoint.
Parameters:
-
domain_arn(DomainArn) –The Amazon Resource Name (ARN) of the domain to grant access to.
-
vpc_options(VPCOptions) –Options to specify the subnets and security groups for the endpoint.
-
client_token(Optional[ClientToken], default:None) –Unique, case-sensitive identifier to ensure idempotency of the request.
Raises:
-
BaseException–An error occurred while processing the request.
-
ConflictException–An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP status code 409.
-
DisabledOperationException–An error occured because the client wanted to access a not supported operation. Gives http status code of 409.
-
InternalException–The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.
-
LimitExceededException–An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.
-
ValidationException–An exception for missing / invalid input fields. Gives http status code of 400.
-
UnknownServiceError–The service returned an error code this client does not model.