blib/lib/Paws/IoT/CreateAuthorizer.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoT::CreateAuthorizer;
3 use Moose;
4 has AuthorizerFunctionArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorizerFunctionArn', required => 1);
5 has AuthorizerName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'authorizerName', required => 1);
6 has SigningDisabled => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'signingDisabled');
7 has Status => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'status');
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags');
9 has TokenKeyName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'tokenKeyName');
10 has TokenSigningPublicKeys => (is => 'ro', isa => 'Paws::IoT::PublicKeyMap', traits => ['NameInRequest'], request_name => 'tokenSigningPublicKeys');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAuthorizer');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/authorizer/{authorizerName}');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateAuthorizerResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::IoT::CreateAuthorizer - Arguments for method CreateAuthorizer on L<Paws::IoT>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateAuthorizer on the
29 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
30 as arguments to method CreateAuthorizer.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAuthorizer.
33  
34 =head1 SYNOPSIS
35  
36 my $iot = Paws->service('IoT');
37 my $CreateAuthorizerResponse = $iot->CreateAuthorizer(
38 AuthorizerFunctionArn => 'MyAuthorizerFunctionArn',
39 AuthorizerName => 'MyAuthorizerName',
40 SigningDisabled => 1, # OPTIONAL
41 Status => 'ACTIVE', # OPTIONAL
42 Tags => [
43 {
44 Key => 'MyTagKey', # min: 1, max: 128
45 Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL
46 },
47 ...
48 ], # OPTIONAL
49 TokenKeyName => 'MyTokenKeyName', # OPTIONAL
50 TokenSigningPublicKeys => {
51 'MyKeyName' => 'MyKeyValue', # key: min: 1, max: 128, value: max: 5120
52 }, # OPTIONAL
53 );
54  
55 # Results:
56 my $AuthorizerArn = $CreateAuthorizerResponse->AuthorizerArn;
57 my $AuthorizerName = $CreateAuthorizerResponse->AuthorizerName;
58  
59 # Returns a L<Paws::IoT::CreateAuthorizerResponse> object.
60  
61 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CreateAuthorizer>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 B<REQUIRED> AuthorizerFunctionArn => Str
68  
69 The ARN of the authorizer's Lambda function.
70  
71  
72  
73 =head2 B<REQUIRED> AuthorizerName => Str
74  
75 The authorizer name.
76  
77  
78  
79 =head2 SigningDisabled => Bool
80  
81 Specifies whether AWS IoT validates the token signature in an
82 authorization request.
83  
84  
85  
86 =head2 Status => Str
87  
88 The status of the create authorizer request.
89  
90 Valid values are: C<"ACTIVE">, C<"INACTIVE">
91  
92 =head2 Tags => ArrayRef[L<Paws::IoT::Tag>]
93  
94 Metadata which can be used to manage the custom authorizer.
95  
96 For URI Request parameters use format: ...key1=value1&key2=value2...
97  
98 For the CLI command-line parameter use format: &&tags
99 "key1=value1&key2=value2..."
100  
101 For the cli-input-json file use format: "tags":
102 "key1=value1&key2=value2..."
103  
104  
105  
106 =head2 TokenKeyName => Str
107  
108 The name of the token key used to extract the token from the HTTP
109 headers.
110  
111  
112  
113 =head2 TokenSigningPublicKeys => L<Paws::IoT::PublicKeyMap>
114  
115 The public keys used to verify the digital signature returned by your
116 custom authentication service.
117  
118  
119  
120  
121 =head1 SEE ALSO
122  
123 This class forms part of L<Paws>, documenting arguments for method CreateAuthorizer in L<Paws::IoT>
124  
125 =head1 BUGS and CONTRIBUTIONS
126  
127 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
128  
129 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
130  
131 =cut
132