#[non_exhaustive]pub struct InstanceProperty {Show 26 fields
pub name: Option<String>,
pub instance_id: Option<String>,
pub instance_type: Option<String>,
pub instance_role: Option<String>,
pub key_name: Option<String>,
pub instance_state: Option<String>,
pub architecture: Option<String>,
pub ip_address: Option<String>,
pub launch_time: Option<DateTime>,
pub ping_status: Option<PingStatus>,
pub last_ping_date_time: Option<DateTime>,
pub agent_version: Option<String>,
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<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
An object containing various properties of a managed node.
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.name: Option<String>
The value of the EC2 Name
tag associated with the node. If a Name
tag hasn't been applied to the node, this value is blank.
instance_id: Option<String>
The ID of the managed node.
instance_type: Option<String>
The instance type of the managed node. For example, t3.large.
instance_role: Option<String>
The instance profile attached to the node. If an instance profile isn't attached to the node, this value is blank.
key_name: Option<String>
The name of the key pair associated with the node. If a key pair isnt't associated with the node, this value is blank.
instance_state: Option<String>
The current state of the node.
architecture: Option<String>
The CPU architecture of the node. For example, x86_64
.
ip_address: Option<String>
The public IPv4 address assigned to the node. If a public IPv4 address isn't assigned to the node, this value is blank.
launch_time: Option<DateTime>
The timestamp for when the node was launched.
ping_status: Option<PingStatus>
Connection status of the SSM Agent on the managed node.
last_ping_date_time: Option<DateTime>
The date and time when the SSM Agent last pinged the Systems Manager service.
agent_version: Option<String>
The version of SSM Agent running on your managed node.
platform_type: Option<PlatformType>
The operating system platform type of the managed node. For example, Windows Server or Amazon Linux 2.
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 Systems Manager when the server or virtual machine (VM) was registered
iam_role: Option<String>
The IAM role used in the hybrid activation to register the node with Systems Manager.
registration_date: Option<DateTime>
The date the node was registered with Systems Manager.
resource_type: Option<String>
The type of managed node.
computer_name: Option<String>
The fully qualified host name of the managed node.
association_status: Option<String>
The status of the State Manager association applied to the managed node.
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>
Status information about the aggregated associations.
source_id: Option<String>
The ID of the source resource.
source_type: Option<SourceType>
The type of the source resource.
Implementations§
Source§impl InstanceProperty
impl InstanceProperty
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The value of the EC2 Name
tag associated with the node. If a Name
tag hasn't been applied to the node, this value is blank.
Sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the managed node.
Sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type of the managed node. For example, t3.large.
Sourcepub fn instance_role(&self) -> Option<&str>
pub fn instance_role(&self) -> Option<&str>
The instance profile attached to the node. If an instance profile isn't attached to the node, this value is blank.
Sourcepub fn key_name(&self) -> Option<&str>
pub fn key_name(&self) -> Option<&str>
The name of the key pair associated with the node. If a key pair isnt't associated with the node, this value is blank.
Sourcepub fn instance_state(&self) -> Option<&str>
pub fn instance_state(&self) -> Option<&str>
The current state of the node.
Sourcepub fn architecture(&self) -> Option<&str>
pub fn architecture(&self) -> Option<&str>
The CPU architecture of the node. For example, x86_64
.
Sourcepub fn ip_address(&self) -> Option<&str>
pub fn ip_address(&self) -> Option<&str>
The public IPv4 address assigned to the node. If a public IPv4 address isn't assigned to the node, this value is blank.
Sourcepub fn launch_time(&self) -> Option<&DateTime>
pub fn launch_time(&self) -> Option<&DateTime>
The timestamp for when the node was launched.
Sourcepub fn ping_status(&self) -> Option<&PingStatus>
pub fn ping_status(&self) -> Option<&PingStatus>
Connection status of the SSM Agent on the managed node.
Sourcepub fn last_ping_date_time(&self) -> Option<&DateTime>
pub fn last_ping_date_time(&self) -> Option<&DateTime>
The date and time when the SSM 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 managed node.
Sourcepub fn platform_type(&self) -> Option<&PlatformType>
pub fn platform_type(&self) -> Option<&PlatformType>
The operating system platform type of the managed node. For example, Windows Server or Amazon Linux 2.
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 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 IAM role used in the hybrid activation to register the node with Systems Manager.
Sourcepub fn registration_date(&self) -> Option<&DateTime>
pub fn registration_date(&self) -> Option<&DateTime>
The date the node was registered with Systems Manager.
Sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of 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 State Manager association applied to the managed node.
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>
Status information about the aggregated associations.
Sourcepub fn source_type(&self) -> Option<&SourceType>
pub fn source_type(&self) -> Option<&SourceType>
The type of the source resource.
Source§impl InstanceProperty
impl InstanceProperty
Sourcepub fn builder() -> InstancePropertyBuilder
pub fn builder() -> InstancePropertyBuilder
Creates a new builder-style object to manufacture InstanceProperty
.
Trait Implementations§
Source§impl Clone for InstanceProperty
impl Clone for InstanceProperty
Source§fn clone(&self) -> InstanceProperty
fn clone(&self) -> InstanceProperty
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InstanceProperty
impl Debug for InstanceProperty
Source§impl PartialEq for InstanceProperty
impl PartialEq for InstanceProperty
impl StructuralPartialEq for InstanceProperty
Auto Trait Implementations§
impl Freeze for InstanceProperty
impl RefUnwindSafe for InstanceProperty
impl Send for InstanceProperty
impl Sync for InstanceProperty
impl Unpin for InstanceProperty
impl UnwindSafe for InstanceProperty
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);