Class StackEvent

    • Method Detail

      • stackId

        public final String stackId()

        The unique ID name of the instance of the stack.

        Returns:
        The unique ID name of the instance of the stack.
      • eventId

        public final String eventId()

        The unique ID of this event.

        Returns:
        The unique ID of this event.
      • stackName

        public final String stackName()

        The name associated with a stack.

        Returns:
        The name associated with a stack.
      • logicalResourceId

        public final String logicalResourceId()

        The logical name of the resource specified in the template.

        Returns:
        The logical name of the resource specified in the template.
      • physicalResourceId

        public final String physicalResourceId()

        The name or unique identifier associated with the physical instance of the resource.

        Returns:
        The name or unique identifier associated with the physical instance of the resource.
      • timestamp

        public final Instant timestamp()

        Time the status was updated.

        Returns:
        Time the status was updated.
      • resourceStatusReason

        public final String resourceStatusReason()

        Success/failure message associated with the resource.

        Returns:
        Success/failure message associated with the resource.
      • resourceProperties

        public final String resourceProperties()

        BLOB of the properties used to create the resource.

        Returns:
        BLOB of the properties used to create the resource.
      • clientRequestToken

        public final String clientRequestToken()

        The token passed to the operation that generated this event.

        All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1.

        In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

        Returns:
        The token passed to the operation that generated this event.

        All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1.

        In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.

      • hookType

        public final String hookType()

        The name of the hook.

        Returns:
        The name of the hook.
      • hookStatusAsString

        public final String hookStatusAsString()

        Provides the status of the change set hook.

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

        Returns:
        Provides the status of the change set hook.
        See Also:
        HookStatus
      • hookStatusReason

        public final String hookStatusReason()

        Provides the reason for the hook status.

        Returns:
        Provides the reason for the hook status.
      • hookFailureMode

        public final HookFailureMode hookFailureMode()

        Specify the hook failure mode for non-compliant resources in the followings ways.

        • FAIL Stops provisioning resources.

        • WARN Allows provisioning to continue with a warning message.

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

        Returns:
        Specify the hook failure mode for non-compliant resources in the followings ways.

        • FAIL Stops provisioning resources.

        • WARN Allows provisioning to continue with a warning message.

        See Also:
        HookFailureMode
      • hookFailureModeAsString

        public final String hookFailureModeAsString()

        Specify the hook failure mode for non-compliant resources in the followings ways.

        • FAIL Stops provisioning resources.

        • WARN Allows provisioning to continue with a warning message.

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

        Returns:
        Specify the hook failure mode for non-compliant resources in the followings ways.

        • FAIL Stops provisioning resources.

        • WARN Allows provisioning to continue with a warning message.

        See Also:
        HookFailureMode
      • detailedStatus

        public final DetailedStatus detailedStatus()

        An optional field containing information about the detailed status of the stack event.

        • CONFIGURATION_COMPLETE - all of the resources in the stack have reached that event. For more information, see CloudFormation stack deployment in the CloudFormation User Guide.

        • VALIDATION_FAILED - template validation failed because of invalid properties in the template. The ResourceStatusReason field shows what properties are defined incorrectly.

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

        Returns:
        An optional field containing information about the detailed status of the stack event.

        • CONFIGURATION_COMPLETE - all of the resources in the stack have reached that event. For more information, see CloudFormation stack deployment in the CloudFormation User Guide.

        • VALIDATION_FAILED - template validation failed because of invalid properties in the template. The ResourceStatusReason field shows what properties are defined incorrectly.

        See Also:
        DetailedStatus
      • detailedStatusAsString

        public final String detailedStatusAsString()

        An optional field containing information about the detailed status of the stack event.

        • CONFIGURATION_COMPLETE - all of the resources in the stack have reached that event. For more information, see CloudFormation stack deployment in the CloudFormation User Guide.

        • VALIDATION_FAILED - template validation failed because of invalid properties in the template. The ResourceStatusReason field shows what properties are defined incorrectly.

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

        Returns:
        An optional field containing information about the detailed status of the stack event.

        • CONFIGURATION_COMPLETE - all of the resources in the stack have reached that event. For more information, see CloudFormation stack deployment in the CloudFormation User Guide.

        • VALIDATION_FAILED - template validation failed because of invalid properties in the template. The ResourceStatusReason field shows what properties are defined incorrectly.

        See Also:
        DetailedStatus
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)