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

Description

Deletes the specified route from the specified route table.

Synopsis

Creating a Request

data DeleteRoute Source #

See: newDeleteRoute smart constructor.

Constructors

DeleteRoute' 

Fields

  • destinationCidrBlock :: Maybe Text

    The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

  • destinationIpv6CidrBlock :: Maybe Text

    The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

  • destinationPrefixListId :: Maybe Text

    The ID of the prefix list for the 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.

  • routeTableId :: Text

    The ID of the route table.

Instances

Instances details
ToHeaders DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

Methods

toHeaders :: DeleteRoute -> [Header] #

ToPath DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

ToQuery DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

AWSRequest DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

Associated Types

type AWSResponse DeleteRoute #

Generic DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

Associated Types

type Rep DeleteRoute :: Type -> Type #

Read DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

Show DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

NFData DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

Methods

rnf :: DeleteRoute -> () #

Eq DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

Hashable DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

type AWSResponse DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

type Rep DeleteRoute Source # 
Instance details

Defined in Amazonka.EC2.DeleteRoute

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

newDeleteRoute Source #

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

DeleteRoute, deleteRoute_destinationCidrBlock - The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

DeleteRoute, deleteRoute_destinationIpv6CidrBlock - The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

DeleteRoute, deleteRoute_destinationPrefixListId - The ID of the prefix list for the route.

$sel:dryRun:DeleteRoute', deleteRoute_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.

DeleteRoute, deleteRoute_routeTableId - The ID of the route table.

Request Lenses

deleteRoute_destinationCidrBlock :: Lens' DeleteRoute (Maybe Text) Source #

The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

deleteRoute_destinationIpv6CidrBlock :: Lens' DeleteRoute (Maybe Text) Source #

The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

deleteRoute_destinationPrefixListId :: Lens' DeleteRoute (Maybe Text) Source #

The ID of the prefix list for the route.

deleteRoute_dryRun :: Lens' DeleteRoute (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.

deleteRoute_routeTableId :: Lens' DeleteRoute Text Source #

The ID of the route table.

Destructuring the Response

data DeleteRouteResponse Source #

See: newDeleteRouteResponse smart constructor.

Constructors

DeleteRouteResponse' 

newDeleteRouteResponse :: DeleteRouteResponse Source #

Create a value of DeleteRouteResponse with all optional fields omitted.

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