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

Description

Detaches a network interface from an instance.

Synopsis

Creating a Request

data DetachNetworkInterface Source #

Contains the parameters for DetachNetworkInterface.

See: newDetachNetworkInterface smart constructor.

Constructors

DetachNetworkInterface' 

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.

  • force :: Maybe Bool

    Specifies whether to force a detachment.

    • Use the Force parameter only as a last resort to detach a network interface from a failed instance.
    • If you use the Force parameter to detach a network interface, you might not be able to attach a different network interface to the same index on the instance without first stopping and starting the instance.
    • If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
  • attachmentId :: Text

    The ID of the attachment.

Instances

Instances details
ToHeaders DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

ToPath DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

ToQuery DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

AWSRequest DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Associated Types

type AWSResponse DetachNetworkInterface #

Generic DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Associated Types

type Rep DetachNetworkInterface :: Type -> Type #

Read DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Show DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

NFData DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Methods

rnf :: DetachNetworkInterface -> () #

Eq DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Hashable DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

type AWSResponse DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

type Rep DetachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

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

newDetachNetworkInterface Source #

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

$sel:force:DetachNetworkInterface', detachNetworkInterface_force - Specifies whether to force a detachment.

  • Use the Force parameter only as a last resort to detach a network interface from a failed instance.
  • If you use the Force parameter to detach a network interface, you might not be able to attach a different network interface to the same index on the instance without first stopping and starting the instance.
  • If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.

DetachNetworkInterface, detachNetworkInterface_attachmentId - The ID of the attachment.

Request Lenses

detachNetworkInterface_dryRun :: Lens' DetachNetworkInterface (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.

detachNetworkInterface_force :: Lens' DetachNetworkInterface (Maybe Bool) Source #

Specifies whether to force a detachment.

  • Use the Force parameter only as a last resort to detach a network interface from a failed instance.
  • If you use the Force parameter to detach a network interface, you might not be able to attach a different network interface to the same index on the instance without first stopping and starting the instance.
  • If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.

Destructuring the Response

data DetachNetworkInterfaceResponse Source #

See: newDetachNetworkInterfaceResponse smart constructor.

Instances

Instances details
Generic DetachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Associated Types

type Rep DetachNetworkInterfaceResponse :: Type -> Type #

Read DetachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Show DetachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

NFData DetachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

Eq DetachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

type Rep DetachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachNetworkInterface

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

newDetachNetworkInterfaceResponse :: DetachNetworkInterfaceResponse Source #

Create a value of DetachNetworkInterfaceResponse with all optional fields omitted.

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