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

Description

Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance.

Synopsis

Creating a Request

data ModifyNetworkInterfaceAttribute Source #

Contains the parameters for ModifyNetworkInterfaceAttribute.

See: newModifyNetworkInterfaceAttribute smart constructor.

Constructors

ModifyNetworkInterfaceAttribute' 

Fields

  • attachment :: Maybe NetworkInterfaceAttachmentChanges

    Information about the interface attachment. If modifying the delete on termination attribute, you must specify the ID of the interface attachment.

  • description :: Maybe AttributeValue

    A description for the network interface.

  • 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

    Updates the ENA Express configuration for the network interface that’s attached to the instance.

  • groups :: Maybe [Text]

    Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

  • sourceDestCheck :: Maybe AttributeBooleanValue

    Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. If the value is true, source/destination checks are enabled; otherwise, they are disabled. The default value is true. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.

  • networkInterfaceId :: Text

    The ID of the network interface.

Instances

Instances details
ToHeaders ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

ToPath ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

ToQuery ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

AWSRequest ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Generic ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Associated Types

type Rep ModifyNetworkInterfaceAttribute :: Type -> Type #

Read ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Show ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

NFData ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Eq ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Hashable ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

type AWSResponse ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

type Rep ModifyNetworkInterfaceAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

newModifyNetworkInterfaceAttribute Source #

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

ModifyNetworkInterfaceAttribute, modifyNetworkInterfaceAttribute_attachment - Information about the interface attachment. If modifying the delete on termination attribute, you must specify the ID of the interface attachment.

ModifyNetworkInterfaceAttribute, modifyNetworkInterfaceAttribute_description - A description for the network interface.

$sel:dryRun:ModifyNetworkInterfaceAttribute', modifyNetworkInterfaceAttribute_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.

ModifyNetworkInterfaceAttribute, modifyNetworkInterfaceAttribute_enaSrdSpecification - Updates the ENA Express configuration for the network interface that’s attached to the instance.

ModifyNetworkInterfaceAttribute, modifyNetworkInterfaceAttribute_groups - Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

ModifyNetworkInterfaceAttribute, modifyNetworkInterfaceAttribute_sourceDestCheck - Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. If the value is true, source/destination checks are enabled; otherwise, they are disabled. The default value is true. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.

ModifyNetworkInterfaceAttribute, modifyNetworkInterfaceAttribute_networkInterfaceId - The ID of the network interface.

Request Lenses

modifyNetworkInterfaceAttribute_attachment :: Lens' ModifyNetworkInterfaceAttribute (Maybe NetworkInterfaceAttachmentChanges) Source #

Information about the interface attachment. If modifying the delete on termination attribute, you must specify the ID of the interface attachment.

modifyNetworkInterfaceAttribute_dryRun :: Lens' ModifyNetworkInterfaceAttribute (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.

modifyNetworkInterfaceAttribute_enaSrdSpecification :: Lens' ModifyNetworkInterfaceAttribute (Maybe EnaSrdSpecification) Source #

Updates the ENA Express configuration for the network interface that’s attached to the instance.

modifyNetworkInterfaceAttribute_groups :: Lens' ModifyNetworkInterfaceAttribute (Maybe [Text]) Source #

Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

modifyNetworkInterfaceAttribute_sourceDestCheck :: Lens' ModifyNetworkInterfaceAttribute (Maybe AttributeBooleanValue) Source #

Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. If the value is true, source/destination checks are enabled; otherwise, they are disabled. The default value is true. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.

Destructuring the Response

data ModifyNetworkInterfaceAttributeResponse Source #

Instances

Instances details
Generic ModifyNetworkInterfaceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Read ModifyNetworkInterfaceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Show ModifyNetworkInterfaceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

NFData ModifyNetworkInterfaceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

Eq ModifyNetworkInterfaceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

type Rep ModifyNetworkInterfaceAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute

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

newModifyNetworkInterfaceAttributeResponse :: ModifyNetworkInterfaceAttributeResponse Source #

Create a value of ModifyNetworkInterfaceAttributeResponse with all optional fields omitted.

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