Struct aws_sdk_ssm::types::InstanceInformation

source ·
#[non_exhaustive]
pub struct InstanceInformation {
Show 21 fields pub instance_id: Option<String>, pub ping_status: Option<PingStatus>, pub last_ping_date_time: Option<DateTime>, pub agent_version: Option<String>, pub is_latest_version: Option<bool>, pub platform_type: Option<PlatformType>, pub platform_name: Option<String>, pub platform_version: Option<String>, pub activation_id: Option<String>, pub iam_role: Option<String>, pub registration_date: Option<DateTime>, pub resource_type: Option<ResourceType>, pub name: Option<String>, pub ip_address: Option<String>, pub computer_name: Option<String>, pub association_status: Option<String>, pub last_association_execution_date: Option<DateTime>, pub last_successful_association_execution_date: Option<DateTime>, pub association_overview: Option<InstanceAggregatedAssociationOverview>, pub source_id: Option<String>, pub source_type: Option<SourceType>,
}
Expand description

Describes a filter for a specific list of managed nodes.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§instance_id: Option<String>

The managed node ID.

§ping_status: Option<PingStatus>

Connection status of SSM Agent.

The status Inactive has been deprecated and is no longer in use.

§last_ping_date_time: Option<DateTime>

The date and time when the agent last pinged the Systems Manager service.

§agent_version: Option<String>

The version of SSM Agent running on your Linux managed node.

§is_latest_version: Option<bool>

Indicates whether the latest version of SSM Agent is running on your Linux managed node. This field doesn't indicate whether or not the latest version is installed on Windows managed nodes, because some older versions of Windows Server use the EC2Config service to process Systems Manager requests.

§platform_type: Option<PlatformType>

The operating system platform type.

§platform_name: Option<String>

The name of the operating system platform running on your managed node.

§platform_version: Option<String>

The version of the OS platform running on your managed node.

§activation_id: Option<String>

The activation ID created by Amazon Web Services Systems Manager when the server or virtual machine (VM) was registered.

§iam_role: Option<String>

The Identity and Access Management (IAM) role assigned to the on-premises Systems Manager managed node. This call doesn't return the IAM role for Amazon Elastic Compute Cloud (Amazon EC2) instances. To retrieve the IAM role for an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

§registration_date: Option<DateTime>

The date the server or VM was registered with Amazon Web Services as a managed node.

§resource_type: Option<ResourceType>

The type of instance. Instances are either EC2 instances or managed instances.

§name: Option<String>

The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

§ip_address: Option<String>

The IP address of the managed node.

§computer_name: Option<String>

The fully qualified host name of the managed node.

§association_status: Option<String>

The status of the association.

§last_association_execution_date: Option<DateTime>

The date the association was last run.

§last_successful_association_execution_date: Option<DateTime>

The last date the association was successfully run.

§association_overview: Option<InstanceAggregatedAssociationOverview>

Information about the association.

§source_id: Option<String>

The ID of the source resource. For IoT Greengrass devices, SourceId is the Thing name.

§source_type: Option<SourceType>

The type of the source resource. For IoT Greengrass devices, SourceType is AWS::IoT::Thing.

Implementations§

source§

impl InstanceInformation

source

pub fn instance_id(&self) -> Option<&str>

The managed node ID.

source

pub fn ping_status(&self) -> Option<&PingStatus>

Connection status of SSM Agent.

The status Inactive has been deprecated and is no longer in use.

source

pub fn last_ping_date_time(&self) -> Option<&DateTime>

The date and time when the agent last pinged the Systems Manager service.

source

pub fn agent_version(&self) -> Option<&str>

The version of SSM Agent running on your Linux managed node.

source

pub fn is_latest_version(&self) -> Option<bool>

Indicates whether the latest version of SSM Agent is running on your Linux managed node. This field doesn't indicate whether or not the latest version is installed on Windows managed nodes, because some older versions of Windows Server use the EC2Config service to process Systems Manager requests.

source

pub fn platform_type(&self) -> Option<&PlatformType>

The operating system platform type.

source

pub fn platform_name(&self) -> Option<&str>

The name of the operating system platform running on your managed node.

source

pub fn platform_version(&self) -> Option<&str>

The version of the OS platform running on your managed node.

source

pub fn activation_id(&self) -> Option<&str>

The activation ID created by Amazon Web Services Systems Manager when the server or virtual machine (VM) was registered.

source

pub fn iam_role(&self) -> Option<&str>

The Identity and Access Management (IAM) role assigned to the on-premises Systems Manager managed node. This call doesn't return the IAM role for Amazon Elastic Compute Cloud (Amazon EC2) instances. To retrieve the IAM role for an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

source

pub fn registration_date(&self) -> Option<&DateTime>

The date the server or VM was registered with Amazon Web Services as a managed node.

source

pub fn resource_type(&self) -> Option<&ResourceType>

The type of instance. Instances are either EC2 instances or managed instances.

source

pub fn name(&self) -> Option<&str>

The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

source

pub fn ip_address(&self) -> Option<&str>

The IP address of the managed node.

source

pub fn computer_name(&self) -> Option<&str>

The fully qualified host name of the managed node.

source

pub fn association_status(&self) -> Option<&str>

The status of the association.

source

pub fn last_association_execution_date(&self) -> Option<&DateTime>

The date the association was last run.

source

pub fn last_successful_association_execution_date(&self) -> Option<&DateTime>

The last date the association was successfully run.

source

pub fn association_overview( &self, ) -> Option<&InstanceAggregatedAssociationOverview>

Information about the association.

source

pub fn source_id(&self) -> Option<&str>

The ID of the source resource. For IoT Greengrass devices, SourceId is the Thing name.

source

pub fn source_type(&self) -> Option<&SourceType>

The type of the source resource. For IoT Greengrass devices, SourceType is AWS::IoT::Thing.

source§

impl InstanceInformation

source

pub fn builder() -> InstanceInformationBuilder

Creates a new builder-style object to manufacture InstanceInformation.

Trait Implementations§

source§

impl Clone for InstanceInformation

source§

fn clone(&self) -> InstanceInformation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InstanceInformation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for InstanceInformation

source§

fn eq(&self, other: &InstanceInformation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for InstanceInformation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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