Interface StepFunctionsRestApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,ResourceOptions
,RestApiBaseProps
,RestApiOptions
,RestApiProps
- All Known Implementing Classes:
StepFunctionsRestApiProps.Jsii$Proxy
Example:
Pass stateMachineDefinition = new Pass(this, "PassState"); IStateMachine stateMachine = StateMachine.Builder.create(this, "StateMachine") .definition(stateMachineDefinition) .stateMachineType(StateMachineType.EXPRESS) .build(); StepFunctionsRestApi.Builder.create(this, "StepFunctionsRestApi") .deploy(true) .stateMachine(stateMachine) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forStepFunctionsRestApiProps
static final class
An implementation forStepFunctionsRestApiProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
If the whole authorizer object, including custom context values should be in the execution input.default Boolean
Check if header is to be included inside the execution input.default Boolean
getPath()
Check if path is to be included inside the execution input.default Boolean
Check if querystring is to be included inside the execution input.default RequestContext
Which details of the incoming request must be passed onto the underlying state machine, such as, account id, user identity, request id, etc.default IRole
getRole()
An IAM role that API Gateway will assume to start the execution of the state machine.The default State Machine that handles all requests from this API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.apigateway.ResourceOptions
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptions
Methods inherited from interface software.amazon.awscdk.services.apigateway.RestApiBaseProps
getCloudWatchRole, getDeploy, getDeployOptions, getDisableExecuteApiEndpoint, getDomainName, getEndpointExportName, getEndpointTypes, getFailOnWarnings, getParameters, getPolicy, getRestApiName, getRetainDeployments
Methods inherited from interface software.amazon.awscdk.services.apigateway.RestApiProps
getApiKeySourceType, getBinaryMediaTypes, getCloneFrom, getDescription, getEndpointConfiguration, getMinimumCompressionSize
-
Method Details
-
getStateMachine
The default State Machine that handles all requests from this API.This stateMachine will be used as a the default integration for all methods in this API, unless specified otherwise in
addMethod
. -
getAuthorizer
If the whole authorizer object, including custom context values should be in the execution input.The execution input will include a new key
authorizer
:{ "body": {}, "authorizer": { "key": "value" } }
Default: false
-
getHeaders
Check if header is to be included inside the execution input.The execution input will include a new key
headers
:{ "body": {}, "headers": { "header1": "value", "header2": "value" } }
Default: false
-
getPath
Check if path is to be included inside the execution input.The execution input will include a new key
path
:{ "body": {}, "path": { "resourceName": "resourceValue" } }
Default: true
-
getQuerystring
Check if querystring is to be included inside the execution input.The execution input will include a new key
queryString
:{ "body": {}, "querystring": { "key": "value" } }
Default: true
-
getRequestContext
Which details of the incoming request must be passed onto the underlying state machine, such as, account id, user identity, request id, etc.The execution input will include a new key
requestContext
:{ "body": {}, "requestContext": { "key": "value" } }
Default: - all parameters within request context will be set as false
-
getRole
An IAM role that API Gateway will assume to start the execution of the state machine.Default: - a new role is created
-
builder
- Returns:
- a
StepFunctionsRestApiProps.Builder
ofStepFunctionsRestApiProps
-