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

Description

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

Synopsis

Creating a Request

data ReplaceRouteTableAssociation Source #

See: newReplaceRouteTableAssociation smart constructor.

Constructors

ReplaceRouteTableAssociation' 

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.

  • associationId :: Text

    The association ID.

  • routeTableId :: Text

    The ID of the new route table to associate with the subnet.

Instances

Instances details
ToHeaders ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

ToPath ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

ToQuery ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

AWSRequest ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Generic ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Associated Types

type Rep ReplaceRouteTableAssociation :: Type -> Type #

Read ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Show ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

NFData ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Eq ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Hashable ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

type AWSResponse ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

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

newReplaceRouteTableAssociation Source #

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

ReplaceRouteTableAssociation, replaceRouteTableAssociation_associationId - The association ID.

ReplaceRouteTableAssociation, replaceRouteTableAssociation_routeTableId - The ID of the new route table to associate with the subnet.

Request Lenses

replaceRouteTableAssociation_dryRun :: Lens' ReplaceRouteTableAssociation (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.

replaceRouteTableAssociation_routeTableId :: Lens' ReplaceRouteTableAssociation Text Source #

The ID of the new route table to associate with the subnet.

Destructuring the Response

data ReplaceRouteTableAssociationResponse Source #

Constructors

ReplaceRouteTableAssociationResponse' 

Fields

Instances

Instances details
Generic ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Read ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Show ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

NFData ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

Eq ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociationResponse = D1 ('MetaData "ReplaceRouteTableAssociationResponse" "Amazonka.EC2.ReplaceRouteTableAssociation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReplaceRouteTableAssociationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "associationState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RouteTableAssociationState)) :*: (S1 ('MetaSel ('Just "newAssociationId'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

Response Lenses