# CallApiGatewayHttpApiEndpointOptions

Base properties for calling an HTTP API Endpoint.

- Source: [`aws-stepfunctions-tasks/lib/apigateway/call-http-api.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-http-api.ts#L12)
- 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 * as cdk from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const stack: cdk.Stack;
const callApiGatewayHttpApiEndpointOptions: stepfunctions_tasks.CallApiGatewayHttpApiEndpointOptions = {
  apiId: 'apiId',
  apiStack: stack,

  // the properties below are optional
  stageName: 'stageName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks

# stack: cdk.Stack

call_api_gateway_http_api_endpoint_options = stepfunctions_tasks.CallApiGatewayHttpApiEndpointOptions(
    api_id="apiId",
    api_stack=stack,

    # the properties below are optional
    stage_name="stageName"
)
```

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.*;
import software.amazon.awscdk.services.stepfunctions.tasks.*;

Stack stack;

CallApiGatewayHttpApiEndpointOptions callApiGatewayHttpApiEndpointOptions = CallApiGatewayHttpApiEndpointOptions.builder()
        .apiId("apiId")
        .apiStack(stack)

        // the properties below are optional
        .stageName("stageName")
        .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;
using Amazon.CDK.AWS.StepFunctions.Tasks;

Stack stack;

var callApiGatewayHttpApiEndpointOptions = new CallApiGatewayHttpApiEndpointOptions {
    ApiId = "apiId",
    ApiStack = stack,

    // the properties below are optional
    StageName = "stageName"
};
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var stack Stack

callApiGatewayHttpApiEndpointOptions := &CallApiGatewayHttpApiEndpointOptions{
	ApiId: jsii.String("apiId"),
	ApiStack: stack,

	// the properties below are optional
	StageName: jsii.String("stageName"),
}
```

## Properties

- `apiId`: string (required) — The Id of the API to call.

- `apiStack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) (required) — The Stack in which the API is defined.

- `stageName`: string = '$default' — Name of the stage where the API is deployed to in API Gateway.
