amazonka-ec2-1.3.2: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyVPCEndpoint

Contents

Description

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.

See: AWS API Reference for ModifyVPCEndpoint.

Synopsis

Creating a Request

modifyVPCEndpoint Source

Creates a value of ModifyVPCEndpoint with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

mvePolicyDocument :: Lens' ModifyVPCEndpoint (Maybe Text) Source

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

mveRemoveRouteTableIds :: Lens' ModifyVPCEndpoint [Text] Source

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

mveResetPolicy :: Lens' ModifyVPCEndpoint (Maybe Bool) Source

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

mveAddRouteTableIds :: Lens' ModifyVPCEndpoint [Text] Source

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

mveDryRun :: Lens' ModifyVPCEndpoint (Maybe Bool) Source

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.

Destructuring the Response

modifyVPCEndpointResponse Source

Creates a value of ModifyVPCEndpointResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

mversReturn :: Lens' ModifyVPCEndpointResponse (Maybe Bool) Source

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