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

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LicenseManager::CreateLicenseConfiguration;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has DisassociateWhenNotFound => (is => 'ro', isa => 'Bool');
6 has LicenseCount => (is => 'ro', isa => 'Int');
7 has LicenseCountHardLimit => (is => 'ro', isa => 'Bool');
8 has LicenseCountingType => (is => 'ro', isa => 'Str', required => 1);
9 has LicenseRules => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
10 has Name => (is => 'ro', isa => 'Str', required => 1);
11 has ProductInformationList => (is => 'ro', isa => 'ArrayRef[Paws::LicenseManager::ProductInformation]');
12 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::LicenseManager::Tag]');
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLicenseConfiguration');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LicenseManager::CreateLicenseConfigurationResponse');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::LicenseManager::CreateLicenseConfiguration - Arguments for method CreateLicenseConfiguration on L<Paws::LicenseManager>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateLicenseConfiguration on the
30 L<AWS License Manager|Paws::LicenseManager> service. Use the attributes of this class
31 as arguments to method CreateLicenseConfiguration.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLicenseConfiguration.
34  
35 =head1 SYNOPSIS
36  
37 my $license-manager = Paws->service('LicenseManager');
38 my $CreateLicenseConfigurationResponse =
39 $license -manager->CreateLicenseConfiguration(
40 LicenseCountingType => 'vCPU',
41 Name => 'MyString',
42 Description => 'MyString', # OPTIONAL
43 DisassociateWhenNotFound => 1, # OPTIONAL
44 LicenseCount => 1, # OPTIONAL
45 LicenseCountHardLimit => 1, # OPTIONAL
46 LicenseRules => [ 'MyString', ... ], # OPTIONAL
47 ProductInformationList => [
48 {
49 ProductInformationFilterList => [
50 {
51 ProductInformationFilterComparator => 'MyString',
52 ProductInformationFilterName => 'MyString',
53 ProductInformationFilterValue => [ 'MyString', ... ],
54 },
55 ...
56 ],
57 ResourceType => 'MyString',
58  
59 },
60 ...
61 ], # OPTIONAL
62 Tags => [
63 {
64 Key => 'MyString',
65 Value => 'MyString',
66 },
67 ...
68 ], # OPTIONAL
69 );
70  
71 # Results:
72 my $LicenseConfigurationArn =
73 $CreateLicenseConfigurationResponse->LicenseConfigurationArn;
74  
75 # Returns a L<Paws::LicenseManager::CreateLicenseConfigurationResponse> object.
76  
77 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.
78 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/license-manager/CreateLicenseConfiguration>
79  
80 =head1 ATTRIBUTES
81  
82  
83 =head2 Description => Str
84  
85 Description of the license configuration.
86  
87  
88  
89 =head2 DisassociateWhenNotFound => Bool
90  
91 When true, disassociates a resource when software is uninstalled.
92  
93  
94  
95 =head2 LicenseCount => Int
96  
97 Number of licenses managed by the license configuration.
98  
99  
100  
101 =head2 LicenseCountHardLimit => Bool
102  
103 Indicates whether hard or soft license enforcement is used. Exceeding a
104 hard limit blocks the launch of new instances.
105  
106  
107  
108 =head2 B<REQUIRED> LicenseCountingType => Str
109  
110 Dimension used to track the license inventory.
111  
112 Valid values are: C<"vCPU">, C<"Instance">, C<"Core">, C<"Socket">
113  
114 =head2 LicenseRules => ArrayRef[Str|Undef]
115  
116 License rules. The syntax is #name=value (for example,
117  
118 dimension, as follows.
119  
120 =over
121  
122 =item *
123  
124 C<Cores> dimension: C<allowedTenancy> | C<licenseAffinityToHost> |
125 C<maximumCores> | C<minimumCores>
126  
127 =item *
128  
129 C<Instances> dimension: C<allowedTenancy> | C<maximumCores> |
130 C<minimumCores> | C<maximumSockets> | C<minimumSockets> |
131 C<maximumVcpus> | C<minimumVcpus>
132  
133 =item *
134  
135 C<Sockets> dimension: C<allowedTenancy> | C<licenseAffinityToHost> |
136 C<maximumSockets> | C<minimumSockets>
137  
138 =item *
139  
140 C<vCPUs> dimension: C<allowedTenancy> | C<honorVcpuOptimization> |
141 C<maximumVcpus> | C<minimumVcpus>
142  
143 =back
144  
145 The unit for C<licenseAffinityToHost> is days and the range is 1 to
146 180. The possible values for C<allowedTenancy> are C<EC2-Default>,
147 C<EC2-DedicatedHost>, and C<EC2-DedicatedInstance>. The possible values
148 for C<honorVcpuOptimization> are C<True> and C<False>.
149  
150  
151  
152 =head2 B<REQUIRED> Name => Str
153  
154 Name of the license configuration.
155  
156  
157  
158 =head2 ProductInformationList => ArrayRef[L<Paws::LicenseManager::ProductInformation>]
159  
160 Product information.
161  
162  
163  
164 =head2 Tags => ArrayRef[L<Paws::LicenseManager::Tag>]
165  
166 Tags to add to the license configuration.
167  
168  
169  
170  
171 =head1 SEE ALSO
172  
173 This class forms part of L<Paws>, documenting arguments for method CreateLicenseConfiguration in L<Paws::LicenseManager>
174  
175 =head1 BUGS and CONTRIBUTIONS
176  
177 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
178  
179 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
180  
181 =cut
182