Struct aws_sdk_ssm::types::Association
source · #[non_exhaustive]pub struct Association {Show 13 fields
pub name: Option<String>,
pub instance_id: Option<String>,
pub association_id: Option<String>,
pub association_version: Option<String>,
pub document_version: Option<String>,
pub targets: Option<Vec<Target>>,
pub last_execution_date: Option<DateTime>,
pub overview: Option<AssociationOverview>,
pub schedule_expression: Option<String>,
pub association_name: Option<String>,
pub schedule_offset: Option<i32>,
pub duration: Option<i32>,
pub target_maps: Option<Vec<HashMap<String, Vec<String>>>>,
}
Expand description
Describes an association of a Amazon Web Services Systems Manager document (SSM document) and 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 name of the SSM document.
instance_id: Option<String>
The managed node ID.
association_id: Option<String>
The ID created by the system when you create an association. An association is a binding between a document and a set of targets with a schedule.
association_version: Option<String>
The association version.
document_version: Option<String>
The version of the document used in the association. If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the apply-only-at-cron-interval
parameter.
State Manager doesn't support running associations that use a new version of a document if that document is shared from another account. State Manager always runs the default
version of a document if shared from another account, even though the Systems Manager console shows that a new version was processed. If you want to run an association using a new version of a document shared form another account, you must set the document version to default
.
targets: Option<Vec<Target>>
The managed nodes targeted by the request to create an association. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds
key with a value of *
.
last_execution_date: Option<DateTime>
The date on which the association was last run.
overview: Option<AssociationOverview>
Information about the association.
schedule_expression: Option<String>
A cron expression that specifies a schedule when the association runs. The schedule runs in Coordinated Universal Time (UTC).
association_name: Option<String>
The association name.
schedule_offset: Option<i32>
Number of days to wait after the scheduled day to run an association.
duration: Option<i32>
The number of hours that an association can run on specified targets. After the resulting cutoff time passes, associations that are currently running are cancelled, and no pending executions are started on remaining targets.
target_maps: Option<Vec<HashMap<String, Vec<String>>>>
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
Implementations§
source§impl Association
impl Association
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The managed node ID.
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
The ID created by the system when you create an association. An association is a binding between a document and a set of targets with a schedule.
sourcepub fn association_version(&self) -> Option<&str>
pub fn association_version(&self) -> Option<&str>
The association version.
sourcepub fn document_version(&self) -> Option<&str>
pub fn document_version(&self) -> Option<&str>
The version of the document used in the association. If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the apply-only-at-cron-interval
parameter.
State Manager doesn't support running associations that use a new version of a document if that document is shared from another account. State Manager always runs the default
version of a document if shared from another account, even though the Systems Manager console shows that a new version was processed. If you want to run an association using a new version of a document shared form another account, you must set the document version to default
.
sourcepub fn targets(&self) -> &[Target]
pub fn targets(&self) -> &[Target]
The managed nodes targeted by the request to create an association. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds
key with a value of *
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .targets.is_none()
.
sourcepub fn last_execution_date(&self) -> Option<&DateTime>
pub fn last_execution_date(&self) -> Option<&DateTime>
The date on which the association was last run.
sourcepub fn overview(&self) -> Option<&AssociationOverview>
pub fn overview(&self) -> Option<&AssociationOverview>
Information about the association.
sourcepub fn schedule_expression(&self) -> Option<&str>
pub fn schedule_expression(&self) -> Option<&str>
A cron expression that specifies a schedule when the association runs. The schedule runs in Coordinated Universal Time (UTC).
sourcepub fn association_name(&self) -> Option<&str>
pub fn association_name(&self) -> Option<&str>
The association name.
sourcepub fn schedule_offset(&self) -> Option<i32>
pub fn schedule_offset(&self) -> Option<i32>
Number of days to wait after the scheduled day to run an association.
sourcepub fn duration(&self) -> Option<i32>
pub fn duration(&self) -> Option<i32>
The number of hours that an association can run on specified targets. After the resulting cutoff time passes, associations that are currently running are cancelled, and no pending executions are started on remaining targets.
sourcepub fn target_maps(&self) -> &[HashMap<String, Vec<String>>]
pub fn target_maps(&self) -> &[HashMap<String, Vec<String>>]
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_maps.is_none()
.
source§impl Association
impl Association
sourcepub fn builder() -> AssociationBuilder
pub fn builder() -> AssociationBuilder
Creates a new builder-style object to manufacture Association
.
Trait Implementations§
source§impl Clone for Association
impl Clone for Association
source§fn clone(&self) -> Association
fn clone(&self) -> Association
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Association
impl Debug for Association
source§impl PartialEq for Association
impl PartialEq for Association
source§fn eq(&self, other: &Association) -> bool
fn eq(&self, other: &Association) -> bool
self
and other
values to be equal, and is used
by ==
.