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

Description

Creates a static route for the specified local gateway route table. You must specify one of the following targets:

  • LocalGatewayVirtualInterfaceGroupId
  • NetworkInterfaceId
Synopsis

Creating a Request

data CreateLocalGatewayRoute Source #

See: newCreateLocalGatewayRoute smart constructor.

Constructors

CreateLocalGatewayRoute' 

Fields

Instances

Instances details
ToHeaders CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

ToPath CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

ToQuery CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

AWSRequest CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Generic CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Associated Types

type Rep CreateLocalGatewayRoute :: Type -> Type #

Read CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Show CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

NFData CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Methods

rnf :: CreateLocalGatewayRoute -> () #

Eq CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Hashable CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

type AWSResponse CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

type Rep CreateLocalGatewayRoute Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

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

newCreateLocalGatewayRoute Source #

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

CreateLocalGatewayRoute, createLocalGatewayRoute_localGatewayVirtualInterfaceGroupId - The ID of the virtual interface group.

CreateLocalGatewayRoute, createLocalGatewayRoute_networkInterfaceId - The ID of the network interface.

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

CreateLocalGatewayRoute, createLocalGatewayRoute_localGatewayRouteTableId - The ID of the local gateway route table.

Request Lenses

createLocalGatewayRoute_dryRun :: Lens' CreateLocalGatewayRoute (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.

createLocalGatewayRoute_destinationCidrBlock :: Lens' CreateLocalGatewayRoute Text Source #

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

Destructuring the Response

data CreateLocalGatewayRouteResponse Source #

See: newCreateLocalGatewayRouteResponse smart constructor.

Constructors

CreateLocalGatewayRouteResponse' 

Fields

Instances

Instances details
Generic CreateLocalGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Associated Types

type Rep CreateLocalGatewayRouteResponse :: Type -> Type #

Read CreateLocalGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Show CreateLocalGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

NFData CreateLocalGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

Eq CreateLocalGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

type Rep CreateLocalGatewayRouteResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateLocalGatewayRoute

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

newCreateLocalGatewayRouteResponse Source #

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

$sel:httpStatus:CreateLocalGatewayRouteResponse', createLocalGatewayRouteResponse_httpStatus - The response's http status code.

Response Lenses