Package com.pulumi.aws.ssm
Class AssociationArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ssm.AssociationArgs.Builder
-
- Enclosing class:
- AssociationArgs
public static final class AssociationArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(AssociationArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AssociationArgs.Builder
applyOnlyAtCronInterval(com.pulumi.core.Output<java.lang.Boolean> applyOnlyAtCronInterval)
AssociationArgs.Builder
applyOnlyAtCronInterval(java.lang.Boolean applyOnlyAtCronInterval)
AssociationArgs.Builder
associationName(com.pulumi.core.Output<java.lang.String> associationName)
AssociationArgs.Builder
associationName(java.lang.String associationName)
AssociationArgs.Builder
automationTargetParameterName(com.pulumi.core.Output<java.lang.String> automationTargetParameterName)
AssociationArgs.Builder
automationTargetParameterName(java.lang.String automationTargetParameterName)
AssociationArgs
build()
AssociationArgs.Builder
complianceSeverity(com.pulumi.core.Output<java.lang.String> complianceSeverity)
AssociationArgs.Builder
complianceSeverity(java.lang.String complianceSeverity)
AssociationArgs.Builder
documentVersion(com.pulumi.core.Output<java.lang.String> documentVersion)
AssociationArgs.Builder
documentVersion(java.lang.String documentVersion)
AssociationArgs.Builder
instanceId(com.pulumi.core.Output<java.lang.String> instanceId)
Deprecated.use 'targets' argument instead.AssociationArgs.Builder
instanceId(java.lang.String instanceId)
Deprecated.use 'targets' argument instead.AssociationArgs.Builder
maxConcurrency(com.pulumi.core.Output<java.lang.String> maxConcurrency)
AssociationArgs.Builder
maxConcurrency(java.lang.String maxConcurrency)
AssociationArgs.Builder
maxErrors(com.pulumi.core.Output<java.lang.String> maxErrors)
AssociationArgs.Builder
maxErrors(java.lang.String maxErrors)
AssociationArgs.Builder
name(com.pulumi.core.Output<java.lang.String> name)
AssociationArgs.Builder
name(java.lang.String name)
AssociationArgs.Builder
outputLocation(AssociationOutputLocationArgs outputLocation)
AssociationArgs.Builder
outputLocation(com.pulumi.core.Output<AssociationOutputLocationArgs> outputLocation)
AssociationArgs.Builder
parameters(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> parameters)
AssociationArgs.Builder
parameters(java.util.Map<java.lang.String,java.lang.String> parameters)
AssociationArgs.Builder
scheduleExpression(com.pulumi.core.Output<java.lang.String> scheduleExpression)
AssociationArgs.Builder
scheduleExpression(java.lang.String scheduleExpression)
AssociationArgs.Builder
syncCompliance(com.pulumi.core.Output<java.lang.String> syncCompliance)
AssociationArgs.Builder
syncCompliance(java.lang.String syncCompliance)
AssociationArgs.Builder
targets(AssociationTargetArgs... targets)
AssociationArgs.Builder
targets(com.pulumi.core.Output<java.util.List<AssociationTargetArgs>> targets)
AssociationArgs.Builder
targets(java.util.List<AssociationTargetArgs> targets)
AssociationArgs.Builder
waitForSuccessTimeoutSeconds(com.pulumi.core.Output<java.lang.Integer> waitForSuccessTimeoutSeconds)
AssociationArgs.Builder
waitForSuccessTimeoutSeconds(java.lang.Integer waitForSuccessTimeoutSeconds)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(AssociationArgs defaults)
-
-
Method Detail
-
applyOnlyAtCronInterval
public AssociationArgs.Builder applyOnlyAtCronInterval(@Nullable com.pulumi.core.Output<java.lang.Boolean> applyOnlyAtCronInterval)
- Parameters:
applyOnlyAtCronInterval
- By default, when you create a new or update associations, the system runs it immediately and then according to the schedule you specified. Enable this option if you do not want an association to run immediately after you create or update it. This parameter is not supported for rate expressions. Default: `false`.- Returns:
- builder
-
applyOnlyAtCronInterval
public AssociationArgs.Builder applyOnlyAtCronInterval(java.lang.Boolean applyOnlyAtCronInterval)
- Parameters:
applyOnlyAtCronInterval
- By default, when you create a new or update associations, the system runs it immediately and then according to the schedule you specified. Enable this option if you do not want an association to run immediately after you create or update it. This parameter is not supported for rate expressions. Default: `false`.- Returns:
- builder
-
associationName
public AssociationArgs.Builder associationName(@Nullable com.pulumi.core.Output<java.lang.String> associationName)
- Parameters:
associationName
- The descriptive name for the association.- Returns:
- builder
-
associationName
public AssociationArgs.Builder associationName(java.lang.String associationName)
- Parameters:
associationName
- The descriptive name for the association.- Returns:
- builder
-
automationTargetParameterName
public AssociationArgs.Builder automationTargetParameterName(@Nullable com.pulumi.core.Output<java.lang.String> automationTargetParameterName)
- Parameters:
automationTargetParameterName
- Specify the target for the association. This target is required for associations that use an `Automation` document and target resources by using rate controls. This should be set to the SSM document `parameter` that will define how your automation will branch out.- Returns:
- builder
-
automationTargetParameterName
public AssociationArgs.Builder automationTargetParameterName(java.lang.String automationTargetParameterName)
- Parameters:
automationTargetParameterName
- Specify the target for the association. This target is required for associations that use an `Automation` document and target resources by using rate controls. This should be set to the SSM document `parameter` that will define how your automation will branch out.- Returns:
- builder
-
complianceSeverity
public AssociationArgs.Builder complianceSeverity(@Nullable com.pulumi.core.Output<java.lang.String> complianceSeverity)
- Parameters:
complianceSeverity
- The compliance severity for the association. Can be one of the following: `UNSPECIFIED`, `LOW`, `MEDIUM`, `HIGH` or `CRITICAL`- Returns:
- builder
-
complianceSeverity
public AssociationArgs.Builder complianceSeverity(java.lang.String complianceSeverity)
- Parameters:
complianceSeverity
- The compliance severity for the association. Can be one of the following: `UNSPECIFIED`, `LOW`, `MEDIUM`, `HIGH` or `CRITICAL`- Returns:
- builder
-
documentVersion
public AssociationArgs.Builder documentVersion(@Nullable com.pulumi.core.Output<java.lang.String> documentVersion)
- Parameters:
documentVersion
- The document version you want to associate with the target(s). Can be a specific version or the default version.- Returns:
- builder
-
documentVersion
public AssociationArgs.Builder documentVersion(java.lang.String documentVersion)
- Parameters:
documentVersion
- The document version you want to associate with the target(s). Can be a specific version or the default version.- Returns:
- builder
-
instanceId
@Deprecated public AssociationArgs.Builder instanceId(@Nullable com.pulumi.core.Output<java.lang.String> instanceId)
Deprecated.use 'targets' argument instead. https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_CreateAssociation.html#systemsmanager-CreateAssociation-request-InstanceId- Parameters:
instanceId
- The instance ID to apply an SSM document to. Use `targets` with key `InstanceIds` for document schema versions 2.0 and above. Use the `targets` attribute instead.- Returns:
- builder
-
instanceId
@Deprecated public AssociationArgs.Builder instanceId(java.lang.String instanceId)
Deprecated.use 'targets' argument instead. https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_CreateAssociation.html#systemsmanager-CreateAssociation-request-InstanceId- Parameters:
instanceId
- The instance ID to apply an SSM document to. Use `targets` with key `InstanceIds` for document schema versions 2.0 and above. Use the `targets` attribute instead.- Returns:
- builder
-
maxConcurrency
public AssociationArgs.Builder maxConcurrency(@Nullable com.pulumi.core.Output<java.lang.String> maxConcurrency)
- Parameters:
maxConcurrency
- 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%.- Returns:
- builder
-
maxConcurrency
public AssociationArgs.Builder maxConcurrency(java.lang.String maxConcurrency)
- Parameters:
maxConcurrency
- 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%.- Returns:
- builder
-
maxErrors
public AssociationArgs.Builder maxErrors(@Nullable com.pulumi.core.Output<java.lang.String> maxErrors)
- Parameters:
maxErrors
- The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%. If you specify a threshold of 3, the stop command is sent when the fourth error is returned. If you specify a threshold of 10% for 50 associations, the stop command is sent when the sixth error is returned.- Returns:
- builder
-
maxErrors
public AssociationArgs.Builder maxErrors(java.lang.String maxErrors)
- Parameters:
maxErrors
- The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%. If you specify a threshold of 3, the stop command is sent when the fourth error is returned. If you specify a threshold of 10% for 50 associations, the stop command is sent when the sixth error is returned.- Returns:
- builder
-
name
public AssociationArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- The name of the SSM document to apply.- Returns:
- builder
-
name
public AssociationArgs.Builder name(java.lang.String name)
- Parameters:
name
- The name of the SSM document to apply.- Returns:
- builder
-
outputLocation
public AssociationArgs.Builder outputLocation(@Nullable com.pulumi.core.Output<AssociationOutputLocationArgs> outputLocation)
- Parameters:
outputLocation
- An output location block. Output Location is documented below.- Returns:
- builder
-
outputLocation
public AssociationArgs.Builder outputLocation(AssociationOutputLocationArgs outputLocation)
- Parameters:
outputLocation
- An output location block. Output Location is documented below.- Returns:
- builder
-
parameters
public AssociationArgs.Builder parameters(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> parameters)
- Parameters:
parameters
- A block of arbitrary string parameters to pass to the SSM document.- Returns:
- builder
-
parameters
public AssociationArgs.Builder parameters(java.util.Map<java.lang.String,java.lang.String> parameters)
- Parameters:
parameters
- A block of arbitrary string parameters to pass to the SSM document.- Returns:
- builder
-
scheduleExpression
public AssociationArgs.Builder scheduleExpression(@Nullable com.pulumi.core.Output<java.lang.String> scheduleExpression)
- Parameters:
scheduleExpression
- A [cron or rate expression](https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html) that specifies when the association runs.- Returns:
- builder
-
scheduleExpression
public AssociationArgs.Builder scheduleExpression(java.lang.String scheduleExpression)
- Parameters:
scheduleExpression
- A [cron or rate expression](https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html) that specifies when the association runs.- Returns:
- builder
-
syncCompliance
public AssociationArgs.Builder syncCompliance(@Nullable com.pulumi.core.Output<java.lang.String> syncCompliance)
- Parameters:
syncCompliance
- The mode for generating association compliance. You can specify `AUTO` or `MANUAL`.- Returns:
- builder
-
syncCompliance
public AssociationArgs.Builder syncCompliance(java.lang.String syncCompliance)
- Parameters:
syncCompliance
- The mode for generating association compliance. You can specify `AUTO` or `MANUAL`.- Returns:
- builder
-
targets
public AssociationArgs.Builder targets(@Nullable com.pulumi.core.Output<java.util.List<AssociationTargetArgs>> targets)
- Parameters:
targets
- A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.- Returns:
- builder
-
targets
public AssociationArgs.Builder targets(java.util.List<AssociationTargetArgs> targets)
- Parameters:
targets
- A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.- Returns:
- builder
-
targets
public AssociationArgs.Builder targets(AssociationTargetArgs... targets)
- Parameters:
targets
- A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.- Returns:
- builder
-
waitForSuccessTimeoutSeconds
public AssociationArgs.Builder waitForSuccessTimeoutSeconds(@Nullable com.pulumi.core.Output<java.lang.Integer> waitForSuccessTimeoutSeconds)
- Parameters:
waitForSuccessTimeoutSeconds
- The number of seconds to wait for the association status to be `Success`. If `Success` status is not reached within the given time, create opration will fail. Output Location (`output_location`) is an S3 bucket where you want to store the results of this association:- Returns:
- builder
-
waitForSuccessTimeoutSeconds
public AssociationArgs.Builder waitForSuccessTimeoutSeconds(java.lang.Integer waitForSuccessTimeoutSeconds)
- Parameters:
waitForSuccessTimeoutSeconds
- The number of seconds to wait for the association status to be `Success`. If `Success` status is not reached within the given time, create opration will fail. Output Location (`output_location`) is an S3 bucket where you want to store the results of this association:- Returns:
- builder
-
build
public AssociationArgs build()
-
-