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

Description

Creates a transit gateway.

You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the available state, you can attach your VPCs and VPN connections to the transit gateway.

To attach your VPCs, use CreateTransitGatewayVpcAttachment.

To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.

When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.

Synopsis

Creating a Request

data CreateTransitGateway Source #

See: newCreateTransitGateway smart constructor.

Constructors

CreateTransitGateway' 

Fields

Instances

Instances details
ToHeaders CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

ToPath CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

ToQuery CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

AWSRequest CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Associated Types

type AWSResponse CreateTransitGateway #

Generic CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Associated Types

type Rep CreateTransitGateway :: Type -> Type #

Read CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Show CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

NFData CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Methods

rnf :: CreateTransitGateway -> () #

Eq CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Hashable CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

type AWSResponse CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

type Rep CreateTransitGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

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

newCreateTransitGateway :: CreateTransitGateway Source #

Create a value of CreateTransitGateway 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:

CreateTransitGateway, createTransitGateway_description - A description of the transit gateway.

$sel:dryRun:CreateTransitGateway', createTransitGateway_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.

CreateTransitGateway, createTransitGateway_options - The transit gateway options.

CreateTransitGateway, createTransitGateway_tagSpecifications - The tags to apply to the transit gateway.

Request Lenses

createTransitGateway_dryRun :: Lens' CreateTransitGateway (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.

Destructuring the Response

data CreateTransitGatewayResponse Source #

See: newCreateTransitGatewayResponse smart constructor.

Constructors

CreateTransitGatewayResponse' 

Fields

Instances

Instances details
Generic CreateTransitGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Associated Types

type Rep CreateTransitGatewayResponse :: Type -> Type #

Read CreateTransitGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Show CreateTransitGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

NFData CreateTransitGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

Eq CreateTransitGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

type Rep CreateTransitGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGateway

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

newCreateTransitGatewayResponse Source #

Create a value of CreateTransitGatewayResponse 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:

CreateTransitGatewayResponse, createTransitGatewayResponse_transitGateway - Information about the transit gateway.

$sel:httpStatus:CreateTransitGatewayResponse', createTransitGatewayResponse_httpStatus - The response's http status code.

Response Lenses