#[non_exhaustive]
pub struct AssociationBuilder { /* private fields */ }
Expand description

A builder for Association.

Implementations§

source§

impl AssociationBuilder

source

pub fn name(self, input: impl Into<String>) -> Self

The name of the SSM document.

source

pub fn set_name(self, input: Option<String>) -> Self

The name of the SSM document.

source

pub fn get_name(&self) -> &Option<String>

The name of the SSM document.

source

pub fn instance_id(self, input: impl Into<String>) -> Self

The managed node ID.

source

pub fn set_instance_id(self, input: Option<String>) -> Self

The managed node ID.

source

pub fn get_instance_id(&self) -> &Option<String>

The managed node ID.

source

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.

source

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.

source

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.

source

pub fn association_version(self, input: impl Into<String>) -> Self

The association version.

source

pub fn set_association_version(self, input: Option<String>) -> Self

The association version.

source

pub fn get_association_version(&self) -> &Option<String>

The association version.

source

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.

source

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.

source

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.

source

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 *.

source

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 *.

source

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 *.

source

pub fn last_execution_date(self, input: DateTime) -> Self

The date on which the association was last run.

source

pub fn set_last_execution_date(self, input: Option<DateTime>) -> Self

The date on which the association was last run.

source

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

The date on which the association was last run.

source

pub fn overview(self, input: AssociationOverview) -> Self

Information about the association.

source

pub fn set_overview(self, input: Option<AssociationOverview>) -> Self

Information about the association.

source

pub fn get_overview(&self) -> &Option<AssociationOverview>

Information about the association.

source

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).

source

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).

source

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).

source

pub fn association_name(self, input: impl Into<String>) -> Self

The association name.

source

pub fn set_association_name(self, input: Option<String>) -> Self

The association name.

source

pub fn get_association_name(&self) -> &Option<String>

The association name.

source

pub fn schedule_offset(self, input: i32) -> Self

Number of days to wait after the scheduled day to run an association.

source

pub fn set_schedule_offset(self, input: Option<i32>) -> Self

Number of days to wait after the scheduled day to run an association.

source

pub fn get_schedule_offset(&self) -> &Option<i32>

Number of days to wait after the scheduled day to run an association.

source

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.

source

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.

source

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.

source

pub fn build(self) -> Association

Consumes the builder and constructs a Association.

Trait Implementations§

source§

impl Clone for AssociationBuilder

source§

fn clone(&self) -> AssociationBuilder

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 AssociationBuilder

source§

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

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

impl Default for AssociationBuilder

source§

fn default() -> AssociationBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<AssociationBuilder> for AssociationBuilder

source§

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

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

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

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

impl StructuralPartialEq for AssociationBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere 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 Twhere 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 Twhere 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