create_vpc_endpoint
async
¶
create_vpc_endpoint(
name: VpcEndpointName,
vpc_id: VpcId,
subnet_ids: SubnetIds,
*,
config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = 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/async_open_search_serverless.py
3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 | |