public static interface Association.Builder extends SdkPojo, CopyableBuilder<Association.Builder,Association>
| Modifier and Type | Method and Description |
|---|---|
Association.Builder |
associationId(String associationId)
The ID created by the system when you create an association.
|
Association.Builder |
associationName(String associationName)
The association name.
|
Association.Builder |
associationVersion(String associationVersion)
The association version.
|
Association.Builder |
documentVersion(String documentVersion)
The version of the document used in the association.
|
Association.Builder |
instanceId(String instanceId)
The managed node ID.
|
Association.Builder |
lastExecutionDate(Instant lastExecutionDate)
The date on which the association was last run.
|
Association.Builder |
name(String name)
The name of the SSM document.
|
Association.Builder |
overview(AssociationOverview overview)
Information about the association.
|
default Association.Builder |
overview(Consumer<AssociationOverview.Builder> overview)
Information about the association.
|
Association.Builder |
scheduleExpression(String scheduleExpression)
A cron expression that specifies a schedule when the association runs.
|
Association.Builder |
scheduleOffset(Integer scheduleOffset)
Number of days to wait after the scheduled day to run an association.
|
Association.Builder |
targetMaps(Collection<? extends Map<String,? extends Collection<String>>> targetMaps)
A key-value mapping of document parameters to target resources.
|
Association.Builder |
targetMaps(Map<String,? extends Collection<String>>... targetMaps)
A key-value mapping of document parameters to target resources.
|
Association.Builder |
targets(Collection<Target> targets)
The managed nodes targeted by the request to create an association.
|
Association.Builder |
targets(Consumer<Target.Builder>... targets)
The managed nodes targeted by the request to create an association.
|
Association.Builder |
targets(Target... targets)
The managed nodes targeted by the request to create an association.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAssociation.Builder name(String name)
The name of the SSM document.
name - The name of the SSM document.Association.Builder instanceId(String instanceId)
The managed node ID.
instanceId - The managed node ID.Association.Builder associationId(String associationId)
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.
associationId - 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.Builder associationVersion(String associationVersion)
The association version.
associationVersion - The association version.Association.Builder documentVersion(String documentVersion)
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.
documentVersion - 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.
Association.Builder targets(Collection<Target> 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 *.
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
*.Association.Builder targets(Target... 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 *.
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
*.Association.Builder targets(Consumer<Target.Builder>... 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 *.
Target.Builder avoiding the need to create one manually via
Target.builder().
When the Consumer completes, SdkBuilder.build()
is called immediately and its result is passed to #targets(List.
targets - a consumer that will call methods on Target.Builder#targets(java.util.Collection) Association.Builder lastExecutionDate(Instant lastExecutionDate)
The date on which the association was last run.
lastExecutionDate - The date on which the association was last run.Association.Builder overview(AssociationOverview overview)
Information about the association.
overview - Information about the association.default Association.Builder overview(Consumer<AssociationOverview.Builder> overview)
Information about the association.
This is a convenience method that creates an instance of theAssociationOverview.Builder avoiding the
need to create one manually via AssociationOverview.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to overview(AssociationOverview).
overview - a consumer that will call methods on AssociationOverview.Builderoverview(AssociationOverview)Association.Builder scheduleExpression(String scheduleExpression)
A cron expression that specifies a schedule when the association runs. The schedule runs in Coordinated Universal Time (UTC).
scheduleExpression - A cron expression that specifies a schedule when the association runs. The schedule runs in
Coordinated Universal Time (UTC).Association.Builder associationName(String associationName)
The association name.
associationName - The association name.Association.Builder scheduleOffset(Integer scheduleOffset)
Number of days to wait after the scheduled day to run an association.
scheduleOffset - Number of days to wait after the scheduled day to run an association.Association.Builder targetMaps(Collection<? extends Map<String,? extends Collection<String>>> targetMaps)
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
targetMaps - A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be
specified together.Association.Builder targetMaps(Map<String,? extends Collection<String>>... targetMaps)
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
targetMaps - A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be
specified together.Copyright © 2022. All rights reserved.