File Coverage

blib/lib/Paws/ApiGateway/MethodResponse.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ApiGateway::MethodResponse;
3 1     1   697 use Moose;
  1         3  
  1         10  
4             has ResponseModels => (is => 'ro', isa => 'Paws::ApiGateway::MapOfStringToString', traits => ['NameInRequest'], request_name => 'responseModels');
5             has ResponseParameters => (is => 'ro', isa => 'Paws::ApiGateway::MapOfStringToBoolean', traits => ['NameInRequest'], request_name => 'responseParameters');
6             has StatusCode => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'statusCode');
7              
8             has _request_id => (is => 'ro', isa => 'Str');
9             1;
10              
11             ### main pod documentation begin ###
12              
13             =head1 NAME
14              
15             Paws::ApiGateway::MethodResponse
16              
17             =head1 ATTRIBUTES
18              
19              
20             =head2 ResponseModels => L<Paws::ApiGateway::MapOfStringToString>
21              
22             Specifies the Model resources used for the response's content-type.
23             Response models are represented as a key/value map, with a content-type
24             as the key and a Model name as the value.
25              
26              
27             =head2 ResponseParameters => L<Paws::ApiGateway::MapOfStringToBoolean>
28              
29             A key-value map specifying required or optional response parameters
30             that Amazon API Gateway can send back to the caller. A key defines a
31             method response header and the value specifies whether the associated
32             method response header is required or not. The expression of the key
33             must match the pattern C<method.response.header.{name}>, where C<name>
34             is a valid and unique header name. Amazon API Gateway passes certain
35             integration response data to the method response headers specified here
36             according to the mapping you prescribe in the API's
37             IntegrationResponse. The integration response data that can be mapped
38             include an integration response header expressed in
39             C<integration.response.header.{name}>, a static value enclosed within a
40             pair of single quotes (e.g., C<'application/json'>), or a JSON
41             expression from the back-end response payload in the form of
42             C<integration.response.body.{JSON-expression}>, where
43             C<JSON-expression> is a valid JSON expression without the C<$> prefix.)
44              
45              
46             =head2 StatusCode => Str
47              
48             The method response's status code.
49              
50              
51             =head2 _request_id => Str
52              
53              
54             =cut
55