« blib/lib/Paws/LicenseManager/CreateLicenseResponse.pm
↑ Summary
blib/lib/Paws/LicenseManager/CreateLicenseVersionResponse.pm »
| 1 | |||
| 2 | package Paws::LicenseManager::CreateLicenseVersion; | ||
| 3 | use Moose; | ||
| 4 | has ClientToken => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has ConsumptionConfiguration => (is => 'ro', isa => 'Paws::LicenseManager::ConsumptionConfiguration', required => 1); | ||
| 6 | has Entitlements => (is => 'ro', isa => 'ArrayRef[Paws::LicenseManager::Entitlement]', required => 1); | ||
| 7 | has HomeRegion => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has Issuer => (is => 'ro', isa => 'Paws::LicenseManager::Issuer', required => 1); | ||
| 9 | has LicenseArn => (is => 'ro', isa => 'Str', 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 SourceVersion => (is => 'ro', isa => 'Str'); | ||
| 14 | has Status => (is => 'ro', isa => 'Str', required => 1); | ||
| 15 | has Validity => (is => 'ro', isa => 'Paws::LicenseManager::DatetimeRange', required => 1); | ||
| 16 | |||
| 17 | use MooseX::ClassAttribute; | ||
| 18 | |||
| 19 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLicenseVersion'); | ||
| 20 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LicenseManager::CreateLicenseVersionResponse'); | ||
| 21 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 22 | 1; | ||
| 23 | |||
| 24 | ### main pod documentation begin ### | ||
| 25 | |||
| 26 | =head1 NAME | ||
| 27 | |||
| 28 | Paws::LicenseManager::CreateLicenseVersion - Arguments for method CreateLicenseVersion on L<Paws::LicenseManager> | ||
| 29 | |||
| 30 | =head1 DESCRIPTION | ||
| 31 | |||
| 32 | This class represents the parameters used for calling the method CreateLicenseVersion on the | ||
| 33 | L<AWS License Manager|Paws::LicenseManager> service. Use the attributes of this class | ||
| 34 | as arguments to method CreateLicenseVersion. | ||
| 35 | |||
| 36 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLicenseVersion. | ||
| 37 | |||
| 38 | =head1 SYNOPSIS | ||
| 39 | |||
| 40 | my $license-manager = Paws->service('LicenseManager'); | ||
| 41 | my $CreateLicenseVersionResponse = $license -manager->CreateLicenseVersion( | ||
| 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 | LicenseArn => 'MyArn', | ||
| 73 | LicenseName => 'MyString', | ||
| 74 | ProductName => 'MyString', | ||
| 75 | Status => 'AVAILABLE', | ||
| 76 | Validity => { | ||
| 77 | Begin => 'MyISO8601DateTime', # max: 50 | ||
| 78 | End => 'MyISO8601DateTime', # max: 50 | ||
| 79 | }, | ||
| 80 | LicenseMetadata => [ | ||
| 81 | { | ||
| 82 | Name => 'MyString', | ||
| 83 | Value => 'MyString', | ||
| 84 | }, | ||
| 85 | ... | ||
| 86 | ], # OPTIONAL | ||
| 87 | SourceVersion => 'MyString', # OPTIONAL | ||
| 88 | ); | ||
| 89 | |||
| 90 | # Results: | ||
| 91 | my $LicenseArn = $CreateLicenseVersionResponse->LicenseArn; | ||
| 92 | my $Status = $CreateLicenseVersionResponse->Status; | ||
| 93 | my $Version = $CreateLicenseVersionResponse->Version; | ||
| 94 | |||
| 95 | # Returns a L<Paws::LicenseManager::CreateLicenseVersionResponse> object. | ||
| 96 | |||
| 97 | 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. | ||
| 98 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/license-manager/CreateLicenseVersion> | ||
| 99 | |||
| 100 | =head1 ATTRIBUTES | ||
| 101 | |||
| 102 | |||
| 103 | =head2 B<REQUIRED> ClientToken => Str | ||
| 104 | |||
| 105 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 106 | idempotency of the request. | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head2 B<REQUIRED> ConsumptionConfiguration => L<Paws::LicenseManager::ConsumptionConfiguration> | ||
| 111 | |||
| 112 | Configuration for consumption of the license. Choose a provisional | ||
| 113 | configuration for workloads running with continuous connectivity. | ||
| 114 | Choose a borrow configuration for workloads with offline usage. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 B<REQUIRED> Entitlements => ArrayRef[L<Paws::LicenseManager::Entitlement>] | ||
| 119 | |||
| 120 | License entitlements. | ||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | =head2 B<REQUIRED> HomeRegion => Str | ||
| 125 | |||
| 126 | Home Region of the license. | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | =head2 B<REQUIRED> Issuer => L<Paws::LicenseManager::Issuer> | ||
| 131 | |||
| 132 | License issuer. | ||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | =head2 B<REQUIRED> LicenseArn => Str | ||
| 137 | |||
| 138 | Amazon Resource Name (ARN) of the license. | ||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | =head2 LicenseMetadata => ArrayRef[L<Paws::LicenseManager::Metadata>] | ||
| 143 | |||
| 144 | Information about the license. | ||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | =head2 B<REQUIRED> LicenseName => Str | ||
| 149 | |||
| 150 | License name. | ||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | =head2 B<REQUIRED> ProductName => Str | ||
| 155 | |||
| 156 | Product name. | ||
| 157 | |||
| 158 | |||
| 159 | |||
| 160 | =head2 SourceVersion => Str | ||
| 161 | |||
| 162 | Current version of the license. | ||
| 163 | |||
| 164 | |||
| 165 | |||
| 166 | =head2 B<REQUIRED> Status => Str | ||
| 167 | |||
| 168 | License status. | ||
| 169 | |||
| 170 | Valid values are: C<"AVAILABLE">, C<"PENDING_AVAILABLE">, C<"DEACTIVATED">, C<"SUSPENDED">, C<"EXPIRED">, C<"PENDING_DELETE">, C<"DELETED"> | ||
| 171 | |||
| 172 | =head2 B<REQUIRED> Validity => L<Paws::LicenseManager::DatetimeRange> | ||
| 173 | |||
| 174 | Date and time range during which the license is valid, in ISO8601-UTC | ||
| 175 | format. | ||
| 176 | |||
| 177 | |||
| 178 | |||
| 179 | |||
| 180 | =head1 SEE ALSO | ||
| 181 | |||
| 182 | This class forms part of L<Paws>, documenting arguments for method CreateLicenseVersion in L<Paws::LicenseManager> | ||
| 183 | |||
| 184 | =head1 BUGS and CONTRIBUTIONS | ||
| 185 | |||
| 186 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 187 | |||
| 188 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 189 | |||
| 190 | =cut | ||
| 191 |