@aws-sdk/client-license-manager 3.208.0 → 3.210.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/LicenseManager.js +30 -0
- package/dist-cjs/commands/ListReceivedGrantsForOrganizationCommand.js +46 -0
- package/dist-cjs/commands/ListReceivedLicensesForOrganizationCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +18 -2
- package/dist-cjs/protocols/Aws_json1_1.js +153 -2
- package/dist-cjs/runtimeConfig.shared.js +2 -1
- package/dist-es/LicenseManager.js +30 -0
- package/dist-es/commands/ListReceivedGrantsForOrganizationCommand.js +42 -0
- package/dist-es/commands/ListReceivedLicensesForOrganizationCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_json1_1.js +147 -0
- package/dist-es/runtimeConfig.shared.js +2 -1
- package/dist-types/LicenseManager.d.ts +18 -0
- package/dist-types/LicenseManagerClient.d.ts +4 -2
- package/dist-types/commands/CheckoutLicenseCommand.d.ts +4 -0
- package/dist-types/commands/ListReceivedGrantsForOrganizationCommand.d.ts +37 -0
- package/dist-types/commands/ListReceivedLicensesForOrganizationCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +96 -3
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/runtimeConfig.shared.d.ts +2 -3
- package/dist-types/ts3.4/LicenseManager.d.ts +46 -0
- package/dist-types/ts3.4/LicenseManagerClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListReceivedGrantsForOrganizationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListReceivedLicensesForOrganizationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +31 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -3
- package/package.json +11 -13
|
@@ -37,7 +37,9 @@ const ListLicensesCommand_1 = require("./commands/ListLicensesCommand");
|
|
|
37
37
|
const ListLicenseSpecificationsForResourceCommand_1 = require("./commands/ListLicenseSpecificationsForResourceCommand");
|
|
38
38
|
const ListLicenseVersionsCommand_1 = require("./commands/ListLicenseVersionsCommand");
|
|
39
39
|
const ListReceivedGrantsCommand_1 = require("./commands/ListReceivedGrantsCommand");
|
|
40
|
+
const ListReceivedGrantsForOrganizationCommand_1 = require("./commands/ListReceivedGrantsForOrganizationCommand");
|
|
40
41
|
const ListReceivedLicensesCommand_1 = require("./commands/ListReceivedLicensesCommand");
|
|
42
|
+
const ListReceivedLicensesForOrganizationCommand_1 = require("./commands/ListReceivedLicensesForOrganizationCommand");
|
|
41
43
|
const ListResourceInventoryCommand_1 = require("./commands/ListResourceInventoryCommand");
|
|
42
44
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
43
45
|
const ListTokensCommand_1 = require("./commands/ListTokensCommand");
|
|
@@ -555,6 +557,20 @@ class LicenseManager extends LicenseManagerClient_1.LicenseManagerClient {
|
|
|
555
557
|
return this.send(command, optionsOrCb);
|
|
556
558
|
}
|
|
557
559
|
}
|
|
560
|
+
listReceivedGrantsForOrganization(args, optionsOrCb, cb) {
|
|
561
|
+
const command = new ListReceivedGrantsForOrganizationCommand_1.ListReceivedGrantsForOrganizationCommand(args);
|
|
562
|
+
if (typeof optionsOrCb === "function") {
|
|
563
|
+
this.send(command, optionsOrCb);
|
|
564
|
+
}
|
|
565
|
+
else if (typeof cb === "function") {
|
|
566
|
+
if (typeof optionsOrCb !== "object")
|
|
567
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
568
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
return this.send(command, optionsOrCb);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
558
574
|
listReceivedLicenses(args, optionsOrCb, cb) {
|
|
559
575
|
const command = new ListReceivedLicensesCommand_1.ListReceivedLicensesCommand(args);
|
|
560
576
|
if (typeof optionsOrCb === "function") {
|
|
@@ -569,6 +585,20 @@ class LicenseManager extends LicenseManagerClient_1.LicenseManagerClient {
|
|
|
569
585
|
return this.send(command, optionsOrCb);
|
|
570
586
|
}
|
|
571
587
|
}
|
|
588
|
+
listReceivedLicensesForOrganization(args, optionsOrCb, cb) {
|
|
589
|
+
const command = new ListReceivedLicensesForOrganizationCommand_1.ListReceivedLicensesForOrganizationCommand(args);
|
|
590
|
+
if (typeof optionsOrCb === "function") {
|
|
591
|
+
this.send(command, optionsOrCb);
|
|
592
|
+
}
|
|
593
|
+
else if (typeof cb === "function") {
|
|
594
|
+
if (typeof optionsOrCb !== "object")
|
|
595
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
596
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
597
|
+
}
|
|
598
|
+
else {
|
|
599
|
+
return this.send(command, optionsOrCb);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
572
602
|
listResourceInventory(args, optionsOrCb, cb) {
|
|
573
603
|
const command = new ListResourceInventoryCommand_1.ListResourceInventoryCommand(args);
|
|
574
604
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListReceivedGrantsForOrganizationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListReceivedGrantsForOrganizationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListReceivedGrantsForOrganizationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "LicenseManagerClient";
|
|
28
|
+
const commandName = "ListReceivedGrantsForOrganizationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListReceivedGrantsForOrganizationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListReceivedGrantsForOrganizationResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListReceivedGrantsForOrganizationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListReceivedGrantsForOrganizationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListReceivedGrantsForOrganizationCommand = ListReceivedGrantsForOrganizationCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListReceivedLicensesForOrganizationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListReceivedLicensesForOrganizationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListReceivedLicensesForOrganizationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "LicenseManagerClient";
|
|
28
|
+
const commandName = "ListReceivedLicensesForOrganizationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListReceivedLicensesForOrganizationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListReceivedLicensesForOrganizationResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListReceivedLicensesForOrganizationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListReceivedLicensesForOrganizationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListReceivedLicensesForOrganizationCommand = ListReceivedLicensesForOrganizationCommand;
|
|
@@ -37,7 +37,9 @@ tslib_1.__exportStar(require("./ListLicenseSpecificationsForResourceCommand"), e
|
|
|
37
37
|
tslib_1.__exportStar(require("./ListLicenseVersionsCommand"), exports);
|
|
38
38
|
tslib_1.__exportStar(require("./ListLicensesCommand"), exports);
|
|
39
39
|
tslib_1.__exportStar(require("./ListReceivedGrantsCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./ListReceivedGrantsForOrganizationCommand"), exports);
|
|
40
41
|
tslib_1.__exportStar(require("./ListReceivedLicensesCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./ListReceivedLicensesForOrganizationCommand"), exports);
|
|
41
43
|
tslib_1.__exportStar(require("./ListResourceInventoryCommand"), exports);
|
|
42
44
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
43
45
|
tslib_1.__exportStar(require("./ListTokensCommand"), exports);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateGrantVersionResponseFilterSensitiveLog = exports.CreateGrantVersionRequestFilterSensitiveLog = exports.CreateGrantResponseFilterSensitiveLog = exports.CreateGrantRequestFilterSensitiveLog = exports.CheckoutLicenseResponseFilterSensitiveLog = exports.CheckoutLicenseRequestFilterSensitiveLog = exports.CheckoutBorrowLicenseResponseFilterSensitiveLog = exports.CheckoutBorrowLicenseRequestFilterSensitiveLog = exports.EntitlementDataFilterSensitiveLog = exports.MetadataFilterSensitiveLog = exports.CheckInLicenseResponseFilterSensitiveLog = exports.CheckInLicenseRequestFilterSensitiveLog = exports.AutomatedDiscoveryInformationFilterSensitiveLog = exports.AcceptGrantResponseFilterSensitiveLog = exports.AcceptGrantRequestFilterSensitiveLog = 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;
|
|
4
4
|
exports.GetLicenseConversionTaskRequestFilterSensitiveLog = exports.GetLicenseConfigurationResponseFilterSensitiveLog = exports.ManagedResourceSummaryFilterSensitiveLog = exports.ConsumedLicenseSummaryFilterSensitiveLog = exports.GetLicenseConfigurationRequestFilterSensitiveLog = exports.GetLicenseResponseFilterSensitiveLog = exports.LicenseFilterSensitiveLog = exports.IssuerDetailsFilterSensitiveLog = exports.GetLicenseRequestFilterSensitiveLog = exports.GetGrantResponseFilterSensitiveLog = exports.GrantFilterSensitiveLog = exports.GetGrantRequestFilterSensitiveLog = exports.GetAccessTokenResponseFilterSensitiveLog = exports.GetAccessTokenRequestFilterSensitiveLog = exports.ExtendLicenseConsumptionResponseFilterSensitiveLog = exports.ExtendLicenseConsumptionRequestFilterSensitiveLog = exports.DeleteTokenResponseFilterSensitiveLog = exports.DeleteTokenRequestFilterSensitiveLog = exports.DeleteLicenseManagerReportGeneratorResponseFilterSensitiveLog = exports.DeleteLicenseManagerReportGeneratorRequestFilterSensitiveLog = exports.DeleteLicenseConfigurationResponseFilterSensitiveLog = exports.DeleteLicenseConfigurationRequestFilterSensitiveLog = exports.DeleteLicenseResponseFilterSensitiveLog = exports.DeleteLicenseRequestFilterSensitiveLog = exports.DeleteGrantResponseFilterSensitiveLog = exports.DeleteGrantRequestFilterSensitiveLog = exports.CreateTokenResponseFilterSensitiveLog = exports.CreateTokenRequestFilterSensitiveLog = exports.CreateLicenseVersionResponseFilterSensitiveLog = exports.CreateLicenseVersionRequestFilterSensitiveLog = exports.CreateLicenseManagerReportGeneratorResponseFilterSensitiveLog = exports.CreateLicenseManagerReportGeneratorRequestFilterSensitiveLog = exports.ReportFrequencyFilterSensitiveLog = exports.ReportContextFilterSensitiveLog = exports.CreateLicenseConversionTaskForResourceResponseFilterSensitiveLog = exports.CreateLicenseConversionTaskForResourceRequestFilterSensitiveLog = exports.LicenseConversionContextFilterSensitiveLog = exports.CreateLicenseConfigurationResponseFilterSensitiveLog = exports.CreateLicenseConfigurationRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ProductInformationFilterSensitiveLog = exports.ProductInformationFilterFilterSensitiveLog = exports.CreateLicenseResponseFilterSensitiveLog = exports.CreateLicenseRequestFilterSensitiveLog = exports.DatetimeRangeFilterSensitiveLog = exports.IssuerFilterSensitiveLog = exports.EntitlementFilterSensitiveLog = exports.ConsumptionConfigurationFilterSensitiveLog = exports.ProvisionalConfigurationFilterSensitiveLog = exports.BorrowConfigurationFilterSensitiveLog = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateServiceSettingsResponseFilterSensitiveLog = exports.UpdateServiceSettingsRequestFilterSensitiveLog = exports.UpdateLicenseSpecificationsForResourceResponseFilterSensitiveLog = exports.UpdateLicenseSpecificationsForResourceRequestFilterSensitiveLog = exports.UpdateLicenseManagerReportGeneratorResponseFilterSensitiveLog = exports.UpdateLicenseManagerReportGeneratorRequestFilterSensitiveLog = exports.UpdateLicenseConfigurationResponseFilterSensitiveLog = exports.UpdateLicenseConfigurationRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RejectGrantResponseFilterSensitiveLog = exports.RejectGrantRequestFilterSensitiveLog = exports.ListUsageForLicenseConfigurationResponseFilterSensitiveLog = exports.LicenseConfigurationUsageFilterSensitiveLog = exports.ListUsageForLicenseConfigurationRequestFilterSensitiveLog = exports.ListTokensResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.ListResourceInventoryResponseFilterSensitiveLog = exports.ResourceInventoryFilterSensitiveLog = exports.ListResourceInventoryRequestFilterSensitiveLog = exports.InventoryFilterFilterSensitiveLog = exports.ListReceivedLicensesForOrganizationResponseFilterSensitiveLog = exports.ListReceivedLicensesForOrganizationRequestFilterSensitiveLog = exports.ListReceivedLicensesResponseFilterSensitiveLog = exports.GrantedLicenseFilterSensitiveLog = exports.ReceivedMetadataFilterSensitiveLog = exports.ListReceivedLicensesRequestFilterSensitiveLog = exports.ListReceivedGrantsForOrganizationResponseFilterSensitiveLog = exports.ListReceivedGrantsForOrganizationRequestFilterSensitiveLog = exports.ListReceivedGrantsResponseFilterSensitiveLog = exports.ListReceivedGrantsRequestFilterSensitiveLog = exports.ListLicenseVersionsResponseFilterSensitiveLog = exports.ListLicenseVersionsRequestFilterSensitiveLog = exports.ListLicenseSpecificationsForResourceResponseFilterSensitiveLog = exports.LicenseSpecificationFilterSensitiveLog = exports.ListLicenseSpecificationsForResourceRequestFilterSensitiveLog = exports.ListLicensesResponseFilterSensitiveLog = exports.ListLicensesRequestFilterSensitiveLog = exports.ListLicenseManagerReportGeneratorsResponseFilterSensitiveLog = exports.ListLicenseManagerReportGeneratorsRequestFilterSensitiveLog = exports.ListLicenseConversionTasksResponseFilterSensitiveLog = exports.LicenseConversionTaskFilterSensitiveLog = exports.ListLicenseConversionTasksRequestFilterSensitiveLog = exports.ListLicenseConfigurationsResponseFilterSensitiveLog = exports.LicenseConfigurationFilterSensitiveLog = exports.ListLicenseConfigurationsRequestFilterSensitiveLog = exports.ListFailuresForLicenseConfigurationOperationsResponseFilterSensitiveLog = exports.LicenseOperationFailureFilterSensitiveLog = exports.ListFailuresForLicenseConfigurationOperationsRequestFilterSensitiveLog = exports.ListDistributedGrantsResponseFilterSensitiveLog = exports.ListDistributedGrantsRequestFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.ListAssociationsForLicenseConfigurationResponseFilterSensitiveLog = exports.LicenseConfigurationAssociationFilterSensitiveLog = exports.ListAssociationsForLicenseConfigurationRequestFilterSensitiveLog = exports.GetServiceSettingsResponseFilterSensitiveLog = exports.OrganizationConfigurationFilterSensitiveLog = exports.GetServiceSettingsRequestFilterSensitiveLog = exports.GetLicenseUsageResponseFilterSensitiveLog = exports.LicenseUsageFilterSensitiveLog = exports.EntitlementUsageFilterSensitiveLog = exports.GetLicenseUsageRequestFilterSensitiveLog = exports.GetLicenseManagerReportGeneratorResponseFilterSensitiveLog = exports.ReportGeneratorFilterSensitiveLog = exports.S3LocationFilterSensitiveLog = exports.GetLicenseManagerReportGeneratorRequestFilterSensitiveLog = exports.GetLicenseConversionTaskResponseFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateServiceSettingsResponseFilterSensitiveLog = exports.UpdateServiceSettingsRequestFilterSensitiveLog = exports.UpdateLicenseSpecificationsForResourceResponseFilterSensitiveLog = exports.UpdateLicenseSpecificationsForResourceRequestFilterSensitiveLog = exports.UpdateLicenseManagerReportGeneratorResponseFilterSensitiveLog = exports.UpdateLicenseManagerReportGeneratorRequestFilterSensitiveLog = exports.UpdateLicenseConfigurationResponseFilterSensitiveLog = exports.UpdateLicenseConfigurationRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RejectGrantResponseFilterSensitiveLog = exports.RejectGrantRequestFilterSensitiveLog = exports.ListUsageForLicenseConfigurationResponseFilterSensitiveLog = exports.LicenseConfigurationUsageFilterSensitiveLog = exports.ListUsageForLicenseConfigurationRequestFilterSensitiveLog = exports.ListTokensResponseFilterSensitiveLog = exports.TokenDataFilterSensitiveLog = exports.ListTokensRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = void 0;
|
|
7
7
|
const LicenseManagerServiceException_1 = require("./LicenseManagerServiceException");
|
|
8
8
|
var GrantStatus;
|
|
9
9
|
(function (GrantStatus) {
|
|
@@ -828,6 +828,14 @@ const ListReceivedGrantsResponseFilterSensitiveLog = (obj) => ({
|
|
|
828
828
|
...obj,
|
|
829
829
|
});
|
|
830
830
|
exports.ListReceivedGrantsResponseFilterSensitiveLog = ListReceivedGrantsResponseFilterSensitiveLog;
|
|
831
|
+
const ListReceivedGrantsForOrganizationRequestFilterSensitiveLog = (obj) => ({
|
|
832
|
+
...obj,
|
|
833
|
+
});
|
|
834
|
+
exports.ListReceivedGrantsForOrganizationRequestFilterSensitiveLog = ListReceivedGrantsForOrganizationRequestFilterSensitiveLog;
|
|
835
|
+
const ListReceivedGrantsForOrganizationResponseFilterSensitiveLog = (obj) => ({
|
|
836
|
+
...obj,
|
|
837
|
+
});
|
|
838
|
+
exports.ListReceivedGrantsForOrganizationResponseFilterSensitiveLog = ListReceivedGrantsForOrganizationResponseFilterSensitiveLog;
|
|
831
839
|
const ListReceivedLicensesRequestFilterSensitiveLog = (obj) => ({
|
|
832
840
|
...obj,
|
|
833
841
|
});
|
|
@@ -844,6 +852,14 @@ const ListReceivedLicensesResponseFilterSensitiveLog = (obj) => ({
|
|
|
844
852
|
...obj,
|
|
845
853
|
});
|
|
846
854
|
exports.ListReceivedLicensesResponseFilterSensitiveLog = ListReceivedLicensesResponseFilterSensitiveLog;
|
|
855
|
+
const ListReceivedLicensesForOrganizationRequestFilterSensitiveLog = (obj) => ({
|
|
856
|
+
...obj,
|
|
857
|
+
});
|
|
858
|
+
exports.ListReceivedLicensesForOrganizationRequestFilterSensitiveLog = ListReceivedLicensesForOrganizationRequestFilterSensitiveLog;
|
|
859
|
+
const ListReceivedLicensesForOrganizationResponseFilterSensitiveLog = (obj) => ({
|
|
860
|
+
...obj,
|
|
861
|
+
});
|
|
862
|
+
exports.ListReceivedLicensesForOrganizationResponseFilterSensitiveLog = ListReceivedLicensesForOrganizationResponseFilterSensitiveLog;
|
|
847
863
|
const InventoryFilterFilterSensitiveLog = (obj) => ({
|
|
848
864
|
...obj,
|
|
849
865
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateServiceSettingsCommand = exports.deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommand = exports.deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1UpdateLicenseConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RejectGrantCommand = exports.deserializeAws_json1_1ListUsageForLicenseConfigurationCommand = exports.deserializeAws_json1_1ListTokensCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourceInventoryCommand = exports.deserializeAws_json1_1ListReceivedLicensesCommand = exports.deserializeAws_json1_1ListReceivedGrantsCommand = exports.deserializeAws_json1_1ListLicenseVersionsCommand = exports.deserializeAws_json1_1ListLicenseSpecificationsForResourceCommand = exports.deserializeAws_json1_1ListLicensesCommand = exports.deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommand = exports.deserializeAws_json1_1ListLicenseConversionTasksCommand = exports.deserializeAws_json1_1ListLicenseConfigurationsCommand = exports.deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand = exports.deserializeAws_json1_1ListDistributedGrantsCommand = exports.deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommand = exports.deserializeAws_json1_1GetServiceSettingsCommand = exports.deserializeAws_json1_1GetLicenseUsageCommand = exports.deserializeAws_json1_1GetLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1GetLicenseConversionTaskCommand = exports.deserializeAws_json1_1GetLicenseConfigurationCommand = exports.deserializeAws_json1_1GetLicenseCommand = exports.deserializeAws_json1_1GetGrantCommand = exports.deserializeAws_json1_1GetAccessTokenCommand = exports.deserializeAws_json1_1ExtendLicenseConsumptionCommand = exports.deserializeAws_json1_1DeleteTokenCommand = exports.deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1DeleteLicenseConfigurationCommand = exports.deserializeAws_json1_1DeleteLicenseCommand = exports.deserializeAws_json1_1DeleteGrantCommand = exports.deserializeAws_json1_1CreateTokenCommand = exports.deserializeAws_json1_1CreateLicenseVersionCommand = exports.deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommand = exports.deserializeAws_json1_1CreateLicenseConfigurationCommand = exports.deserializeAws_json1_1CreateLicenseCommand = exports.deserializeAws_json1_1CreateGrantVersionCommand = exports.deserializeAws_json1_1CreateGrantCommand = exports.deserializeAws_json1_1CheckoutLicenseCommand = exports.deserializeAws_json1_1CheckoutBorrowLicenseCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1UpdateServiceSettingsCommand = exports.serializeAws_json1_1UpdateLicenseSpecificationsForResourceCommand = exports.serializeAws_json1_1UpdateLicenseManagerReportGeneratorCommand = exports.serializeAws_json1_1UpdateLicenseConfigurationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1RejectGrantCommand = exports.serializeAws_json1_1ListUsageForLicenseConfigurationCommand = exports.serializeAws_json1_1ListTokensCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListResourceInventoryCommand = exports.serializeAws_json1_1ListReceivedLicensesForOrganizationCommand = exports.serializeAws_json1_1ListReceivedLicensesCommand = exports.serializeAws_json1_1ListReceivedGrantsForOrganizationCommand = exports.serializeAws_json1_1ListReceivedGrantsCommand = exports.serializeAws_json1_1ListLicenseVersionsCommand = exports.serializeAws_json1_1ListLicenseSpecificationsForResourceCommand = exports.serializeAws_json1_1ListLicensesCommand = exports.serializeAws_json1_1ListLicenseManagerReportGeneratorsCommand = exports.serializeAws_json1_1ListLicenseConversionTasksCommand = exports.serializeAws_json1_1ListLicenseConfigurationsCommand = exports.serializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand = exports.serializeAws_json1_1ListDistributedGrantsCommand = exports.serializeAws_json1_1ListAssociationsForLicenseConfigurationCommand = exports.serializeAws_json1_1GetServiceSettingsCommand = exports.serializeAws_json1_1GetLicenseUsageCommand = exports.serializeAws_json1_1GetLicenseManagerReportGeneratorCommand = exports.serializeAws_json1_1GetLicenseConversionTaskCommand = exports.serializeAws_json1_1GetLicenseConfigurationCommand = exports.serializeAws_json1_1GetLicenseCommand = exports.serializeAws_json1_1GetGrantCommand = exports.serializeAws_json1_1GetAccessTokenCommand = exports.serializeAws_json1_1ExtendLicenseConsumptionCommand = exports.serializeAws_json1_1DeleteTokenCommand = exports.serializeAws_json1_1DeleteLicenseManagerReportGeneratorCommand = exports.serializeAws_json1_1DeleteLicenseConfigurationCommand = exports.serializeAws_json1_1DeleteLicenseCommand = exports.serializeAws_json1_1DeleteGrantCommand = exports.serializeAws_json1_1CreateTokenCommand = exports.serializeAws_json1_1CreateLicenseVersionCommand = exports.serializeAws_json1_1CreateLicenseManagerReportGeneratorCommand = exports.serializeAws_json1_1CreateLicenseConversionTaskForResourceCommand = exports.serializeAws_json1_1CreateLicenseConfigurationCommand = exports.serializeAws_json1_1CreateLicenseCommand = exports.serializeAws_json1_1CreateGrantVersionCommand = exports.serializeAws_json1_1CreateGrantCommand = exports.serializeAws_json1_1CheckoutLicenseCommand = exports.serializeAws_json1_1CheckoutBorrowLicenseCommand = exports.serializeAws_json1_1CheckInLicenseCommand = exports.serializeAws_json1_1AcceptGrantCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateServiceSettingsCommand = exports.deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommand = exports.deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1UpdateLicenseConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RejectGrantCommand = exports.deserializeAws_json1_1ListUsageForLicenseConfigurationCommand = exports.deserializeAws_json1_1ListTokensCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourceInventoryCommand = exports.deserializeAws_json1_1ListReceivedLicensesForOrganizationCommand = exports.deserializeAws_json1_1ListReceivedLicensesCommand = exports.deserializeAws_json1_1ListReceivedGrantsForOrganizationCommand = exports.deserializeAws_json1_1ListReceivedGrantsCommand = exports.deserializeAws_json1_1ListLicenseVersionsCommand = exports.deserializeAws_json1_1ListLicenseSpecificationsForResourceCommand = exports.deserializeAws_json1_1ListLicensesCommand = exports.deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommand = exports.deserializeAws_json1_1ListLicenseConversionTasksCommand = exports.deserializeAws_json1_1ListLicenseConfigurationsCommand = exports.deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand = exports.deserializeAws_json1_1ListDistributedGrantsCommand = exports.deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommand = exports.deserializeAws_json1_1GetServiceSettingsCommand = exports.deserializeAws_json1_1GetLicenseUsageCommand = exports.deserializeAws_json1_1GetLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1GetLicenseConversionTaskCommand = exports.deserializeAws_json1_1GetLicenseConfigurationCommand = exports.deserializeAws_json1_1GetLicenseCommand = exports.deserializeAws_json1_1GetGrantCommand = exports.deserializeAws_json1_1GetAccessTokenCommand = exports.deserializeAws_json1_1ExtendLicenseConsumptionCommand = exports.deserializeAws_json1_1DeleteTokenCommand = exports.deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1DeleteLicenseConfigurationCommand = exports.deserializeAws_json1_1DeleteLicenseCommand = exports.deserializeAws_json1_1DeleteGrantCommand = exports.deserializeAws_json1_1CreateTokenCommand = exports.deserializeAws_json1_1CreateLicenseVersionCommand = exports.deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommand = exports.deserializeAws_json1_1CreateLicenseConfigurationCommand = exports.deserializeAws_json1_1CreateLicenseCommand = exports.deserializeAws_json1_1CreateGrantVersionCommand = exports.deserializeAws_json1_1CreateGrantCommand = exports.deserializeAws_json1_1CheckoutLicenseCommand = exports.deserializeAws_json1_1CheckoutBorrowLicenseCommand = exports.deserializeAws_json1_1CheckInLicenseCommand = exports.deserializeAws_json1_1AcceptGrantCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const LicenseManagerServiceException_1 = require("../models/LicenseManagerServiceException");
|
|
@@ -366,6 +366,16 @@ const serializeAws_json1_1ListReceivedGrantsCommand = async (input, context) =>
|
|
|
366
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
367
|
};
|
|
368
368
|
exports.serializeAws_json1_1ListReceivedGrantsCommand = serializeAws_json1_1ListReceivedGrantsCommand;
|
|
369
|
+
const serializeAws_json1_1ListReceivedGrantsForOrganizationCommand = async (input, context) => {
|
|
370
|
+
const headers = {
|
|
371
|
+
"content-type": "application/x-amz-json-1.1",
|
|
372
|
+
"x-amz-target": "AWSLicenseManager.ListReceivedGrantsForOrganization",
|
|
373
|
+
};
|
|
374
|
+
let body;
|
|
375
|
+
body = JSON.stringify(serializeAws_json1_1ListReceivedGrantsForOrganizationRequest(input, context));
|
|
376
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
|
+
};
|
|
378
|
+
exports.serializeAws_json1_1ListReceivedGrantsForOrganizationCommand = serializeAws_json1_1ListReceivedGrantsForOrganizationCommand;
|
|
369
379
|
const serializeAws_json1_1ListReceivedLicensesCommand = async (input, context) => {
|
|
370
380
|
const headers = {
|
|
371
381
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -376,6 +386,16 @@ const serializeAws_json1_1ListReceivedLicensesCommand = async (input, context) =
|
|
|
376
386
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
387
|
};
|
|
378
388
|
exports.serializeAws_json1_1ListReceivedLicensesCommand = serializeAws_json1_1ListReceivedLicensesCommand;
|
|
389
|
+
const serializeAws_json1_1ListReceivedLicensesForOrganizationCommand = async (input, context) => {
|
|
390
|
+
const headers = {
|
|
391
|
+
"content-type": "application/x-amz-json-1.1",
|
|
392
|
+
"x-amz-target": "AWSLicenseManager.ListReceivedLicensesForOrganization",
|
|
393
|
+
};
|
|
394
|
+
let body;
|
|
395
|
+
body = JSON.stringify(serializeAws_json1_1ListReceivedLicensesForOrganizationRequest(input, context));
|
|
396
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
|
+
};
|
|
398
|
+
exports.serializeAws_json1_1ListReceivedLicensesForOrganizationCommand = serializeAws_json1_1ListReceivedLicensesForOrganizationCommand;
|
|
379
399
|
const serializeAws_json1_1ListResourceInventoryCommand = async (input, context) => {
|
|
380
400
|
const headers = {
|
|
381
401
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -2325,6 +2345,58 @@ const deserializeAws_json1_1ListReceivedGrantsCommandError = async (output, cont
|
|
|
2325
2345
|
});
|
|
2326
2346
|
}
|
|
2327
2347
|
};
|
|
2348
|
+
const deserializeAws_json1_1ListReceivedGrantsForOrganizationCommand = async (output, context) => {
|
|
2349
|
+
if (output.statusCode >= 300) {
|
|
2350
|
+
return deserializeAws_json1_1ListReceivedGrantsForOrganizationCommandError(output, context);
|
|
2351
|
+
}
|
|
2352
|
+
const data = await parseBody(output.body, context);
|
|
2353
|
+
let contents = {};
|
|
2354
|
+
contents = deserializeAws_json1_1ListReceivedGrantsForOrganizationResponse(data, context);
|
|
2355
|
+
const response = {
|
|
2356
|
+
$metadata: deserializeMetadata(output),
|
|
2357
|
+
...contents,
|
|
2358
|
+
};
|
|
2359
|
+
return Promise.resolve(response);
|
|
2360
|
+
};
|
|
2361
|
+
exports.deserializeAws_json1_1ListReceivedGrantsForOrganizationCommand = deserializeAws_json1_1ListReceivedGrantsForOrganizationCommand;
|
|
2362
|
+
const deserializeAws_json1_1ListReceivedGrantsForOrganizationCommandError = async (output, context) => {
|
|
2363
|
+
const parsedOutput = {
|
|
2364
|
+
...output,
|
|
2365
|
+
body: await parseErrorBody(output.body, context),
|
|
2366
|
+
};
|
|
2367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2368
|
+
switch (errorCode) {
|
|
2369
|
+
case "AccessDeniedException":
|
|
2370
|
+
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2371
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2372
|
+
case "AuthorizationException":
|
|
2373
|
+
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2374
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2375
|
+
case "InvalidParameterValueException":
|
|
2376
|
+
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2377
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2378
|
+
case "RateLimitExceededException":
|
|
2379
|
+
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2380
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2381
|
+
case "ResourceLimitExceededException":
|
|
2382
|
+
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2383
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2384
|
+
case "ServerInternalException":
|
|
2385
|
+
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2386
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2387
|
+
case "ValidationException":
|
|
2388
|
+
case "com.amazonaws.licensemanager#ValidationException":
|
|
2389
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2390
|
+
default:
|
|
2391
|
+
const parsedBody = parsedOutput.body;
|
|
2392
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2393
|
+
output,
|
|
2394
|
+
parsedBody,
|
|
2395
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2396
|
+
errorCode,
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
};
|
|
2328
2400
|
const deserializeAws_json1_1ListReceivedLicensesCommand = async (output, context) => {
|
|
2329
2401
|
if (output.statusCode >= 300) {
|
|
2330
2402
|
return deserializeAws_json1_1ListReceivedLicensesCommandError(output, context);
|
|
@@ -2377,6 +2449,58 @@ const deserializeAws_json1_1ListReceivedLicensesCommandError = async (output, co
|
|
|
2377
2449
|
});
|
|
2378
2450
|
}
|
|
2379
2451
|
};
|
|
2452
|
+
const deserializeAws_json1_1ListReceivedLicensesForOrganizationCommand = async (output, context) => {
|
|
2453
|
+
if (output.statusCode >= 300) {
|
|
2454
|
+
return deserializeAws_json1_1ListReceivedLicensesForOrganizationCommandError(output, context);
|
|
2455
|
+
}
|
|
2456
|
+
const data = await parseBody(output.body, context);
|
|
2457
|
+
let contents = {};
|
|
2458
|
+
contents = deserializeAws_json1_1ListReceivedLicensesForOrganizationResponse(data, context);
|
|
2459
|
+
const response = {
|
|
2460
|
+
$metadata: deserializeMetadata(output),
|
|
2461
|
+
...contents,
|
|
2462
|
+
};
|
|
2463
|
+
return Promise.resolve(response);
|
|
2464
|
+
};
|
|
2465
|
+
exports.deserializeAws_json1_1ListReceivedLicensesForOrganizationCommand = deserializeAws_json1_1ListReceivedLicensesForOrganizationCommand;
|
|
2466
|
+
const deserializeAws_json1_1ListReceivedLicensesForOrganizationCommandError = async (output, context) => {
|
|
2467
|
+
const parsedOutput = {
|
|
2468
|
+
...output,
|
|
2469
|
+
body: await parseErrorBody(output.body, context),
|
|
2470
|
+
};
|
|
2471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
+
switch (errorCode) {
|
|
2473
|
+
case "AccessDeniedException":
|
|
2474
|
+
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2475
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2476
|
+
case "AuthorizationException":
|
|
2477
|
+
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2478
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2479
|
+
case "InvalidParameterValueException":
|
|
2480
|
+
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2481
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2482
|
+
case "RateLimitExceededException":
|
|
2483
|
+
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2484
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2485
|
+
case "ResourceLimitExceededException":
|
|
2486
|
+
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2487
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2488
|
+
case "ServerInternalException":
|
|
2489
|
+
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2490
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2491
|
+
case "ValidationException":
|
|
2492
|
+
case "com.amazonaws.licensemanager#ValidationException":
|
|
2493
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2494
|
+
default:
|
|
2495
|
+
const parsedBody = parsedOutput.body;
|
|
2496
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2497
|
+
output,
|
|
2498
|
+
parsedBody,
|
|
2499
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2500
|
+
errorCode,
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
};
|
|
2380
2504
|
const deserializeAws_json1_1ListResourceInventoryCommand = async (output, context) => {
|
|
2381
2505
|
if (output.statusCode >= 300) {
|
|
2382
2506
|
return deserializeAws_json1_1ListResourceInventoryCommandError(output, context);
|
|
@@ -3509,6 +3633,14 @@ const serializeAws_json1_1ListLicenseVersionsRequest = (input, context) => {
|
|
|
3509
3633
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3510
3634
|
};
|
|
3511
3635
|
};
|
|
3636
|
+
const serializeAws_json1_1ListReceivedGrantsForOrganizationRequest = (input, context) => {
|
|
3637
|
+
return {
|
|
3638
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3639
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3640
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3641
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3642
|
+
};
|
|
3643
|
+
};
|
|
3512
3644
|
const serializeAws_json1_1ListReceivedGrantsRequest = (input, context) => {
|
|
3513
3645
|
return {
|
|
3514
3646
|
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
@@ -3517,6 +3649,13 @@ const serializeAws_json1_1ListReceivedGrantsRequest = (input, context) => {
|
|
|
3517
3649
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3518
3650
|
};
|
|
3519
3651
|
};
|
|
3652
|
+
const serializeAws_json1_1ListReceivedLicensesForOrganizationRequest = (input, context) => {
|
|
3653
|
+
return {
|
|
3654
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3655
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3656
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3657
|
+
};
|
|
3658
|
+
};
|
|
3520
3659
|
const serializeAws_json1_1ListReceivedLicensesRequest = (input, context) => {
|
|
3521
3660
|
return {
|
|
3522
3661
|
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
@@ -4454,12 +4593,24 @@ const deserializeAws_json1_1ListLicenseVersionsResponse = (output, context) => {
|
|
|
4454
4593
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4455
4594
|
};
|
|
4456
4595
|
};
|
|
4596
|
+
const deserializeAws_json1_1ListReceivedGrantsForOrganizationResponse = (output, context) => {
|
|
4597
|
+
return {
|
|
4598
|
+
Grants: output.Grants != null ? deserializeAws_json1_1GrantList(output.Grants, context) : undefined,
|
|
4599
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4600
|
+
};
|
|
4601
|
+
};
|
|
4457
4602
|
const deserializeAws_json1_1ListReceivedGrantsResponse = (output, context) => {
|
|
4458
4603
|
return {
|
|
4459
4604
|
Grants: output.Grants != null ? deserializeAws_json1_1GrantList(output.Grants, context) : undefined,
|
|
4460
4605
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4461
4606
|
};
|
|
4462
4607
|
};
|
|
4608
|
+
const deserializeAws_json1_1ListReceivedLicensesForOrganizationResponse = (output, context) => {
|
|
4609
|
+
return {
|
|
4610
|
+
Licenses: output.Licenses != null ? deserializeAws_json1_1GrantedLicenseList(output.Licenses, context) : undefined,
|
|
4611
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4612
|
+
};
|
|
4613
|
+
};
|
|
4463
4614
|
const deserializeAws_json1_1ListReceivedLicensesResponse = (output, context) => {
|
|
4464
4615
|
return {
|
|
4465
4616
|
Licenses: output.Licenses != null ? deserializeAws_json1_1GrantedLicenseList(output.Licenses, context) : undefined,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
6
|
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
6
7
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
@@ -10,7 +11,7 @@ const getRuntimeConfig = (config) => ({
|
|
|
10
11
|
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
11
12
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
13
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
13
|
-
logger: config?.logger ??
|
|
14
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
14
15
|
serviceId: config?.serviceId ?? "License Manager",
|
|
15
16
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
16
17
|
});
|
|
@@ -34,7 +34,9 @@ import { ListLicensesCommand, } from "./commands/ListLicensesCommand";
|
|
|
34
34
|
import { ListLicenseSpecificationsForResourceCommand, } from "./commands/ListLicenseSpecificationsForResourceCommand";
|
|
35
35
|
import { ListLicenseVersionsCommand, } from "./commands/ListLicenseVersionsCommand";
|
|
36
36
|
import { ListReceivedGrantsCommand, } from "./commands/ListReceivedGrantsCommand";
|
|
37
|
+
import { ListReceivedGrantsForOrganizationCommand, } from "./commands/ListReceivedGrantsForOrganizationCommand";
|
|
37
38
|
import { ListReceivedLicensesCommand, } from "./commands/ListReceivedLicensesCommand";
|
|
39
|
+
import { ListReceivedLicensesForOrganizationCommand, } from "./commands/ListReceivedLicensesForOrganizationCommand";
|
|
38
40
|
import { ListResourceInventoryCommand, } from "./commands/ListResourceInventoryCommand";
|
|
39
41
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
40
42
|
import { ListTokensCommand } from "./commands/ListTokensCommand";
|
|
@@ -552,6 +554,20 @@ export class LicenseManager extends LicenseManagerClient {
|
|
|
552
554
|
return this.send(command, optionsOrCb);
|
|
553
555
|
}
|
|
554
556
|
}
|
|
557
|
+
listReceivedGrantsForOrganization(args, optionsOrCb, cb) {
|
|
558
|
+
const command = new ListReceivedGrantsForOrganizationCommand(args);
|
|
559
|
+
if (typeof optionsOrCb === "function") {
|
|
560
|
+
this.send(command, optionsOrCb);
|
|
561
|
+
}
|
|
562
|
+
else if (typeof cb === "function") {
|
|
563
|
+
if (typeof optionsOrCb !== "object")
|
|
564
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
565
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
return this.send(command, optionsOrCb);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
555
571
|
listReceivedLicenses(args, optionsOrCb, cb) {
|
|
556
572
|
const command = new ListReceivedLicensesCommand(args);
|
|
557
573
|
if (typeof optionsOrCb === "function") {
|
|
@@ -566,6 +582,20 @@ export class LicenseManager extends LicenseManagerClient {
|
|
|
566
582
|
return this.send(command, optionsOrCb);
|
|
567
583
|
}
|
|
568
584
|
}
|
|
585
|
+
listReceivedLicensesForOrganization(args, optionsOrCb, cb) {
|
|
586
|
+
const command = new ListReceivedLicensesForOrganizationCommand(args);
|
|
587
|
+
if (typeof optionsOrCb === "function") {
|
|
588
|
+
this.send(command, optionsOrCb);
|
|
589
|
+
}
|
|
590
|
+
else if (typeof cb === "function") {
|
|
591
|
+
if (typeof optionsOrCb !== "object")
|
|
592
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
593
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
return this.send(command, optionsOrCb);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
569
599
|
listResourceInventory(args, optionsOrCb, cb) {
|
|
570
600
|
const command = new ListResourceInventoryCommand(args);
|
|
571
601
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListReceivedGrantsForOrganizationRequestFilterSensitiveLog, ListReceivedGrantsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListReceivedGrantsForOrganizationCommand, serializeAws_json1_1ListReceivedGrantsForOrganizationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class ListReceivedGrantsForOrganizationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListReceivedGrantsForOrganizationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LicenseManagerClient";
|
|
25
|
+
const commandName = "ListReceivedGrantsForOrganizationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListReceivedGrantsForOrganizationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListReceivedGrantsForOrganizationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1ListReceivedGrantsForOrganizationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1ListReceivedGrantsForOrganizationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListReceivedLicensesForOrganizationRequestFilterSensitiveLog, ListReceivedLicensesForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListReceivedLicensesForOrganizationCommand, serializeAws_json1_1ListReceivedLicensesForOrganizationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class ListReceivedLicensesForOrganizationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListReceivedLicensesForOrganizationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LicenseManagerClient";
|
|
25
|
+
const commandName = "ListReceivedLicensesForOrganizationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListReceivedLicensesForOrganizationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListReceivedLicensesForOrganizationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1ListReceivedLicensesForOrganizationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1ListReceivedLicensesForOrganizationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -34,7 +34,9 @@ export * from "./ListLicenseSpecificationsForResourceCommand";
|
|
|
34
34
|
export * from "./ListLicenseVersionsCommand";
|
|
35
35
|
export * from "./ListLicensesCommand";
|
|
36
36
|
export * from "./ListReceivedGrantsCommand";
|
|
37
|
+
export * from "./ListReceivedGrantsForOrganizationCommand";
|
|
37
38
|
export * from "./ListReceivedLicensesCommand";
|
|
39
|
+
export * from "./ListReceivedLicensesForOrganizationCommand";
|
|
38
40
|
export * from "./ListResourceInventoryCommand";
|
|
39
41
|
export * from "./ListTagsForResourceCommand";
|
|
40
42
|
export * from "./ListTokensCommand";
|