Skip to content
v2.278.0

CallApiGatewayHttpApiEndpointOptions Struct ​

Base properties for calling an HTTP API Endpoint.

Example ​

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
# 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
// 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();
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"
};
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 ​

apiIdstringapi_idstrapiIdStringApiIdstringApiId*string required #
The Id of the API to call.
apiStackStackapi_stackStackapiStackStackApiStackStackApiStackStack required #
The Stack in which the API is defined.
stageNameoptionalstringstage_nameoptionalstrstageNameoptionalStringStageNameoptionalstringStageNameoptional*string = '$default' #
Name of the stage where the API is deployed to in API Gateway.