Route Response Args
data class RouteResponseArgs(val apiId: Output<String>? = null, val modelSelectionExpression: Output<String>? = null, val responseModels: Output<Map<String, String>>? = null, val routeId: Output<String>? = null, val routeResponseKey: Output<String>? = null) : ConvertibleToJava<RouteResponseArgs>
Manages an Amazon API Gateway Version 2 route 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.RouteResponse;
import com.pulumi.aws.apigatewayv2.RouteResponseArgs;
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 RouteResponse("example", RouteResponseArgs.builder()
.apiId(aws_apigatewayv2_api.example().id())
.routeId(aws_apigatewayv2_route.example().id())
.routeResponseKey("$default")
.build());
}
}
Content copied to clipboard
Import
aws_apigatewayv2_route_response
can be imported by using the API identifier, route identifier and route response identifier, e.g.,
$ pulumi import aws:apigatewayv2/routeResponse:RouteResponse example aabbccddee/1122334/998877
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The model selection expression for the route response.
Link copied to clipboard
Response models for the route response.
Link copied to clipboard
Route response key.