line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::ApiGateway::Authorizer; |
3
|
1
|
|
|
1
|
|
538
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
4
|
|
|
|
|
|
|
has AuthorizerCredentials => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorizerCredentials'); |
5
|
|
|
|
|
|
|
has AuthorizerResultTtlInSeconds => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'authorizerResultTtlInSeconds'); |
6
|
|
|
|
|
|
|
has AuthorizerUri => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorizerUri'); |
7
|
|
|
|
|
|
|
has AuthType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authType'); |
8
|
|
|
|
|
|
|
has Id => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'id'); |
9
|
|
|
|
|
|
|
has IdentitySource => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'identitySource'); |
10
|
|
|
|
|
|
|
has IdentityValidationExpression => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'identityValidationExpression'); |
11
|
|
|
|
|
|
|
has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name'); |
12
|
|
|
|
|
|
|
has ProviderARNs => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'providerARNs'); |
13
|
|
|
|
|
|
|
has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type'); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has _request_id => (is => 'ro', isa => 'Str'); |
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
### main pod documentation begin ### |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Paws::ApiGateway::Authorizer |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 AuthorizerCredentials => Str |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Specifies the credentials required for the authorizer, if any. Two |
30
|
|
|
|
|
|
|
options are available. To specify an IAM role for Amazon API Gateway to |
31
|
|
|
|
|
|
|
assume, use the role's Amazon Resource Name (ARN). To use |
32
|
|
|
|
|
|
|
resource-based permissions on the Lambda function, specify null. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 AuthorizerResultTtlInSeconds => Int |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
The TTL in seconds of cached authorizer results. If greater than 0, API |
38
|
|
|
|
|
|
|
Gateway will cache authorizer responses. If this field is not set, the |
39
|
|
|
|
|
|
|
default value is 300. The maximum value is 3600, or 1 hour. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 AuthorizerUri => Str |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
[Required] Specifies the authorizer's Uniform Resource Identifier |
45
|
|
|
|
|
|
|
(URI). For C<TOKEN> authorizers, this must be a well-formed Lambda |
46
|
|
|
|
|
|
|
function URI, for example, |
47
|
|
|
|
|
|
|
C<arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations>. |
48
|
|
|
|
|
|
|
In general, the URI has this form |
49
|
|
|
|
|
|
|
C<arn:aws:apigateway:{region}:lambda:path/{service_api}>, where |
50
|
|
|
|
|
|
|
C<{region}> is the same as the region hosting the Lambda function, |
51
|
|
|
|
|
|
|
C<path> indicates that the remaining substring in the URI should be |
52
|
|
|
|
|
|
|
treated as the path to the resource, including the initial C</>. For |
53
|
|
|
|
|
|
|
Lambda functions, this is usually of the form |
54
|
|
|
|
|
|
|
/2015-03-31/functions/[FunctionARN]/invocations. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 AuthType => Str |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Optional customer-defined field, used in Swagger imports/exports. Has |
60
|
|
|
|
|
|
|
no functional impact. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 Id => Str |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The identifier for the authorizer resource. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 IdentitySource => Str |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
[Required] The source of the identity in an incoming request. For a |
71
|
|
|
|
|
|
|
C<TOKEN> authorizer, this value is a mapping expression with the same |
72
|
|
|
|
|
|
|
syntax as integration parameter mappings. The only valid source for |
73
|
|
|
|
|
|
|
tokens is 'header', so the expression should match |
74
|
|
|
|
|
|
|
'method.request.header.[headerName]'. The value of the header |
75
|
|
|
|
|
|
|
'[headerName]' will be interpreted as the incoming token. For |
76
|
|
|
|
|
|
|
C<COGNITO_USER_POOLS> authorizers, this property is used. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 IdentityValidationExpression => Str |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
A validation expression for the incoming identity. For C<TOKEN> |
82
|
|
|
|
|
|
|
authorizers, this value should be a regular expression. The incoming |
83
|
|
|
|
|
|
|
token from the client is matched against this expression, and will |
84
|
|
|
|
|
|
|
proceed if the token matches. If the token doesn't match, the client |
85
|
|
|
|
|
|
|
receives a 401 Unauthorized response. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 Name => Str |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
[Required] The name of the authorizer. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 ProviderARNs => ArrayRef[Str|Undef] |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
A list of the provider ARNs of the authorizer. For an C<TOKEN> |
96
|
|
|
|
|
|
|
authorizer, this is not defined. For authorizers of the |
97
|
|
|
|
|
|
|
C<COGNITO_USER_POOLS> type, each element corresponds to a user pool ARN |
98
|
|
|
|
|
|
|
of this format: |
99
|
|
|
|
|
|
|
C<arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}>. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head2 Type => Str |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
[Required] The type of the authorizer. Currently, the valid type is |
105
|
|
|
|
|
|
|
C<TOKEN> for a Lambda function or C<COGNITO_USER_POOLS> for an Amazon |
106
|
|
|
|
|
|
|
Cognito user pool. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Valid values are: C<"TOKEN">, C<"COGNITO_USER_POOLS"> |
109
|
|
|
|
|
|
|
=head2 _request_id => Str |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
113
|
|
|
|
|
|
|
|