@aws-sdk/client-license-manager 3.1156.0 → 3.1158.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/index.js +17 -9
- package/dist-es/models/enums.js +5 -0
- package/dist-es/schemas/schemas_0.js +10 -8
- package/dist-types/commands/CreateGrantCommand.d.ts +27 -1
- package/dist-types/commands/CreateGrantVersionCommand.d.ts +2 -1
- package/dist-types/commands/GetGrantCommand.d.ts +3 -1
- package/dist-types/commands/ListDistributedGrantsCommand.d.ts +3 -1
- package/dist-types/commands/ListReceivedGrantsCommand.d.ts +3 -1
- package/dist-types/commands/ListReceivedGrantsForOrganizationCommand.d.ts +3 -1
- package/dist-types/commands/ListReceivedLicensesCommand.d.ts +2 -1
- package/dist-types/commands/ListReceivedLicensesForOrganizationCommand.d.ts +2 -1
- package/dist-types/models/enums.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +114 -44
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +9 -3
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1157.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -505,6 +505,7 @@ const _DLR = "DeleteLicenseRequest";
|
|
|
505
505
|
const _DLRe = "DeleteLicenseResponse";
|
|
506
506
|
const _DR = "DatetimeRange";
|
|
507
507
|
const _DRr = "DryRun";
|
|
508
|
+
const _DS = "DesiredStatus";
|
|
508
509
|
const _DSM = "DigitalSignatureMethod";
|
|
509
510
|
const _DT = "DeleteToken";
|
|
510
511
|
const _DTR = "DeleteTokenRequest";
|
|
@@ -580,6 +581,7 @@ const _GS = "GrantStatus";
|
|
|
580
581
|
const _GSS = "GetServiceSettings";
|
|
581
582
|
const _GSSR = "GetServiceSettingsRequest";
|
|
582
583
|
const _GSSRe = "GetServiceSettingsResponse";
|
|
584
|
+
const _GT = "GrantType";
|
|
583
585
|
const _Gr = "Grants";
|
|
584
586
|
const _HI = "HostId";
|
|
585
587
|
const _HR = "HomeRegion";
|
|
@@ -1062,8 +1064,8 @@ var ConsumptionConfiguration$ = [3, n0, _CC,
|
|
|
1062
1064
|
];
|
|
1063
1065
|
var CreateGrantRequest$ = [3, n0, _CGR,
|
|
1064
1066
|
0,
|
|
1065
|
-
[_CT, _GN, _LA, _P, _HR, _AO, _T],
|
|
1066
|
-
[0, 0, 0, 64 | 0, 0, 64 | 0, () => TagList], 6
|
|
1067
|
+
[_CT, _GN, _LA, _P, _HR, _AO, _T, _GT, _O],
|
|
1068
|
+
[0, 0, 0, 64 | 0, 0, 64 | 0, () => TagList, 0, () => Options$], 6
|
|
1067
1069
|
];
|
|
1068
1070
|
var CreateGrantResponse$ = [3, n0, _CGRr,
|
|
1069
1071
|
0,
|
|
@@ -1377,8 +1379,8 @@ var GetServiceSettingsResponse$ = [3, n0, _GSSRe,
|
|
|
1377
1379
|
];
|
|
1378
1380
|
var Grant$ = [3, n0, _G,
|
|
1379
1381
|
0,
|
|
1380
|
-
[_GA, _GN, _PA, _LA, _GPA, _HR, _GS, _V, _GO, _SR, _O],
|
|
1381
|
-
[0, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 0, () => Options
|
|
1382
|
+
[_GA, _GN, _PA, _LA, _GPA, _HR, _GS, _V, _GO, _SR, _O, _GT],
|
|
1383
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 0, () => Options$, 0], 9
|
|
1382
1384
|
];
|
|
1383
1385
|
var GrantedLicense$ = [3, n0, _GL,
|
|
1384
1386
|
0,
|
|
@@ -1712,8 +1714,8 @@ var Metadata$ = [3, n0, _Me,
|
|
|
1712
1714
|
];
|
|
1713
1715
|
var Options$ = [3, n0, _O,
|
|
1714
1716
|
0,
|
|
1715
|
-
[_AOB],
|
|
1716
|
-
[0]
|
|
1717
|
+
[_AOB, _DS],
|
|
1718
|
+
[0, 0]
|
|
1717
1719
|
];
|
|
1718
1720
|
var OrganizationConfiguration$ = [3, n0, _OC,
|
|
1719
1721
|
0,
|
|
@@ -1747,8 +1749,8 @@ var ProvisionalConfiguration$ = [3, n0, _PC,
|
|
|
1747
1749
|
];
|
|
1748
1750
|
var ReceivedMetadata$ = [3, n0, _RM,
|
|
1749
1751
|
0,
|
|
1750
|
-
[_RSec, _RSR, _AO],
|
|
1751
|
-
[0, 0, 64 | 0]
|
|
1752
|
+
[_RSec, _RSR, _AO, _GT],
|
|
1753
|
+
[0, 0, 64 | 0, 0]
|
|
1752
1754
|
];
|
|
1753
1755
|
var RegionStatus$ = [3, n0, _RSeg,
|
|
1754
1756
|
0,
|
|
@@ -2618,6 +2620,7 @@ const AllowedOperation = {
|
|
|
2618
2620
|
CREATE_TOKEN: "CreateToken",
|
|
2619
2621
|
EXTEND_CONSUMPTION_LICENSE: "ExtendConsumptionLicense",
|
|
2620
2622
|
LIST_PURCHASED_LICENSES: "ListPurchasedLicenses",
|
|
2623
|
+
LIST_RECEIVED_LICENSES: "ListReceivedLicenses",
|
|
2621
2624
|
};
|
|
2622
2625
|
const DigitalSignatureMethod = {
|
|
2623
2626
|
JWT_PS384: "JWT_PS384",
|
|
@@ -2655,6 +2658,10 @@ const CheckoutType = {
|
|
|
2655
2658
|
PERPETUAL: "PERPETUAL",
|
|
2656
2659
|
PROVISIONAL: "PROVISIONAL",
|
|
2657
2660
|
};
|
|
2661
|
+
const GrantType = {
|
|
2662
|
+
BUYER_GRANT: "BuyerGrant",
|
|
2663
|
+
DELEGATE_GRANT: "DelegateGrant",
|
|
2664
|
+
};
|
|
2658
2665
|
const RenewType = {
|
|
2659
2666
|
MONTHLY: "Monthly",
|
|
2660
2667
|
NONE: "None",
|
|
@@ -2924,6 +2931,7 @@ exports.GetServiceSettingsRequest$ = GetServiceSettingsRequest$;
|
|
|
2924
2931
|
exports.GetServiceSettingsResponse$ = GetServiceSettingsResponse$;
|
|
2925
2932
|
exports.Grant$ = Grant$;
|
|
2926
2933
|
exports.GrantStatus = GrantStatus;
|
|
2934
|
+
exports.GrantType = GrantType;
|
|
2927
2935
|
exports.GrantedLicense$ = GrantedLicense$;
|
|
2928
2936
|
exports.InstanceRuleStatement$ = InstanceRuleStatement$;
|
|
2929
2937
|
exports.InvalidParameterValueException = InvalidParameterValueException;
|
package/dist-es/models/enums.js
CHANGED
|
@@ -21,6 +21,7 @@ export const AllowedOperation = {
|
|
|
21
21
|
CREATE_TOKEN: "CreateToken",
|
|
22
22
|
EXTEND_CONSUMPTION_LICENSE: "ExtendConsumptionLicense",
|
|
23
23
|
LIST_PURCHASED_LICENSES: "ListPurchasedLicenses",
|
|
24
|
+
LIST_RECEIVED_LICENSES: "ListReceivedLicenses",
|
|
24
25
|
};
|
|
25
26
|
export const DigitalSignatureMethod = {
|
|
26
27
|
JWT_PS384: "JWT_PS384",
|
|
@@ -58,6 +59,10 @@ export const CheckoutType = {
|
|
|
58
59
|
PERPETUAL: "PERPETUAL",
|
|
59
60
|
PROVISIONAL: "PROVISIONAL",
|
|
60
61
|
};
|
|
62
|
+
export const GrantType = {
|
|
63
|
+
BUYER_GRANT: "BuyerGrant",
|
|
64
|
+
DELEGATE_GRANT: "DelegateGrant",
|
|
65
|
+
};
|
|
61
66
|
export const RenewType = {
|
|
62
67
|
MONTHLY: "Monthly",
|
|
63
68
|
NONE: "None",
|
|
@@ -104,6 +104,7 @@ const _DLR = "DeleteLicenseRequest";
|
|
|
104
104
|
const _DLRe = "DeleteLicenseResponse";
|
|
105
105
|
const _DR = "DatetimeRange";
|
|
106
106
|
const _DRr = "DryRun";
|
|
107
|
+
const _DS = "DesiredStatus";
|
|
107
108
|
const _DSM = "DigitalSignatureMethod";
|
|
108
109
|
const _DT = "DeleteToken";
|
|
109
110
|
const _DTR = "DeleteTokenRequest";
|
|
@@ -179,6 +180,7 @@ const _GS = "GrantStatus";
|
|
|
179
180
|
const _GSS = "GetServiceSettings";
|
|
180
181
|
const _GSSR = "GetServiceSettingsRequest";
|
|
181
182
|
const _GSSRe = "GetServiceSettingsResponse";
|
|
183
|
+
const _GT = "GrantType";
|
|
182
184
|
const _Gr = "Grants";
|
|
183
185
|
const _HI = "HostId";
|
|
184
186
|
const _HR = "HomeRegion";
|
|
@@ -664,8 +666,8 @@ export var ConsumptionConfiguration$ = [3, n0, _CC,
|
|
|
664
666
|
];
|
|
665
667
|
export var CreateGrantRequest$ = [3, n0, _CGR,
|
|
666
668
|
0,
|
|
667
|
-
[_CT, _GN, _LA, _P, _HR, _AO, _T],
|
|
668
|
-
[0, 0, 0, 64 | 0, 0, 64 | 0, () => TagList], 6
|
|
669
|
+
[_CT, _GN, _LA, _P, _HR, _AO, _T, _GT, _O],
|
|
670
|
+
[0, 0, 0, 64 | 0, 0, 64 | 0, () => TagList, 0, () => Options$], 6
|
|
669
671
|
];
|
|
670
672
|
export var CreateGrantResponse$ = [3, n0, _CGRr,
|
|
671
673
|
0,
|
|
@@ -979,8 +981,8 @@ export var GetServiceSettingsResponse$ = [3, n0, _GSSRe,
|
|
|
979
981
|
];
|
|
980
982
|
export var Grant$ = [3, n0, _G,
|
|
981
983
|
0,
|
|
982
|
-
[_GA, _GN, _PA, _LA, _GPA, _HR, _GS, _V, _GO, _SR, _O],
|
|
983
|
-
[0, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 0, () => Options
|
|
984
|
+
[_GA, _GN, _PA, _LA, _GPA, _HR, _GS, _V, _GO, _SR, _O, _GT],
|
|
985
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 0, () => Options$, 0], 9
|
|
984
986
|
];
|
|
985
987
|
export var GrantedLicense$ = [3, n0, _GL,
|
|
986
988
|
0,
|
|
@@ -1314,8 +1316,8 @@ export var Metadata$ = [3, n0, _Me,
|
|
|
1314
1316
|
];
|
|
1315
1317
|
export var Options$ = [3, n0, _O,
|
|
1316
1318
|
0,
|
|
1317
|
-
[_AOB],
|
|
1318
|
-
[0]
|
|
1319
|
+
[_AOB, _DS],
|
|
1320
|
+
[0, 0]
|
|
1319
1321
|
];
|
|
1320
1322
|
export var OrganizationConfiguration$ = [3, n0, _OC,
|
|
1321
1323
|
0,
|
|
@@ -1349,8 +1351,8 @@ export var ProvisionalConfiguration$ = [3, n0, _PC,
|
|
|
1349
1351
|
];
|
|
1350
1352
|
export var ReceivedMetadata$ = [3, n0, _RM,
|
|
1351
1353
|
0,
|
|
1352
|
-
[_RSec, _RSR, _AO],
|
|
1353
|
-
[0, 0, 64 | 0]
|
|
1354
|
+
[_RSec, _RSR, _AO, _GT],
|
|
1355
|
+
[0, 0, 64 | 0, 0]
|
|
1354
1356
|
];
|
|
1355
1357
|
export var RegionStatus$ = [3, n0, _RSeg,
|
|
1356
1358
|
0,
|
|
@@ -27,6 +27,27 @@ declare const CreateGrantCommand_base: {
|
|
|
27
27
|
* <p>Creates a grant for the specified license. A grant shares the use of license
|
|
28
28
|
* entitlements with a specific Amazon Web Services account, an organization, or an
|
|
29
29
|
* 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>
|
|
30
|
+
* <p>Set the type of grant with the <code>GrantType</code> field:</p>
|
|
31
|
+
* <ul>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>
|
|
34
|
+
* <code>BuyerGrant</code> - The default grant type, created by the seller when a
|
|
35
|
+
* customer subscribes to a product. The seller creates a license for the subscription
|
|
36
|
+
* and a buyer grant for the customer. With a buyer grant, the customer can use,
|
|
37
|
+
* consume, and distribute the license, according to the permissions the seller sets in
|
|
38
|
+
* the product contract.</p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>
|
|
42
|
+
* <code>DelegateGrant</code> - A delegate grant gives the grantee read-only
|
|
43
|
+
* visibility into the licenses and grants that you have distributed to buyers for a
|
|
44
|
+
* product. The grantee can monitor that activity on your behalf, and can also listen
|
|
45
|
+
* for the related Amazon EventBridge events. A delegate grant conveys no entitlement to
|
|
46
|
+
* use the licenses, and its only allowed operation is <code>ListReceivedLicenses</code>.
|
|
47
|
+
* You must create the delegate grant, and its license, from the same
|
|
48
|
+
* Amazon Web Services account that you used to create those buyer licenses and grants.</p>
|
|
49
|
+
* </li>
|
|
50
|
+
* </ul>
|
|
30
51
|
* @example
|
|
31
52
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
53
|
* ```javascript
|
|
@@ -44,7 +65,7 @@ declare const CreateGrantCommand_base: {
|
|
|
44
65
|
* ],
|
|
45
66
|
* HomeRegion: "STRING_VALUE", // required
|
|
46
67
|
* AllowedOperations: [ // AllowedOperationList // required
|
|
47
|
-
* "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
68
|
+
* "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
48
69
|
* ],
|
|
49
70
|
* Tags: [ // TagList
|
|
50
71
|
* { // Tag
|
|
@@ -52,6 +73,11 @@ declare const CreateGrantCommand_base: {
|
|
|
52
73
|
* Value: "STRING_VALUE",
|
|
53
74
|
* },
|
|
54
75
|
* ],
|
|
76
|
+
* GrantType: "BuyerGrant" || "DelegateGrant",
|
|
77
|
+
* Options: { // Options
|
|
78
|
+
* ActivationOverrideBehavior: "DISTRIBUTED_GRANTS_ONLY" || "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
79
|
+
* DesiredStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
80
|
+
* },
|
|
55
81
|
* };
|
|
56
82
|
* const command = new CreateGrantCommand(input);
|
|
57
83
|
* const response = await client.send(command);
|
|
@@ -39,13 +39,14 @@ declare const CreateGrantVersionCommand_base: {
|
|
|
39
39
|
* GrantArn: "STRING_VALUE", // required
|
|
40
40
|
* GrantName: "STRING_VALUE",
|
|
41
41
|
* AllowedOperations: [ // AllowedOperationList
|
|
42
|
-
* "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
42
|
+
* "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
43
43
|
* ],
|
|
44
44
|
* Status: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
45
45
|
* StatusReason: "STRING_VALUE",
|
|
46
46
|
* SourceVersion: "STRING_VALUE",
|
|
47
47
|
* Options: { // Options
|
|
48
48
|
* ActivationOverrideBehavior: "DISTRIBUTED_GRANTS_ONLY" || "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
49
|
+
* DesiredStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
49
50
|
* },
|
|
50
51
|
* };
|
|
51
52
|
* const command = new CreateGrantVersionCommand(input);
|
|
@@ -51,11 +51,13 @@ declare const GetGrantCommand_base: {
|
|
|
51
51
|
* // StatusReason: "STRING_VALUE",
|
|
52
52
|
* // Version: "STRING_VALUE", // required
|
|
53
53
|
* // GrantedOperations: [ // AllowedOperationList // required
|
|
54
|
-
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
54
|
+
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
55
55
|
* // ],
|
|
56
56
|
* // Options: { // Options
|
|
57
57
|
* // ActivationOverrideBehavior: "DISTRIBUTED_GRANTS_ONLY" || "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
58
|
+
* // DesiredStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
58
59
|
* // },
|
|
60
|
+
* // GrantType: "BuyerGrant" || "DelegateGrant",
|
|
59
61
|
* // },
|
|
60
62
|
* // };
|
|
61
63
|
*
|
|
@@ -63,11 +63,13 @@ declare const ListDistributedGrantsCommand_base: {
|
|
|
63
63
|
* // StatusReason: "STRING_VALUE",
|
|
64
64
|
* // Version: "STRING_VALUE", // required
|
|
65
65
|
* // GrantedOperations: [ // AllowedOperationList // required
|
|
66
|
-
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
66
|
+
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
67
67
|
* // ],
|
|
68
68
|
* // Options: { // Options
|
|
69
69
|
* // ActivationOverrideBehavior: "DISTRIBUTED_GRANTS_ONLY" || "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
70
|
+
* // DesiredStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
70
71
|
* // },
|
|
72
|
+
* // GrantType: "BuyerGrant" || "DelegateGrant",
|
|
71
73
|
* // },
|
|
72
74
|
* // ],
|
|
73
75
|
* // NextToken: "STRING_VALUE",
|
|
@@ -65,11 +65,13 @@ declare const ListReceivedGrantsCommand_base: {
|
|
|
65
65
|
* // StatusReason: "STRING_VALUE",
|
|
66
66
|
* // Version: "STRING_VALUE", // required
|
|
67
67
|
* // GrantedOperations: [ // AllowedOperationList // required
|
|
68
|
-
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
68
|
+
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
69
69
|
* // ],
|
|
70
70
|
* // Options: { // Options
|
|
71
71
|
* // ActivationOverrideBehavior: "DISTRIBUTED_GRANTS_ONLY" || "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
72
|
+
* // DesiredStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
72
73
|
* // },
|
|
74
|
+
* // GrantType: "BuyerGrant" || "DelegateGrant",
|
|
73
75
|
* // },
|
|
74
76
|
* // ],
|
|
75
77
|
* // NextToken: "STRING_VALUE",
|
|
@@ -61,11 +61,13 @@ declare const ListReceivedGrantsForOrganizationCommand_base: {
|
|
|
61
61
|
* // StatusReason: "STRING_VALUE",
|
|
62
62
|
* // Version: "STRING_VALUE", // required
|
|
63
63
|
* // GrantedOperations: [ // AllowedOperationList // required
|
|
64
|
-
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
64
|
+
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
65
65
|
* // ],
|
|
66
66
|
* // Options: { // Options
|
|
67
67
|
* // ActivationOverrideBehavior: "DISTRIBUTED_GRANTS_ONLY" || "ALL_GRANTS_PERMITTED_BY_ISSUER",
|
|
68
|
+
* // DesiredStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "PENDING_DELETE" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
68
69
|
* // },
|
|
70
|
+
* // GrantType: "BuyerGrant" || "DelegateGrant",
|
|
69
71
|
* // },
|
|
70
72
|
* // ],
|
|
71
73
|
* // NextToken: "STRING_VALUE",
|
|
@@ -101,8 +101,9 @@ declare const ListReceivedLicensesCommand_base: {
|
|
|
101
101
|
* // ReceivedStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
102
102
|
* // ReceivedStatusReason: "STRING_VALUE",
|
|
103
103
|
* // AllowedOperations: [ // AllowedOperationList
|
|
104
|
-
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
104
|
+
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
105
105
|
* // ],
|
|
106
|
+
* // GrantType: "BuyerGrant" || "DelegateGrant",
|
|
106
107
|
* // },
|
|
107
108
|
* // },
|
|
108
109
|
* // ],
|
|
@@ -98,8 +98,9 @@ declare const ListReceivedLicensesForOrganizationCommand_base: {
|
|
|
98
98
|
* // ReceivedStatus: "PENDING_WORKFLOW" || "PENDING_ACCEPT" || "REJECTED" || "ACTIVE" || "FAILED_WORKFLOW" || "DELETED" || "DISABLED" || "WORKFLOW_COMPLETED",
|
|
99
99
|
* // ReceivedStatusReason: "STRING_VALUE",
|
|
100
100
|
* // AllowedOperations: [ // AllowedOperationList
|
|
101
|
-
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken",
|
|
101
|
+
* // "CreateGrant" || "CheckoutLicense" || "CheckoutBorrowLicense" || "CheckInLicense" || "ExtendConsumptionLicense" || "ListPurchasedLicenses" || "CreateToken" || "ListReceivedLicenses",
|
|
102
102
|
* // ],
|
|
103
|
+
* // GrantType: "BuyerGrant" || "DelegateGrant",
|
|
103
104
|
* // },
|
|
104
105
|
* // },
|
|
105
106
|
* // ],
|
|
@@ -41,6 +41,7 @@ export declare const AllowedOperation: {
|
|
|
41
41
|
readonly CREATE_TOKEN: "CreateToken";
|
|
42
42
|
readonly EXTEND_CONSUMPTION_LICENSE: "ExtendConsumptionLicense";
|
|
43
43
|
readonly LIST_PURCHASED_LICENSES: "ListPurchasedLicenses";
|
|
44
|
+
readonly LIST_RECEIVED_LICENSES: "ListReceivedLicenses";
|
|
44
45
|
};
|
|
45
46
|
/**
|
|
46
47
|
* @public
|
|
@@ -106,6 +107,18 @@ export declare const CheckoutType: {
|
|
|
106
107
|
* @public
|
|
107
108
|
*/
|
|
108
109
|
export type CheckoutType = (typeof CheckoutType)[keyof typeof CheckoutType];
|
|
110
|
+
/**
|
|
111
|
+
* @public
|
|
112
|
+
* @enum
|
|
113
|
+
*/
|
|
114
|
+
export declare const GrantType: {
|
|
115
|
+
readonly BUYER_GRANT: "BuyerGrant";
|
|
116
|
+
readonly DELEGATE_GRANT: "DelegateGrant";
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export type GrantType = (typeof GrantType)[keyof typeof GrantType];
|
|
109
122
|
/**
|
|
110
123
|
* @public
|
|
111
124
|
* @enum
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActivationOverrideBehavior, AllowedOperation, CheckoutType, DigitalSignatureMethod, EntitlementDataUnit, EntitlementUnit, GrantStatus, InventoryFilterCondition, LicenseAssetGroupStatus, LicenseConfigurationStatus, LicenseConversionTaskStatus, LicenseCountingType, LicenseDeletionStatus, LicenseStatus, ProductCodeType, ReceivedStatus, RenewType, ReportFrequencyType, ReportType, ResourceType, TokenType } from "./enums";
|
|
1
|
+
import type { ActivationOverrideBehavior, AllowedOperation, CheckoutType, DigitalSignatureMethod, EntitlementDataUnit, EntitlementUnit, GrantStatus, GrantType, InventoryFilterCondition, LicenseAssetGroupStatus, LicenseConfigurationStatus, LicenseConversionTaskStatus, LicenseCountingType, LicenseDeletionStatus, LicenseStatus, ProductCodeType, ReceivedStatus, RenewType, ReportFrequencyType, ReportType, ResourceType, TokenType } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -452,6 +452,62 @@ export interface CheckoutLicenseResponse {
|
|
|
452
452
|
*/
|
|
453
453
|
LicenseArn?: string | undefined;
|
|
454
454
|
}
|
|
455
|
+
/**
|
|
456
|
+
* <p>The options you can specify when you create a grant or a new version of a grant, such as
|
|
457
|
+
* activation 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>
|
|
458
|
+
* @public
|
|
459
|
+
*/
|
|
460
|
+
export interface Options {
|
|
461
|
+
/**
|
|
462
|
+
* <p>An activation option for your grant that determines the behavior of activating a grant.
|
|
463
|
+
* Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must activate the grant. For the
|
|
464
|
+
* <code>CreateGrantVersion</code> operation, specify <code>ACTIVE</code> for the
|
|
465
|
+
* <code>Status</code> parameter. For the <code>CreateGrant</code> operation, specify
|
|
466
|
+
* <code>ACTIVE</code> for the <code>DesiredStatus</code> option.</p>
|
|
467
|
+
* <ul>
|
|
468
|
+
* <li>
|
|
469
|
+
* <p>As a license administrator, you can optionally specify an
|
|
470
|
+
* <code>ActivationOverrideBehavior</code> when activating a grant.</p>
|
|
471
|
+
* </li>
|
|
472
|
+
* <li>
|
|
473
|
+
* <p>As a grantor, you can optionally specify an
|
|
474
|
+
* <code>ActivationOverrideBehavior</code> when you activate a grant for a grantee
|
|
475
|
+
* account in your organization.</p>
|
|
476
|
+
* </li>
|
|
477
|
+
* <li>
|
|
478
|
+
* <p>As a grantee, if the grantor creating the distributed grant doesn’t specify an
|
|
479
|
+
* <code>ActivationOverrideBehavior</code>, you can optionally specify one when you
|
|
480
|
+
* are activating the grant.</p>
|
|
481
|
+
* </li>
|
|
482
|
+
* </ul>
|
|
483
|
+
* <dl>
|
|
484
|
+
* <dt>DISTRIBUTED_GRANTS_ONLY</dt>
|
|
485
|
+
* <dd>
|
|
486
|
+
* <p>Use this value to activate a grant without replacing any member account’s
|
|
487
|
+
* active grants for the same product.</p>
|
|
488
|
+
* </dd>
|
|
489
|
+
* <dt>ALL_GRANTS_PERMITTED_BY_ISSUER</dt>
|
|
490
|
+
* <dd>
|
|
491
|
+
* <p>Use this value to activate a grant and disable other active grants in any
|
|
492
|
+
* member accounts for the same product. This action will also replace their
|
|
493
|
+
* previously activated grants with this activated grant.</p>
|
|
494
|
+
* </dd>
|
|
495
|
+
* </dl>
|
|
496
|
+
* @public
|
|
497
|
+
*/
|
|
498
|
+
ActivationOverrideBehavior?: ActivationOverrideBehavior | undefined;
|
|
499
|
+
/**
|
|
500
|
+
* <p>The status of the grant after License Manager creates it. The only supported value is
|
|
501
|
+
* <code>ACTIVE</code>. Specify <code>ACTIVE</code> to create and activate the grant in one
|
|
502
|
+
* request.</p>
|
|
503
|
+
* <p>You can specify this option only for the <code>CreateGrant</code> operation, and only
|
|
504
|
+
* when the grant principal is an organization or an organizational unit (OU). To change the
|
|
505
|
+
* status of an existing grant, use the <code>Status</code> parameter of the
|
|
506
|
+
* <code>CreateGrantVersion</code> operation.</p>
|
|
507
|
+
* @public
|
|
508
|
+
*/
|
|
509
|
+
DesiredStatus?: GrantStatus | undefined;
|
|
510
|
+
}
|
|
455
511
|
/**
|
|
456
512
|
* <p>Details about the tags for a resource. For more information about tagging support in
|
|
457
513
|
* License Manager, see the <a href="https://docs.aws.amazon.com/license-manager/latest/APIReference/API_TagResource.html">TagResource</a> operation.</p>
|
|
@@ -525,6 +581,31 @@ export interface CreateGrantRequest {
|
|
|
525
581
|
* @public
|
|
526
582
|
*/
|
|
527
583
|
Tags?: Tag[] | undefined;
|
|
584
|
+
/**
|
|
585
|
+
* <p>The type of grant to create. For more information about each type, see the preceding
|
|
586
|
+
* description of this operation. Valid values:</p>
|
|
587
|
+
* <ul>
|
|
588
|
+
* <li>
|
|
589
|
+
* <p>
|
|
590
|
+
* <code>BuyerGrant</code> - The default grant type if you don't specify a value.
|
|
591
|
+
* Conveys the entitlement to use the license.</p>
|
|
592
|
+
* </li>
|
|
593
|
+
* <li>
|
|
594
|
+
* <p>
|
|
595
|
+
* <code>DelegateGrant</code> - Gives the grantee read-only visibility into the
|
|
596
|
+
* licenses and grants that you have distributed to buyers, with no entitlement to use
|
|
597
|
+
* them.</p>
|
|
598
|
+
* </li>
|
|
599
|
+
* </ul>
|
|
600
|
+
* @public
|
|
601
|
+
*/
|
|
602
|
+
GrantType?: GrantType | undefined;
|
|
603
|
+
/**
|
|
604
|
+
* <p>The options for the grant: the status to set after creation, and how activating the
|
|
605
|
+
* grant affects other active grants for the same product.</p>
|
|
606
|
+
* @public
|
|
607
|
+
*/
|
|
608
|
+
Options?: Options | undefined;
|
|
528
609
|
}
|
|
529
610
|
/**
|
|
530
611
|
* @public
|
|
@@ -546,49 +627,6 @@ export interface CreateGrantResponse {
|
|
|
546
627
|
*/
|
|
547
628
|
Version?: string | undefined;
|
|
548
629
|
}
|
|
549
|
-
/**
|
|
550
|
-
* <p>The options you can specify when you create a new version of a grant, such as activation
|
|
551
|
-
* 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>
|
|
552
|
-
* @public
|
|
553
|
-
*/
|
|
554
|
-
export interface Options {
|
|
555
|
-
/**
|
|
556
|
-
* <p>An activation option for your grant that determines the behavior of activating a grant.
|
|
557
|
-
* 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
|
|
558
|
-
* <code>Status</code> parameter.</p>
|
|
559
|
-
* <ul>
|
|
560
|
-
* <li>
|
|
561
|
-
* <p>As a license administrator, you can optionally specify an
|
|
562
|
-
* <code>ActivationOverrideBehavior</code> when activating a grant.</p>
|
|
563
|
-
* </li>
|
|
564
|
-
* <li>
|
|
565
|
-
* <p>As a grantor, you can optionally specify an
|
|
566
|
-
* <code>ActivationOverrideBehavior</code> when you activate a grant for a grantee
|
|
567
|
-
* account in your organization.</p>
|
|
568
|
-
* </li>
|
|
569
|
-
* <li>
|
|
570
|
-
* <p>As a grantee, if the grantor creating the distributed grant doesn’t specify an
|
|
571
|
-
* <code>ActivationOverrideBehavior</code>, you can optionally specify one when you
|
|
572
|
-
* are activating the grant.</p>
|
|
573
|
-
* </li>
|
|
574
|
-
* </ul>
|
|
575
|
-
* <dl>
|
|
576
|
-
* <dt>DISTRIBUTED_GRANTS_ONLY</dt>
|
|
577
|
-
* <dd>
|
|
578
|
-
* <p>Use this value to activate a grant without replacing any member account’s
|
|
579
|
-
* active grants for the same product.</p>
|
|
580
|
-
* </dd>
|
|
581
|
-
* <dt>ALL_GRANTS_PERMITTED_BY_ISSUER</dt>
|
|
582
|
-
* <dd>
|
|
583
|
-
* <p>Use this value to activate a grant and disable other active grants in any
|
|
584
|
-
* member accounts for the same product. This action will also replace their
|
|
585
|
-
* previously activated grants with this activated grant.</p>
|
|
586
|
-
* </dd>
|
|
587
|
-
* </dl>
|
|
588
|
-
* @public
|
|
589
|
-
*/
|
|
590
|
-
ActivationOverrideBehavior?: ActivationOverrideBehavior | undefined;
|
|
591
|
-
}
|
|
592
630
|
/**
|
|
593
631
|
* @public
|
|
594
632
|
*/
|
|
@@ -1896,6 +1934,22 @@ export interface Grant {
|
|
|
1896
1934
|
* @public
|
|
1897
1935
|
*/
|
|
1898
1936
|
Options?: Options | undefined;
|
|
1937
|
+
/**
|
|
1938
|
+
* <p>The type of the grant. Valid values:</p>
|
|
1939
|
+
* <ul>
|
|
1940
|
+
* <li>
|
|
1941
|
+
* <p>
|
|
1942
|
+
* <code>BuyerGrant</code> - Grants the entitlement to use the license.</p>
|
|
1943
|
+
* </li>
|
|
1944
|
+
* <li>
|
|
1945
|
+
* <p>
|
|
1946
|
+
* <code>DelegateGrant</code> - Gives the grantee read-only visibility into the
|
|
1947
|
+
* licenses and grants distributed to buyers, with no entitlement to use them.</p>
|
|
1948
|
+
* </li>
|
|
1949
|
+
* </ul>
|
|
1950
|
+
* @public
|
|
1951
|
+
*/
|
|
1952
|
+
GrantType?: GrantType | undefined;
|
|
1899
1953
|
}
|
|
1900
1954
|
/**
|
|
1901
1955
|
* @public
|
|
@@ -3648,6 +3702,22 @@ export interface ReceivedMetadata {
|
|
|
3648
3702
|
* @public
|
|
3649
3703
|
*/
|
|
3650
3704
|
AllowedOperations?: AllowedOperation[] | undefined;
|
|
3705
|
+
/**
|
|
3706
|
+
* <p>The type of the grant through which the license was received. Valid values:</p>
|
|
3707
|
+
* <ul>
|
|
3708
|
+
* <li>
|
|
3709
|
+
* <p>
|
|
3710
|
+
* <code>BuyerGrant</code> - Grants you the entitlement to use the license.</p>
|
|
3711
|
+
* </li>
|
|
3712
|
+
* <li>
|
|
3713
|
+
* <p>
|
|
3714
|
+
* <code>DelegateGrant</code> - Gives you read-only visibility into the licenses and
|
|
3715
|
+
* grants distributed to buyers, with no entitlement to use them.</p>
|
|
3716
|
+
* </li>
|
|
3717
|
+
* </ul>
|
|
3718
|
+
* @public
|
|
3719
|
+
*/
|
|
3720
|
+
GrantType?: GrantType | undefined;
|
|
3651
3721
|
}
|
|
3652
3722
|
/**
|
|
3653
3723
|
* <p>Describes a license that is granted to a grantee.</p>
|
|
@@ -24,6 +24,7 @@ export declare const AllowedOperation: {
|
|
|
24
24
|
readonly CREATE_TOKEN: "CreateToken";
|
|
25
25
|
readonly EXTEND_CONSUMPTION_LICENSE: "ExtendConsumptionLicense";
|
|
26
26
|
readonly LIST_PURCHASED_LICENSES: "ListPurchasedLicenses";
|
|
27
|
+
readonly LIST_RECEIVED_LICENSES: "ListReceivedLicenses";
|
|
27
28
|
};
|
|
28
29
|
export type AllowedOperation = (typeof AllowedOperation)[keyof typeof AllowedOperation];
|
|
29
30
|
export declare const DigitalSignatureMethod: {
|
|
@@ -66,6 +67,11 @@ export declare const CheckoutType: {
|
|
|
66
67
|
readonly PROVISIONAL: "PROVISIONAL";
|
|
67
68
|
};
|
|
68
69
|
export type CheckoutType = (typeof CheckoutType)[keyof typeof CheckoutType];
|
|
70
|
+
export declare const GrantType: {
|
|
71
|
+
readonly BUYER_GRANT: "BuyerGrant";
|
|
72
|
+
readonly DELEGATE_GRANT: "DelegateGrant";
|
|
73
|
+
};
|
|
74
|
+
export type GrantType = (typeof GrantType)[keyof typeof GrantType];
|
|
69
75
|
export declare const RenewType: {
|
|
70
76
|
readonly MONTHLY: "Monthly";
|
|
71
77
|
readonly NONE: "None";
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
EntitlementDataUnit,
|
|
7
7
|
EntitlementUnit,
|
|
8
8
|
GrantStatus,
|
|
9
|
+
GrantType,
|
|
9
10
|
InventoryFilterCondition,
|
|
10
11
|
LicenseAssetGroupStatus,
|
|
11
12
|
LicenseConfigurationStatus,
|
|
@@ -100,6 +101,10 @@ export interface CheckoutLicenseResponse {
|
|
|
100
101
|
Expiration?: string | undefined;
|
|
101
102
|
LicenseArn?: string | undefined;
|
|
102
103
|
}
|
|
104
|
+
export interface Options {
|
|
105
|
+
ActivationOverrideBehavior?: ActivationOverrideBehavior | undefined;
|
|
106
|
+
DesiredStatus?: GrantStatus | undefined;
|
|
107
|
+
}
|
|
103
108
|
export interface Tag {
|
|
104
109
|
Key?: string | undefined;
|
|
105
110
|
Value?: string | undefined;
|
|
@@ -112,15 +117,14 @@ export interface CreateGrantRequest {
|
|
|
112
117
|
HomeRegion: string | undefined;
|
|
113
118
|
AllowedOperations: AllowedOperation[] | undefined;
|
|
114
119
|
Tags?: Tag[] | undefined;
|
|
120
|
+
GrantType?: GrantType | undefined;
|
|
121
|
+
Options?: Options | undefined;
|
|
115
122
|
}
|
|
116
123
|
export interface CreateGrantResponse {
|
|
117
124
|
GrantArn?: string | undefined;
|
|
118
125
|
Status?: GrantStatus | undefined;
|
|
119
126
|
Version?: string | undefined;
|
|
120
127
|
}
|
|
121
|
-
export interface Options {
|
|
122
|
-
ActivationOverrideBehavior?: ActivationOverrideBehavior | undefined;
|
|
123
|
-
}
|
|
124
128
|
export interface CreateGrantVersionRequest {
|
|
125
129
|
ClientToken: string | undefined;
|
|
126
130
|
GrantArn: string | undefined;
|
|
@@ -406,6 +410,7 @@ export interface Grant {
|
|
|
406
410
|
Version: string | undefined;
|
|
407
411
|
GrantedOperations: AllowedOperation[] | undefined;
|
|
408
412
|
Options?: Options | undefined;
|
|
413
|
+
GrantType?: GrantType | undefined;
|
|
409
414
|
}
|
|
410
415
|
export interface GetGrantResponse {
|
|
411
416
|
Grant?: Grant | undefined;
|
|
@@ -788,6 +793,7 @@ export interface ReceivedMetadata {
|
|
|
788
793
|
ReceivedStatus?: ReceivedStatus | undefined;
|
|
789
794
|
ReceivedStatusReason?: string | undefined;
|
|
790
795
|
AllowedOperations?: AllowedOperation[] | undefined;
|
|
796
|
+
GrantType?: GrantType | undefined;
|
|
791
797
|
}
|
|
792
798
|
export interface GrantedLicense {
|
|
793
799
|
LicenseArn?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-license-manager",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1158.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript License Manager Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-license-manager",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.978.6",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.89",
|
|
51
51
|
"@aws-sdk/types": "^3.975.0",
|
|
52
|
-
"@smithy/core": "^3.
|
|
52
|
+
"@smithy/core": "^3.37.0",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
54
|
-
"@smithy/node-http-handler": "^4.
|
|
54
|
+
"@smithy/node-http-handler": "^4.13.0",
|
|
55
55
|
"@smithy/types": "^4.19.0",
|
|
56
56
|
"tslib": "^2.6.2"
|
|
57
57
|
},
|