@aws-sdk/client-license-manager-user-subscriptions 3.180.0 → 3.183.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +16 -10
  3. package/dist-es/LicenseManagerUserSubscriptions.js +42 -49
  4. package/dist-es/LicenseManagerUserSubscriptionsClient.js +22 -28
  5. package/dist-es/commands/AssociateUserCommand.js +21 -28
  6. package/dist-es/commands/DeregisterIdentityProviderCommand.js +21 -28
  7. package/dist-es/commands/DisassociateUserCommand.js +21 -28
  8. package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
  9. package/dist-es/commands/ListInstancesCommand.js +21 -28
  10. package/dist-es/commands/ListProductSubscriptionsCommand.js +21 -28
  11. package/dist-es/commands/ListUserAssociationsCommand.js +21 -28
  12. package/dist-es/commands/RegisterIdentityProviderCommand.js +21 -28
  13. package/dist-es/commands/StartProductSubscriptionCommand.js +21 -28
  14. package/dist-es/commands/StopProductSubscriptionCommand.js +21 -28
  15. package/dist-es/endpoints.js +8 -8
  16. package/dist-es/models/LicenseManagerUserSubscriptionsServiceException.js +5 -10
  17. package/dist-es/models/models_0.js +191 -123
  18. package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
  19. package/dist-es/pagination/ListInstancesPaginator.js +25 -68
  20. package/dist-es/pagination/ListProductSubscriptionsPaginator.js +25 -68
  21. package/dist-es/pagination/ListUserAssociationsPaginator.js +25 -68
  22. package/dist-es/protocols/Aws_restJson1.js +884 -1189
  23. package/dist-es/runtimeConfig.browser.js +26 -12
  24. package/dist-es/runtimeConfig.js +30 -12
  25. package/dist-es/runtimeConfig.native.js +8 -5
  26. package/dist-es/runtimeConfig.shared.js +8 -11
  27. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListInstancesRequestFilterSensitiveLog, ListInstancesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListInstancesCommand, serializeAws_restJson1ListInstancesCommand, } from "../protocols/Aws_restJson1";
6
- var ListInstancesCommand = (function (_super) {
7
- __extends(ListInstancesCommand, _super);
8
- function ListInstancesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListInstancesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListInstancesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "ListInstancesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "ListInstancesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListInstancesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListInstancesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListInstancesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListInstancesCommand(input, context);
33
- };
34
- ListInstancesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListInstancesCommand(output, context);
36
- };
37
- return ListInstancesCommand;
38
- }($Command));
39
- export { ListInstancesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListProductSubscriptionsRequestFilterSensitiveLog, ListProductSubscriptionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListProductSubscriptionsCommand, serializeAws_restJson1ListProductSubscriptionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListProductSubscriptionsCommand = (function (_super) {
7
- __extends(ListProductSubscriptionsCommand, _super);
8
- function ListProductSubscriptionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListProductSubscriptionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListProductSubscriptionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "ListProductSubscriptionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "ListProductSubscriptionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListProductSubscriptionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListProductSubscriptionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListProductSubscriptionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListProductSubscriptionsCommand(input, context);
33
- };
34
- ListProductSubscriptionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListProductSubscriptionsCommand(output, context);
36
- };
37
- return ListProductSubscriptionsCommand;
38
- }($Command));
39
- export { ListProductSubscriptionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListUserAssociationsRequestFilterSensitiveLog, ListUserAssociationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListUserAssociationsCommand, serializeAws_restJson1ListUserAssociationsCommand, } from "../protocols/Aws_restJson1";
6
- var ListUserAssociationsCommand = (function (_super) {
7
- __extends(ListUserAssociationsCommand, _super);
8
- function ListUserAssociationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListUserAssociationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListUserAssociationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "ListUserAssociationsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "ListUserAssociationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListUserAssociationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListUserAssociationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListUserAssociationsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListUserAssociationsCommand(input, context);
33
- };
34
- ListUserAssociationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListUserAssociationsCommand(output, context);
36
- };
37
- return ListUserAssociationsCommand;
38
- }($Command));
39
- export { ListUserAssociationsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RegisterIdentityProviderRequestFilterSensitiveLog, RegisterIdentityProviderResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1RegisterIdentityProviderCommand, serializeAws_restJson1RegisterIdentityProviderCommand, } from "../protocols/Aws_restJson1";
6
- var RegisterIdentityProviderCommand = (function (_super) {
7
- __extends(RegisterIdentityProviderCommand, _super);
8
- function RegisterIdentityProviderCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RegisterIdentityProviderCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RegisterIdentityProviderCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "RegisterIdentityProviderCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "RegisterIdentityProviderCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RegisterIdentityProviderRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RegisterIdentityProviderResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RegisterIdentityProviderCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1RegisterIdentityProviderCommand(input, context);
33
- };
34
- RegisterIdentityProviderCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1RegisterIdentityProviderCommand(output, context);
36
- };
37
- return RegisterIdentityProviderCommand;
38
- }($Command));
39
- export { RegisterIdentityProviderCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StartProductSubscriptionRequestFilterSensitiveLog, StartProductSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartProductSubscriptionCommand, serializeAws_restJson1StartProductSubscriptionCommand, } from "../protocols/Aws_restJson1";
6
- var StartProductSubscriptionCommand = (function (_super) {
7
- __extends(StartProductSubscriptionCommand, _super);
8
- function StartProductSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartProductSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartProductSubscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "StartProductSubscriptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "StartProductSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartProductSubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartProductSubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartProductSubscriptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1StartProductSubscriptionCommand(input, context);
33
- };
34
- StartProductSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartProductSubscriptionCommand(output, context);
36
- };
37
- return StartProductSubscriptionCommand;
38
- }($Command));
39
- export { StartProductSubscriptionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopProductSubscriptionRequestFilterSensitiveLog, StopProductSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StopProductSubscriptionCommand, serializeAws_restJson1StopProductSubscriptionCommand, } from "../protocols/Aws_restJson1";
6
- var StopProductSubscriptionCommand = (function (_super) {
7
- __extends(StopProductSubscriptionCommand, _super);
8
- function StopProductSubscriptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopProductSubscriptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopProductSubscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "StopProductSubscriptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "StopProductSubscriptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopProductSubscriptionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopProductSubscriptionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopProductSubscriptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1StopProductSubscriptionCommand(input, context);
33
- };
34
- StopProductSubscriptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StopProductSubscriptionCommand(output, context);
36
- };
37
- return StopProductSubscriptionCommand;
38
- }($Command));
39
- export { StopProductSubscriptionCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "us-east-1": {
5
4
  variants: [
6
5
  {
@@ -34,7 +33,7 @@ var regionHash = {
34
33
  ],
35
34
  },
36
35
  };
37
- var partitionHash = {
36
+ const partitionHash = {
38
37
  aws: {
39
38
  regions: [
40
39
  "af-south-1",
@@ -158,8 +157,9 @@ var partitionHash = {
158
157
  ],
159
158
  },
160
159
  };
161
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
162
- return __generator(this, function (_a) {
163
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "license-manager-user-subscriptions", regionHash: regionHash, partitionHash: partitionHash }))];
164
- });
165
- }); };
160
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
161
+ ...options,
162
+ signingService: "license-manager-user-subscriptions",
163
+ regionHash,
164
+ partitionHash,
165
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var LicenseManagerUserSubscriptionsServiceException = (function (_super) {
4
- __extends(LicenseManagerUserSubscriptionsServiceException, _super);
5
- function LicenseManagerUserSubscriptionsServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, LicenseManagerUserSubscriptionsServiceException.prototype);
8
- return _this;
2
+ export class LicenseManagerUserSubscriptionsServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, LicenseManagerUserSubscriptionsServiceException.prototype);
9
6
  }
10
- return LicenseManagerUserSubscriptionsServiceException;
11
- }(__ServiceException));
12
- export { LicenseManagerUserSubscriptionsServiceException };
7
+ }