Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a VPC endpoint for a specified AWS service. An endpoint enables you to create a private connection between your VPC and another AWS service in your account. You can specify an endpoint policy to attach to the endpoint that will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.
Currently, only endpoints to Amazon S3 are supported.
See: AWS API Reference for CreateVPCEndpoint.
- createVPCEndpoint :: Text -> Text -> CreateVPCEndpoint
- data CreateVPCEndpoint
- cvePolicyDocument :: Lens' CreateVPCEndpoint (Maybe Text)
- cveClientToken :: Lens' CreateVPCEndpoint (Maybe Text)
- cveDryRun :: Lens' CreateVPCEndpoint (Maybe Bool)
- cveRouteTableIds :: Lens' CreateVPCEndpoint [Text]
- cveVPCId :: Lens' CreateVPCEndpoint Text
- cveServiceName :: Lens' CreateVPCEndpoint Text
- createVPCEndpointResponse :: Int -> CreateVPCEndpointResponse
- data CreateVPCEndpointResponse
- cversClientToken :: Lens' CreateVPCEndpointResponse (Maybe Text)
- cversVPCEndpoint :: Lens' CreateVPCEndpointResponse (Maybe VPCEndpoint)
- cversStatus :: Lens' CreateVPCEndpointResponse Int
Creating a Request
Creates a value of CreateVPCEndpoint
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateVPCEndpoint Source
See: createVPCEndpoint
smart constructor.
Request Lenses
cvePolicyDocument :: Lens' CreateVPCEndpoint (Maybe Text) Source
A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.
cveClientToken :: Lens' CreateVPCEndpoint (Maybe Text) Source
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
cveDryRun :: Lens' CreateVPCEndpoint (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
.
cveRouteTableIds :: Lens' CreateVPCEndpoint [Text] Source
One or more route table IDs.
cveVPCId :: Lens' CreateVPCEndpoint Text Source
The ID of the VPC in which the endpoint will be used.
cveServiceName :: Lens' CreateVPCEndpoint Text Source
The AWS service name, in the form 'com.amazonaws.region.service'. To get a list of available services, use the DescribeVpcEndpointServices request.
Destructuring the Response
createVPCEndpointResponse Source
Creates a value of CreateVPCEndpointResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateVPCEndpointResponse Source
See: createVPCEndpointResponse
smart constructor.
Response Lenses
cversClientToken :: Lens' CreateVPCEndpointResponse (Maybe Text) Source
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
cversVPCEndpoint :: Lens' CreateVPCEndpointResponse (Maybe VPCEndpoint) Source
Information about the endpoint.
cversStatus :: Lens' CreateVPCEndpointResponse Int Source
The response status code.