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

Description

Deletes the specified network interface. You must detach the network interface before you can delete it.

Synopsis

Creating a Request

data DeleteNetworkInterface Source #

Contains the parameters for DeleteNetworkInterface.

See: newDeleteNetworkInterface smart constructor.

Constructors

DeleteNetworkInterface' 

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.

  • networkInterfaceId :: Text

    The ID of the network interface.

Instances

Instances details
ToHeaders DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

ToPath DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

ToQuery DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

AWSRequest DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Associated Types

type AWSResponse DeleteNetworkInterface #

Generic DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Associated Types

type Rep DeleteNetworkInterface :: Type -> Type #

Read DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Show DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

NFData DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Methods

rnf :: DeleteNetworkInterface -> () #

Eq DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Hashable DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

type AWSResponse DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

type Rep DeleteNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

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

newDeleteNetworkInterface Source #

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

DeleteNetworkInterface, deleteNetworkInterface_networkInterfaceId - The ID of the network interface.

Request Lenses

deleteNetworkInterface_dryRun :: Lens' DeleteNetworkInterface (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 DeleteNetworkInterfaceResponse Source #

See: newDeleteNetworkInterfaceResponse smart constructor.

Instances

Instances details
Generic DeleteNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Associated Types

type Rep DeleteNetworkInterfaceResponse :: Type -> Type #

Read DeleteNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Show DeleteNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

NFData DeleteNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

Eq DeleteNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

type Rep DeleteNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterface

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

newDeleteNetworkInterfaceResponse :: DeleteNetworkInterfaceResponse Source #

Create a value of DeleteNetworkInterfaceResponse with all optional fields omitted.

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