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

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoT::TestInvokeAuthorizer;
3 use Moose;
4 has AuthorizerName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'authorizerName', required => 1);
5 has HttpContext => (is => 'ro', isa => 'Paws::IoT::HttpContext', traits => ['NameInRequest'], request_name => 'httpContext');
6 has MqttContext => (is => 'ro', isa => 'Paws::IoT::MqttContext', traits => ['NameInRequest'], request_name => 'mqttContext');
7 has TlsContext => (is => 'ro', isa => 'Paws::IoT::TlsContext', traits => ['NameInRequest'], request_name => 'tlsContext');
8 has Token => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'token');
9 has TokenSignature => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'tokenSignature');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'TestInvokeAuthorizer');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/authorizer/{authorizerName}/test');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::TestInvokeAuthorizerResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::IoT::TestInvokeAuthorizer - Arguments for method TestInvokeAuthorizer on L<Paws::IoT>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method TestInvokeAuthorizer on the
28 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
29 as arguments to method TestInvokeAuthorizer.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to TestInvokeAuthorizer.
32  
33 =head1 SYNOPSIS
34  
35 my $iot = Paws->service('IoT');
36 my $TestInvokeAuthorizerResponse = $iot->TestInvokeAuthorizer(
37 AuthorizerName => 'MyAuthorizerName',
38 HttpContext => {
39 Headers => {
40 'MyHttpHeaderName' => 'MyHttpHeaderValue'
41 , # key: min: 1, max: 8192, value: min: 1, max: 8192
42 }, # OPTIONAL
43 QueryString => 'MyHttpQueryString', # min: 1, max: 4096; OPTIONAL
44 }, # OPTIONAL
45 MqttContext => {
46 ClientId => 'MyMqttClientId', # min: 1, max: 65535; OPTIONAL
47 Password => 'BlobMqttPassword', # min: 1, max: 65535; OPTIONAL
48 Username => 'MyMqttUsername', # min: 1, max: 65535; OPTIONAL
49 }, # OPTIONAL
50 TlsContext => {
51 ServerName => 'MyServerName', # min: 1, max: 253; OPTIONAL
52 }, # OPTIONAL
53 Token => 'MyToken', # OPTIONAL
54 TokenSignature => 'MyTokenSignature', # OPTIONAL
55 );
56  
57 # Results:
58 my $DisconnectAfterInSeconds =
59 $TestInvokeAuthorizerResponse->DisconnectAfterInSeconds;
60 my $IsAuthenticated = $TestInvokeAuthorizerResponse->IsAuthenticated;
61 my $PolicyDocuments = $TestInvokeAuthorizerResponse->PolicyDocuments;
62 my $PrincipalId = $TestInvokeAuthorizerResponse->PrincipalId;
63 my $RefreshAfterInSeconds =
64 $TestInvokeAuthorizerResponse->RefreshAfterInSeconds;
65  
66 # Returns a L<Paws::IoT::TestInvokeAuthorizerResponse> object.
67  
68 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.
69 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/TestInvokeAuthorizer>
70  
71 =head1 ATTRIBUTES
72  
73  
74 =head2 B<REQUIRED> AuthorizerName => Str
75  
76 The custom authorizer name.
77  
78  
79  
80 =head2 HttpContext => L<Paws::IoT::HttpContext>
81  
82 Specifies a test HTTP authorization request.
83  
84  
85  
86 =head2 MqttContext => L<Paws::IoT::MqttContext>
87  
88 Specifies a test MQTT authorization request.
89  
90  
91  
92 =head2 TlsContext => L<Paws::IoT::TlsContext>
93  
94 Specifies a test TLS authorization request.
95  
96  
97  
98 =head2 Token => Str
99  
100 The token returned by your custom authentication service.
101  
102  
103  
104 =head2 TokenSignature => Str
105  
106 The signature made with the token and your custom authentication
107 service's private key. This value must be Base-64-encoded.
108  
109  
110  
111  
112 =head1 SEE ALSO
113  
114 This class forms part of L<Paws>, documenting arguments for method TestInvokeAuthorizer in L<Paws::IoT>
115  
116 =head1 BUGS and CONTRIBUTIONS
117  
118 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
119  
120 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
121  
122 =cut
123