logo
pub struct InstanceAttribute {
Show 16 fields pub block_device_mappings: Option<Vec<InstanceBlockDeviceMapping>>, pub disable_api_termination: Option<AttributeBooleanValue>, pub ebs_optimized: Option<AttributeBooleanValue>, pub ena_support: Option<AttributeBooleanValue>, pub enclave_options: Option<EnclaveOptions>, pub groups: Option<Vec<GroupIdentifier>>, pub instance_id: Option<String>, pub instance_initiated_shutdown_behavior: Option<AttributeValue>, pub instance_type: Option<AttributeValue>, pub kernel_id: Option<AttributeValue>, pub product_codes: Option<Vec<ProductCode>>, pub ramdisk_id: Option<AttributeValue>, pub root_device_name: Option<AttributeValue>, pub source_dest_check: Option<AttributeBooleanValue>, pub sriov_net_support: Option<AttributeValue>, pub user_data: Option<AttributeValue>,
}
Expand description

Describes an instance attribute.

Fields

block_device_mappings: Option<Vec<InstanceBlockDeviceMapping>>

The block device mapping of the instance.

disable_api_termination: Option<AttributeBooleanValue>

If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

ebs_optimized: Option<AttributeBooleanValue>

Indicates whether the instance is optimized for Amazon EBS I/O.

ena_support: Option<AttributeBooleanValue>

Indicates whether enhanced networking with ENA is enabled.

enclave_options: Option<EnclaveOptions>

To enable the instance for AWS Nitro Enclaves, set this parameter to true; otherwise, set it to false.

groups: Option<Vec<GroupIdentifier>>

The security groups associated with the instance.

instance_id: Option<String>

The ID of the instance.

instance_initiated_shutdown_behavior: Option<AttributeValue>

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

instance_type: Option<AttributeValue>

The instance type.

kernel_id: Option<AttributeValue>

The kernel ID.

product_codes: Option<Vec<ProductCode>>

A list of product codes.

ramdisk_id: Option<AttributeValue>

The RAM disk ID.

root_device_name: Option<AttributeValue>

The device name of the root device volume (for example, /dev/sda1).

source_dest_check: Option<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.

sriov_net_support: Option<AttributeValue>

Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

user_data: Option<AttributeValue>

The user data.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more