blib/lib/Paws/WellArchitected/CreateWorkload.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::WellArchitected::CreateWorkload;
3 use Moose;
4 has AccountIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has ArchitecturalDesign => (is => 'ro', isa => 'Str');
6 has AwsRegions => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
7 has ClientRequestToken => (is => 'ro', isa => 'Str', required => 1);
8 has Description => (is => 'ro', isa => 'Str', required => 1);
9 has Environment => (is => 'ro', isa => 'Str', required => 1);
10 has Industry => (is => 'ro', isa => 'Str');
11 has IndustryType => (is => 'ro', isa => 'Str');
12 has Lenses => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
13 has NonAwsRegions => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
14 has Notes => (is => 'ro', isa => 'Str');
15 has PillarPriorities => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
16 has ReviewOwner => (is => 'ro', isa => 'Str', required => 1);
17 has Tags => (is => 'ro', isa => 'Paws::WellArchitected::TagMap');
18 has WorkloadName => (is => 'ro', isa => 'Str', required => 1);
19  
20 use MooseX::ClassAttribute;
21  
22 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateWorkload');
23 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/workloads');
24 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
25 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WellArchitected::CreateWorkloadOutput');
26 1;
27  
28 ### main pod documentation begin ###
29  
30 =head1 NAME
31  
32 Paws::WellArchitected::CreateWorkload - Arguments for method CreateWorkload on L<Paws::WellArchitected>
33  
34 =head1 DESCRIPTION
35  
36 This class represents the parameters used for calling the method CreateWorkload on the
37 L<AWS Well-Architected Tool|Paws::WellArchitected> service. Use the attributes of this class
38 as arguments to method CreateWorkload.
39  
40 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateWorkload.
41  
42 =head1 SYNOPSIS
43  
44 my $wellarchitected = Paws->service('WellArchitected');
45 my $CreateWorkloadOutput = $wellarchitected->CreateWorkload(
46 ClientRequestToken => 'MyClientRequestToken',
47 Description => 'MyWorkloadDescription',
48 Environment => 'PRODUCTION',
49 Lenses => [
50 'MyLensAlias', ... # min: 1, max: 64
51 ],
52 ReviewOwner => 'MyWorkloadReviewOwner',
53 WorkloadName => 'MyWorkloadName',
54 AccountIds => [ 'MyAwsAccountId', ... ], # OPTIONAL
55 ArchitecturalDesign => 'MyWorkloadArchitecturalDesign', # OPTIONAL
56 AwsRegions => [
57 'MyAwsRegion', ... # max: 100
58 ], # OPTIONAL
59 Industry => 'MyWorkloadIndustry', # OPTIONAL
60 IndustryType => 'MyWorkloadIndustryType', # OPTIONAL
61 NonAwsRegions => [
62 'MyWorkloadNonAwsRegion', ... # min: 3, max: 25
63 ], # OPTIONAL
64 Notes => 'MyNotes', # OPTIONAL
65 PillarPriorities => [
66 'MyPillarId', ... # min: 1, max: 64
67 ], # OPTIONAL
68 Tags => {
69 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
70 }, # OPTIONAL
71 );
72  
73 # Results:
74 my $WorkloadArn = $CreateWorkloadOutput->WorkloadArn;
75 my $WorkloadId = $CreateWorkloadOutput->WorkloadId;
76  
77 # Returns a L<Paws::WellArchitected::CreateWorkloadOutput> object.
78  
79 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.
80 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/wellarchitected/CreateWorkload>
81  
82 =head1 ATTRIBUTES
83  
84  
85 =head2 AccountIds => ArrayRef[Str|Undef]
86  
87  
88  
89  
90  
91 =head2 ArchitecturalDesign => Str
92  
93  
94  
95  
96  
97 =head2 AwsRegions => ArrayRef[Str|Undef]
98  
99  
100  
101  
102  
103 =head2 B<REQUIRED> ClientRequestToken => Str
104  
105  
106  
107  
108  
109 =head2 B<REQUIRED> Description => Str
110  
111  
112  
113  
114  
115 =head2 B<REQUIRED> Environment => Str
116  
117  
118  
119 Valid values are: C<"PRODUCTION">, C<"PREPRODUCTION">
120  
121 =head2 Industry => Str
122  
123  
124  
125  
126  
127 =head2 IndustryType => Str
128  
129  
130  
131  
132  
133 =head2 B<REQUIRED> Lenses => ArrayRef[Str|Undef]
134  
135  
136  
137  
138  
139 =head2 NonAwsRegions => ArrayRef[Str|Undef]
140  
141  
142  
143  
144  
145 =head2 Notes => Str
146  
147  
148  
149  
150  
151 =head2 PillarPriorities => ArrayRef[Str|Undef]
152  
153  
154  
155  
156  
157 =head2 B<REQUIRED> ReviewOwner => Str
158  
159  
160  
161  
162  
163 =head2 Tags => L<Paws::WellArchitected::TagMap>
164  
165 The tags to be associated with the workload.
166  
167  
168  
169 =head2 B<REQUIRED> WorkloadName => Str
170  
171  
172  
173  
174  
175  
176 =head1 SEE ALSO
177  
178 This class forms part of L<Paws>, documenting arguments for method CreateWorkload in L<Paws::WellArchitected>
179  
180 =head1 BUGS and CONTRIBUTIONS
181  
182 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
183  
184 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
185  
186 =cut
187