AssociationArgs

data class AssociationArgs(val applyOnlyAtCronInterval: Output<Boolean>? = null, val associationName: Output<String>? = null, val automationTargetParameterName: Output<String>? = null, val calendarNames: Output<List<String>>? = null, val complianceSeverity: Output<AssociationComplianceSeverity>? = null, val documentVersion: Output<String>? = null, val instanceId: Output<String>? = null, val maxConcurrency: Output<String>? = null, val maxErrors: Output<String>? = null, val name: Output<String>? = null, val outputLocation: Output<AssociationInstanceAssociationOutputLocationArgs>? = null, val parameters: Output<Map<String, List<String>>>? = null, val scheduleExpression: Output<String>? = null, val scheduleOffset: Output<Int>? = null, val syncCompliance: Output<AssociationSyncCompliance>? = null, val targets: Output<List<AssociationTargetArgs>>? = null, val waitForSuccessTimeoutSeconds: Output<Int>? = null) : ConvertibleToJava<AssociationArgs>

The AWS::SSM::Association resource associates an SSM document in AWS Systems Manager with EC2 instances that contain a configuration agent to process the document.

Example Usage

Example

No Java example available.

Example

No Java example available.

Example

No Java example available.

Example

No Java example available.

Example

No Java example available.

Example

No Java example available.

Constructors

Link copied to clipboard
constructor(applyOnlyAtCronInterval: Output<Boolean>? = null, associationName: Output<String>? = null, automationTargetParameterName: Output<String>? = null, calendarNames: Output<List<String>>? = null, complianceSeverity: Output<AssociationComplianceSeverity>? = null, documentVersion: Output<String>? = null, instanceId: Output<String>? = null, maxConcurrency: Output<String>? = null, maxErrors: Output<String>? = null, name: Output<String>? = null, outputLocation: Output<AssociationInstanceAssociationOutputLocationArgs>? = null, parameters: Output<Map<String, List<String>>>? = null, scheduleExpression: Output<String>? = null, scheduleOffset: Output<Int>? = null, syncCompliance: Output<AssociationSyncCompliance>? = null, targets: Output<List<AssociationTargetArgs>>? = null, waitForSuccessTimeoutSeconds: Output<Int>? = null)

Properties

Link copied to clipboard
val applyOnlyAtCronInterval: Output<Boolean>? = null

By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.

Link copied to clipboard
val associationName: Output<String>? = null

The name of the association.

Link copied to clipboard

Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a tool in AWS Systems Manager .

Link copied to clipboard
val calendarNames: Output<List<String>>? = null

The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that Change Calendar is open. For more information, see AWS Systems Manager Change Calendar in the AWS Systems Manager User Guide .

Link copied to clipboard

The severity level that is assigned to the association.

Link copied to clipboard
val documentVersion: Output<String>? = null

The version of the SSM document to associate with the target.

Link copied to clipboard
val instanceId: Output<String>? = null

The ID of the instance that the SSM document is associated with.

Link copied to clipboard
val maxConcurrency: Output<String>? = null

The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time. If a new managed node starts and attempts to run an association while Systems Manager is running MaxConcurrency associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified for MaxConcurrency .

Link copied to clipboard
val maxErrors: Output<String>? = null

The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set MaxError to 10%, then the system stops sending the request when the sixth error is received. Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.

Link copied to clipboard
val name: Output<String>? = null

The name of the SSM document.

Link copied to clipboard

An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.

Link copied to clipboard
val parameters: Output<Map<String, List<String>>>? = null

Parameter values that the SSM document uses at runtime.

Link copied to clipboard
val scheduleExpression: Output<String>? = null

A Cron or Rate expression that specifies when the association is applied to the target.

Link copied to clipboard
val scheduleOffset: Output<Int>? = null

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

Link copied to clipboard

The mode for generating association compliance. You can specify AUTO or MANUAL . In AUTO mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association is COMPLIANT . If the association execution doesn't run successfully, the association is NON-COMPLIANT . In MANUAL mode, you must specify the AssociationId as a parameter for the PutComplianceItems API action. In this case, compliance data is not managed by State Manager. It is managed by your direct call to the PutComplianceItems API action. By default, all associations use AUTO mode.

Link copied to clipboard
val targets: Output<List<AssociationTargetArgs>>? = null

The targets that the SSM document sends commands to.

Link copied to clipboard
val waitForSuccessTimeoutSeconds: Output<Int>? = null

The number of seconds the service should wait for the association status to show "Success" before proceeding with the stack execution. If the association status doesn't show "Success" after the specified number of seconds, then stack creation fails.

Functions

Link copied to clipboard
open override fun toJava(): AssociationArgs