# CallApiGatewayEndpointBaseOptions

Base CallApiGatewayEdnpoint Task Props.

- Source: [`aws-stepfunctions-tasks/lib/apigateway/base-types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.ts#L44)
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `apiPath`: string — Path parameters appended after API endpoint.

  **Default:** No path

- `authType`: [AuthType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.AuthType.html) = AuthType.NO_AUTH — Authentication methods.

- `headers`: [TaskInput](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.TaskInput.html) — HTTP request information that does not relate to contents of the request.

  **Default:** No headers

- `method`: [HttpMethod](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.HttpMethod.html) (required) — Http method for the API.

- `queryParameters`: [TaskInput](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.TaskInput.html) — Query strings attached to end of request.

  **Default:** No query parameters

- `requestBody`: [TaskInput](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.TaskInput.html) — HTTP Request body.

  **Default:** No request body
