@Generated(value="software.amazon.awssdk:codegen") public final class Stack extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Stack.Builder,Stack>
The Stack data type.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Stack.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Stack.Builder |
builder() |
List<Capability> |
capabilities()
The capabilities allowed in the stack.
|
List<String> |
capabilitiesAsStrings()
The capabilities allowed in the stack.
|
String |
changeSetId()
The unique ID of the change set.
|
Instant |
creationTime()
The time at which the stack was created.
|
Instant |
deletionTime()
The time the stack was deleted.
|
String |
description()
A user-defined description associated with the stack.
|
Boolean |
disableRollback()
Boolean to enable or disable rollback on stack creation failures:
|
StackDriftInformation |
driftInformation()
Information on whether a stack's actual configuration differs, or has drifted, from it's expected
configuration, as defined in the stack template and any values specified as template parameters.
|
Boolean |
enableTerminationProtection()
Whether termination protection is enabled for the stack.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCapabilities()
For responses, this returns true if the service returned a value for the Capabilities property.
|
int |
hashCode() |
boolean |
hasNotificationARNs()
For responses, this returns true if the service returned a value for the NotificationARNs property.
|
boolean |
hasOutputs()
For responses, this returns true if the service returned a value for the Outputs property.
|
boolean |
hasParameters()
For responses, this returns true if the service returned a value for the Parameters property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Instant |
lastUpdatedTime()
The time the stack was last updated.
|
List<String> |
notificationARNs()
SNS topic ARNs to which stack related events are published.
|
List<Output> |
outputs()
A list of output structures.
|
List<Parameter> |
parameters()
A list of
Parameter structures. |
String |
parentId()
For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this
stack.
|
String |
roleARN()
The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that is associated with the stack.
|
RollbackConfiguration |
rollbackConfiguration()
The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the
specified monitoring period afterwards.
|
String |
rootId()
For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which
the nested stack ultimately belongs.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Stack.Builder> |
serializableBuilderClass() |
String |
stackId()
Unique identifier of the stack.
|
String |
stackName()
The name associated with the stack.
|
StackStatus |
stackStatus()
Current status of the stack.
|
String |
stackStatusAsString()
Current status of the stack.
|
String |
stackStatusReason()
Success/failure message associated with the stack status.
|
List<Tag> |
tags()
A list of
Tags that specify information about the stack. |
Integer |
timeoutInMinutes()
The amount of time within which stack creation should complete.
|
Stack.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String stackId()
Unique identifier of the stack.
public final String stackName()
The name associated with the stack.
public final String changeSetId()
The unique ID of the change set.
public final String description()
A user-defined description associated with the stack.
public final boolean hasParameters()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Parameter> parameters()
A list of Parameter structures.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParameters() method.
Parameter structures.public final Instant creationTime()
The time at which the stack was created.
public final Instant deletionTime()
The time the stack was deleted.
public final Instant lastUpdatedTime()
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
public final RollbackConfiguration rollbackConfiguration()
The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
public final StackStatus stackStatus()
Current status of the stack.
If the service returns an enum value that is not available in the current SDK version, stackStatus will
return StackStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stackStatusAsString().
StackStatuspublic final String stackStatusAsString()
Current status of the stack.
If the service returns an enum value that is not available in the current SDK version, stackStatus will
return StackStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stackStatusAsString().
StackStatuspublic final String stackStatusReason()
Success/failure message associated with the stack status.
public final Boolean disableRollback()
Boolean to enable or disable rollback on stack creation failures:
true: disable rollback
false: enable rollback
true: disable rollback
false: enable rollback
public final boolean hasNotificationARNs()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> notificationARNs()
SNS topic ARNs to which stack related events are published.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNotificationARNs() method.
public final Integer timeoutInMinutes()
The amount of time within which stack creation should complete.
public final List<Capability> capabilities()
The capabilities allowed in the stack.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCapabilities() method.
public final boolean hasCapabilities()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> capabilitiesAsStrings()
The capabilities allowed in the stack.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCapabilities() method.
public final boolean hasOutputs()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Output> outputs()
A list of output structures.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOutputs() method.
public final String roleARN()
The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that is associated with the stack. During a stack operation, CloudFormation uses this role's credentials to make calls on your behalf.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
A list of Tags that specify information about the stack.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
Tags that specify information about the stack.public final Boolean enableTerminationProtection()
Whether termination protection is enabled for the stack.
For nested stacks, termination protection is set on the root stack and cannot be changed directly on the nested stack. For more information, see Protecting a Stack From Being Deleted in the CloudFormation User Guide.
For nested stacks, termination protection is set on the root stack and cannot be changed directly on the nested stack. For more information, see Protecting a Stack From Being Deleted in the CloudFormation User Guide.
public final String parentId()
For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
public final String rootId()
For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
public final StackDriftInformation driftInformation()
Information on whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
public Stack.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Stack.Builder,Stack>public static Stack.Builder builder()
public static Class<? extends Stack.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.