amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.CreateTransitGatewayVpcAttachment

Description

Attaches the specified VPC to the specified transit gateway.

If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.

To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.

Synopsis

Creating a Request

data CreateTransitGatewayVpcAttachment Source #

See: newCreateTransitGatewayVpcAttachment smart constructor.

Constructors

CreateTransitGatewayVpcAttachment' 

Fields

  • dryRun :: Maybe Bool

    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.

  • options :: Maybe CreateTransitGatewayVpcAttachmentRequestOptions

    The VPC attachment options.

  • tagSpecifications :: Maybe [TagSpecification]

    The tags to apply to the VPC attachment.

  • transitGatewayId :: Text

    The ID of the transit gateway.

  • vpcId :: Text

    The ID of the VPC.

  • subnetIds :: [Text]

    The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

Instances

Instances details
ToHeaders CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

ToPath CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

ToQuery CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

AWSRequest CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Generic CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Associated Types

type Rep CreateTransitGatewayVpcAttachment :: Type -> Type #

Read CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Show CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

NFData CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Eq CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Hashable CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

type AWSResponse CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

type Rep CreateTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

type Rep CreateTransitGatewayVpcAttachment = D1 ('MetaData "CreateTransitGatewayVpcAttachment" "Amazonka.EC2.CreateTransitGatewayVpcAttachment" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateTransitGatewayVpcAttachment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "options") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CreateTransitGatewayVpcAttachmentRequestOptions)) :*: S1 ('MetaSel ('Just "tagSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagSpecification])))) :*: (S1 ('MetaSel ('Just "transitGatewayId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))))

newCreateTransitGatewayVpcAttachment Source #

Create a value of CreateTransitGatewayVpcAttachment 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:dryRun:CreateTransitGatewayVpcAttachment', createTransitGatewayVpcAttachment_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.

CreateTransitGatewayVpcAttachment, createTransitGatewayVpcAttachment_options - The VPC attachment options.

CreateTransitGatewayVpcAttachment, createTransitGatewayVpcAttachment_tagSpecifications - The tags to apply to the VPC attachment.

CreateTransitGatewayVpcAttachment, createTransitGatewayVpcAttachment_transitGatewayId - The ID of the transit gateway.

CreateTransitGatewayVpcAttachment, createTransitGatewayVpcAttachment_vpcId - The ID of the VPC.

CreateTransitGatewayVpcAttachment, createTransitGatewayVpcAttachment_subnetIds - The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

Request Lenses

createTransitGatewayVpcAttachment_dryRun :: Lens' CreateTransitGatewayVpcAttachment (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.

createTransitGatewayVpcAttachment_subnetIds :: Lens' CreateTransitGatewayVpcAttachment [Text] Source #

The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

Destructuring the Response

data CreateTransitGatewayVpcAttachmentResponse Source #

Constructors

CreateTransitGatewayVpcAttachmentResponse' 

Fields

Instances

Instances details
Generic CreateTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Read CreateTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Show CreateTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

NFData CreateTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

Eq CreateTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

type Rep CreateTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayVpcAttachment

type Rep CreateTransitGatewayVpcAttachmentResponse = D1 ('MetaData "CreateTransitGatewayVpcAttachmentResponse" "Amazonka.EC2.CreateTransitGatewayVpcAttachment" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateTransitGatewayVpcAttachmentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "transitGatewayVpcAttachment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TransitGatewayVpcAttachment)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses