Interface AutoDeployment.Builder

  • Method Details

    • enabled

      AutoDeployment.Builder enabled(Boolean enabled)

      If set to true, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.

      Parameters:
      enabled - If set to true, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retainStacksOnAccountRemoval

      AutoDeployment.Builder retainStacksOnAccountRemoval(Boolean retainStacksOnAccountRemoval)

      If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.

      Parameters:
      retainStacksOnAccountRemoval - If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dependsOn

      AutoDeployment.Builder dependsOn(Collection<String> dependsOn)

      A list of StackSet ARNs that this StackSet depends on for auto-deployment operations. When auto-deployment is triggered, operations will be sequenced to ensure all dependencies complete successfully before this StackSet's operation begins.

      Parameters:
      dependsOn - A list of StackSet ARNs that this StackSet depends on for auto-deployment operations. When auto-deployment is triggered, operations will be sequenced to ensure all dependencies complete successfully before this StackSet's operation begins.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dependsOn

      AutoDeployment.Builder dependsOn(String... dependsOn)

      A list of StackSet ARNs that this StackSet depends on for auto-deployment operations. When auto-deployment is triggered, operations will be sequenced to ensure all dependencies complete successfully before this StackSet's operation begins.

      Parameters:
      dependsOn - A list of StackSet ARNs that this StackSet depends on for auto-deployment operations. When auto-deployment is triggered, operations will be sequenced to ensure all dependencies complete successfully before this StackSet's operation begins.
      Returns:
      Returns a reference to this object so that method calls can be chained together.