Struct aws_sdk_opsworks::model::Instance
source · [−]#[non_exhaustive]pub struct Instance {Show 41 fields
pub agent_version: Option<String>,
pub ami_id: Option<String>,
pub architecture: Option<Architecture>,
pub arn: Option<String>,
pub auto_scaling_type: Option<AutoScalingType>,
pub availability_zone: Option<String>,
pub block_device_mappings: Option<Vec<BlockDeviceMapping>>,
pub created_at: Option<String>,
pub ebs_optimized: Option<bool>,
pub ec2_instance_id: Option<String>,
pub ecs_cluster_arn: Option<String>,
pub ecs_container_instance_arn: Option<String>,
pub elastic_ip: Option<String>,
pub hostname: Option<String>,
pub infrastructure_class: Option<String>,
pub install_updates_on_boot: Option<bool>,
pub instance_id: Option<String>,
pub instance_profile_arn: Option<String>,
pub instance_type: Option<String>,
pub last_service_error_id: Option<String>,
pub layer_ids: Option<Vec<String>>,
pub os: Option<String>,
pub platform: Option<String>,
pub private_dns: Option<String>,
pub private_ip: Option<String>,
pub public_dns: Option<String>,
pub public_ip: Option<String>,
pub registered_by: Option<String>,
pub reported_agent_version: Option<String>,
pub reported_os: Option<ReportedOs>,
pub root_device_type: Option<RootDeviceType>,
pub root_device_volume_id: Option<String>,
pub security_group_ids: Option<Vec<String>>,
pub ssh_host_dsa_key_fingerprint: Option<String>,
pub ssh_host_rsa_key_fingerprint: Option<String>,
pub ssh_key_name: Option<String>,
pub stack_id: Option<String>,
pub status: Option<String>,
pub subnet_id: Option<String>,
pub tenancy: Option<String>,
pub virtualization_type: Option<VirtualizationType>,
}
Expand description
Describes an instance.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.agent_version: Option<String>
The agent version. This parameter is set to INHERIT
if the instance inherits the default stack setting or to a a version number for a fixed agent version.
ami_id: Option<String>
A custom AMI ID to be used to create the instance. For more information, see Instances
architecture: Option<Architecture>
The instance architecture: "i386" or "x86_64".
arn: Option<String>
The instance's Amazon Resource Number (ARN).
auto_scaling_type: Option<AutoScalingType>
For load-based or time-based instances, the type.
availability_zone: Option<String>
The instance Availability Zone. For more information, see Regions and Endpoints.
block_device_mappings: Option<Vec<BlockDeviceMapping>>
An array of BlockDeviceMapping
objects that specify the instance's block device mappings.
created_at: Option<String>
The time that the instance was created.
ebs_optimized: Option<bool>
Whether this is an Amazon EBS-optimized instance.
ec2_instance_id: Option<String>
The ID of the associated Amazon EC2 instance.
ecs_cluster_arn: Option<String>
For container instances, the Amazon ECS cluster's ARN.
ecs_container_instance_arn: Option<String>
For container instances, the instance's ARN.
elastic_ip: Option<String>
The instance Elastic IP address .
hostname: Option<String>
The instance host name.
infrastructure_class: Option<String>
For registered instances, the infrastructure class: ec2
or on-premises
.
install_updates_on_boot: Option<bool>
Whether to install operating system and package updates when the instance boots. The default value is true
. If this value is set to false
, you must then update your instances manually by using CreateDeployment
to run the update_dependencies
stack command or by manually running yum
(Amazon Linux) or apt-get
(Ubuntu) on the instances.
We strongly recommend using the default value of true
, to ensure that your instances have the latest security updates.
instance_id: Option<String>
The instance ID.
instance_profile_arn: Option<String>
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
instance_type: Option<String>
The instance type, such as t2.micro
.
last_service_error_id: Option<String>
The ID of the last service error. For more information, call DescribeServiceErrors
.
layer_ids: Option<Vec<String>>
An array containing the instance layer IDs.
os: Option<String>
The instance's operating system.
platform: Option<String>
The instance's platform.
private_dns: Option<String>
The instance's private DNS name.
private_ip: Option<String>
The instance's private IP address.
public_dns: Option<String>
The instance public DNS name.
public_ip: Option<String>
The instance public IP address.
registered_by: Option<String>
For registered instances, who performed the registration.
reported_agent_version: Option<String>
The instance's reported AWS OpsWorks Stacks agent version.
reported_os: Option<ReportedOs>
For registered instances, the reported operating system.
root_device_type: Option<RootDeviceType>
The instance's root device type. For more information, see Storage for the Root Device.
root_device_volume_id: Option<String>
The root device volume ID.
security_group_ids: Option<Vec<String>>
An array containing the instance security group IDs.
ssh_host_dsa_key_fingerprint: Option<String>
The SSH key's Deep Security Agent (DSA) fingerprint.
ssh_host_rsa_key_fingerprint: Option<String>
The SSH key's RSA fingerprint.
ssh_key_name: Option<String>
The instance's Amazon EC2 key-pair name.
stack_id: Option<String>
The stack ID.
status: Option<String>
The instance status:
-
booting
-
connection_lost
-
online
-
pending
-
rebooting
-
requested
-
running_setup
-
setup_failed
-
shutting_down
-
start_failed
-
stop_failed
-
stopped
-
stopping
-
terminated
-
terminating
subnet_id: Option<String>
The instance's subnet ID; applicable only if the stack is running in a VPC.
tenancy: Option<String>
The instance's tenancy option, such as dedicated
or host
.
virtualization_type: Option<VirtualizationType>
The instance's virtualization type: paravirtual
or hvm
.
Implementations
sourceimpl Instance
impl Instance
sourcepub fn agent_version(&self) -> Option<&str>
pub fn agent_version(&self) -> Option<&str>
The agent version. This parameter is set to INHERIT
if the instance inherits the default stack setting or to a a version number for a fixed agent version.
sourcepub fn ami_id(&self) -> Option<&str>
pub fn ami_id(&self) -> Option<&str>
A custom AMI ID to be used to create the instance. For more information, see Instances
sourcepub fn architecture(&self) -> Option<&Architecture>
pub fn architecture(&self) -> Option<&Architecture>
The instance architecture: "i386" or "x86_64".
sourcepub fn auto_scaling_type(&self) -> Option<&AutoScalingType>
pub fn auto_scaling_type(&self) -> Option<&AutoScalingType>
For load-based or time-based instances, the type.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The instance Availability Zone. For more information, see Regions and Endpoints.
sourcepub fn block_device_mappings(&self) -> Option<&[BlockDeviceMapping]>
pub fn block_device_mappings(&self) -> Option<&[BlockDeviceMapping]>
An array of BlockDeviceMapping
objects that specify the instance's block device mappings.
sourcepub fn created_at(&self) -> Option<&str>
pub fn created_at(&self) -> Option<&str>
The time that the instance was created.
sourcepub fn ebs_optimized(&self) -> Option<bool>
pub fn ebs_optimized(&self) -> Option<bool>
Whether this is an Amazon EBS-optimized instance.
sourcepub fn ec2_instance_id(&self) -> Option<&str>
pub fn ec2_instance_id(&self) -> Option<&str>
The ID of the associated Amazon EC2 instance.
sourcepub fn ecs_cluster_arn(&self) -> Option<&str>
pub fn ecs_cluster_arn(&self) -> Option<&str>
For container instances, the Amazon ECS cluster's ARN.
sourcepub fn ecs_container_instance_arn(&self) -> Option<&str>
pub fn ecs_container_instance_arn(&self) -> Option<&str>
For container instances, the instance's ARN.
sourcepub fn elastic_ip(&self) -> Option<&str>
pub fn elastic_ip(&self) -> Option<&str>
The instance Elastic IP address .
sourcepub fn infrastructure_class(&self) -> Option<&str>
pub fn infrastructure_class(&self) -> Option<&str>
For registered instances, the infrastructure class: ec2
or on-premises
.
sourcepub fn install_updates_on_boot(&self) -> Option<bool>
pub fn install_updates_on_boot(&self) -> Option<bool>
Whether to install operating system and package updates when the instance boots. The default value is true
. If this value is set to false
, you must then update your instances manually by using CreateDeployment
to run the update_dependencies
stack command or by manually running yum
(Amazon Linux) or apt-get
(Ubuntu) on the instances.
We strongly recommend using the default value of true
, to ensure that your instances have the latest security updates.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The instance ID.
sourcepub fn instance_profile_arn(&self) -> Option<&str>
pub fn instance_profile_arn(&self) -> Option<&str>
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type, such as t2.micro
.
sourcepub fn last_service_error_id(&self) -> Option<&str>
pub fn last_service_error_id(&self) -> Option<&str>
The ID of the last service error. For more information, call DescribeServiceErrors
.
sourcepub fn private_dns(&self) -> Option<&str>
pub fn private_dns(&self) -> Option<&str>
The instance's private DNS name.
sourcepub fn private_ip(&self) -> Option<&str>
pub fn private_ip(&self) -> Option<&str>
The instance's private IP address.
sourcepub fn public_dns(&self) -> Option<&str>
pub fn public_dns(&self) -> Option<&str>
The instance public DNS name.
sourcepub fn registered_by(&self) -> Option<&str>
pub fn registered_by(&self) -> Option<&str>
For registered instances, who performed the registration.
sourcepub fn reported_agent_version(&self) -> Option<&str>
pub fn reported_agent_version(&self) -> Option<&str>
The instance's reported AWS OpsWorks Stacks agent version.
sourcepub fn reported_os(&self) -> Option<&ReportedOs>
pub fn reported_os(&self) -> Option<&ReportedOs>
For registered instances, the reported operating system.
sourcepub fn root_device_type(&self) -> Option<&RootDeviceType>
pub fn root_device_type(&self) -> Option<&RootDeviceType>
The instance's root device type. For more information, see Storage for the Root Device.
sourcepub fn root_device_volume_id(&self) -> Option<&str>
pub fn root_device_volume_id(&self) -> Option<&str>
The root device volume ID.
sourcepub fn security_group_ids(&self) -> Option<&[String]>
pub fn security_group_ids(&self) -> Option<&[String]>
An array containing the instance security group IDs.
sourcepub fn ssh_host_dsa_key_fingerprint(&self) -> Option<&str>
pub fn ssh_host_dsa_key_fingerprint(&self) -> Option<&str>
The SSH key's Deep Security Agent (DSA) fingerprint.
sourcepub fn ssh_host_rsa_key_fingerprint(&self) -> Option<&str>
pub fn ssh_host_rsa_key_fingerprint(&self) -> Option<&str>
The SSH key's RSA fingerprint.
sourcepub fn ssh_key_name(&self) -> Option<&str>
pub fn ssh_key_name(&self) -> Option<&str>
The instance's Amazon EC2 key-pair name.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The instance status:
-
booting
-
connection_lost
-
online
-
pending
-
rebooting
-
requested
-
running_setup
-
setup_failed
-
shutting_down
-
start_failed
-
stop_failed
-
stopped
-
stopping
-
terminated
-
terminating
sourcepub fn subnet_id(&self) -> Option<&str>
pub fn subnet_id(&self) -> Option<&str>
The instance's subnet ID; applicable only if the stack is running in a VPC.
sourcepub fn tenancy(&self) -> Option<&str>
pub fn tenancy(&self) -> Option<&str>
The instance's tenancy option, such as dedicated
or host
.
sourcepub fn virtualization_type(&self) -> Option<&VirtualizationType>
pub fn virtualization_type(&self) -> Option<&VirtualizationType>
The instance's virtualization type: paravirtual
or hvm
.
Trait Implementations
impl StructuralPartialEq for Instance
Auto Trait Implementations
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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