@aws-sdk/client-license-manager 3.303.0 → 3.306.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.
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +5 -1
- package/dist-cjs/protocols/Aws_json1_1.js +12 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +12 -0
- package/dist-types/LicenseManager.d.ts +8 -3
- package/dist-types/commands/CreateGrantCommand.d.ts +3 -1
- package/dist-types/commands/CreateGrantVersionCommand.d.ts +5 -1
- package/dist-types/commands/ListReceivedGrantsCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +82 -4
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +29 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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,6 +1,6 @@
|
|
|
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
5
|
exports.GrantStatus = {
|
|
6
6
|
ACTIVE: "ACTIVE",
|
|
@@ -111,6 +111,10 @@ class ValidationException extends LicenseManagerServiceException_1.LicenseManage
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
exports.ValidationException = ValidationException;
|
|
114
|
+
exports.ActivationOverrideBehavior = {
|
|
115
|
+
ALL_GRANTS_PERMITTED_BY_ISSUER: "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
116
|
+
DISTRIBUTED_GRANTS_ONLY: "DISTRIBUTED_GRANTS_ONLY",
|
|
117
|
+
};
|
|
114
118
|
exports.AllowedOperation = {
|
|
115
119
|
CHECKOUT_BORROW_LICENSE: "CheckoutBorrowLicense",
|
|
116
120
|
CHECKOUT_LICENSE: "CheckoutLicense",
|
|
@@ -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
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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;
|
|
@@ -101,6 +101,10 @@ export class ValidationException extends __BaseException {
|
|
|
101
101
|
this.Message = opts.Message;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
+
export const ActivationOverrideBehavior = {
|
|
105
|
+
ALL_GRANTS_PERMITTED_BY_ISSUER: "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
106
|
+
DISTRIBUTED_GRANTS_ONLY: "DISTRIBUTED_GRANTS_ONLY",
|
|
107
|
+
};
|
|
104
108
|
export const AllowedOperation = {
|
|
105
109
|
CHECKOUT_BORROW_LICENSE: "CheckoutBorrowLicense",
|
|
106
110
|
CHECKOUT_LICENSE: "CheckoutLicense",
|
|
@@ -3178,6 +3178,7 @@ const serializeAws_json1_1CreateGrantVersionRequest = (input, context) => {
|
|
|
3178
3178
|
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3179
3179
|
...(input.GrantArn != null && { GrantArn: input.GrantArn }),
|
|
3180
3180
|
...(input.GrantName != null && { GrantName: input.GrantName }),
|
|
3181
|
+
...(input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) }),
|
|
3181
3182
|
...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
|
|
3182
3183
|
...(input.Status != null && { Status: input.Status }),
|
|
3183
3184
|
...(input.StatusReason != null && { StatusReason: input.StatusReason }),
|
|
@@ -3608,6 +3609,11 @@ const serializeAws_json1_1MetadataList = (input, context) => {
|
|
|
3608
3609
|
return serializeAws_json1_1Metadata(entry, context);
|
|
3609
3610
|
});
|
|
3610
3611
|
};
|
|
3612
|
+
const serializeAws_json1_1Options = (input, context) => {
|
|
3613
|
+
return {
|
|
3614
|
+
...(input.ActivationOverrideBehavior != null && { ActivationOverrideBehavior: input.ActivationOverrideBehavior }),
|
|
3615
|
+
};
|
|
3616
|
+
};
|
|
3611
3617
|
const serializeAws_json1_1OrganizationConfiguration = (input, context) => {
|
|
3612
3618
|
return {
|
|
3613
3619
|
...(input.EnableIntegration != null && { EnableIntegration: input.EnableIntegration }),
|
|
@@ -4152,6 +4158,7 @@ const deserializeAws_json1_1Grant = (output, context) => {
|
|
|
4152
4158
|
GranteePrincipalArn: __expectString(output.GranteePrincipalArn),
|
|
4153
4159
|
HomeRegion: __expectString(output.HomeRegion),
|
|
4154
4160
|
LicenseArn: __expectString(output.LicenseArn),
|
|
4161
|
+
Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
|
|
4155
4162
|
ParentArn: __expectString(output.ParentArn),
|
|
4156
4163
|
StatusReason: __expectString(output.StatusReason),
|
|
4157
4164
|
Version: __expectString(output.Version),
|
|
@@ -4590,6 +4597,11 @@ const deserializeAws_json1_1NoEntitlementsAllowedException = (output, context) =
|
|
|
4590
4597
|
Message: __expectString(output.Message),
|
|
4591
4598
|
};
|
|
4592
4599
|
};
|
|
4600
|
+
const deserializeAws_json1_1Options = (output, context) => {
|
|
4601
|
+
return {
|
|
4602
|
+
ActivationOverrideBehavior: __expectString(output.ActivationOverrideBehavior),
|
|
4603
|
+
};
|
|
4604
|
+
};
|
|
4593
4605
|
const deserializeAws_json1_1OrganizationConfiguration = (output, context) => {
|
|
4594
4606
|
return {
|
|
4595
4607
|
EnableIntegration: __expectBoolean(output.EnableIntegration),
|
|
@@ -90,14 +90,17 @@ export declare class LicenseManager extends LicenseManagerClient {
|
|
|
90
90
|
checkoutLicense(args: CheckoutLicenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CheckoutLicenseCommandOutput) => void): void;
|
|
91
91
|
/**
|
|
92
92
|
* @public
|
|
93
|
-
* <p>Creates a grant for the specified license. A grant shares the use of license
|
|
93
|
+
* <p>Creates a grant for the specified license. A grant shares the use of license
|
|
94
|
+
* entitlements with a specific Amazon Web Services account, an organization, or an
|
|
95
|
+
* organizational unit (OU). For more information, see <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/granted-licenses.html">Granted licenses in License Manager</a> in the <i>License Manager User Guide</i>.</p>
|
|
94
96
|
*/
|
|
95
97
|
createGrant(args: CreateGrantCommandInput, options?: __HttpHandlerOptions): Promise<CreateGrantCommandOutput>;
|
|
96
98
|
createGrant(args: CreateGrantCommandInput, cb: (err: any, data?: CreateGrantCommandOutput) => void): void;
|
|
97
99
|
createGrant(args: CreateGrantCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGrantCommandOutput) => void): void;
|
|
98
100
|
/**
|
|
99
101
|
* @public
|
|
100
|
-
* <p>Creates a new version of the specified grant
|
|
102
|
+
* <p>Creates a new version of the specified grant. For more information, see
|
|
103
|
+
* <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/granted-licenses.html">Granted licenses in License Manager</a> in the <i>License Manager User Guide</i>.</p>
|
|
101
104
|
*/
|
|
102
105
|
createGrantVersion(args: CreateGrantVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateGrantVersionCommandOutput>;
|
|
103
106
|
createGrantVersion(args: CreateGrantVersionCommandInput, cb: (err: any, data?: CreateGrantVersionCommandOutput) => void): void;
|
|
@@ -322,7 +325,9 @@ export declare class LicenseManager extends LicenseManagerClient {
|
|
|
322
325
|
listLicenseVersions(args: ListLicenseVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLicenseVersionsCommandOutput) => void): void;
|
|
323
326
|
/**
|
|
324
327
|
* @public
|
|
325
|
-
* <p>Lists grants that are received
|
|
328
|
+
* <p>Lists grants that are received. Received grants are grants created while specifying the
|
|
329
|
+
* recipient as this Amazon Web Services account, your organization, or an organizational unit
|
|
330
|
+
* (OU) to which this member account belongs.</p>
|
|
326
331
|
*/
|
|
327
332
|
listReceivedGrants(args: ListReceivedGrantsCommandInput, options?: __HttpHandlerOptions): Promise<ListReceivedGrantsCommandOutput>;
|
|
328
333
|
listReceivedGrants(args: ListReceivedGrantsCommandInput, cb: (err: any, data?: ListReceivedGrantsCommandOutput) => void): void;
|
|
@@ -19,7 +19,9 @@ export interface CreateGrantCommandOutput extends CreateGrantResponse, __Metadat
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Creates a grant for the specified license. A grant shares the use of license
|
|
22
|
+
* <p>Creates a grant for the specified license. A grant shares the use of license
|
|
23
|
+
* entitlements with a specific Amazon Web Services account, an organization, or an
|
|
24
|
+
* organizational unit (OU). For more information, see <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/granted-licenses.html">Granted licenses in License Manager</a> in the <i>License Manager User Guide</i>.</p>
|
|
23
25
|
* @example
|
|
24
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
27
|
* ```javascript
|
|
@@ -19,7 +19,8 @@ export interface CreateGrantVersionCommandOutput extends CreateGrantVersionRespo
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Creates a new version of the specified grant
|
|
22
|
+
* <p>Creates a new version of the specified grant. For more information, see
|
|
23
|
+
* <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/granted-licenses.html">Granted licenses in License Manager</a> in the <i>License Manager User Guide</i>.</p>
|
|
23
24
|
* @example
|
|
24
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
26
|
* ```javascript
|
|
@@ -36,6 +37,9 @@ export interface CreateGrantVersionCommandOutput extends CreateGrantVersionRespo
|
|
|
36
37
|
* Status: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
37
38
|
* StatusReason: "STRING_VALUE",
|
|
38
39
|
* SourceVersion: "STRING_VALUE",
|
|
40
|
+
* Options: { // Options
|
|
41
|
+
* ActivationOverrideBehavior: "DISTRIBUTED_GRANTS_ONLY" || "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
42
|
+
* },
|
|
39
43
|
* };
|
|
40
44
|
* const command = new CreateGrantVersionCommand(input);
|
|
41
45
|
* const response = await client.send(command);
|
|
@@ -19,7 +19,9 @@ export interface ListReceivedGrantsCommandOutput extends ListReceivedGrantsRespo
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Lists grants that are received
|
|
22
|
+
* <p>Lists grants that are received. Received grants are grants created while specifying the
|
|
23
|
+
* recipient as this Amazon Web Services account, your organization, or an organizational unit
|
|
24
|
+
* (OU) to which this member account belongs.</p>
|
|
23
25
|
* @example
|
|
24
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
27
|
* ```javascript
|
|
@@ -137,6 +137,18 @@ export declare class ValidationException extends __BaseException {
|
|
|
137
137
|
*/
|
|
138
138
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @enum
|
|
143
|
+
*/
|
|
144
|
+
export declare const ActivationOverrideBehavior: {
|
|
145
|
+
readonly ALL_GRANTS_PERMITTED_BY_ISSUER: "ALL_GRANTS_PERMITTED_BY_ISSUER";
|
|
146
|
+
readonly DISTRIBUTED_GRANTS_ONLY: "DISTRIBUTED_GRANTS_ONLY";
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
export type ActivationOverrideBehavior = (typeof ActivationOverrideBehavior)[keyof typeof ActivationOverrideBehavior];
|
|
140
152
|
/**
|
|
141
153
|
* @public
|
|
142
154
|
* @enum
|
|
@@ -507,7 +519,23 @@ export interface CreateGrantRequest {
|
|
|
507
519
|
*/
|
|
508
520
|
LicenseArn: string | undefined;
|
|
509
521
|
/**
|
|
510
|
-
* <p>The grant principals.
|
|
522
|
+
* <p>The grant principals. You can specify one of the following as an Amazon Resource Name
|
|
523
|
+
* (ARN):</p>
|
|
524
|
+
* <ul>
|
|
525
|
+
* <li>
|
|
526
|
+
* <p>An Amazon Web Services account, which includes only the account specified.</p>
|
|
527
|
+
* </li>
|
|
528
|
+
* </ul>
|
|
529
|
+
* <ul>
|
|
530
|
+
* <li>
|
|
531
|
+
* <p>An organizational unit (OU), which includes all accounts in the OU.</p>
|
|
532
|
+
* </li>
|
|
533
|
+
* </ul>
|
|
534
|
+
* <ul>
|
|
535
|
+
* <li>
|
|
536
|
+
* <p>An organization, which will include all accounts across your organization.</p>
|
|
537
|
+
* </li>
|
|
538
|
+
* </ul>
|
|
511
539
|
*/
|
|
512
540
|
Principals: string[] | undefined;
|
|
513
541
|
/**
|
|
@@ -536,6 +564,48 @@ export interface CreateGrantResponse {
|
|
|
536
564
|
*/
|
|
537
565
|
Version?: string;
|
|
538
566
|
}
|
|
567
|
+
/**
|
|
568
|
+
* @public
|
|
569
|
+
* <p>The options you can specify when you create a new version of a grant, such as activation
|
|
570
|
+
* override behavior. For more information, see <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/granted-licenses.html">Granted licenses in License Manager</a> in the <i>License Manager User Guide</i>.</p>
|
|
571
|
+
*/
|
|
572
|
+
export interface Options {
|
|
573
|
+
/**
|
|
574
|
+
* <p>An activation option for your grant that determines the behavior of activating a grant.
|
|
575
|
+
* Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must specify the value of <code>ACTIVE</code> for the
|
|
576
|
+
* <code>Status</code> parameter.</p>
|
|
577
|
+
* <ul>
|
|
578
|
+
* <li>
|
|
579
|
+
* <p>As a license administrator, you can optionally specify an
|
|
580
|
+
* <code>ActivationOverrideBehavior</code> when activating a grant.</p>
|
|
581
|
+
* </li>
|
|
582
|
+
* <li>
|
|
583
|
+
* <p>As a grantor, you can optionally specify an
|
|
584
|
+
* <code>ActivationOverrideBehavior</code> when you activate a grant for a grantee
|
|
585
|
+
* account in your organization.</p>
|
|
586
|
+
* </li>
|
|
587
|
+
* <li>
|
|
588
|
+
* <p>As a grantee, if the grantor creating the distributed grant doesn’t specify an
|
|
589
|
+
* <code>ActivationOverrideBehavior</code>, you can optionally specify one when you
|
|
590
|
+
* are activating the grant.</p>
|
|
591
|
+
* </li>
|
|
592
|
+
* </ul>
|
|
593
|
+
* <dl>
|
|
594
|
+
* <dt>DISTRIBUTED_GRANTS_ONLY</dt>
|
|
595
|
+
* <dd>
|
|
596
|
+
* <p>Use this value to activate a grant without replacing any member account’s
|
|
597
|
+
* active grants for the same product.</p>
|
|
598
|
+
* </dd>
|
|
599
|
+
* <dt>ALL_GRANTS_PERMITTED_BY_ISSUER</dt>
|
|
600
|
+
* <dd>
|
|
601
|
+
* <p>Use this value to activate a grant and disable other active grants in any
|
|
602
|
+
* member accounts for the same product. This action will also replace their
|
|
603
|
+
* previously activated grants with this activated grant.</p>
|
|
604
|
+
* </dd>
|
|
605
|
+
* </dl>
|
|
606
|
+
*/
|
|
607
|
+
ActivationOverrideBehavior?: ActivationOverrideBehavior | string;
|
|
608
|
+
}
|
|
539
609
|
/**
|
|
540
610
|
* @public
|
|
541
611
|
*/
|
|
@@ -568,6 +638,10 @@ export interface CreateGrantVersionRequest {
|
|
|
568
638
|
* <p>Current version of the grant.</p>
|
|
569
639
|
*/
|
|
570
640
|
SourceVersion?: string;
|
|
641
|
+
/**
|
|
642
|
+
* <p>The options specified for the grant.</p>
|
|
643
|
+
*/
|
|
644
|
+
Options?: Options;
|
|
571
645
|
}
|
|
572
646
|
/**
|
|
573
647
|
* @public
|
|
@@ -1061,11 +1135,11 @@ export interface CreateLicenseConversionTaskForResourceRequest {
|
|
|
1061
1135
|
/**
|
|
1062
1136
|
* <p>Information that identifies the license type you are converting from.
|
|
1063
1137
|
*
|
|
1064
|
-
* For the structure of the source license, see <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert a license type using the
|
|
1138
|
+
* For the structure of the source license, see <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert a license type using the CLI </a> in the <i>License Manager User Guide</i>.</p>
|
|
1065
1139
|
*/
|
|
1066
1140
|
SourceLicenseContext: LicenseConversionContext | undefined;
|
|
1067
1141
|
/**
|
|
1068
|
-
* <p>Information that identifies the license type you are converting to. For the structure of the destination license, see <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert a license type using the
|
|
1142
|
+
* <p>Information that identifies the license type you are converting to. For the structure of the destination license, see <a href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert a license type using the CLI </a> in the <i>License Manager User Guide</i>.</p>
|
|
1069
1143
|
*/
|
|
1070
1144
|
DestinationLicenseContext: LicenseConversionContext | undefined;
|
|
1071
1145
|
}
|
|
@@ -1526,6 +1600,10 @@ export interface Grant {
|
|
|
1526
1600
|
* <p>Granted operations.</p>
|
|
1527
1601
|
*/
|
|
1528
1602
|
GrantedOperations: (AllowedOperation | string)[] | undefined;
|
|
1603
|
+
/**
|
|
1604
|
+
* <p>The options specified for the grant.</p>
|
|
1605
|
+
*/
|
|
1606
|
+
Options?: Options;
|
|
1529
1607
|
}
|
|
1530
1608
|
/**
|
|
1531
1609
|
* @public
|
|
@@ -2091,7 +2169,7 @@ export interface Filter {
|
|
|
2091
2169
|
*/
|
|
2092
2170
|
Name?: string;
|
|
2093
2171
|
/**
|
|
2094
|
-
* <p>
|
|
2172
|
+
* <p>The value of the filter, which is case-sensitive. You can only specify one value for the filter.</p>
|
|
2095
2173
|
*/
|
|
2096
2174
|
Values?: string[];
|
|
2097
2175
|
}
|
|
@@ -76,6 +76,12 @@ export declare class ValidationException extends __BaseException {
|
|
|
76
76
|
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
|
+
export declare const ActivationOverrideBehavior: {
|
|
80
|
+
readonly ALL_GRANTS_PERMITTED_BY_ISSUER: "ALL_GRANTS_PERMITTED_BY_ISSUER";
|
|
81
|
+
readonly DISTRIBUTED_GRANTS_ONLY: "DISTRIBUTED_GRANTS_ONLY";
|
|
82
|
+
};
|
|
83
|
+
export type ActivationOverrideBehavior =
|
|
84
|
+
(typeof ActivationOverrideBehavior)[keyof typeof ActivationOverrideBehavior];
|
|
79
85
|
export declare const AllowedOperation: {
|
|
80
86
|
readonly CHECKOUT_BORROW_LICENSE: "CheckoutBorrowLicense";
|
|
81
87
|
readonly CHECKOUT_LICENSE: "CheckoutLicense";
|
|
@@ -243,6 +249,9 @@ export interface CreateGrantResponse {
|
|
|
243
249
|
Status?: GrantStatus | string;
|
|
244
250
|
Version?: string;
|
|
245
251
|
}
|
|
252
|
+
export interface Options {
|
|
253
|
+
ActivationOverrideBehavior?: ActivationOverrideBehavior | string;
|
|
254
|
+
}
|
|
246
255
|
export interface CreateGrantVersionRequest {
|
|
247
256
|
ClientToken: string | undefined;
|
|
248
257
|
GrantArn: string | undefined;
|
|
@@ -251,6 +260,7 @@ export interface CreateGrantVersionRequest {
|
|
|
251
260
|
Status?: GrantStatus | string;
|
|
252
261
|
StatusReason?: string;
|
|
253
262
|
SourceVersion?: string;
|
|
263
|
+
Options?: Options;
|
|
254
264
|
}
|
|
255
265
|
export interface CreateGrantVersionResponse {
|
|
256
266
|
GrantArn?: string;
|
|
@@ -528,6 +538,7 @@ export interface Grant {
|
|
|
528
538
|
StatusReason?: string;
|
|
529
539
|
Version: string | undefined;
|
|
530
540
|
GrantedOperations: (AllowedOperation | string)[] | undefined;
|
|
541
|
+
Options?: Options;
|
|
531
542
|
}
|
|
532
543
|
export interface GetGrantResponse {
|
|
533
544
|
Grant?: Grant;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-license-manager",
|
|
3
3
|
"description": "AWS SDK for JavaScript License Manager Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.306.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.306.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.306.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.306.0",
|
|
44
|
+
"@aws-sdk/types": "3.306.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.303.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.306.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.306.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|