MethodResponseArgs constructor

const MethodResponseArgs({
  1. required Input<String> httpMethod,
  2. Input<String?>? region,
  3. required Input<String> resourceId,
  4. Input<Map<String, String>?>? responseModels,
  5. Input<Map<String, bool>?>? responseParameters,
  6. required Input restApi,
  7. required Input<String> statusCode,
})

Creates a new MethodResponseArgs. httpMethod HTTP verb of the method resource (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY). region Region where this resource will be managed. Defaults to the Region set in the provider configuration. resourceId Resource identifier for the method resource. responseModels Map specifying the model resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model name as the value. responseParameters Map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a boolean flag indicating whether the method response parameter is required. The method response header names must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.) restApi String identifier of the associated REST API. statusCode Method response's status code.

Implementation

const MethodResponseArgs({
  required this.httpMethod,
  this.region,
  required this.resourceId,
  this.responseModels,
  this.responseParameters,
  required this.restApi,
  required this.statusCode,
});