Struct aws_sdk_ssm::types::builders::AssociationBuilder
source · #[non_exhaustive]pub struct AssociationBuilder { /* private fields */ }
Expand description
A builder for Association
.
Implementations§
source§impl AssociationBuilder
impl AssociationBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The managed node ID.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The managed node ID.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The managed node ID.
sourcepub fn association_id(self, input: impl Into<String>) -> Self
pub fn association_id(self, input: impl Into<String>) -> Self
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 set_association_id(self, input: Option<String>) -> Self
pub fn set_association_id(self, input: Option<String>) -> Self
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 get_association_id(&self) -> &Option<String>
pub fn get_association_id(&self) -> &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.
sourcepub fn association_version(self, input: impl Into<String>) -> Self
pub fn association_version(self, input: impl Into<String>) -> Self
The association version.
sourcepub fn set_association_version(self, input: Option<String>) -> Self
pub fn set_association_version(self, input: Option<String>) -> Self
The association version.
sourcepub fn get_association_version(&self) -> &Option<String>
pub fn get_association_version(&self) -> &Option<String>
The association version.
sourcepub fn document_version(self, input: impl Into<String>) -> Self
pub fn document_version(self, input: impl Into<String>) -> Self
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 set_document_version(self, input: Option<String>) -> Self
pub fn set_document_version(self, input: Option<String>) -> Self
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 get_document_version(&self) -> &Option<String>
pub fn get_document_version(&self) -> &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
.
sourcepub fn targets(self, input: Target) -> Self
pub fn targets(self, input: Target) -> Self
Appends an item to targets
.
To override the contents of this collection use set_targets
.
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 *
.
sourcepub fn set_targets(self, input: Option<Vec<Target>>) -> Self
pub fn set_targets(self, input: Option<Vec<Target>>) -> Self
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 *
.
sourcepub fn get_targets(&self) -> &Option<Vec<Target>>
pub fn get_targets(&self) -> &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 *
.
sourcepub fn last_execution_date(self, input: DateTime) -> Self
pub fn last_execution_date(self, input: DateTime) -> Self
The date on which the association was last run.
sourcepub fn set_last_execution_date(self, input: Option<DateTime>) -> Self
pub fn set_last_execution_date(self, input: Option<DateTime>) -> Self
The date on which the association was last run.
sourcepub fn get_last_execution_date(&self) -> &Option<DateTime>
pub fn get_last_execution_date(&self) -> &Option<DateTime>
The date on which the association was last run.
sourcepub fn overview(self, input: AssociationOverview) -> Self
pub fn overview(self, input: AssociationOverview) -> Self
Information about the association.
sourcepub fn set_overview(self, input: Option<AssociationOverview>) -> Self
pub fn set_overview(self, input: Option<AssociationOverview>) -> Self
Information about the association.
sourcepub fn get_overview(&self) -> &Option<AssociationOverview>
pub fn get_overview(&self) -> &Option<AssociationOverview>
Information about the association.
sourcepub fn schedule_expression(self, input: impl Into<String>) -> Self
pub fn schedule_expression(self, input: impl Into<String>) -> Self
A cron expression that specifies a schedule when the association runs. The schedule runs in Coordinated Universal Time (UTC).
sourcepub fn set_schedule_expression(self, input: Option<String>) -> Self
pub fn set_schedule_expression(self, input: Option<String>) -> Self
A cron expression that specifies a schedule when the association runs. The schedule runs in Coordinated Universal Time (UTC).
sourcepub fn get_schedule_expression(&self) -> &Option<String>
pub fn get_schedule_expression(&self) -> &Option<String>
A cron expression that specifies a schedule when the association runs. The schedule runs in Coordinated Universal Time (UTC).
sourcepub fn association_name(self, input: impl Into<String>) -> Self
pub fn association_name(self, input: impl Into<String>) -> Self
The association name.
sourcepub fn set_association_name(self, input: Option<String>) -> Self
pub fn set_association_name(self, input: Option<String>) -> Self
The association name.
sourcepub fn get_association_name(&self) -> &Option<String>
pub fn get_association_name(&self) -> &Option<String>
The association name.
sourcepub fn schedule_offset(self, input: i32) -> Self
pub fn schedule_offset(self, input: i32) -> Self
Number of days to wait after the scheduled day to run an association.
sourcepub fn set_schedule_offset(self, input: Option<i32>) -> Self
pub fn set_schedule_offset(self, input: Option<i32>) -> Self
Number of days to wait after the scheduled day to run an association.
sourcepub fn get_schedule_offset(&self) -> &Option<i32>
pub fn get_schedule_offset(&self) -> &Option<i32>
Number of days to wait after the scheduled day to run an association.
sourcepub fn target_maps(self, input: HashMap<String, Vec<String>>) -> Self
pub fn target_maps(self, input: HashMap<String, Vec<String>>) -> Self
Appends an item to target_maps
.
To override the contents of this collection use set_target_maps
.
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
sourcepub fn set_target_maps(
self,
input: Option<Vec<HashMap<String, Vec<String>>>>
) -> Self
pub fn set_target_maps( self, input: Option<Vec<HashMap<String, Vec<String>>>> ) -> Self
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
sourcepub fn get_target_maps(&self) -> &Option<Vec<HashMap<String, Vec<String>>>>
pub fn get_target_maps(&self) -> &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.
sourcepub fn build(self) -> Association
pub fn build(self) -> Association
Consumes the builder and constructs a Association
.
Trait Implementations§
source§impl Clone for AssociationBuilder
impl Clone for AssociationBuilder
source§fn clone(&self) -> AssociationBuilder
fn clone(&self) -> AssociationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociationBuilder
impl Debug for AssociationBuilder
source§impl Default for AssociationBuilder
impl Default for AssociationBuilder
source§fn default() -> AssociationBuilder
fn default() -> AssociationBuilder
source§impl PartialEq<AssociationBuilder> for AssociationBuilder
impl PartialEq<AssociationBuilder> for AssociationBuilder
source§fn eq(&self, other: &AssociationBuilder) -> bool
fn eq(&self, other: &AssociationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.