@aws-sdk/client-license-manager 3.301.0 → 3.305.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,19 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LicenseUsageException = exports.InvalidResourceStateException = exports.LicenseConfigurationStatus = exports.InventoryFilterCondition = exports.FailedDependencyException = exports.ReceivedStatus = exports.FilterLimitExceededException = exports.LicenseConversionTaskStatus = exports.ResourceType = exports.LicenseDeletionStatus = exports.TokenType = exports.ReportType = exports.ReportFrequencyType = exports.LicenseCountingType = exports.LicenseStatus = exports.EntitlementUnit = exports.RenewType = exports.CheckoutType = exports.UnsupportedDigitalSignatureMethodException = exports.RedirectException = exports.NoEntitlementsAllowedException = exports.EntitlementNotAllowedException = exports.EntitlementDataUnit = exports.DigitalSignatureMethod = exports.ResourceNotFoundException = exports.ConflictException = exports.AllowedOperation = exports.ValidationException = exports.ServerInternalException = exports.ResourceLimitExceededException = exports.RateLimitExceededException = exports.InvalidParameterValueException = exports.AuthorizationException = exports.AccessDeniedException = exports.GrantStatus = void 0;
3
+ exports.LicenseUsageException = exports.InvalidResourceStateException = exports.LicenseConfigurationStatus = exports.InventoryFilterCondition = exports.FailedDependencyException = exports.ReceivedStatus = exports.FilterLimitExceededException = exports.LicenseConversionTaskStatus = exports.ResourceType = exports.LicenseDeletionStatus = exports.TokenType = exports.ReportType = exports.ReportFrequencyType = exports.LicenseCountingType = exports.LicenseStatus = exports.EntitlementUnit = exports.RenewType = exports.CheckoutType = exports.UnsupportedDigitalSignatureMethodException = exports.RedirectException = exports.NoEntitlementsAllowedException = exports.EntitlementNotAllowedException = exports.EntitlementDataUnit = exports.DigitalSignatureMethod = exports.ResourceNotFoundException = exports.ConflictException = exports.AllowedOperation = exports.ActivationOverrideBehavior = exports.ValidationException = exports.ServerInternalException = exports.ResourceLimitExceededException = exports.RateLimitExceededException = exports.InvalidParameterValueException = exports.AuthorizationException = exports.AccessDeniedException = exports.GrantStatus = void 0;
4
4
  const LicenseManagerServiceException_1 = require("./LicenseManagerServiceException");
5
- var GrantStatus;
6
- (function (GrantStatus) {
7
- GrantStatus["ACTIVE"] = "ACTIVE";
8
- GrantStatus["DELETED"] = "DELETED";
9
- GrantStatus["DISABLED"] = "DISABLED";
10
- GrantStatus["FAILED_WORKFLOW"] = "FAILED_WORKFLOW";
11
- GrantStatus["PENDING_ACCEPT"] = "PENDING_ACCEPT";
12
- GrantStatus["PENDING_DELETE"] = "PENDING_DELETE";
13
- GrantStatus["PENDING_WORKFLOW"] = "PENDING_WORKFLOW";
14
- GrantStatus["REJECTED"] = "REJECTED";
15
- GrantStatus["WORKFLOW_COMPLETED"] = "WORKFLOW_COMPLETED";
16
- })(GrantStatus = exports.GrantStatus || (exports.GrantStatus = {}));
5
+ exports.GrantStatus = {
6
+ ACTIVE: "ACTIVE",
7
+ DELETED: "DELETED",
8
+ DISABLED: "DISABLED",
9
+ FAILED_WORKFLOW: "FAILED_WORKFLOW",
10
+ PENDING_ACCEPT: "PENDING_ACCEPT",
11
+ PENDING_DELETE: "PENDING_DELETE",
12
+ PENDING_WORKFLOW: "PENDING_WORKFLOW",
13
+ REJECTED: "REJECTED",
14
+ WORKFLOW_COMPLETED: "WORKFLOW_COMPLETED",
15
+ };
17
16
  class AccessDeniedException extends LicenseManagerServiceException_1.LicenseManagerServiceException {
18
17
  constructor(opts) {
19
18
  super({
@@ -112,16 +111,19 @@ class ValidationException extends LicenseManagerServiceException_1.LicenseManage
112
111
  }
113
112
  }
114
113
  exports.ValidationException = ValidationException;
115
- var AllowedOperation;
116
- (function (AllowedOperation) {
117
- AllowedOperation["CHECKOUT_BORROW_LICENSE"] = "CheckoutBorrowLicense";
118
- AllowedOperation["CHECKOUT_LICENSE"] = "CheckoutLicense";
119
- AllowedOperation["CHECK_IN_LICENSE"] = "CheckInLicense";
120
- AllowedOperation["CREATE_GRANT"] = "CreateGrant";
121
- AllowedOperation["CREATE_TOKEN"] = "CreateToken";
122
- AllowedOperation["EXTEND_CONSUMPTION_LICENSE"] = "ExtendConsumptionLicense";
123
- AllowedOperation["LIST_PURCHASED_LICENSES"] = "ListPurchasedLicenses";
124
- })(AllowedOperation = exports.AllowedOperation || (exports.AllowedOperation = {}));
114
+ exports.ActivationOverrideBehavior = {
115
+ ALL_GRANTS_PERMITTED_BY_ISSUER: "ALL_GRANTS_PERMITTED_BY_ISSUER",
116
+ DISTRIBUTED_GRANTS_ONLY: "DISTRIBUTED_GRANTS_ONLY",
117
+ };
118
+ exports.AllowedOperation = {
119
+ CHECKOUT_BORROW_LICENSE: "CheckoutBorrowLicense",
120
+ CHECKOUT_LICENSE: "CheckoutLicense",
121
+ CHECK_IN_LICENSE: "CheckInLicense",
122
+ CREATE_GRANT: "CreateGrant",
123
+ CREATE_TOKEN: "CreateToken",
124
+ EXTEND_CONSUMPTION_LICENSE: "ExtendConsumptionLicense",
125
+ LIST_PURCHASED_LICENSES: "ListPurchasedLicenses",
126
+ };
125
127
  class ConflictException extends LicenseManagerServiceException_1.LicenseManagerServiceException {
126
128
  constructor(opts) {
127
129
  super({
@@ -150,40 +152,38 @@ class ResourceNotFoundException extends LicenseManagerServiceException_1.License
150
152
  }
151
153
  }
152
154
  exports.ResourceNotFoundException = ResourceNotFoundException;
153
- var DigitalSignatureMethod;
154
- (function (DigitalSignatureMethod) {
155
- DigitalSignatureMethod["JWT_PS384"] = "JWT_PS384";
156
- })(DigitalSignatureMethod = exports.DigitalSignatureMethod || (exports.DigitalSignatureMethod = {}));
157
- var EntitlementDataUnit;
158
- (function (EntitlementDataUnit) {
159
- EntitlementDataUnit["BITS"] = "Bits";
160
- EntitlementDataUnit["BITS_PER_SECOND"] = "Bits/Second";
161
- EntitlementDataUnit["BYTES"] = "Bytes";
162
- EntitlementDataUnit["BYTES_PER_SECOND"] = "Bytes/Second";
163
- EntitlementDataUnit["COUNT"] = "Count";
164
- EntitlementDataUnit["COUNT_PER_SECOND"] = "Count/Second";
165
- EntitlementDataUnit["GIGABITS"] = "Gigabits";
166
- EntitlementDataUnit["GIGABITS_PER_SECOND"] = "Gigabits/Second";
167
- EntitlementDataUnit["GIGABYTES"] = "Gigabytes";
168
- EntitlementDataUnit["GIGABYTES_PER_SECOND"] = "Gigabytes/Second";
169
- EntitlementDataUnit["KILOBITS"] = "Kilobits";
170
- EntitlementDataUnit["KILOBITS_PER_SECOND"] = "Kilobits/Second";
171
- EntitlementDataUnit["KILOBYTES"] = "Kilobytes";
172
- EntitlementDataUnit["KILOBYTES_PER_SECOND"] = "Kilobytes/Second";
173
- EntitlementDataUnit["MEGABITS"] = "Megabits";
174
- EntitlementDataUnit["MEGABITS_PER_SECOND"] = "Megabits/Second";
175
- EntitlementDataUnit["MEGABYTES"] = "Megabytes";
176
- EntitlementDataUnit["MEGABYTES_PER_SECOND"] = "Megabytes/Second";
177
- EntitlementDataUnit["MICROSECONDS"] = "Microseconds";
178
- EntitlementDataUnit["MILLISECONDS"] = "Milliseconds";
179
- EntitlementDataUnit["NONE"] = "None";
180
- EntitlementDataUnit["PERCENT"] = "Percent";
181
- EntitlementDataUnit["SECONDS"] = "Seconds";
182
- EntitlementDataUnit["TERABITS"] = "Terabits";
183
- EntitlementDataUnit["TERABITS_PER_SECOND"] = "Terabits/Second";
184
- EntitlementDataUnit["TERABYTES"] = "Terabytes";
185
- EntitlementDataUnit["TERABYTES_PER_SECOND"] = "Terabytes/Second";
186
- })(EntitlementDataUnit = exports.EntitlementDataUnit || (exports.EntitlementDataUnit = {}));
155
+ exports.DigitalSignatureMethod = {
156
+ JWT_PS384: "JWT_PS384",
157
+ };
158
+ exports.EntitlementDataUnit = {
159
+ BITS: "Bits",
160
+ BITS_PER_SECOND: "Bits/Second",
161
+ BYTES: "Bytes",
162
+ BYTES_PER_SECOND: "Bytes/Second",
163
+ COUNT: "Count",
164
+ COUNT_PER_SECOND: "Count/Second",
165
+ GIGABITS: "Gigabits",
166
+ GIGABITS_PER_SECOND: "Gigabits/Second",
167
+ GIGABYTES: "Gigabytes",
168
+ GIGABYTES_PER_SECOND: "Gigabytes/Second",
169
+ KILOBITS: "Kilobits",
170
+ KILOBITS_PER_SECOND: "Kilobits/Second",
171
+ KILOBYTES: "Kilobytes",
172
+ KILOBYTES_PER_SECOND: "Kilobytes/Second",
173
+ MEGABITS: "Megabits",
174
+ MEGABITS_PER_SECOND: "Megabits/Second",
175
+ MEGABYTES: "Megabytes",
176
+ MEGABYTES_PER_SECOND: "Megabytes/Second",
177
+ MICROSECONDS: "Microseconds",
178
+ MILLISECONDS: "Milliseconds",
179
+ NONE: "None",
180
+ PERCENT: "Percent",
181
+ SECONDS: "Seconds",
182
+ TERABITS: "Terabits",
183
+ TERABITS_PER_SECOND: "Terabits/Second",
184
+ TERABYTES: "Terabytes",
185
+ TERABYTES_PER_SECOND: "Terabytes/Second",
186
+ };
187
187
  class EntitlementNotAllowedException extends LicenseManagerServiceException_1.LicenseManagerServiceException {
188
188
  constructor(opts) {
189
189
  super({
@@ -241,98 +241,87 @@ class UnsupportedDigitalSignatureMethodException extends LicenseManagerServiceEx
241
241
  }
242
242
  }
243
243
  exports.UnsupportedDigitalSignatureMethodException = UnsupportedDigitalSignatureMethodException;
244
- var CheckoutType;
245
- (function (CheckoutType) {
246
- CheckoutType["PERPETUAL"] = "PERPETUAL";
247
- CheckoutType["PROVISIONAL"] = "PROVISIONAL";
248
- })(CheckoutType = exports.CheckoutType || (exports.CheckoutType = {}));
249
- var RenewType;
250
- (function (RenewType) {
251
- RenewType["MONTHLY"] = "Monthly";
252
- RenewType["NONE"] = "None";
253
- RenewType["WEEKLY"] = "Weekly";
254
- })(RenewType = exports.RenewType || (exports.RenewType = {}));
255
- var EntitlementUnit;
256
- (function (EntitlementUnit) {
257
- EntitlementUnit["BITS"] = "Bits";
258
- EntitlementUnit["BITS_PER_SECOND"] = "Bits/Second";
259
- EntitlementUnit["BYTES"] = "Bytes";
260
- EntitlementUnit["BYTES_PER_SECOND"] = "Bytes/Second";
261
- EntitlementUnit["COUNT"] = "Count";
262
- EntitlementUnit["COUNT_PER_SECOND"] = "Count/Second";
263
- EntitlementUnit["GIGABITS"] = "Gigabits";
264
- EntitlementUnit["GIGABITS_PER_SECOND"] = "Gigabits/Second";
265
- EntitlementUnit["GIGABYTES"] = "Gigabytes";
266
- EntitlementUnit["GIGABYTES_PER_SECOND"] = "Gigabytes/Second";
267
- EntitlementUnit["KILOBITS"] = "Kilobits";
268
- EntitlementUnit["KILOBITS_PER_SECOND"] = "Kilobits/Second";
269
- EntitlementUnit["KILOBYTES"] = "Kilobytes";
270
- EntitlementUnit["KILOBYTES_PER_SECOND"] = "Kilobytes/Second";
271
- EntitlementUnit["MEGABITS"] = "Megabits";
272
- EntitlementUnit["MEGABITS_PER_SECOND"] = "Megabits/Second";
273
- EntitlementUnit["MEGABYTES"] = "Megabytes";
274
- EntitlementUnit["MEGABYTES_PER_SECOND"] = "Megabytes/Second";
275
- EntitlementUnit["MICROSECONDS"] = "Microseconds";
276
- EntitlementUnit["MILLISECONDS"] = "Milliseconds";
277
- EntitlementUnit["NONE"] = "None";
278
- EntitlementUnit["PERCENT"] = "Percent";
279
- EntitlementUnit["SECONDS"] = "Seconds";
280
- EntitlementUnit["TERABITS"] = "Terabits";
281
- EntitlementUnit["TERABITS_PER_SECOND"] = "Terabits/Second";
282
- EntitlementUnit["TERABYTES"] = "Terabytes";
283
- EntitlementUnit["TERABYTES_PER_SECOND"] = "Terabytes/Second";
284
- })(EntitlementUnit = exports.EntitlementUnit || (exports.EntitlementUnit = {}));
285
- var LicenseStatus;
286
- (function (LicenseStatus) {
287
- LicenseStatus["AVAILABLE"] = "AVAILABLE";
288
- LicenseStatus["DEACTIVATED"] = "DEACTIVATED";
289
- LicenseStatus["DELETED"] = "DELETED";
290
- LicenseStatus["EXPIRED"] = "EXPIRED";
291
- LicenseStatus["PENDING_AVAILABLE"] = "PENDING_AVAILABLE";
292
- LicenseStatus["PENDING_DELETE"] = "PENDING_DELETE";
293
- LicenseStatus["SUSPENDED"] = "SUSPENDED";
294
- })(LicenseStatus = exports.LicenseStatus || (exports.LicenseStatus = {}));
295
- var LicenseCountingType;
296
- (function (LicenseCountingType) {
297
- LicenseCountingType["CORE"] = "Core";
298
- LicenseCountingType["INSTANCE"] = "Instance";
299
- LicenseCountingType["SOCKET"] = "Socket";
300
- LicenseCountingType["VCPU"] = "vCPU";
301
- })(LicenseCountingType = exports.LicenseCountingType || (exports.LicenseCountingType = {}));
302
- var ReportFrequencyType;
303
- (function (ReportFrequencyType) {
304
- ReportFrequencyType["DAY"] = "DAY";
305
- ReportFrequencyType["MONTH"] = "MONTH";
306
- ReportFrequencyType["WEEK"] = "WEEK";
307
- })(ReportFrequencyType = exports.ReportFrequencyType || (exports.ReportFrequencyType = {}));
308
- var ReportType;
309
- (function (ReportType) {
310
- ReportType["LICENSE_CONFIGURATION_SUMMARY_REPORT"] = "LicenseConfigurationSummaryReport";
311
- ReportType["LICENSE_CONFIGURATION_USAGE_REPORT"] = "LicenseConfigurationUsageReport";
312
- })(ReportType = exports.ReportType || (exports.ReportType = {}));
313
- var TokenType;
314
- (function (TokenType) {
315
- TokenType["REFRESH_TOKEN"] = "REFRESH_TOKEN";
316
- })(TokenType = exports.TokenType || (exports.TokenType = {}));
317
- var LicenseDeletionStatus;
318
- (function (LicenseDeletionStatus) {
319
- LicenseDeletionStatus["DELETED"] = "DELETED";
320
- LicenseDeletionStatus["PENDING_DELETE"] = "PENDING_DELETE";
321
- })(LicenseDeletionStatus = exports.LicenseDeletionStatus || (exports.LicenseDeletionStatus = {}));
322
- var ResourceType;
323
- (function (ResourceType) {
324
- ResourceType["EC2_AMI"] = "EC2_AMI";
325
- ResourceType["EC2_HOST"] = "EC2_HOST";
326
- ResourceType["EC2_INSTANCE"] = "EC2_INSTANCE";
327
- ResourceType["RDS"] = "RDS";
328
- ResourceType["SYSTEMS_MANAGER_MANAGED_INSTANCE"] = "SYSTEMS_MANAGER_MANAGED_INSTANCE";
329
- })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
330
- var LicenseConversionTaskStatus;
331
- (function (LicenseConversionTaskStatus) {
332
- LicenseConversionTaskStatus["FAILED"] = "FAILED";
333
- LicenseConversionTaskStatus["IN_PROGRESS"] = "IN_PROGRESS";
334
- LicenseConversionTaskStatus["SUCCEEDED"] = "SUCCEEDED";
335
- })(LicenseConversionTaskStatus = exports.LicenseConversionTaskStatus || (exports.LicenseConversionTaskStatus = {}));
244
+ exports.CheckoutType = {
245
+ PERPETUAL: "PERPETUAL",
246
+ PROVISIONAL: "PROVISIONAL",
247
+ };
248
+ exports.RenewType = {
249
+ MONTHLY: "Monthly",
250
+ NONE: "None",
251
+ WEEKLY: "Weekly",
252
+ };
253
+ exports.EntitlementUnit = {
254
+ BITS: "Bits",
255
+ BITS_PER_SECOND: "Bits/Second",
256
+ BYTES: "Bytes",
257
+ BYTES_PER_SECOND: "Bytes/Second",
258
+ COUNT: "Count",
259
+ COUNT_PER_SECOND: "Count/Second",
260
+ GIGABITS: "Gigabits",
261
+ GIGABITS_PER_SECOND: "Gigabits/Second",
262
+ GIGABYTES: "Gigabytes",
263
+ GIGABYTES_PER_SECOND: "Gigabytes/Second",
264
+ KILOBITS: "Kilobits",
265
+ KILOBITS_PER_SECOND: "Kilobits/Second",
266
+ KILOBYTES: "Kilobytes",
267
+ KILOBYTES_PER_SECOND: "Kilobytes/Second",
268
+ MEGABITS: "Megabits",
269
+ MEGABITS_PER_SECOND: "Megabits/Second",
270
+ MEGABYTES: "Megabytes",
271
+ MEGABYTES_PER_SECOND: "Megabytes/Second",
272
+ MICROSECONDS: "Microseconds",
273
+ MILLISECONDS: "Milliseconds",
274
+ NONE: "None",
275
+ PERCENT: "Percent",
276
+ SECONDS: "Seconds",
277
+ TERABITS: "Terabits",
278
+ TERABITS_PER_SECOND: "Terabits/Second",
279
+ TERABYTES: "Terabytes",
280
+ TERABYTES_PER_SECOND: "Terabytes/Second",
281
+ };
282
+ exports.LicenseStatus = {
283
+ AVAILABLE: "AVAILABLE",
284
+ DEACTIVATED: "DEACTIVATED",
285
+ DELETED: "DELETED",
286
+ EXPIRED: "EXPIRED",
287
+ PENDING_AVAILABLE: "PENDING_AVAILABLE",
288
+ PENDING_DELETE: "PENDING_DELETE",
289
+ SUSPENDED: "SUSPENDED",
290
+ };
291
+ exports.LicenseCountingType = {
292
+ CORE: "Core",
293
+ INSTANCE: "Instance",
294
+ SOCKET: "Socket",
295
+ VCPU: "vCPU",
296
+ };
297
+ exports.ReportFrequencyType = {
298
+ DAY: "DAY",
299
+ MONTH: "MONTH",
300
+ WEEK: "WEEK",
301
+ };
302
+ exports.ReportType = {
303
+ LICENSE_CONFIGURATION_SUMMARY_REPORT: "LicenseConfigurationSummaryReport",
304
+ LICENSE_CONFIGURATION_USAGE_REPORT: "LicenseConfigurationUsageReport",
305
+ };
306
+ exports.TokenType = {
307
+ REFRESH_TOKEN: "REFRESH_TOKEN",
308
+ };
309
+ exports.LicenseDeletionStatus = {
310
+ DELETED: "DELETED",
311
+ PENDING_DELETE: "PENDING_DELETE",
312
+ };
313
+ exports.ResourceType = {
314
+ EC2_AMI: "EC2_AMI",
315
+ EC2_HOST: "EC2_HOST",
316
+ EC2_INSTANCE: "EC2_INSTANCE",
317
+ RDS: "RDS",
318
+ SYSTEMS_MANAGER_MANAGED_INSTANCE: "SYSTEMS_MANAGER_MANAGED_INSTANCE",
319
+ };
320
+ exports.LicenseConversionTaskStatus = {
321
+ FAILED: "FAILED",
322
+ IN_PROGRESS: "IN_PROGRESS",
323
+ SUCCEEDED: "SUCCEEDED",
324
+ };
336
325
  class FilterLimitExceededException extends LicenseManagerServiceException_1.LicenseManagerServiceException {
337
326
  constructor(opts) {
338
327
  super({
@@ -347,17 +336,16 @@ class FilterLimitExceededException extends LicenseManagerServiceException_1.Lice
347
336
  }
348
337
  }
349
338
  exports.FilterLimitExceededException = FilterLimitExceededException;
350
- var ReceivedStatus;
351
- (function (ReceivedStatus) {
352
- ReceivedStatus["ACTIVE"] = "ACTIVE";
353
- ReceivedStatus["DELETED"] = "DELETED";
354
- ReceivedStatus["DISABLED"] = "DISABLED";
355
- ReceivedStatus["FAILED_WORKFLOW"] = "FAILED_WORKFLOW";
356
- ReceivedStatus["PENDING_ACCEPT"] = "PENDING_ACCEPT";
357
- ReceivedStatus["PENDING_WORKFLOW"] = "PENDING_WORKFLOW";
358
- ReceivedStatus["REJECTED"] = "REJECTED";
359
- ReceivedStatus["WORKFLOW_COMPLETED"] = "WORKFLOW_COMPLETED";
360
- })(ReceivedStatus = exports.ReceivedStatus || (exports.ReceivedStatus = {}));
339
+ exports.ReceivedStatus = {
340
+ ACTIVE: "ACTIVE",
341
+ DELETED: "DELETED",
342
+ DISABLED: "DISABLED",
343
+ FAILED_WORKFLOW: "FAILED_WORKFLOW",
344
+ PENDING_ACCEPT: "PENDING_ACCEPT",
345
+ PENDING_WORKFLOW: "PENDING_WORKFLOW",
346
+ REJECTED: "REJECTED",
347
+ WORKFLOW_COMPLETED: "WORKFLOW_COMPLETED",
348
+ };
361
349
  class FailedDependencyException extends LicenseManagerServiceException_1.LicenseManagerServiceException {
362
350
  constructor(opts) {
363
351
  super({
@@ -373,18 +361,16 @@ class FailedDependencyException extends LicenseManagerServiceException_1.License
373
361
  }
374
362
  }
375
363
  exports.FailedDependencyException = FailedDependencyException;
376
- var InventoryFilterCondition;
377
- (function (InventoryFilterCondition) {
378
- InventoryFilterCondition["BEGINS_WITH"] = "BEGINS_WITH";
379
- InventoryFilterCondition["CONTAINS"] = "CONTAINS";
380
- InventoryFilterCondition["EQUALS"] = "EQUALS";
381
- InventoryFilterCondition["NOT_EQUALS"] = "NOT_EQUALS";
382
- })(InventoryFilterCondition = exports.InventoryFilterCondition || (exports.InventoryFilterCondition = {}));
383
- var LicenseConfigurationStatus;
384
- (function (LicenseConfigurationStatus) {
385
- LicenseConfigurationStatus["AVAILABLE"] = "AVAILABLE";
386
- LicenseConfigurationStatus["DISABLED"] = "DISABLED";
387
- })(LicenseConfigurationStatus = exports.LicenseConfigurationStatus || (exports.LicenseConfigurationStatus = {}));
364
+ exports.InventoryFilterCondition = {
365
+ BEGINS_WITH: "BEGINS_WITH",
366
+ CONTAINS: "CONTAINS",
367
+ EQUALS: "EQUALS",
368
+ NOT_EQUALS: "NOT_EQUALS",
369
+ };
370
+ exports.LicenseConfigurationStatus = {
371
+ AVAILABLE: "AVAILABLE",
372
+ DISABLED: "DISABLED",
373
+ };
388
374
  class InvalidResourceStateException extends LicenseManagerServiceException_1.LicenseManagerServiceException {
389
375
  constructor(opts) {
390
376
  super({
@@ -3282,6 +3282,7 @@ const serializeAws_json1_1CreateGrantVersionRequest = (input, context) => {
3282
3282
  ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3283
3283
  ...(input.GrantArn != null && { GrantArn: input.GrantArn }),
3284
3284
  ...(input.GrantName != null && { GrantName: input.GrantName }),
3285
+ ...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
3285
3286
  ...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
3286
3287
  ...(input.Status != null && { Status: input.Status }),
3287
3288
  ...(input.StatusReason != null && { StatusReason: input.StatusReason }),
@@ -3712,6 +3713,11 @@ const serializeAws_json1_1MetadataList = (input, context) => {
3712
3713
  return serializeAws_json1_1Metadata(entry, context);
3713
3714
  });
3714
3715
  };
3716
+ const serializeAws_json1_1Options = (input, context) => {
3717
+ return {
3718
+ ...(input.ActivationOverrideBehavior != null && { ActivationOverrideBehavior: input.ActivationOverrideBehavior }),
3719
+ };
3720
+ };
3715
3721
  const serializeAws_json1_1OrganizationConfiguration = (input, context) => {
3716
3722
  return {
3717
3723
  ...(input.EnableIntegration != null && { EnableIntegration: input.EnableIntegration }),
@@ -4256,6 +4262,7 @@ const deserializeAws_json1_1Grant = (output, context) => {
4256
4262
  GranteePrincipalArn: (0, smithy_client_1.expectString)(output.GranteePrincipalArn),
4257
4263
  HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
4258
4264
  LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
4265
+ Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
4259
4266
  ParentArn: (0, smithy_client_1.expectString)(output.ParentArn),
4260
4267
  StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
4261
4268
  Version: (0, smithy_client_1.expectString)(output.Version),
@@ -4694,6 +4701,11 @@ const deserializeAws_json1_1NoEntitlementsAllowedException = (output, context) =
4694
4701
  Message: (0, smithy_client_1.expectString)(output.Message),
4695
4702
  };
4696
4703
  };
4704
+ const deserializeAws_json1_1Options = (output, context) => {
4705
+ return {
4706
+ ActivationOverrideBehavior: (0, smithy_client_1.expectString)(output.ActivationOverrideBehavior),
4707
+ };
4708
+ };
4697
4709
  const deserializeAws_json1_1OrganizationConfiguration = (output, context) => {
4698
4710
  return {
4699
4711
  EnableIntegration: (0, smithy_client_1.expectBoolean)(output.EnableIntegration),
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://license-manager.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;