@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2023-01-03T16:22:40.467Z") @Stability(value=Stable) public class CallApiGatewayRestApiEndpoint extends TaskStateBase
Be aware that the header values must be arrays. When passing the Task Token
in the headers field WAIT_FOR_TASK_TOKEN integration, use
JsonPath.array() to wrap the token in an array:
import software.amazon.awscdk.services.apigateway.*;
RestApi api;
CallApiGatewayRestApiEndpoint.Builder.create(this, "Endpoint")
.api(api)
.stageName("Stage")
.method(HttpMethod.PUT)
.integrationPattern(IntegrationPattern.WAIT_FOR_TASK_TOKEN)
.headers(TaskInput.fromObject(Map.of(
"TaskToken", JsonPath.array(JsonPath.getTaskToken()))))
.build();
Example:
import software.amazon.awscdk.services.apigateway.*;
RestApi api;
CallApiGatewayRestApiEndpoint.Builder.create(this, "Endpoint")
.api(api)
.stageName("Stage")
.method(HttpMethod.PUT)
.integrationPattern(IntegrationPattern.WAIT_FOR_TASK_TOKEN)
.headers(TaskInput.fromObject(Map.of(
"TaskToken", JsonPath.array(JsonPath.getTaskToken()))))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CallApiGatewayRestApiEndpoint.Builder
A fluent builder for
CallApiGatewayRestApiEndpoint. |
software.amazon.jsii.JsiiObject.InitializationModeINextable.Jsii$DefaultIChainable.Jsii$DefaultIConstruct.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
CallApiGatewayRestApiEndpoint(software.constructs.Construct scope,
String id,
CallApiGatewayRestApiEndpointProps props) |
protected |
CallApiGatewayRestApiEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CallApiGatewayRestApiEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected List<PolicyStatement> |
createPolicyStatements() |
protected String |
getApiEndpoint() |
protected String |
getArnForExecuteApi() |
protected String |
getStageName() |
protected TaskMetricsConfig |
getTaskMetrics() |
protected List<PolicyStatement> |
getTaskPolicies() |
addCatch, addCatch, addRetry, addRetry, getEndStates, metric, metric, metricFailed, metricFailed, metricHeartbeatTimedOut, metricHeartbeatTimedOut, metricRunTime, metricRunTime, metricScheduled, metricScheduled, metricScheduleTime, metricScheduleTime, metricStarted, metricStarted, metricSucceeded, metricSucceeded, metricTime, metricTime, metricTimedOut, metricTimedOut, next, toStateJson, whenBoundToGraphaddBranch, addChoice, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getParameters, getResultPath, getResultSelector, getStartState, getStateId, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderIterator, renderNextEnd, renderResultSelector, renderRetryCatch, setDefaultChoice, setIterationgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CallApiGatewayRestApiEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CallApiGatewayRestApiEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CallApiGatewayRestApiEndpoint(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CallApiGatewayRestApiEndpointProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull protected List<PolicyStatement> createPolicyStatements()
@Stability(value=Stable) @NotNull protected String getApiEndpoint()
@Stability(value=Stable) @NotNull protected String getArnForExecuteApi()
@Stability(value=Stable) @Nullable protected String getStageName()
@Stability(value=Stable) @Nullable protected TaskMetricsConfig getTaskMetrics()
getTaskMetrics in class TaskStateBase@Stability(value=Stable) @Nullable protected List<PolicyStatement> getTaskPolicies()
getTaskPolicies in class TaskStateBaseCopyright © 2023. All rights reserved.