Class: Aws::EC2::Types::ModifyNetworkInterfaceAttributeRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass ModifyNetworkInterfaceAttributeRequest data as a hash:

{
  attachment: {
    attachment_id: "NetworkInterfaceAttachmentId",
    delete_on_termination: false,
  },
  description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
  dry_run: false,
  groups: ["SecurityGroupId"],
  network_interface_id: "NetworkInterfaceId", # required
  source_dest_check: {
    value: false,
  },
}

Contains the parameters for ModifyNetworkInterfaceAttribute.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#attachmentTypes::NetworkInterfaceAttachmentChanges

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



41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41257

class ModifyNetworkInterfaceAttributeRequest < Struct.new(
  :attachment,
  :description,
  :dry_run,
  :groups,
  :network_interface_id,
  :source_dest_check)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionTypes::AttributeValue

A description for the network interface.



41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41257

class ModifyNetworkInterfaceAttributeRequest < Struct.new(
  :attachment,
  :description,
  :dry_run,
  :groups,
  :network_interface_id,
  :source_dest_check)
  SENSITIVE = []
  include Aws::Structure
end

#dry_runBoolean

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.

Returns:

  • (Boolean)


41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41257

class ModifyNetworkInterfaceAttributeRequest < Struct.new(
  :attachment,
  :description,
  :dry_run,
  :groups,
  :network_interface_id,
  :source_dest_check)
  SENSITIVE = []
  include Aws::Structure
end

#groupsArray<String>

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.

Returns:

  • (Array<String>)


41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41257

class ModifyNetworkInterfaceAttributeRequest < Struct.new(
  :attachment,
  :description,
  :dry_run,
  :groups,
  :network_interface_id,
  :source_dest_check)
  SENSITIVE = []
  include Aws::Structure
end

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)


41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41257

class ModifyNetworkInterfaceAttributeRequest < Struct.new(
  :attachment,
  :description,
  :dry_run,
  :groups,
  :network_interface_id,
  :source_dest_check)
  SENSITIVE = []
  include Aws::Structure
end

#source_dest_checkTypes::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.



41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41257

class ModifyNetworkInterfaceAttributeRequest < Struct.new(
  :attachment,
  :description,
  :dry_run,
  :groups,
  :network_interface_id,
  :source_dest_check)
  SENSITIVE = []
  include Aws::Structure
end