blib/lib/Paws/IoT/UpdateProvisioningTemplate.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::UpdateProvisioningTemplate;
3 use Moose;
4 has DefaultVersionId => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'defaultVersionId');
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
6 has Enabled => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enabled');
7 has PreProvisioningHook => (is => 'ro', isa => 'Paws::IoT::ProvisioningHook', traits => ['NameInRequest'], request_name => 'preProvisioningHook');
8 has ProvisioningRoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'provisioningRoleArn');
9 has RemovePreProvisioningHook => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'removePreProvisioningHook');
10 has TemplateName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'templateName', required => 1);
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateProvisioningTemplate');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/provisioning-templates/{templateName}');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::UpdateProvisioningTemplateResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::IoT::UpdateProvisioningTemplate - Arguments for method UpdateProvisioningTemplate on L<Paws::IoT>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method UpdateProvisioningTemplate on the
29 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
30 as arguments to method UpdateProvisioningTemplate.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateProvisioningTemplate.
33  
34 =head1 SYNOPSIS
35  
36 my $iot = Paws->service('IoT');
37 my $UpdateProvisioningTemplateResponse = $iot->UpdateProvisioningTemplate(
38 TemplateName => 'MyTemplateName',
39 DefaultVersionId => 1, # OPTIONAL
40 Description => 'MyTemplateDescription', # OPTIONAL
41 Enabled => 1, # OPTIONAL
42 PreProvisioningHook => {
43 TargetArn => 'MyTargetArn', # max: 2048
44 PayloadVersion => 'MyPayloadVersion', # min: 10, max: 32; OPTIONAL
45 }, # OPTIONAL
46 ProvisioningRoleArn => 'MyRoleArn', # OPTIONAL
47 RemovePreProvisioningHook => 1, # OPTIONAL
48 );
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/UpdateProvisioningTemplate>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 DefaultVersionId => Int
57  
58 The ID of the default provisioning template version.
59  
60  
61  
62 =head2 Description => Str
63  
64 The description of the fleet provisioning template.
65  
66  
67  
68 =head2 Enabled => Bool
69  
70 True to enable the fleet provisioning template, otherwise false.
71  
72  
73  
74 =head2 PreProvisioningHook => L<Paws::IoT::ProvisioningHook>
75  
76 Updates the pre-provisioning hook template.
77  
78  
79  
80 =head2 ProvisioningRoleArn => Str
81  
82 The ARN of the role associated with the provisioning template. This IoT
83 role grants permission to provision a device.
84  
85  
86  
87 =head2 RemovePreProvisioningHook => Bool
88  
89 Removes pre-provisioning hook template.
90  
91  
92  
93 =head2 B<REQUIRED> TemplateName => Str
94  
95 The name of the fleet provisioning template.
96  
97  
98  
99  
100 =head1 SEE ALSO
101  
102 This class forms part of L<Paws>, documenting arguments for method UpdateProvisioningTemplate in L<Paws::IoT>
103  
104 =head1 BUGS and CONTRIBUTIONS
105  
106 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
107  
108 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
109  
110 =cut
111