Interface CanaryRunStatus.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CanaryRunStatus.Builder,
,CanaryRunStatus> SdkBuilder<CanaryRunStatus.Builder,
,CanaryRunStatus> SdkPojo
- Enclosing class:
CanaryRunStatus
-
Method Summary
Modifier and TypeMethodDescriptionThe current state of the run.state
(CanaryRunState state) The current state of the run.stateReason
(String stateReason) If run of the canary failed, this field contains the reason for the error.stateReasonCode
(String stateReasonCode) If this value isCANARY_FAILURE
, either the canary script failed or Synthetics ran into a fatal error when running the canary.stateReasonCode
(CanaryRunStateReasonCode stateReasonCode) If this value isCANARY_FAILURE
, either the canary script failed or Synthetics ran into a fatal error when running the canary.testResult
(String testResult) Specifies the status of canary script for this run.testResult
(CanaryRunTestResult testResult) Specifies the status of canary script for this run.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
state
The current state of the run.
- Parameters:
state
- The current state of the run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the run.
- Parameters:
state
- The current state of the run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateReason
If run of the canary failed, this field contains the reason for the error.
- Parameters:
stateReason
- If run of the canary failed, this field contains the reason for the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReasonCode
If this value is
CANARY_FAILURE
, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.If this value is
EXECUTION_FAILURE
, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).If both types of failures occurred, the
CANARY_FAILURE
takes precedence. To understand the exact error, use the StateReason API.- Parameters:
stateReasonCode
- If this value isCANARY_FAILURE
, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.If this value is
EXECUTION_FAILURE
, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).If both types of failures occurred, the
CANARY_FAILURE
takes precedence. To understand the exact error, use the StateReason API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateReasonCode
If this value is
CANARY_FAILURE
, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.If this value is
EXECUTION_FAILURE
, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).If both types of failures occurred, the
CANARY_FAILURE
takes precedence. To understand the exact error, use the StateReason API.- Parameters:
stateReasonCode
- If this value isCANARY_FAILURE
, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.If this value is
EXECUTION_FAILURE
, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).If both types of failures occurred, the
CANARY_FAILURE
takes precedence. To understand the exact error, use the StateReason API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
testResult
Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as
UNKNOWN
. For the overall status of canary run, see State.- Parameters:
testResult
- Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked asUNKNOWN
. For the overall status of canary run, see State.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
testResult
Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as
UNKNOWN
. For the overall status of canary run, see State.- Parameters:
testResult
- Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked asUNKNOWN
. For the overall status of canary run, see State.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-