Class StackDriftInformationSummary

java.lang.Object
software.amazon.awssdk.services.cloudformation.model.StackDriftInformationSummary
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<StackDriftInformationSummary.Builder,StackDriftInformationSummary>

@Generated("software.amazon.awssdk:codegen") public final class StackDriftInformationSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StackDriftInformationSummary.Builder,StackDriftInformationSummary>

Contains information about whether the stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. A stack is considered to have drifted if one or more of its resources have drifted.

See Also:
  • Method Details

    • stackDriftStatus

      public final StackDriftStatus stackDriftStatus()

      Status of the stack's actual configuration compared to its expected template configuration.

      • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

      • NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration.

      • IN_SYNC: The stack's actual configuration matches its expected template configuration.

      • UNKNOWN: CloudFormation could not run drift detection for a resource in the stack.

      If the service returns an enum value that is not available in the current SDK version, stackDriftStatus will return StackDriftStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stackDriftStatusAsString().

      Returns:
      Status of the stack's actual configuration compared to its expected template configuration.

      • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

      • NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration.

      • IN_SYNC: The stack's actual configuration matches its expected template configuration.

      • UNKNOWN: CloudFormation could not run drift detection for a resource in the stack.

      See Also:
    • stackDriftStatusAsString

      public final String stackDriftStatusAsString()

      Status of the stack's actual configuration compared to its expected template configuration.

      • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

      • NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration.

      • IN_SYNC: The stack's actual configuration matches its expected template configuration.

      • UNKNOWN: CloudFormation could not run drift detection for a resource in the stack.

      If the service returns an enum value that is not available in the current SDK version, stackDriftStatus will return StackDriftStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stackDriftStatusAsString().

      Returns:
      Status of the stack's actual configuration compared to its expected template configuration.

      • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

      • NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration.

      • IN_SYNC: The stack's actual configuration matches its expected template configuration.

      • UNKNOWN: CloudFormation could not run drift detection for a resource in the stack.

      See Also:
    • lastCheckTimestamp

      public final Instant lastCheckTimestamp()

      Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.

      Returns:
      Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<StackDriftInformationSummary.Builder,StackDriftInformationSummary>
    • builder

      public static StackDriftInformationSummary.Builder builder()
    • serializableBuilderClass

      public static Class<? extends StackDriftInformationSummary.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo