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

Description

Disassociates a subnet or gateway from a route table.

After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data DisassociateRouteTable Source #

See: newDisassociateRouteTable smart constructor.

Constructors

DisassociateRouteTable' 

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 representing the current association between the route table and subnet or gateway.

Instances

Instances details
ToHeaders DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

ToPath DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

ToQuery DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

AWSRequest DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Associated Types

type AWSResponse DisassociateRouteTable #

Generic DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Associated Types

type Rep DisassociateRouteTable :: Type -> Type #

Read DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Show DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

NFData DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Methods

rnf :: DisassociateRouteTable -> () #

Eq DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Hashable DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

type AWSResponse DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

type Rep DisassociateRouteTable Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

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

newDisassociateRouteTable Source #

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

DisassociateRouteTable, disassociateRouteTable_associationId - The association ID representing the current association between the route table and subnet or gateway.

Request Lenses

disassociateRouteTable_dryRun :: Lens' DisassociateRouteTable (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.

disassociateRouteTable_associationId :: Lens' DisassociateRouteTable Text Source #

The association ID representing the current association between the route table and subnet or gateway.

Destructuring the Response

data DisassociateRouteTableResponse Source #

See: newDisassociateRouteTableResponse smart constructor.

Instances

Instances details
Generic DisassociateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Associated Types

type Rep DisassociateRouteTableResponse :: Type -> Type #

Read DisassociateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Show DisassociateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

NFData DisassociateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

Eq DisassociateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

type Rep DisassociateRouteTableResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateRouteTable

type Rep DisassociateRouteTableResponse = D1 ('MetaData "DisassociateRouteTableResponse" "Amazonka.EC2.DisassociateRouteTable" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisassociateRouteTableResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDisassociateRouteTableResponse :: DisassociateRouteTableResponse Source #

Create a value of DisassociateRouteTableResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.