Struct rusoto_ec2::InstanceAttribute
source · [−]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
sourceimpl Clone for InstanceAttribute
impl Clone for InstanceAttribute
sourcefn clone(&self) -> InstanceAttribute
fn clone(&self) -> InstanceAttribute
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstanceAttribute
impl Debug for InstanceAttribute
sourceimpl Default for InstanceAttribute
impl Default for InstanceAttribute
sourcefn default() -> InstanceAttribute
fn default() -> InstanceAttribute
Returns the “default value” for a type. Read more
sourceimpl PartialEq<InstanceAttribute> for InstanceAttribute
impl PartialEq<InstanceAttribute> for InstanceAttribute
sourcefn eq(&self, other: &InstanceAttribute) -> bool
fn eq(&self, other: &InstanceAttribute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InstanceAttribute) -> bool
fn ne(&self, other: &InstanceAttribute) -> bool
This method tests for !=
.
impl StructuralPartialEq for InstanceAttribute
Auto Trait Implementations
impl RefUnwindSafe for InstanceAttribute
impl Send for InstanceAttribute
impl Sync for InstanceAttribute
impl Unpin for InstanceAttribute
impl UnwindSafe for InstanceAttribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more