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

Description

Creates a static route for the specified transit gateway route table.

Synopsis

Creating a Request

data CreateTransitGatewayRoute Source #

See: newCreateTransitGatewayRoute smart constructor.

Constructors

CreateTransitGatewayRoute' 

Fields

  • blackhole :: Maybe Bool

    Indicates whether to drop traffic that matches this route.

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

  • transitGatewayAttachmentId :: Maybe Text

    The ID of the attachment.

  • destinationCidrBlock :: Text

    The CIDR range used for destination matches. Routing decisions are based on the most specific match.

  • transitGatewayRouteTableId :: Text

    The ID of the transit gateway route table.

Instances

Instances details
ToHeaders CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

ToPath CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

ToQuery CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

AWSRequest CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Generic CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Associated Types

type Rep CreateTransitGatewayRoute :: Type -> Type #

Read CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Show CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

NFData CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Eq CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Hashable CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

type AWSResponse CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

type Rep CreateTransitGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

type Rep CreateTransitGatewayRoute = D1 ('MetaData "CreateTransitGatewayRoute" "Amazonka.EC2.CreateTransitGatewayRoute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateTransitGatewayRoute'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blackhole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "transitGatewayAttachmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "destinationCidrBlock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "transitGatewayRouteTableId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateTransitGatewayRoute Source #

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

CreateTransitGatewayRoute, createTransitGatewayRoute_blackhole - Indicates whether to drop traffic that matches this route.

$sel:dryRun:CreateTransitGatewayRoute', createTransitGatewayRoute_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.

CreateTransitGatewayRoute, createTransitGatewayRoute_transitGatewayAttachmentId - The ID of the attachment.

CreateTransitGatewayRoute, createTransitGatewayRoute_destinationCidrBlock - The CIDR range used for destination matches. Routing decisions are based on the most specific match.

CreateTransitGatewayRoute, createTransitGatewayRoute_transitGatewayRouteTableId - The ID of the transit gateway route table.

Request Lenses

createTransitGatewayRoute_blackhole :: Lens' CreateTransitGatewayRoute (Maybe Bool) Source #

Indicates whether to drop traffic that matches this route.

createTransitGatewayRoute_dryRun :: Lens' CreateTransitGatewayRoute (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.

createTransitGatewayRoute_destinationCidrBlock :: Lens' CreateTransitGatewayRoute Text Source #

The CIDR range used for destination matches. Routing decisions are based on the most specific match.

Destructuring the Response

data CreateTransitGatewayRouteResponse Source #

See: newCreateTransitGatewayRouteResponse smart constructor.

Constructors

CreateTransitGatewayRouteResponse' 

Fields

Instances

Instances details
Generic CreateTransitGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Associated Types

type Rep CreateTransitGatewayRouteResponse :: Type -> Type #

Read CreateTransitGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Show CreateTransitGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

NFData CreateTransitGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

Eq CreateTransitGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

type Rep CreateTransitGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTransitGatewayRoute

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

newCreateTransitGatewayRouteResponse Source #

Create a value of CreateTransitGatewayRouteResponse 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:route:CreateTransitGatewayRouteResponse', createTransitGatewayRouteResponse_route - Information about the route.

$sel:httpStatus:CreateTransitGatewayRouteResponse', createTransitGatewayRouteResponse_httpStatus - The response's http status code.

Response Lenses