Integration Response Args
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
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(aws_apigatewayv2_api.example().id())
.integrationId(aws_apigatewayv2_integration.example().id())
.integrationResponseKey("/200/")
.build());
}
}
Content copied to clipboard
Import
aws_apigatewayv2_integration_response
can be imported by using the API identifier, integration identifier and integration response identifier, e.g.,
$ pulumi import aws:apigatewayv2/integrationResponse:IntegrationResponse example aabbccddee/1122334/998877
Content copied to clipboard
Properties
Link copied to clipboard
How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY
, CONVERT_TO_TEXT
.
Link copied to clipboard
Identifier of the aws.apigatewayv2.Integration
.
Link copied to clipboard
Integration response key.
Link copied to clipboard
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
The template selection expression for the integration response.