Interface StepFunctionsRestApiProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, ResourceOptions, RestApiBaseProps, RestApiOptions, RestApiProps
All Known Implementing Classes:
StepFunctionsRestApiProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.123Z") @Stability(Stable) public interface StepFunctionsRestApiProps extends software.amazon.jsii.JsiiSerializable, RestApiProps
Properties for StepFunctionsRestApi.

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();
 
  • Method Details

    • getStateMachine

      @Stability(Stable) @NotNull IStateMachine 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

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) @Nullable default RequestContext 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

      @Stability(Stable) @Nullable default IRole getRole()
      An IAM role that API Gateway will assume to start the execution of the state machine.

      Default: - a new role is created

    • builder

      @Stability(Stable) static StepFunctionsRestApiProps.Builder builder()
      Returns:
      a StepFunctionsRestApiProps.Builder of StepFunctionsRestApiProps