CreateVpcEndpointServiceConfiguration - Amazon Elastic Compute Cloud

CreateVpcEndpointServiceConfiguration

Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect.

To create an endpoint service configuration, you must first create one of the following for your service:

For more information, see VPC Endpoint Services in the Amazon Virtual Private Cloud User Guide.

If you set the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification in the Amazon Virtual Private Cloud User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

AcceptanceRequired

Indicates whether requests from service consumers to create an endpoint to your service must be accepted. To accept a request, use AcceptVpcEndpointConnections.

Type: Boolean

Required: No

ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Type: String

Required: No

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

GatewayLoadBalancerArn.N

The Amazon Resource Names (ARNs) of one or more Gateway Load Balancers.

Type: Array of strings

Required: No

NetworkLoadBalancerArn.N

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for your service.

Type: Array of strings

Required: No

PrivateDnsName

(Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service.

Type: String

Required: No

TagSpecification.N

The tags to associate with the service.

Type: Array of TagSpecification objects

Required: No

Response Elements

The following elements are returned by the service.

clientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Type: String

requestId

The ID of the request.

Type: String

serviceConfiguration

Information about the service configuration.

Type: ServiceConfiguration object

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example 1

This example creates a VPC endpoint service configuration using the load balancer my-nlb. This example also specifies that requests to connect to the service through a VPC endpoint must be accepted.

Sample Request

https://ec2.amazonaws.com/?Action=CreateVpcEndpointServiceConfiguration &NetworkLoadBalancerArn.1=arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/net/my-nlb/e94221227f1ba532 &AcceptanceRequired=true &AUTHPARAMS

Sample Response

<CreateVpcEndpointServiceConfigurationResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>1b2f25d4-9d9f-4256-a8e3-297f7example</requestId> <serviceConfiguration> <serviceState>Available</serviceState> <serviceType> <item> <serviceType>Interface</serviceType> </item> </serviceType> <baseEndpointDnsNameSet> <item>vpce-svc-0552b9c1298c4f123.us-east-1.vpce.amazonaws.com</item> </baseEndpointDnsNameSet> <acceptanceRequired>true</acceptanceRequired> <availabilityZoneSet> <item>us-east-1d</item> </availabilityZoneSet> <serviceId>vpce-svc-0552b9c1298c4f123</serviceId> <serviceName>com.amazonaws.vpce.us-east-1.vpce-svc-0552b9c1298c4f123</serviceName> <networkLoadBalancerArnSet> <item>arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/net/my-nlb/e94221227f1ba532</item> </networkLoadBalancerArnSet> </serviceConfiguration> </CreateVpcEndpointServiceConfigurationResponse>

Example 2

This example creates a VPC endpoint service configuration using the specified Gateway Load Balancer. This example also specifies that requests to connect to the service do have to be accepted.

Sample Request

https://ec2.amazonaws.com/?Action=CreateVpcEndpointServiceConfiguration &GatewayLoadBalancerArn.1=arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/gwy/GWLBService/abc210844e429abc &AcceptanceRequired=false &AUTHPARAMS

Sample Response

<CreateVpcEndpointServiceConfigurationResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>1b2f25d4-9d9f-4256-a8e3-297f7example</requestId> <serviceConfiguration> <serviceState>Available</serviceState> <serviceType> <item> <serviceType>GatewayLoadBalancer</serviceType> </item> </serviceType> <acceptanceRequired>false</acceptanceRequired> <availabilityZoneSet> <item>us-east-1d</item> </availabilityZoneSet> <serviceId>vpce-svc-123abcc1298abc123</serviceId> <serviceName>com.amazonaws.vpce.us-east-1.vpce-svc-123abcc1298abc123</serviceName> <gatewayLoadBalancerArnSet> <item>arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/gwy/GWLBService/abc210844e429abc</item> </gatewayLoadBalancerArnSet> </serviceConfiguration> </CreateVpcEndpointServiceConfigurationResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: