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
2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 | |