Method: Aws::APIGateway::Types::PutIntegrationRequest#passthrough_behavior

Defined in:
lib/aws-sdk-apigateway/types.rb

#passthrough_behaviorString

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the ‘requestTemplates` property on the Integration resource. There are three valid values: `WHEN_NO_MATCH`, `WHEN_NO_TEMPLATES`, and `NEVER`.

  • ‘WHEN_NO_MATCH` passes the request body for unmapped content types through to the integration back end without transformation.

  • ‘NEVER` rejects unmapped content types with an HTTP 415 ’Unsupported Media Type’ response.

  • ‘WHEN_NO_TEMPLATES` allows pass-through when the integration has NO content types mapped to templates. However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.

Returns:

  • (String)

5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
# File 'lib/aws-sdk-apigateway/types.rb', line 5350

class PutIntegrationRequest < Struct.new(
  :rest_api_id,
  :resource_id,
  :http_method,
  :type,
  :integration_http_method,
  :uri,
  :connection_type,
  :connection_id,
  :credentials,
  :request_parameters,
  :request_templates,
  :passthrough_behavior,
  :cache_namespace,
  :cache_key_parameters,
  :content_handling,
  :timeout_in_millis)
  include Aws::Structure
end