@Generated(value="software.amazon.awssdk:codegen") public final class Association extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Association.Builder,Association>
Describes an association of a Amazon Web Services Systems Manager document (SSM document) and a managed node.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Association.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
associationId()
The ID created by the system when you create an association.
|
String |
associationName()
The association name.
|
String |
associationVersion()
The association version.
|
static Association.Builder |
builder() |
String |
documentVersion()
The version of the document used in the association.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTargetMaps()
For responses, this returns true if the service returned a value for the TargetMaps property.
|
boolean |
hasTargets()
For responses, this returns true if the service returned a value for the Targets property.
|
String |
instanceId()
The managed node ID.
|
Instant |
lastExecutionDate()
The date on which the association was last run.
|
String |
name()
The name of the SSM document.
|
AssociationOverview |
overview()
Information about the association.
|
String |
scheduleExpression()
A cron expression that specifies a schedule when the association runs.
|
Integer |
scheduleOffset()
Number of days to wait after the scheduled day to run an association.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Association.Builder> |
serializableBuilderClass() |
List<Map<String,List<String>>> |
targetMaps()
A key-value mapping of document parameters to target resources.
|
List<Target> |
targets()
The managed nodes targeted by the request to create an association.
|
Association.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the SSM document.
public final String instanceId()
The managed node ID.
public final 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.
public final String associationVersion()
The association version.
public final 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.
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.
public final boolean hasTargets()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<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 *.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTargets() method.
InstanceIds key with a value of
*.public final Instant lastExecutionDate()
The date on which the association was last run.
public final AssociationOverview overview()
Information about the association.
public final String scheduleExpression()
A cron expression that specifies a schedule when the association runs. The schedule runs in Coordinated Universal Time (UTC).
public final String associationName()
The association name.
public final Integer scheduleOffset()
Number of days to wait after the scheduled day to run an association.
public final boolean hasTargetMaps()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Map<String,List<String>>> targetMaps()
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTargetMaps() method.
public Association.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Association.Builder,Association>public static Association.Builder builder()
public static Class<? extends Association.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.