Method: Aws::APIGateway::Types::IntegrationResponse#selection_pattern

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

#selection_patternString

Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the ‘.+` regex to match error response. However, make sure that the error response does not contain any newline (`n`) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.

Returns:

  • (String)
[View source]

4563
4564
4565
4566
4567
4568
4569
4570
# File 'lib/aws-sdk-apigateway/types.rb', line 4563

class IntegrationResponse < Struct.new(
  :status_code,
  :selection_pattern,
  :response_parameters,
  :response_templates,
  :content_handling)
  include Aws::Structure
end