Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.cloudformation.inputs.StackState Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.cloudformation.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class StackState extends com.pulumi.resources.ResourceArgs {
public static final StackState Empty = new StackState();
/**
* A list of capabilities.
* Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
*
*/
@Import(name="capabilities")
private @Nullable Output> capabilities;
/**
* @return A list of capabilities.
* Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
*
*/
public Optional>> capabilities() {
return Optional.ofNullable(this.capabilities);
}
/**
* Set to true to disable rollback of the stack if stack creation failed.
* Conflicts with `on_failure`.
*
*/
@Import(name="disableRollback")
private @Nullable Output disableRollback;
/**
* @return Set to true to disable rollback of the stack if stack creation failed.
* Conflicts with `on_failure`.
*
*/
public Optional> disableRollback() {
return Optional.ofNullable(this.disableRollback);
}
/**
* 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.
*
*/
@Import(name="iamRoleArn")
private @Nullable Output iamRoleArn;
/**
* @return 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.
*
*/
public Optional> iamRoleArn() {
return Optional.ofNullable(this.iamRoleArn);
}
/**
* Stack name.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Stack name.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* A list of SNS topic ARNs to publish stack related events.
*
*/
@Import(name="notificationArns")
private @Nullable Output> notificationArns;
/**
* @return A list of SNS topic ARNs to publish stack related events.
*
*/
public Optional>> notificationArns() {
return Optional.ofNullable(this.notificationArns);
}
/**
* Action to be taken if stack creation fails. This must be
* one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. Conflicts with `disable_rollback`.
*
*/
@Import(name="onFailure")
private @Nullable Output onFailure;
/**
* @return Action to be taken if stack creation fails. This must be
* one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. Conflicts with `disable_rollback`.
*
*/
public Optional> onFailure() {
return Optional.ofNullable(this.onFailure);
}
/**
* A map of outputs from the stack.
*
*/
@Import(name="outputs")
private @Nullable Output> outputs;
/**
* @return A map of outputs from the stack.
*
*/
public Optional>> outputs() {
return Optional.ofNullable(this.outputs);
}
/**
* A map of Parameter structures that specify input parameters for the stack.
*
*/
@Import(name="parameters")
private @Nullable Output> parameters;
/**
* @return A map of Parameter structures that specify input parameters for the stack.
*
*/
public Optional>> parameters() {
return Optional.ofNullable(this.parameters);
}
/**
* Structure containing the stack policy body.
* Conflicts w/ `policy_url`.
*
*/
@Import(name="policyBody")
private @Nullable Output policyBody;
/**
* @return Structure containing the stack policy body.
* Conflicts w/ `policy_url`.
*
*/
public Optional> policyBody() {
return Optional.ofNullable(this.policyBody);
}
/**
* Location of a file containing the stack policy.
* Conflicts w/ `policy_body`.
*
*/
@Import(name="policyUrl")
private @Nullable Output policyUrl;
/**
* @return Location of a file containing the stack policy.
* Conflicts w/ `policy_body`.
*
*/
public Optional> policyUrl() {
return Optional.ofNullable(this.policyUrl);
}
/**
* Map of resource tags to associate with this stack. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Map of resource tags to associate with this stack. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Import(name="tagsAll")
private @Nullable Output> tagsAll;
/**
* @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Optional>> tagsAll() {
return Optional.ofNullable(this.tagsAll);
}
/**
* Structure containing the template body (max size: 51,200 bytes).
*
*/
@Import(name="templateBody")
private @Nullable Output templateBody;
/**
* @return Structure containing the template body (max size: 51,200 bytes).
*
*/
public Optional> templateBody() {
return Optional.ofNullable(this.templateBody);
}
/**
* Location of a file containing the template body (max size: 460,800 bytes).
*
*/
@Import(name="templateUrl")
private @Nullable Output templateUrl;
/**
* @return Location of a file containing the template body (max size: 460,800 bytes).
*
*/
public Optional> templateUrl() {
return Optional.ofNullable(this.templateUrl);
}
/**
* The amount of time that can pass before the stack status becomes `CREATE_FAILED`.
*
*/
@Import(name="timeoutInMinutes")
private @Nullable Output timeoutInMinutes;
/**
* @return The amount of time that can pass before the stack status becomes `CREATE_FAILED`.
*
*/
public Optional> timeoutInMinutes() {
return Optional.ofNullable(this.timeoutInMinutes);
}
private StackState() {}
private StackState(StackState $) {
this.capabilities = $.capabilities;
this.disableRollback = $.disableRollback;
this.iamRoleArn = $.iamRoleArn;
this.name = $.name;
this.notificationArns = $.notificationArns;
this.onFailure = $.onFailure;
this.outputs = $.outputs;
this.parameters = $.parameters;
this.policyBody = $.policyBody;
this.policyUrl = $.policyUrl;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
this.templateBody = $.templateBody;
this.templateUrl = $.templateUrl;
this.timeoutInMinutes = $.timeoutInMinutes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StackState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private StackState $;
public Builder() {
$ = new StackState();
}
public Builder(StackState defaults) {
$ = new StackState(Objects.requireNonNull(defaults));
}
/**
* @param capabilities A list of capabilities.
* Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
*
* @return builder
*
*/
public Builder capabilities(@Nullable Output> capabilities) {
$.capabilities = capabilities;
return this;
}
/**
* @param capabilities A list of capabilities.
* Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
*
* @return builder
*
*/
public Builder capabilities(List capabilities) {
return capabilities(Output.of(capabilities));
}
/**
* @param capabilities A list of capabilities.
* Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
*
* @return builder
*
*/
public Builder capabilities(String... capabilities) {
return capabilities(List.of(capabilities));
}
/**
* @param disableRollback Set to true to disable rollback of the stack if stack creation failed.
* Conflicts with `on_failure`.
*
* @return builder
*
*/
public Builder disableRollback(@Nullable Output disableRollback) {
$.disableRollback = disableRollback;
return this;
}
/**
* @param disableRollback Set to true to disable rollback of the stack if stack creation failed.
* Conflicts with `on_failure`.
*
* @return builder
*
*/
public Builder disableRollback(Boolean disableRollback) {
return disableRollback(Output.of(disableRollback));
}
/**
* @param 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.
*
* @return builder
*
*/
public Builder iamRoleArn(@Nullable Output iamRoleArn) {
$.iamRoleArn = iamRoleArn;
return this;
}
/**
* @param 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.
*
* @return builder
*
*/
public Builder iamRoleArn(String iamRoleArn) {
return iamRoleArn(Output.of(iamRoleArn));
}
/**
* @param name Stack name.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Stack name.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param notificationArns A list of SNS topic ARNs to publish stack related events.
*
* @return builder
*
*/
public Builder notificationArns(@Nullable Output> notificationArns) {
$.notificationArns = notificationArns;
return this;
}
/**
* @param notificationArns A list of SNS topic ARNs to publish stack related events.
*
* @return builder
*
*/
public Builder notificationArns(List notificationArns) {
return notificationArns(Output.of(notificationArns));
}
/**
* @param notificationArns A list of SNS topic ARNs to publish stack related events.
*
* @return builder
*
*/
public Builder notificationArns(String... notificationArns) {
return notificationArns(List.of(notificationArns));
}
/**
* @param onFailure Action to be taken if stack creation fails. This must be
* one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. Conflicts with `disable_rollback`.
*
* @return builder
*
*/
public Builder onFailure(@Nullable Output onFailure) {
$.onFailure = onFailure;
return this;
}
/**
* @param onFailure Action to be taken if stack creation fails. This must be
* one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. Conflicts with `disable_rollback`.
*
* @return builder
*
*/
public Builder onFailure(String onFailure) {
return onFailure(Output.of(onFailure));
}
/**
* @param outputs A map of outputs from the stack.
*
* @return builder
*
*/
public Builder outputs(@Nullable Output> outputs) {
$.outputs = outputs;
return this;
}
/**
* @param outputs A map of outputs from the stack.
*
* @return builder
*
*/
public Builder outputs(Map outputs) {
return outputs(Output.of(outputs));
}
/**
* @param parameters A map of Parameter structures that specify input parameters for the stack.
*
* @return builder
*
*/
public Builder parameters(@Nullable Output> parameters) {
$.parameters = parameters;
return this;
}
/**
* @param parameters A map of Parameter structures that specify input parameters for the stack.
*
* @return builder
*
*/
public Builder parameters(Map parameters) {
return parameters(Output.of(parameters));
}
/**
* @param policyBody Structure containing the stack policy body.
* Conflicts w/ `policy_url`.
*
* @return builder
*
*/
public Builder policyBody(@Nullable Output policyBody) {
$.policyBody = policyBody;
return this;
}
/**
* @param policyBody Structure containing the stack policy body.
* Conflicts w/ `policy_url`.
*
* @return builder
*
*/
public Builder policyBody(String policyBody) {
return policyBody(Output.of(policyBody));
}
/**
* @param policyUrl Location of a file containing the stack policy.
* Conflicts w/ `policy_body`.
*
* @return builder
*
*/
public Builder policyUrl(@Nullable Output policyUrl) {
$.policyUrl = policyUrl;
return this;
}
/**
* @param policyUrl Location of a file containing the stack policy.
* Conflicts w/ `policy_body`.
*
* @return builder
*
*/
public Builder policyUrl(String policyUrl) {
return policyUrl(Output.of(policyUrl));
}
/**
* @param tags Map of resource tags to associate with this stack. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Map of resource tags to associate with this stack. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(@Nullable Output> tagsAll) {
$.tagsAll = tagsAll;
return this;
}
/**
* @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(Map tagsAll) {
return tagsAll(Output.of(tagsAll));
}
/**
* @param templateBody Structure containing the template body (max size: 51,200 bytes).
*
* @return builder
*
*/
public Builder templateBody(@Nullable Output templateBody) {
$.templateBody = templateBody;
return this;
}
/**
* @param templateBody Structure containing the template body (max size: 51,200 bytes).
*
* @return builder
*
*/
public Builder templateBody(String templateBody) {
return templateBody(Output.of(templateBody));
}
/**
* @param templateUrl Location of a file containing the template body (max size: 460,800 bytes).
*
* @return builder
*
*/
public Builder templateUrl(@Nullable Output templateUrl) {
$.templateUrl = templateUrl;
return this;
}
/**
* @param templateUrl Location of a file containing the template body (max size: 460,800 bytes).
*
* @return builder
*
*/
public Builder templateUrl(String templateUrl) {
return templateUrl(Output.of(templateUrl));
}
/**
* @param timeoutInMinutes The amount of time that can pass before the stack status becomes `CREATE_FAILED`.
*
* @return builder
*
*/
public Builder timeoutInMinutes(@Nullable Output timeoutInMinutes) {
$.timeoutInMinutes = timeoutInMinutes;
return this;
}
/**
* @param timeoutInMinutes The amount of time that can pass before the stack status becomes `CREATE_FAILED`.
*
* @return builder
*
*/
public Builder timeoutInMinutes(Integer timeoutInMinutes) {
return timeoutInMinutes(Output.of(timeoutInMinutes));
}
public StackState build() {
return $;
}
}
}