pub struct InstanceAttribute {
pub block_device_mappings: Option<Vec<InstanceBlockDeviceMapping>>,
pub disable_api_termination: Option<AttributeBooleanValue>,
pub ebs_optimized: Option<AttributeBooleanValue>,
pub ena_support: Option<AttributeBooleanValue>,
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>,
}
Describes an instance attribute.
The block device mapping of the instance.
If the value is true
, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.
Indicates whether the instance is optimized for Amazon EBS I/O.
Indicates whether enhanced networking with ENA is enabled.
The security groups associated with the instance.
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
The device name of the root device volume (for example, /dev/sda1
).
Indicates whether source/destination checking is enabled. A value of true
means that checking is enabled, and false
means that checking is disabled. This value must be false
for a NAT instance to perform NAT.
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
Performs copy-assignment from source
. 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 !=
.
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static