blib/lib/Paws/LicenseManager/CreateLicense.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LicenseManager::CreateLicense;
3 use Moose;
4 has Beneficiary => (is => 'ro', isa => 'Str', required => 1);
5 has ClientToken => (is => 'ro', isa => 'Str', required => 1);
6 has ConsumptionConfiguration => (is => 'ro', isa => 'Paws::LicenseManager::ConsumptionConfiguration', required => 1);
7 has Entitlements => (is => 'ro', isa => 'ArrayRef[Paws::LicenseManager::Entitlement]', required => 1);
8 has HomeRegion => (is => 'ro', isa => 'Str', required => 1);
9 has Issuer => (is => 'ro', isa => 'Paws::LicenseManager::Issuer', required => 1);
10 has LicenseMetadata => (is => 'ro', isa => 'ArrayRef[Paws::LicenseManager::Metadata]');
11 has LicenseName => (is => 'ro', isa => 'Str', required => 1);
12 has ProductName => (is => 'ro', isa => 'Str', required => 1);
13 has ProductSKU => (is => 'ro', isa => 'Str', required => 1);
14 has Validity => (is => 'ro', isa => 'Paws::LicenseManager::DatetimeRange', required => 1);
15  
16 use MooseX::ClassAttribute;
17  
18 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLicense');
19 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LicenseManager::CreateLicenseResponse');
20 class_has _result_key => (isa => 'Str', is => 'ro');
21 1;
22  
23 ### main pod documentation begin ###
24  
25 =head1 NAME
26  
27 Paws::LicenseManager::CreateLicense - Arguments for method CreateLicense on L<Paws::LicenseManager>
28  
29 =head1 DESCRIPTION
30  
31 This class represents the parameters used for calling the method CreateLicense on the
32 L<AWS License Manager|Paws::LicenseManager> service. Use the attributes of this class
33 as arguments to method CreateLicense.
34  
35 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLicense.
36  
37 =head1 SYNOPSIS
38  
39 my $license-manager = Paws->service('LicenseManager');
40 my $CreateLicenseResponse = $license -manager->CreateLicense(
41 Beneficiary => 'MyString',
42 ClientToken => 'MyClientToken',
43 ConsumptionConfiguration => {
44 BorrowConfiguration => {
45 AllowEarlyCheckIn => 1,
46 MaxTimeToLiveInMinutes => 1,
47  
48 }, # OPTIONAL
49 ProvisionalConfiguration => {
50 MaxTimeToLiveInMinutes => 1,
51  
52 }, # OPTIONAL
53 RenewType => 'None', # values: None, Weekly, Monthly; OPTIONAL
54 },
55 Entitlements => [
56 {
57 Name => 'MyString',
58 Unit => 'Count'
59 , # values: Count, None, Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second
60 AllowCheckIn => 1,
61 MaxCount => 1, # OPTIONAL
62 Overage => 1,
63 Value => 'MyString',
64 },
65 ...
66 ],
67 HomeRegion => 'MyString',
68 Issuer => {
69 Name => 'MyString',
70 SignKey => 'MyString',
71 },
72 LicenseName => 'MyString',
73 ProductName => 'MyString',
74 ProductSKU => 'MyString',
75 Validity => {
76 Begin => 'MyISO8601DateTime', # max: 50
77 End => 'MyISO8601DateTime', # max: 50
78 },
79 LicenseMetadata => [
80 {
81 Name => 'MyString',
82 Value => 'MyString',
83 },
84 ...
85 ], # OPTIONAL
86 );
87  
88 # Results:
89 my $LicenseArn = $CreateLicenseResponse->LicenseArn;
90 my $Status = $CreateLicenseResponse->Status;
91 my $Version = $CreateLicenseResponse->Version;
92  
93 # Returns a L<Paws::LicenseManager::CreateLicenseResponse> object.
94  
95 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.
96 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/license-manager/CreateLicense>
97  
98 =head1 ATTRIBUTES
99  
100  
101 =head2 B<REQUIRED> Beneficiary => Str
102  
103 License beneficiary.
104  
105  
106  
107 =head2 B<REQUIRED> ClientToken => Str
108  
109 Unique, case-sensitive identifier that you provide to ensure the
110 idempotency of the request.
111  
112  
113  
114 =head2 B<REQUIRED> ConsumptionConfiguration => L<Paws::LicenseManager::ConsumptionConfiguration>
115  
116 Configuration for consumption of the license. Choose a provisional
117 configuration for workloads running with continuous connectivity.
118 Choose a borrow configuration for workloads with offline usage.
119  
120  
121  
122 =head2 B<REQUIRED> Entitlements => ArrayRef[L<Paws::LicenseManager::Entitlement>]
123  
124 License entitlements.
125  
126  
127  
128 =head2 B<REQUIRED> HomeRegion => Str
129  
130 Home Region for the license.
131  
132  
133  
134 =head2 B<REQUIRED> Issuer => L<Paws::LicenseManager::Issuer>
135  
136 License issuer.
137  
138  
139  
140 =head2 LicenseMetadata => ArrayRef[L<Paws::LicenseManager::Metadata>]
141  
142 Information about the license.
143  
144  
145  
146 =head2 B<REQUIRED> LicenseName => Str
147  
148 License name.
149  
150  
151  
152 =head2 B<REQUIRED> ProductName => Str
153  
154 Product name.
155  
156  
157  
158 =head2 B<REQUIRED> ProductSKU => Str
159  
160 Product SKU.
161  
162  
163  
164 =head2 B<REQUIRED> Validity => L<Paws::LicenseManager::DatetimeRange>
165  
166 Date and time range during which the license is valid, in ISO8601-UTC
167 format.
168  
169  
170  
171  
172 =head1 SEE ALSO
173  
174 This class forms part of L<Paws>, documenting arguments for method CreateLicense in L<Paws::LicenseManager>
175  
176 =head1 BUGS and CONTRIBUTIONS
177  
178 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
179  
180 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
181  
182 =cut
183