amazonka-apigateway-2.0: Amazon API Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.APIGateway.CreateVpcLink

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

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: newCreateVpcLink smart constructor.

Constructors

CreateVpcLink' 

Fields

  • description :: Maybe Text

    The description of the VPC link.

  • tags :: Maybe (HashMap Text Text)

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

  • name :: Text

    The name used to label and identify the VPC link.

  • targetArns :: [Text]

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

Instances

newCreateVpcLink Source #

Create a value of CreateVpcLink with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateVpcLink, createVpcLink_description - The description of the VPC link.

CreateVpcLink, createVpcLink_tags - The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

CreateVpcLink, createVpcLink_name - The name used to label and identify the VPC link.

CreateVpcLink, createVpcLink_targetArns - The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

Request Lenses

createVpcLink_description :: Lens' CreateVpcLink (Maybe Text) Source #

The description of the VPC link.

createVpcLink_tags :: Lens' CreateVpcLink (Maybe (HashMap Text Text)) Source #

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

createVpcLink_name :: Lens' CreateVpcLink Text Source #

The name used to label and identify the VPC link.

createVpcLink_targetArns :: Lens' CreateVpcLink [Text] Source #

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

Destructuring the Response

data VpcLink Source #

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

See: newVpcLink smart constructor.

Constructors

VpcLink' 

Fields

  • description :: Maybe Text

    The description of the VPC link.

  • id :: Maybe Text

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

  • name :: Maybe Text

    The name used to label and identify the VPC link.

  • status :: Maybe VpcLinkStatus

    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.

  • statusMessage :: Maybe Text

    A description about the VPC link status.

  • tags :: Maybe (HashMap Text Text)

    The collection of tags. Each tag element is associated with a given resource.

  • targetArns :: Maybe [Text]

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

Instances

newVpcLink :: VpcLink Source #

Create a value of VpcLink with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:description:VpcLink', vpcLink_description - The description of the VPC link.

$sel:id:VpcLink', vpcLink_id - The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

$sel:name:VpcLink', vpcLink_name - The name used to label and identify the VPC link.

$sel:status:VpcLink', vpcLink_status - 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.

$sel:statusMessage:VpcLink', vpcLink_statusMessage - A description about the VPC link status.

$sel:tags:VpcLink', vpcLink_tags - The collection of tags. Each tag element is associated with a given resource.

$sel:targetArns:VpcLink', vpcLink_targetArns - The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

Response Lenses

vpcLink_description :: Lens' VpcLink (Maybe Text) Source #

The description of the VPC link.

vpcLink_id :: Lens' VpcLink (Maybe Text) Source #

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

vpcLink_name :: Lens' VpcLink (Maybe Text) Source #

The name used to label and identify the VPC link.

vpcLink_status :: 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.

vpcLink_statusMessage :: Lens' VpcLink (Maybe Text) Source #

A description about the VPC link status.

vpcLink_tags :: Lens' VpcLink (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

vpcLink_targetArns :: Lens' VpcLink (Maybe [Text]) Source #

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