Interface HttpInvokeJsonPathProps
- All Superinterfaces:
AssignableStateOptions,software.amazon.jsii.JsiiSerializable,JsonPathCommonOptions,StateBaseProps,TaskStateBaseOptions,TaskStateJsonPathBaseProps
- All Known Implementing Classes:
HttpInvokeJsonPathProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:18.937Z")
@Stability(Stable)
public interface HttpInvokeJsonPathProps
extends software.amazon.jsii.JsiiSerializable, TaskStateJsonPathBaseProps
Properties for calling an external HTTP endpoint with HttpInvoke using JSONPath.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.events.*;
import software.amazon.awscdk.services.stepfunctions.*;
import software.amazon.awscdk.services.stepfunctions.tasks.*;
Object assign;
Connection connection;
Object resultSelector;
TaskInput taskInput;
TaskRole taskRole;
Timeout timeout;
HttpInvokeJsonPathProps httpInvokeJsonPathProps = HttpInvokeJsonPathProps.builder()
.apiEndpoint(taskInput)
.apiRoot("apiRoot")
.connection(connection)
.method(taskInput)
// the properties below are optional
.assign(Map.of(
"assignKey", assign))
.body(taskInput)
.comment("comment")
.credentials(Credentials.builder()
.role(taskRole)
.build())
.headers(taskInput)
.heartbeat(Duration.minutes(30))
.heartbeatTimeout(timeout)
.inputPath("inputPath")
.integrationPattern(IntegrationPattern.REQUEST_RESPONSE)
.outputPath("outputPath")
.queryLanguage(QueryLanguage.JSON_PATH)
.queryStringParameters(taskInput)
.resultPath("resultPath")
.resultSelector(Map.of(
"resultSelectorKey", resultSelector))
.stateName("stateName")
.taskTimeout(timeout)
.timeout(Duration.minutes(30))
.urlEncodingFormat(URLEncodingFormat.BRACKETS)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpInvokeJsonPathPropsstatic final classAn implementation forHttpInvokeJsonPathProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The API endpoint to call, relative toapiRoot.Permissions are granted to call all resources under this path.default TaskInputgetBody()The body to send to the HTTP endpoint.The EventBridge Connection to use for authentication.default TaskInputThe headers to send to the HTTP endpoint.The HTTP method to use.default TaskInputThe query string parameters to send to the HTTP endpoint.default URLEncodingFormatDetermines whether to apply URL encoding to the request body, and which array encoding format to use.Methods inherited from interface software.amazon.awscdk.services.stepfunctions.AssignableStateOptions
getAssignMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonPathCommonOptions
getInputPath, getOutputPathMethods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateNameMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseOptions
getCredentials, getHeartbeat, getHeartbeatTimeout, getIntegrationPattern, getTaskTimeout, getTimeoutMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateJsonPathBaseProps
getResultPath, getResultSelector
-
Method Details
-
getApiEndpoint
The API endpoint to call, relative toapiRoot.Example:
TaskInput.fromText("path/to/resource"); -
getApiRoot
Permissions are granted to call all resources under this path.Example:
"https://api.example.com";
-
getConnection
The EventBridge Connection to use for authentication. -
getMethod
The HTTP method to use.Example:
TaskInput.fromText("GET"); -
getBody
The body to send to the HTTP endpoint.Default: - No body is sent with the request.
-
getHeaders
The headers to send to the HTTP endpoint.Default: - No additional headers are added to the request.
Example:
TaskInput.fromObject(Map.of("Content-Type", "application/json")); -
getQueryStringParameters
The query string parameters to send to the HTTP endpoint.Default: - No query string parameters are sent in the request.
-
getUrlEncodingFormat
Determines whether to apply URL encoding to the request body, and which array encoding format to use.URLEncodingFormat.NONEpasses the JSON-serializedRequestBodyfield as the HTTP request body. Otherwise, the HTTP request body is the URL-encoded form data of theRequestBodyfield using the specified array encoding format, and theContent-Typeheader is set toapplication/x-www-form-urlencoded.Default: - URLEncodingFormat.NONE
-
builder
- Returns:
- a
HttpInvokeJsonPathProps.BuilderofHttpInvokeJsonPathProps
-