Class TestStateRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.sfn.model.SfnRequest
-
- software.amazon.awssdk.services.sfn.model.TestStateRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<TestStateRequest.Builder,TestStateRequest>
@Generated("software.amazon.awssdk:codegen") public final class TestStateRequest extends SfnRequest implements ToCopyableBuilder<TestStateRequest.Builder,TestStateRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTestStateRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestStateRequest.Builderbuilder()Stringdefinition()The Amazon States Language (ASL) definition of the state.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringinput()A string that contains the JSON input data for the state.InspectionLevelinspectionLevel()Determines the values to return when a state is tested.StringinspectionLevelAsString()Determines the values to return when a state is tested.BooleanrevealSecrets()Specifies whether or not to include secret information in the test result.StringroleArn()The Amazon Resource Name (ARN) of the execution role with the required IAM permissions for the state.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TestStateRequest.Builder>serializableBuilderClass()TestStateRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvariables()JSON object literal that sets variables used in the state under test.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
definition
public final String definition()
The Amazon States Language (ASL) definition of the state.
- Returns:
- The Amazon States Language (ASL) definition of the state.
-
roleArn
public final String roleArn()
The Amazon Resource Name (ARN) of the execution role with the required IAM permissions for the state.
- Returns:
- The Amazon Resource Name (ARN) of the execution role with the required IAM permissions for the state.
-
input
public final String input()
A string that contains the JSON input data for the state.
- Returns:
- A string that contains the JSON input data for the state.
-
inspectionLevel
public final InspectionLevel inspectionLevel()
Determines the values to return when a state is tested. You can specify one of the following types:
-
INFO: Shows the final state output. By default, Step Functions setsinspectionLeveltoINFOif you don't specify a level. -
DEBUG: Shows the final state output along with the input and output data processing result. -
TRACE: Shows the HTTP request and response for an HTTP Task. This level also shows the final state output along with the input and output data processing result.
Each of these levels also provide information about the status of the state execution and the next state to transition to.
If the service returns an enum value that is not available in the current SDK version,
inspectionLevelwill returnInspectionLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominspectionLevelAsString().- Returns:
- Determines the values to return when a state is tested. You can specify one of the following types:
-
INFO: Shows the final state output. By default, Step Functions setsinspectionLeveltoINFOif you don't specify a level. -
DEBUG: Shows the final state output along with the input and output data processing result. -
TRACE: Shows the HTTP request and response for an HTTP Task. This level also shows the final state output along with the input and output data processing result.
Each of these levels also provide information about the status of the state execution and the next state to transition to.
-
- See Also:
InspectionLevel
-
-
inspectionLevelAsString
public final String inspectionLevelAsString()
Determines the values to return when a state is tested. You can specify one of the following types:
-
INFO: Shows the final state output. By default, Step Functions setsinspectionLeveltoINFOif you don't specify a level. -
DEBUG: Shows the final state output along with the input and output data processing result. -
TRACE: Shows the HTTP request and response for an HTTP Task. This level also shows the final state output along with the input and output data processing result.
Each of these levels also provide information about the status of the state execution and the next state to transition to.
If the service returns an enum value that is not available in the current SDK version,
inspectionLevelwill returnInspectionLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominspectionLevelAsString().- Returns:
- Determines the values to return when a state is tested. You can specify one of the following types:
-
INFO: Shows the final state output. By default, Step Functions setsinspectionLeveltoINFOif you don't specify a level. -
DEBUG: Shows the final state output along with the input and output data processing result. -
TRACE: Shows the HTTP request and response for an HTTP Task. This level also shows the final state output along with the input and output data processing result.
Each of these levels also provide information about the status of the state execution and the next state to transition to.
-
- See Also:
InspectionLevel
-
-
revealSecrets
public final Boolean revealSecrets()
Specifies whether or not to include secret information in the test result. For HTTP Tasks, a secret includes the data that an EventBridge connection adds to modify the HTTP request headers, query parameters, and body. Step Functions doesn't omit any information included in the state definition or the HTTP response.
If you set
revealSecretstotrue, you must make sure that the IAM user that calls theTestStateAPI has permission for thestates:RevealSecretsaction. For an example of IAM policy that sets thestates:RevealSecretspermission, see IAM permissions to test a state. Without this permission, Step Functions throws an access denied error.By default,
revealSecretsis set tofalse.- Returns:
- Specifies whether or not to include secret information in the test result. For HTTP Tasks, a secret
includes the data that an EventBridge connection adds to modify the HTTP request headers, query
parameters, and body. Step Functions doesn't omit any information included in the state definition or the
HTTP response.
If you set
revealSecretstotrue, you must make sure that the IAM user that calls theTestStateAPI has permission for thestates:RevealSecretsaction. For an example of IAM policy that sets thestates:RevealSecretspermission, see IAM permissions to test a state. Without this permission, Step Functions throws an access denied error.By default,
revealSecretsis set tofalse.
-
variables
public final String variables()
JSON object literal that sets variables used in the state under test. Object keys are the variable names and values are the variable values.
- Returns:
- JSON object literal that sets variables used in the state under test. Object keys are the variable names and values are the variable values.
-
toBuilder
public TestStateRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TestStateRequest.Builder,TestStateRequest>- Specified by:
toBuilderin classSfnRequest
-
builder
public static TestStateRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends TestStateRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-