Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

ModifyVpcEndpoint

Modifies attributes of a specified VPC endpoint. You can modify the policy associated with the endpoint, and you can add and remove route tables associated with the endpoint.

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.

AddRouteTableId.N

One or more route tables IDs to associate with the endpoint.

Type: Array of strings

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

PolicyDocument

A policy document to attach to the endpoint. The policy must be in valid JSON format.

Type: String

Required: No

RemoveRouteTableId.N

One or more route table IDs to disassociate from the endpoint.

Type: Array of strings

Required: No

ResetPolicy

Specify true to reset the policy document to the default policy. The default policy allows access to the service.

Type: Boolean

Required: No

VpcEndpointId

The ID of the endpoint.

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

return

Returns true if the request succeeds; otherwise, it returns an error.

Type: Boolean

Errors

For information about the errors that are common to all actions, see Common Errors.

Example

Example

This example modifies vpce-1a2b3c4d by associating route table rtb-aaa222bb with the endpoint, and resetting the policy document.

Sample Request

Copy
https://ec2.amazonaws.com/?Action=ModifyVpcEndpoint &VpcEndpointId=vpce-1a2b3c4d &ResetPolicy=true &AddRouteTableId.1=rtb-aaa222bb &AUTHPARAMS

Sample Response

Copy
<ModifyVpcEndpointResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <return>true</return> <requestId>125acea6-ba5c-4c6e-8e17-example</requestId> </ModifyVpcEndpointResponse>

See Also

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