#[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
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 role assigned to an Amazon EC2 instance configured with a Systems Manager Quick Setup host management configuration or the role assigned to an on-premises managed node.
This call doesn't return the IAM role for unmanaged Amazon EC2 instances (instances not configured for Systems Manager). To retrieve the role for an unmanaged 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 How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. 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
impl InstanceInformation
Sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The managed node ID.
Sourcepub fn ping_status(&self) -> Option<&PingStatus>
pub fn ping_status(&self) -> Option<&PingStatus>
Connection status of SSM Agent.
The status Inactive
has been deprecated and is no longer in use.
Sourcepub fn last_ping_date_time(&self) -> Option<&DateTime>
pub fn last_ping_date_time(&self) -> Option<&DateTime>
The date and time when the agent last pinged the Systems Manager service.
Sourcepub fn agent_version(&self) -> Option<&str>
pub fn agent_version(&self) -> Option<&str>
The version of SSM Agent running on your Linux managed node.
Sourcepub fn is_latest_version(&self) -> Option<bool>
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.
Sourcepub fn platform_type(&self) -> Option<&PlatformType>
pub fn platform_type(&self) -> Option<&PlatformType>
The operating system platform type.
Sourcepub fn platform_name(&self) -> Option<&str>
pub fn platform_name(&self) -> Option<&str>
The name of the operating system platform running on your managed node.
Sourcepub fn platform_version(&self) -> Option<&str>
pub fn platform_version(&self) -> Option<&str>
The version of the OS platform running on your managed node.
Sourcepub fn activation_id(&self) -> Option<&str>
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.
Sourcepub fn iam_role(&self) -> Option<&str>
pub fn iam_role(&self) -> Option<&str>
The role assigned to an Amazon EC2 instance configured with a Systems Manager Quick Setup host management configuration or the role assigned to an on-premises managed node.
This call doesn't return the IAM role for unmanaged Amazon EC2 instances (instances not configured for Systems Manager). To retrieve the role for an unmanaged 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.
Sourcepub fn registration_date(&self) -> Option<&DateTime>
pub fn registration_date(&self) -> Option<&DateTime>
The date the server or VM was registered with Amazon Web Services as a managed node.
Sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The type of instance. Instances are either EC2 instances or managed instances.
Sourcepub fn name(&self) -> Option<&str>
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 How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. 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.
Sourcepub fn ip_address(&self) -> Option<&str>
pub fn ip_address(&self) -> Option<&str>
The IP address of the managed node.
Sourcepub fn computer_name(&self) -> Option<&str>
pub fn computer_name(&self) -> Option<&str>
The fully qualified host name of the managed node.
Sourcepub fn association_status(&self) -> Option<&str>
pub fn association_status(&self) -> Option<&str>
The status of the association.
Sourcepub fn last_association_execution_date(&self) -> Option<&DateTime>
pub fn last_association_execution_date(&self) -> Option<&DateTime>
The date the association was last run.
Sourcepub fn last_successful_association_execution_date(&self) -> Option<&DateTime>
pub fn last_successful_association_execution_date(&self) -> Option<&DateTime>
The last date the association was successfully run.
Sourcepub fn association_overview(
&self,
) -> Option<&InstanceAggregatedAssociationOverview>
pub fn association_overview( &self, ) -> Option<&InstanceAggregatedAssociationOverview>
Information about the association.
Sourcepub fn source_id(&self) -> Option<&str>
pub fn source_id(&self) -> Option<&str>
The ID of the source resource. For IoT Greengrass devices, SourceId
is the Thing name.
Sourcepub fn source_type(&self) -> Option<&SourceType>
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
impl InstanceInformation
Sourcepub fn builder() -> InstanceInformationBuilder
pub fn builder() -> InstanceInformationBuilder
Creates a new builder-style object to manufacture InstanceInformation
.
Trait Implementations§
Source§impl Clone for InstanceInformation
impl Clone for InstanceInformation
Source§fn clone(&self) -> InstanceInformation
fn clone(&self) -> InstanceInformation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InstanceInformation
impl Debug for InstanceInformation
Source§impl PartialEq for InstanceInformation
impl PartialEq for InstanceInformation
impl StructuralPartialEq for InstanceInformation
Auto Trait Implementations§
impl Freeze for InstanceInformation
impl RefUnwindSafe for InstanceInformation
impl Send for InstanceInformation
impl Sync for InstanceInformation
impl Unpin for InstanceInformation
impl UnwindSafe for InstanceInformation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);