blib/lib/Paws/IoT/CreateProvisioningTemplate.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::CreateProvisioningTemplate;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
5 has Enabled => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enabled');
6 has PreProvisioningHook => (is => 'ro', isa => 'Paws::IoT::ProvisioningHook', traits => ['NameInRequest'], request_name => 'preProvisioningHook');
7 has ProvisioningRoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'provisioningRoleArn', required => 1);
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags');
9 has TemplateBody => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateBody', required => 1);
10 has TemplateName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateName', required => 1);
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateProvisioningTemplate');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/provisioning-templates');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateProvisioningTemplateResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::IoT::CreateProvisioningTemplate - Arguments for method CreateProvisioningTemplate on L<Paws::IoT>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateProvisioningTemplate on the
29 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
30 as arguments to method CreateProvisioningTemplate.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateProvisioningTemplate.
33  
34 =head1 SYNOPSIS
35  
36 my $iot = Paws->service('IoT');
37 my $CreateProvisioningTemplateResponse = $iot->CreateProvisioningTemplate(
38 ProvisioningRoleArn => 'MyRoleArn',
39 TemplateBody => 'MyTemplateBody',
40 TemplateName => 'MyTemplateName',
41 Description => 'MyTemplateDescription', # OPTIONAL
42 Enabled => 1, # OPTIONAL
43 PreProvisioningHook => {
44 TargetArn => 'MyTargetArn', # max: 2048
45 PayloadVersion => 'MyPayloadVersion', # min: 10, max: 32; OPTIONAL
46 }, # OPTIONAL
47 Tags => [
48 {
49 Key => 'MyTagKey', # min: 1, max: 128
50 Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL
51 },
52 ...
53 ], # OPTIONAL
54 );
55  
56 # Results:
57 my $DefaultVersionId =
58 $CreateProvisioningTemplateResponse->DefaultVersionId;
59 my $TemplateArn = $CreateProvisioningTemplateResponse->TemplateArn;
60 my $TemplateName = $CreateProvisioningTemplateResponse->TemplateName;
61  
62 # Returns a L<Paws::IoT::CreateProvisioningTemplateResponse> object.
63  
64 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.
65 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CreateProvisioningTemplate>
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 Description => Str
71  
72 The description of the fleet provisioning template.
73  
74  
75  
76 =head2 Enabled => Bool
77  
78 True to enable the fleet provisioning template, otherwise false.
79  
80  
81  
82 =head2 PreProvisioningHook => L<Paws::IoT::ProvisioningHook>
83  
84 Creates a pre-provisioning hook template.
85  
86  
87  
88 =head2 B<REQUIRED> ProvisioningRoleArn => Str
89  
90 The role ARN for the role associated with the fleet provisioning
91 template. This IoT role grants permission to provision a device.
92  
93  
94  
95 =head2 Tags => ArrayRef[L<Paws::IoT::Tag>]
96  
97 Metadata which can be used to manage the fleet provisioning template.
98  
99 For URI Request parameters use format: ...key1=value1&key2=value2...
100  
101 For the CLI command-line parameter use format: &&tags
102 "key1=value1&key2=value2..."
103  
104 For the cli-input-json file use format: "tags":
105 "key1=value1&key2=value2..."
106  
107  
108  
109 =head2 B<REQUIRED> TemplateBody => Str
110  
111 The JSON formatted contents of the fleet provisioning template.
112  
113  
114  
115 =head2 B<REQUIRED> TemplateName => Str
116  
117 The name of the fleet provisioning template.
118  
119  
120  
121  
122 =head1 SEE ALSO
123  
124 This class forms part of L<Paws>, documenting arguments for method CreateProvisioningTemplate in L<Paws::IoT>
125  
126 =head1 BUGS and CONTRIBUTIONS
127  
128 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
129  
130 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
131  
132 =cut
133