Skip to content
v2.278.0

CallApiGatewayEndpointBaseOptions Struct ​

Base CallApiGatewayEdnpoint Task Props.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const taskInput: stepfunctions.TaskInput;
const callApiGatewayEndpointBaseOptions: stepfunctions_tasks.CallApiGatewayEndpointBaseOptions = {
  method: stepfunctions_tasks.HttpMethod.GET,

  // the properties below are optional
  apiPath: 'apiPath',
  authType: stepfunctions_tasks.AuthType.NO_AUTH,
  headers: taskInput,
  queryParameters: taskInput,
  requestBody: taskInput,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks

# task_input: stepfunctions.TaskInput

call_api_gateway_endpoint_base_options = stepfunctions_tasks.CallApiGatewayEndpointBaseOptions(
    method=stepfunctions_tasks.HttpMethod.GET,

    # the properties below are optional
    api_path="apiPath",
    auth_type=stepfunctions_tasks.AuthType.NO_AUTH,
    headers=task_input,
    query_parameters=task_input,
    request_body=task_input
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;
import software.amazon.awscdk.services.stepfunctions.tasks.*;

TaskInput taskInput;

CallApiGatewayEndpointBaseOptions callApiGatewayEndpointBaseOptions = CallApiGatewayEndpointBaseOptions.builder()
        .method(HttpMethod.GET)

        // the properties below are optional
        .apiPath("apiPath")
        .authType(AuthType.NO_AUTH)
        .headers(taskInput)
        .queryParameters(taskInput)
        .requestBody(taskInput)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;
using Amazon.CDK.AWS.StepFunctions.Tasks;

TaskInput taskInput;

var callApiGatewayEndpointBaseOptions = new CallApiGatewayEndpointBaseOptions {
    Method = HttpMethod.GET,

    // the properties below are optional
    ApiPath = "apiPath",
    AuthType = AuthType.NO_AUTH,
    Headers = taskInput,
    QueryParameters = taskInput,
    RequestBody = taskInput
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var taskInput TaskInput

callApiGatewayEndpointBaseOptions := &CallApiGatewayEndpointBaseOptions{
	Method: awscdk.Aws_stepfunctions_tasks.HttpMethod_GET,

	// the properties below are optional
	ApiPath: jsii.String("apiPath"),
	AuthType: awscdk.*Aws_stepfunctions_tasks.AuthType_NO_AUTH,
	Headers: taskInput,
	QueryParameters: taskInput,
	RequestBody: taskInput,
}

Properties ​

apiPathoptionalstringapi_pathoptionalstrapiPathoptionalStringApiPathoptionalstringApiPathoptional*string #
Path parameters appended after API endpoint.

Default: No path

authTypeoptionalAuthTypeauth_typeoptionalAuthTypeauthTypeoptionalAuthTypeAuthTypeoptionalAuthTypeAuthTypeoptionalAuthType = AuthType.NO_AUTH #
Authentication methods.
headersoptionalTaskInputheadersoptionalTaskInputheadersoptionalTaskInputHeadersoptionalTaskInputHeadersoptionalTaskInput #
HTTP request information that does not relate to contents of the request.

Default: No headers

methodHttpMethodmethodHttpMethodmethodHttpMethodMethodHttpMethodMethodHttpMethod required #
Http method for the API.
queryParametersoptionalTaskInputquery_parametersoptionalTaskInputqueryParametersoptionalTaskInputQueryParametersoptionalTaskInputQueryParametersoptionalTaskInput #
Query strings attached to end of request.

Default: No query parameters

requestBodyoptionalTaskInputrequest_bodyoptionalTaskInputrequestBodyoptionalTaskInputRequestBodyoptionalTaskInputRequestBodyoptionalTaskInput #
HTTP Request body.

Default: No request body