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

Description

Attaches a network interface to an instance.

Synopsis

Creating a Request

data AttachNetworkInterface Source #

Contains the parameters for AttachNetworkInterface.

See: newAttachNetworkInterface smart constructor.

Constructors

AttachNetworkInterface' 

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.

  • enaSrdSpecification :: Maybe EnaSrdSpecification

    Configures ENA Express for the network interface that this action attaches to the instance.

  • networkCardIndex :: Maybe Int

    The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

  • deviceIndex :: Int

    The index of the device for the network interface attachment.

  • instanceId :: Text

    The ID of the instance.

  • networkInterfaceId :: Text

    The ID of the network interface.

Instances

Instances details
ToHeaders AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

ToPath AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

ToQuery AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

AWSRequest AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Associated Types

type AWSResponse AttachNetworkInterface #

Generic AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Associated Types

type Rep AttachNetworkInterface :: Type -> Type #

Read AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Show AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

NFData AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Methods

rnf :: AttachNetworkInterface -> () #

Eq AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Hashable AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

type AWSResponse AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

type Rep AttachNetworkInterface Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

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

newAttachNetworkInterface Source #

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

AttachNetworkInterface, attachNetworkInterface_enaSrdSpecification - Configures ENA Express for the network interface that this action attaches to the instance.

AttachNetworkInterface, attachNetworkInterface_networkCardIndex - The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

AttachNetworkInterface, attachNetworkInterface_deviceIndex - The index of the device for the network interface attachment.

AttachNetworkInterface, attachNetworkInterface_instanceId - The ID of the instance.

AttachNetworkInterface, attachNetworkInterface_networkInterfaceId - The ID of the network interface.

Request Lenses

attachNetworkInterface_dryRun :: Lens' AttachNetworkInterface (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.

attachNetworkInterface_enaSrdSpecification :: Lens' AttachNetworkInterface (Maybe EnaSrdSpecification) Source #

Configures ENA Express for the network interface that this action attaches to the instance.

attachNetworkInterface_networkCardIndex :: Lens' AttachNetworkInterface (Maybe Int) Source #

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

attachNetworkInterface_deviceIndex :: Lens' AttachNetworkInterface Int Source #

The index of the device for the network interface attachment.

Destructuring the Response

data AttachNetworkInterfaceResponse Source #

Contains the output of AttachNetworkInterface.

See: newAttachNetworkInterfaceResponse smart constructor.

Constructors

AttachNetworkInterfaceResponse' 

Fields

Instances

Instances details
Generic AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Associated Types

type Rep AttachNetworkInterfaceResponse :: Type -> Type #

Read AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Show AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

NFData AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

Eq AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

type Rep AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachNetworkInterface

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

newAttachNetworkInterfaceResponse Source #

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

AttachNetworkInterfaceResponse, attachNetworkInterfaceResponse_attachmentId - The ID of the network interface attachment.

AttachNetworkInterface, attachNetworkInterfaceResponse_networkCardIndex - The index of the network card.

$sel:httpStatus:AttachNetworkInterfaceResponse', attachNetworkInterfaceResponse_httpStatus - The response's http status code.

Response Lenses