create_vpc_endpoint
¶
create_vpc_endpoint(
name: VpcEndpointName,
vpc_id: VpcId,
subnet_ids: SubnetIds,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = None,
security_group_ids: Optional[SecurityGroupIds] = None,
client_token: Optional[ClientToken] = None,
) -> CreateVpcEndpointResponse
Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
Parameters:
-
name(VpcEndpointName) –The name of the interface endpoint.
-
vpc_id(VpcId) –The ID of the VPC from which you'll access OpenSearch Serverless.
-
subnet_ids(SubnetIds) –The ID of one or more subnets from which you'll access OpenSearch Serverless.
-
security_group_ids(Optional[SecurityGroupIds], default:None) –The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
-
client_token(Optional[ClientToken], default:None) –Unique, case-sensitive identifier to ensure idempotency of the request.
Raises:
-
ConflictException–When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.
-
InternalServerException–Thrown when an error internal to the service occurs while processing a request.
-
ServiceQuotaExceededException–Thrown when you attempt to create more resources than the service allows based on service quotas.
-
ValidationException–Thrown when the HTTP request contains invalid input or is missing required input.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearchserverless/_services/open_search_serverless.py
3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 | |