IntegrationResponseArgs

data class IntegrationResponseArgs(val apiId: Output<String>? = null, val contentHandlingStrategy: Output<String>? = null, val integrationId: Output<String>? = null, val integrationResponseKey: Output<String>? = null, val responseTemplates: Output<Map<String, String>>? = null, val templateSelectionExpression: Output<String>? = null) : ConvertibleToJava<IntegrationResponseArgs>

Manages an Amazon API Gateway Version 2 integration response. More information can be found in the Amazon API Gateway Developer Guide.

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.apigatewayv2.IntegrationResponse("example", {
apiId: exampleAwsApigatewayv2Api.id,
integrationId: exampleAwsApigatewayv2Integration.id,
integrationResponseKey: "/200/",
});
import pulumi
import pulumi_aws as aws
example = aws.apigatewayv2.IntegrationResponse("example",
api_id=example_aws_apigatewayv2_api["id"],
integration_id=example_aws_apigatewayv2_integration["id"],
integration_response_key="/200/")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ApiGatewayV2.IntegrationResponse("example", new()
{
ApiId = exampleAwsApigatewayv2Api.Id,
IntegrationId = exampleAwsApigatewayv2Integration.Id,
IntegrationResponseKey = "/200/",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apigatewayv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apigatewayv2.NewIntegrationResponse(ctx, "example", &apigatewayv2.IntegrationResponseArgs{
ApiId: pulumi.Any(exampleAwsApigatewayv2Api.Id),
IntegrationId: pulumi.Any(exampleAwsApigatewayv2Integration.Id),
IntegrationResponseKey: pulumi.String("/200/"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigatewayv2.IntegrationResponse;
import com.pulumi.aws.apigatewayv2.IntegrationResponseArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new IntegrationResponse("example", IntegrationResponseArgs.builder()
.apiId(exampleAwsApigatewayv2Api.id())
.integrationId(exampleAwsApigatewayv2Integration.id())
.integrationResponseKey("/200/")
.build());
}
}
resources:
example:
type: aws:apigatewayv2:IntegrationResponse
properties:
apiId: ${exampleAwsApigatewayv2Api.id}
integrationId: ${exampleAwsApigatewayv2Integration.id}
integrationResponseKey: /200/

Import

Using pulumi import, import aws_apigatewayv2_integration_response using the API identifier, integration identifier and integration response identifier. For example:

$ pulumi import aws:apigatewayv2/integrationResponse:IntegrationResponse example aabbccddee/1122334/998877

Constructors

Link copied to clipboard
constructor(apiId: Output<String>? = null, contentHandlingStrategy: Output<String>? = null, integrationId: Output<String>? = null, integrationResponseKey: Output<String>? = null, responseTemplates: Output<Map<String, String>>? = null, templateSelectionExpression: Output<String>? = null)

Properties

Link copied to clipboard
val apiId: Output<String>? = null

API identifier.

Link copied to clipboard
val contentHandlingStrategy: Output<String>? = null

How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT.

Link copied to clipboard
val integrationId: Output<String>? = null

Identifier of the aws.apigatewayv2.Integration.

Link copied to clipboard
val integrationResponseKey: Output<String>? = null

Integration response key.

Link copied to clipboard
val responseTemplates: Output<Map<String, String>>? = null

Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client.

Link copied to clipboard
val templateSelectionExpression: Output<String>? = null

The template selection expression for the integration response.

Functions

Link copied to clipboard
open override fun toJava(): IntegrationResponseArgs