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

Description

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data CreateRouteTable Source #

See: newCreateRouteTable smart constructor.

Constructors

CreateRouteTable' 

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.

  • tagSpecifications :: Maybe [TagSpecification]

    The tags to assign to the route table.

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

ToPath CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

ToQuery CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

AWSRequest CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Associated Types

type AWSResponse CreateRouteTable #

Generic CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Associated Types

type Rep CreateRouteTable :: Type -> Type #

Read CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Show CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

NFData CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Methods

rnf :: CreateRouteTable -> () #

Eq CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Hashable CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

type AWSResponse CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

type Rep CreateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

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

newCreateRouteTable Source #

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

CreateRouteTable, createRouteTable_tagSpecifications - The tags to assign to the route table.

CreateRouteTable, createRouteTable_vpcId - The ID of the VPC.

Request Lenses

createRouteTable_dryRun :: Lens' CreateRouteTable (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 CreateRouteTableResponse Source #

See: newCreateRouteTableResponse smart constructor.

Constructors

CreateRouteTableResponse' 

Fields

Instances

Instances details
Generic CreateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Associated Types

type Rep CreateRouteTableResponse :: Type -> Type #

Read CreateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Show CreateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

NFData CreateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

Eq CreateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

type Rep CreateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateRouteTable

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

newCreateRouteTableResponse Source #

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

CreateRouteTableResponse, createRouteTableResponse_routeTable - Information about the route table.

$sel:httpStatus:CreateRouteTableResponse', createRouteTableResponse_httpStatus - The response's http status code.

Response Lenses