Class StackState.Builder

  • Enclosing class:
    StackState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(StackState defaults)
    • Method Detail

      • capabilities

        public StackState.Builder capabilities​(@Nullable
                                               com.pulumi.core.Output<java.util.List<java.lang.String>> capabilities)
        Parameters:
        capabilities - A list of capabilities. Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
        Returns:
        builder
      • capabilities

        public StackState.Builder capabilities​(java.util.List<java.lang.String> capabilities)
        Parameters:
        capabilities - A list of capabilities. Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
        Returns:
        builder
      • capabilities

        public StackState.Builder capabilities​(java.lang.String... capabilities)
        Parameters:
        capabilities - A list of capabilities. Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
        Returns:
        builder
      • disableRollback

        public StackState.Builder disableRollback​(@Nullable
                                                  com.pulumi.core.Output<java.lang.Boolean> disableRollback)
        Parameters:
        disableRollback - Set to true to disable rollback of the stack if stack creation failed. Conflicts with `onFailure`.
        Returns:
        builder
      • disableRollback

        public StackState.Builder disableRollback​(java.lang.Boolean disableRollback)
        Parameters:
        disableRollback - Set to true to disable rollback of the stack if stack creation failed. Conflicts with `onFailure`.
        Returns:
        builder
      • iamRoleArn

        public StackState.Builder iamRoleArn​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> iamRoleArn)
        Parameters:
        iamRoleArn - The ARN of an IAM role that AWS CloudFormation assumes to create the stack. If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.
        Returns:
        builder
      • iamRoleArn

        public StackState.Builder iamRoleArn​(java.lang.String iamRoleArn)
        Parameters:
        iamRoleArn - The ARN of an IAM role that AWS CloudFormation assumes to create the stack. If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials.
        Returns:
        builder
      • name

        public StackState.Builder name​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Stack name.
        Returns:
        builder
      • name

        public StackState.Builder name​(java.lang.String name)
        Parameters:
        name - Stack name.
        Returns:
        builder
      • notificationArns

        public StackState.Builder notificationArns​(@Nullable
                                                   com.pulumi.core.Output<java.util.List<java.lang.String>> notificationArns)
        Parameters:
        notificationArns - A list of SNS topic ARNs to publish stack related events.
        Returns:
        builder
      • notificationArns

        public StackState.Builder notificationArns​(java.util.List<java.lang.String> notificationArns)
        Parameters:
        notificationArns - A list of SNS topic ARNs to publish stack related events.
        Returns:
        builder
      • notificationArns

        public StackState.Builder notificationArns​(java.lang.String... notificationArns)
        Parameters:
        notificationArns - A list of SNS topic ARNs to publish stack related events.
        Returns:
        builder
      • onFailure

        public StackState.Builder onFailure​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> onFailure)
        Parameters:
        onFailure - Action to be taken if stack creation fails. This must be one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. Conflicts with `disableRollback`.
        Returns:
        builder
      • onFailure

        public StackState.Builder onFailure​(java.lang.String onFailure)
        Parameters:
        onFailure - Action to be taken if stack creation fails. This must be one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. Conflicts with `disableRollback`.
        Returns:
        builder
      • outputs

        public StackState.Builder outputs​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> outputs)
        Parameters:
        outputs - A map of outputs from the stack.
        Returns:
        builder
      • outputs

        public StackState.Builder outputs​(java.util.Map<java.lang.String,​java.lang.String> outputs)
        Parameters:
        outputs - A map of outputs from the stack.
        Returns:
        builder
      • parameters

        public StackState.Builder parameters​(@Nullable
                                             com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> parameters)
        Parameters:
        parameters - A map of Parameter structures that specify input parameters for the stack.
        Returns:
        builder
      • parameters

        public StackState.Builder parameters​(java.util.Map<java.lang.String,​java.lang.String> parameters)
        Parameters:
        parameters - A map of Parameter structures that specify input parameters for the stack.
        Returns:
        builder
      • policyBody

        public StackState.Builder policyBody​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> policyBody)
        Parameters:
        policyBody - Structure containing the stack policy body. Conflicts w/ `policyUrl`.
        Returns:
        builder
      • policyBody

        public StackState.Builder policyBody​(java.lang.String policyBody)
        Parameters:
        policyBody - Structure containing the stack policy body. Conflicts w/ `policyUrl`.
        Returns:
        builder
      • policyUrl

        public StackState.Builder policyUrl​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> policyUrl)
        Parameters:
        policyUrl - Location of a file containing the stack policy. Conflicts w/ `policyBody`.
        Returns:
        builder
      • policyUrl

        public StackState.Builder policyUrl​(java.lang.String policyUrl)
        Parameters:
        policyUrl - Location of a file containing the stack policy. Conflicts w/ `policyBody`.
        Returns:
        builder
      • region

        public StackState.Builder region​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public StackState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • tags

        public StackState.Builder tags​(@Nullable
                                       com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of resource tags to associate with this stack. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public StackState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of resource tags to associate with this stack. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public StackState.Builder tagsAll​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public StackState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • templateBody

        public StackState.Builder templateBody​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> templateBody)
        Parameters:
        templateBody - Structure containing the template body (max size: 51,200 bytes).
        Returns:
        builder
      • templateBody

        public StackState.Builder templateBody​(java.lang.String templateBody)
        Parameters:
        templateBody - Structure containing the template body (max size: 51,200 bytes).
        Returns:
        builder
      • templateUrl

        public StackState.Builder templateUrl​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> templateUrl)
        Parameters:
        templateUrl - Location of a file containing the template body (max size: 460,800 bytes).
        Returns:
        builder
      • templateUrl

        public StackState.Builder templateUrl​(java.lang.String templateUrl)
        Parameters:
        templateUrl - Location of a file containing the template body (max size: 460,800 bytes).
        Returns:
        builder
      • timeoutInMinutes

        public StackState.Builder timeoutInMinutes​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Integer> timeoutInMinutes)
        Parameters:
        timeoutInMinutes - The amount of time that can pass before the stack status becomes `CREATE_FAILED`.
        Returns:
        builder
      • timeoutInMinutes

        public StackState.Builder timeoutInMinutes​(java.lang.Integer timeoutInMinutes)
        Parameters:
        timeoutInMinutes - The amount of time that can pass before the stack status becomes `CREATE_FAILED`.
        Returns:
        builder