amazonka-apigateway-1.6.0: Amazon API Gateway SDK.

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

Network.AWS.APIGateway.CreateVPCLink

Contents

Description

Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

Synopsis

Creating a Request

createVPCLink Source #

Arguments

:: Text

cvlName

-> CreateVPCLink 

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

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

  • cvlDescription - The description of the VPC link.
  • cvlName - [Required] The name used to label and identify the VPC link.
  • cvlTargetARNs - [Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.

data CreateVPCLink Source #

Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

See: createVPCLink smart constructor.

Request Lenses

cvlDescription :: Lens' CreateVPCLink (Maybe Text) Source #

The description of the VPC link.

cvlName :: Lens' CreateVPCLink Text Source #

Required
The name used to label and identify the VPC link.

cvlTargetARNs :: Lens' CreateVPCLink [Text] Source #

Required
The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.

Destructuring the Response

vpcLink :: VPCLink Source #

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

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

  • vlStatus - The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING , or FAILED . Deploying an API will wait if the status is PENDING and will fail if the status is DELETING .
  • vlTargetARNs - The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
  • vlName - The name used to label and identify the VPC link.
  • vlStatusMessage - A description about the VPC link status.
  • vlId - The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .
  • vlDescription - The description of the VPC link.

data VPCLink Source #

A API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).

To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink . The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK . The integration uses the connectionId property to identify the VpcLink used.

See: vpcLink smart constructor.

Response Lenses

vlStatus :: Lens' VPCLink (Maybe VPCLinkStatus) Source #

The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING , or FAILED . Deploying an API will wait if the status is PENDING and will fail if the status is DELETING .

vlTargetARNs :: Lens' VPCLink [Text] Source #

The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.

vlName :: Lens' VPCLink (Maybe Text) Source #

The name used to label and identify the VPC link.

vlStatusMessage :: Lens' VPCLink (Maybe Text) Source #

A description about the VPC link status.

vlId :: Lens' VPCLink (Maybe Text) Source #

The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .

vlDescription :: Lens' VPCLink (Maybe Text) Source #

The description of the VPC link.