Class AssociationArgs.Builder

  • Enclosing class:
    AssociationArgs

    public static final class AssociationArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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
      • 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