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.CreateTransitGatewayPeeringAttachment

Description

Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The peer transit gateway can be in your account or a different Amazon Web Services account.

After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.

Synopsis

Creating a Request

data CreateTransitGatewayPeeringAttachment Source #

Constructors

CreateTransitGatewayPeeringAttachment' 

Fields

Instances

Instances details
ToHeaders CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

ToPath CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

ToQuery CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

AWSRequest CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Generic CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Read CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Show CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

NFData CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Eq CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Hashable CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

type AWSResponse CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

type Rep CreateTransitGatewayPeeringAttachment Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

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

newCreateTransitGatewayPeeringAttachment Source #

Create a value of CreateTransitGatewayPeeringAttachment 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:CreateTransitGatewayPeeringAttachment', createTransitGatewayPeeringAttachment_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.

CreateTransitGatewayPeeringAttachment, createTransitGatewayPeeringAttachment_options - Requests a transit gateway peering attachment.

CreateTransitGatewayPeeringAttachment, createTransitGatewayPeeringAttachment_tagSpecifications - The tags to apply to the transit gateway peering attachment.

CreateTransitGatewayPeeringAttachment, createTransitGatewayPeeringAttachment_transitGatewayId - The ID of the transit gateway.

CreateTransitGatewayPeeringAttachment, createTransitGatewayPeeringAttachment_peerTransitGatewayId - The ID of the peer transit gateway with which to create the peering attachment.

$sel:peerAccountId:CreateTransitGatewayPeeringAttachment', createTransitGatewayPeeringAttachment_peerAccountId - The ID of the Amazon Web Services account that owns the peer transit gateway.

$sel:peerRegion:CreateTransitGatewayPeeringAttachment', createTransitGatewayPeeringAttachment_peerRegion - The Region where the peer transit gateway is located.

Request Lenses

createTransitGatewayPeeringAttachment_dryRun :: Lens' CreateTransitGatewayPeeringAttachment (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.

createTransitGatewayPeeringAttachment_peerTransitGatewayId :: Lens' CreateTransitGatewayPeeringAttachment Text Source #

The ID of the peer transit gateway with which to create the peering attachment.

createTransitGatewayPeeringAttachment_peerAccountId :: Lens' CreateTransitGatewayPeeringAttachment Text Source #

The ID of the Amazon Web Services account that owns the peer transit gateway.

Destructuring the Response

data CreateTransitGatewayPeeringAttachmentResponse Source #

Constructors

CreateTransitGatewayPeeringAttachmentResponse' 

Fields

Instances

Instances details
Generic CreateTransitGatewayPeeringAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Read CreateTransitGatewayPeeringAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Show CreateTransitGatewayPeeringAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

NFData CreateTransitGatewayPeeringAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

Eq CreateTransitGatewayPeeringAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

type Rep CreateTransitGatewayPeeringAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayPeeringAttachment

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

Response Lenses