Class: Aws::EC2::Types::ModifyNetworkInterfaceAttributeRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifyNetworkInterfaceAttributeRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass ModifyNetworkInterfaceAttributeRequest data as a hash:
{
attachment: {
attachment_id: "String",
delete_on_termination: false,
},
description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
dry_run: false,
groups: ["String"],
network_interface_id: "String", # required
source_dest_check: {
value: false,
},
}
Contains the parameters for ModifyNetworkInterfaceAttribute.
Instance Attribute Summary collapse
-
#attachment ⇒ Types::NetworkInterfaceAttachmentChanges
Information about the interface attachment.
-
#description ⇒ Types::AttributeValue
A description for the network interface.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#groups ⇒ Array<String>
Changes the security groups for the network interface.
-
#network_interface_id ⇒ String
The ID of the network interface.
-
#source_dest_check ⇒ Types::AttributeBooleanValue
Indicates whether source/destination checking is enabled.
Instance Attribute Details
#attachment ⇒ Types::NetworkInterfaceAttachmentChanges
Information about the interface attachment. If modifying the ‘delete on termination’ attribute, you must specify the ID of the interface attachment.
26127 26128 26129 26130 26131 26132 26133 26134 26135 |
# File 'lib/aws-sdk-ec2/types.rb', line 26127 class ModifyNetworkInterfaceAttributeRequest < Struct.new( :attachment, :description, :dry_run, :groups, :network_interface_id, :source_dest_check) include Aws::Structure end |
#description ⇒ Types::AttributeValue
A description for the network interface.
26127 26128 26129 26130 26131 26132 26133 26134 26135 |
# File 'lib/aws-sdk-ec2/types.rb', line 26127 class ModifyNetworkInterfaceAttributeRequest < Struct.new( :attachment, :description, :dry_run, :groups, :network_interface_id, :source_dest_check) include Aws::Structure end |
#dry_run ⇒ Boolean
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`.
26127 26128 26129 26130 26131 26132 26133 26134 26135 |
# File 'lib/aws-sdk-ec2/types.rb', line 26127 class ModifyNetworkInterfaceAttributeRequest < Struct.new( :attachment, :description, :dry_run, :groups, :network_interface_id, :source_dest_check) include Aws::Structure end |
#groups ⇒ Array<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.
26127 26128 26129 26130 26131 26132 26133 26134 26135 |
# File 'lib/aws-sdk-ec2/types.rb', line 26127 class ModifyNetworkInterfaceAttributeRequest < Struct.new( :attachment, :description, :dry_run, :groups, :network_interface_id, :source_dest_check) include Aws::Structure end |
#network_interface_id ⇒ String
The ID of the network interface.
26127 26128 26129 26130 26131 26132 26133 26134 26135 |
# File 'lib/aws-sdk-ec2/types.rb', line 26127 class ModifyNetworkInterfaceAttributeRequest < Struct.new( :attachment, :description, :dry_run, :groups, :network_interface_id, :source_dest_check) include Aws::Structure end |
#source_dest_check ⇒ Types::AttributeBooleanValue
Indicates whether source/destination checking is enabled. A value of ‘true` means checking is enabled, and `false` means checking is disabled. This value must be `false` for a NAT instance to perform NAT. For more information, see [NAT Instances] in the *Amazon Virtual Private Cloud User Guide*.
[1]: docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html
26127 26128 26129 26130 26131 26132 26133 26134 26135 |
# File 'lib/aws-sdk-ec2/types.rb', line 26127 class ModifyNetworkInterfaceAttributeRequest < Struct.new( :attachment, :description, :dry_run, :groups, :network_interface_id, :source_dest_check) include Aws::Structure end |