@aws-sdk/client-license-manager-linux-subscriptions 3.613.0 → 3.616.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 (53) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/index.js +489 -61
  3. package/dist-es/LicenseManagerLinuxSubscriptions.js +14 -0
  4. package/dist-es/LicenseManagerLinuxSubscriptionsClient.js +5 -5
  5. package/dist-es/commands/DeregisterSubscriptionProviderCommand.js +24 -0
  6. package/dist-es/commands/GetRegisteredSubscriptionProviderCommand.js +24 -0
  7. package/dist-es/commands/ListRegisteredSubscriptionProvidersCommand.js +24 -0
  8. package/dist-es/commands/ListTagsForResourceCommand.js +25 -0
  9. package/dist-es/commands/RegisterSubscriptionProviderCommand.js +25 -0
  10. package/dist-es/commands/TagResourceCommand.js +25 -0
  11. package/dist-es/commands/UntagResourceCommand.js +25 -0
  12. package/dist-es/commands/index.js +7 -0
  13. package/dist-es/models/models_0.js +56 -19
  14. package/dist-es/pagination/ListRegisteredSubscriptionProvidersPaginator.js +4 -0
  15. package/dist-es/pagination/index.js +1 -0
  16. package/dist-es/protocols/Aws_restJson1.js +206 -1
  17. package/dist-types/LicenseManagerLinuxSubscriptions.d.ts +50 -0
  18. package/dist-types/LicenseManagerLinuxSubscriptionsClient.d.ts +11 -4
  19. package/dist-types/commands/DeregisterSubscriptionProviderCommand.d.ts +71 -0
  20. package/dist-types/commands/GetRegisteredSubscriptionProviderCommand.d.ts +77 -0
  21. package/dist-types/commands/GetServiceSettingsCommand.d.ts +1 -1
  22. package/dist-types/commands/ListLinuxSubscriptionInstancesCommand.d.ts +5 -0
  23. package/dist-types/commands/ListRegisteredSubscriptionProvidersCommand.d.ts +83 -0
  24. package/dist-types/commands/ListTagsForResourceCommand.d.ts +72 -0
  25. package/dist-types/commands/RegisterSubscriptionProviderCommand.d.ts +75 -0
  26. package/dist-types/commands/TagResourceCommand.d.ts +70 -0
  27. package/dist-types/commands/UntagResourceCommand.d.ts +67 -0
  28. package/dist-types/commands/index.d.ts +7 -0
  29. package/dist-types/models/models_0.d.ts +420 -56
  30. package/dist-types/pagination/ListRegisteredSubscriptionProvidersPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  33. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  34. package/dist-types/runtimeConfig.d.ts +1 -1
  35. package/dist-types/runtimeConfig.native.d.ts +1 -1
  36. package/dist-types/ts3.4/LicenseManagerLinuxSubscriptions.d.ts +132 -0
  37. package/dist-types/ts3.4/LicenseManagerLinuxSubscriptionsClient.d.ts +44 -2
  38. package/dist-types/ts3.4/commands/DeregisterSubscriptionProviderCommand.d.ts +40 -0
  39. package/dist-types/ts3.4/commands/GetRegisteredSubscriptionProviderCommand.d.ts +40 -0
  40. package/dist-types/ts3.4/commands/ListRegisteredSubscriptionProvidersCommand.d.ts +40 -0
  41. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
  42. package/dist-types/ts3.4/commands/RegisterSubscriptionProviderCommand.d.ts +40 -0
  43. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +36 -0
  44. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +39 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +115 -21
  47. package/dist-types/ts3.4/pagination/ListRegisteredSubscriptionProvidersPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  49. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  53. package/package.json +24 -24
@@ -1,13 +1,27 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { DeregisterSubscriptionProviderCommand, } from "./commands/DeregisterSubscriptionProviderCommand";
3
+ import { GetRegisteredSubscriptionProviderCommand, } from "./commands/GetRegisteredSubscriptionProviderCommand";
2
4
  import { GetServiceSettingsCommand, } from "./commands/GetServiceSettingsCommand";
3
5
  import { ListLinuxSubscriptionInstancesCommand, } from "./commands/ListLinuxSubscriptionInstancesCommand";
4
6
  import { ListLinuxSubscriptionsCommand, } from "./commands/ListLinuxSubscriptionsCommand";
7
+ import { ListRegisteredSubscriptionProvidersCommand, } from "./commands/ListRegisteredSubscriptionProvidersCommand";
8
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
9
+ import { RegisterSubscriptionProviderCommand, } from "./commands/RegisterSubscriptionProviderCommand";
10
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
11
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
5
12
  import { UpdateServiceSettingsCommand, } from "./commands/UpdateServiceSettingsCommand";
6
13
  import { LicenseManagerLinuxSubscriptionsClient, } from "./LicenseManagerLinuxSubscriptionsClient";
7
14
  const commands = {
15
+ DeregisterSubscriptionProviderCommand,
16
+ GetRegisteredSubscriptionProviderCommand,
8
17
  GetServiceSettingsCommand,
9
18
  ListLinuxSubscriptionInstancesCommand,
10
19
  ListLinuxSubscriptionsCommand,
20
+ ListRegisteredSubscriptionProvidersCommand,
21
+ ListTagsForResourceCommand,
22
+ RegisterSubscriptionProviderCommand,
23
+ TagResourceCommand,
24
+ UntagResourceCommand,
11
25
  UpdateServiceSettingsCommand,
12
26
  };
13
27
  export class LicenseManagerLinuxSubscriptions extends LicenseManagerLinuxSubscriptionsClient {
@@ -19,19 +19,19 @@ export class LicenseManagerLinuxSubscriptionsClient extends __Client {
19
19
  const _config_1 = resolveClientEndpointParameters(_config_0);
20
20
  const _config_2 = resolveRegionConfig(_config_1);
21
21
  const _config_3 = resolveEndpointConfig(_config_2);
22
- const _config_4 = resolveRetryConfig(_config_3);
23
- const _config_5 = resolveHostHeaderConfig(_config_4);
24
- const _config_6 = resolveUserAgentConfig(_config_5);
22
+ const _config_4 = resolveHostHeaderConfig(_config_3);
23
+ const _config_5 = resolveUserAgentConfig(_config_4);
24
+ const _config_6 = resolveRetryConfig(_config_5);
25
25
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
26
26
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
27
27
  super(_config_8);
28
28
  this.config = _config_8;
29
- this.middlewareStack.use(getRetryPlugin(this.config));
30
- this.middlewareStack.use(getContentLengthPlugin(this.config));
31
29
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
32
30
  this.middlewareStack.use(getLoggerPlugin(this.config));
33
31
  this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
34
32
  this.middlewareStack.use(getUserAgentPlugin(this.config));
33
+ this.middlewareStack.use(getRetryPlugin(this.config));
34
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
35
35
  this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
36
  httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
37
37
  identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeregisterSubscriptionProviderCommand, se_DeregisterSubscriptionProviderCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeregisterSubscriptionProviderCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("LicenseManagerLinuxSubscriptions", "DeregisterSubscriptionProvider", {})
19
+ .n("LicenseManagerLinuxSubscriptionsClient", "DeregisterSubscriptionProviderCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeregisterSubscriptionProviderCommand)
22
+ .de(de_DeregisterSubscriptionProviderCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetRegisteredSubscriptionProviderCommand, se_GetRegisteredSubscriptionProviderCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetRegisteredSubscriptionProviderCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("LicenseManagerLinuxSubscriptions", "GetRegisteredSubscriptionProvider", {})
19
+ .n("LicenseManagerLinuxSubscriptionsClient", "GetRegisteredSubscriptionProviderCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetRegisteredSubscriptionProviderCommand)
22
+ .de(de_GetRegisteredSubscriptionProviderCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListRegisteredSubscriptionProvidersCommand, se_ListRegisteredSubscriptionProvidersCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListRegisteredSubscriptionProvidersCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("LicenseManagerLinuxSubscriptions", "ListRegisteredSubscriptionProviders", {})
19
+ .n("LicenseManagerLinuxSubscriptionsClient", "ListRegisteredSubscriptionProvidersCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListRegisteredSubscriptionProvidersCommand)
22
+ .de(de_ListRegisteredSubscriptionProvidersCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,25 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListTagsForResourceCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("LicenseManagerLinuxSubscriptions", "ListTagsForResource", {})
20
+ .n("LicenseManagerLinuxSubscriptionsClient", "ListTagsForResourceCommand")
21
+ .f(void 0, ListTagsForResourceResponseFilterSensitiveLog)
22
+ .ser(se_ListTagsForResourceCommand)
23
+ .de(de_ListTagsForResourceCommand)
24
+ .build() {
25
+ }
@@ -0,0 +1,25 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { RegisterSubscriptionProviderRequestFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_RegisterSubscriptionProviderCommand, se_RegisterSubscriptionProviderCommand, } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class RegisterSubscriptionProviderCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("LicenseManagerLinuxSubscriptions", "RegisterSubscriptionProvider", {})
20
+ .n("LicenseManagerLinuxSubscriptionsClient", "RegisterSubscriptionProviderCommand")
21
+ .f(RegisterSubscriptionProviderRequestFilterSensitiveLog, void 0)
22
+ .ser(se_RegisterSubscriptionProviderCommand)
23
+ .de(de_RegisterSubscriptionProviderCommand)
24
+ .build() {
25
+ }
@@ -0,0 +1,25 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { TagResourceRequestFilterSensitiveLog } from "../models/models_0";
6
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class TagResourceCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("LicenseManagerLinuxSubscriptions", "TagResource", {})
20
+ .n("LicenseManagerLinuxSubscriptionsClient", "TagResourceCommand")
21
+ .f(TagResourceRequestFilterSensitiveLog, void 0)
22
+ .ser(se_TagResourceCommand)
23
+ .de(de_TagResourceCommand)
24
+ .build() {
25
+ }
@@ -0,0 +1,25 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { UntagResourceRequestFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UntagResourceCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("LicenseManagerLinuxSubscriptions", "UntagResource", {})
20
+ .n("LicenseManagerLinuxSubscriptionsClient", "UntagResourceCommand")
21
+ .f(UntagResourceRequestFilterSensitiveLog, void 0)
22
+ .ser(se_UntagResourceCommand)
23
+ .de(de_UntagResourceCommand)
24
+ .build() {
25
+ }
@@ -1,4 +1,11 @@
1
+ export * from "./DeregisterSubscriptionProviderCommand";
2
+ export * from "./GetRegisteredSubscriptionProviderCommand";
1
3
  export * from "./GetServiceSettingsCommand";
2
4
  export * from "./ListLinuxSubscriptionInstancesCommand";
3
5
  export * from "./ListLinuxSubscriptionsCommand";
6
+ export * from "./ListRegisteredSubscriptionProvidersCommand";
7
+ export * from "./ListTagsForResourceCommand";
8
+ export * from "./RegisterSubscriptionProviderCommand";
9
+ export * from "./TagResourceCommand";
10
+ export * from "./UntagResourceCommand";
4
11
  export * from "./UpdateServiceSettingsCommand";
@@ -1,23 +1,5 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
1
2
  import { LicenseManagerLinuxSubscriptionsServiceException as __BaseException } from "./LicenseManagerLinuxSubscriptionsServiceException";
2
- export const Operator = {
3
- CONTAINS: "Contains",
4
- EQUAL: "Equal",
5
- NOT_EQUAL: "NotEqual",
6
- };
7
- export const LinuxSubscriptionsDiscovery = {
8
- Disabled: "Disabled",
9
- Enabled: "Enabled",
10
- };
11
- export const OrganizationIntegration = {
12
- Disabled: "Disabled",
13
- Enabled: "Enabled",
14
- };
15
- export const Status = {
16
- Completed: "Completed",
17
- Failed: "Failed",
18
- InProgress: "InProgress",
19
- Successful: "Successful",
20
- };
21
3
  export class InternalServerException extends __BaseException {
22
4
  constructor(opts) {
23
5
  super({
@@ -30,6 +12,18 @@ export class InternalServerException extends __BaseException {
30
12
  Object.setPrototypeOf(this, InternalServerException.prototype);
31
13
  }
32
14
  }
15
+ export class ResourceNotFoundException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "ResourceNotFoundException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "ResourceNotFoundException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
25
+ }
26
+ }
33
27
  export class ThrottlingException extends __BaseException {
34
28
  constructor(opts) {
35
29
  super({
@@ -54,3 +48,46 @@ export class ValidationException extends __BaseException {
54
48
  Object.setPrototypeOf(this, ValidationException.prototype);
55
49
  }
56
50
  }
51
+ export const Operator = {
52
+ CONTAINS: "Contains",
53
+ EQUAL: "Equal",
54
+ NOT_EQUAL: "NotEqual",
55
+ };
56
+ export const SubscriptionProviderSource = {
57
+ RedHat: "RedHat",
58
+ };
59
+ export const SubscriptionProviderStatus = {
60
+ ACTIVE: "ACTIVE",
61
+ INVALID: "INVALID",
62
+ PENDING: "PENDING",
63
+ };
64
+ export const LinuxSubscriptionsDiscovery = {
65
+ Disabled: "Disabled",
66
+ Enabled: "Enabled",
67
+ };
68
+ export const OrganizationIntegration = {
69
+ Disabled: "Disabled",
70
+ Enabled: "Enabled",
71
+ };
72
+ export const Status = {
73
+ Completed: "Completed",
74
+ Failed: "Failed",
75
+ InProgress: "InProgress",
76
+ Successful: "Successful",
77
+ };
78
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
79
+ ...obj,
80
+ ...(obj.tags && { tags: SENSITIVE_STRING }),
81
+ });
82
+ export const RegisterSubscriptionProviderRequestFilterSensitiveLog = (obj) => ({
83
+ ...obj,
84
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
85
+ });
86
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
87
+ ...obj,
88
+ ...(obj.tags && { tags: SENSITIVE_STRING }),
89
+ });
90
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
91
+ ...obj,
92
+ ...(obj.tagKeys && { tagKeys: SENSITIVE_STRING }),
93
+ });
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRegisteredSubscriptionProvidersCommand, } from "../commands/ListRegisteredSubscriptionProvidersCommand";
3
+ import { LicenseManagerLinuxSubscriptionsClient } from "../LicenseManagerLinuxSubscriptionsClient";
4
+ export const paginateListRegisteredSubscriptionProviders = createPaginator(LicenseManagerLinuxSubscriptionsClient, ListRegisteredSubscriptionProvidersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListLinuxSubscriptionInstancesPaginator";
3
3
  export * from "./ListLinuxSubscriptionsPaginator";
4
+ export * from "./ListRegisteredSubscriptionProvidersPaginator";
@@ -2,7 +2,33 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { LicenseManagerLinuxSubscriptionsServiceException as __BaseException } from "../models/LicenseManagerLinuxSubscriptionsServiceException";
5
- import { InternalServerException, ThrottlingException, ValidationException, } from "../models/models_0";
5
+ import { InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
6
+ export const se_DeregisterSubscriptionProviderCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {
9
+ "content-type": "application/json",
10
+ };
11
+ b.bp("/subscription/DeregisterSubscriptionProvider");
12
+ let body;
13
+ body = JSON.stringify(take(input, {
14
+ SubscriptionProviderArn: [],
15
+ }));
16
+ b.m("POST").h(headers).b(body);
17
+ return b.build();
18
+ };
19
+ export const se_GetRegisteredSubscriptionProviderCommand = async (input, context) => {
20
+ const b = rb(input, context);
21
+ const headers = {
22
+ "content-type": "application/json",
23
+ };
24
+ b.bp("/subscription/GetRegisteredSubscriptionProvider");
25
+ let body;
26
+ body = JSON.stringify(take(input, {
27
+ SubscriptionProviderArn: [],
28
+ }));
29
+ b.m("POST").h(headers).b(body);
30
+ return b.build();
31
+ };
6
32
  export const se_GetServiceSettingsCommand = async (input, context) => {
7
33
  const b = rb(input, context);
8
34
  const headers = {};
@@ -41,6 +67,74 @@ export const se_ListLinuxSubscriptionsCommand = async (input, context) => {
41
67
  b.m("POST").h(headers).b(body);
42
68
  return b.build();
43
69
  };
70
+ export const se_ListRegisteredSubscriptionProvidersCommand = async (input, context) => {
71
+ const b = rb(input, context);
72
+ const headers = {
73
+ "content-type": "application/json",
74
+ };
75
+ b.bp("/subscription/ListRegisteredSubscriptionProviders");
76
+ let body;
77
+ body = JSON.stringify(take(input, {
78
+ MaxResults: [],
79
+ NextToken: [],
80
+ SubscriptionProviderSources: (_) => _json(_),
81
+ }));
82
+ b.m("POST").h(headers).b(body);
83
+ return b.build();
84
+ };
85
+ export const se_ListTagsForResourceCommand = async (input, context) => {
86
+ const b = rb(input, context);
87
+ const headers = {};
88
+ b.bp("/tags/{resourceArn}");
89
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
90
+ let body;
91
+ b.m("GET").h(headers).b(body);
92
+ return b.build();
93
+ };
94
+ export const se_RegisterSubscriptionProviderCommand = async (input, context) => {
95
+ const b = rb(input, context);
96
+ const headers = {
97
+ "content-type": "application/json",
98
+ };
99
+ b.bp("/subscription/RegisterSubscriptionProvider");
100
+ let body;
101
+ body = JSON.stringify(take(input, {
102
+ SecretArn: [],
103
+ SubscriptionProviderSource: [],
104
+ Tags: (_) => _json(_),
105
+ }));
106
+ b.m("POST").h(headers).b(body);
107
+ return b.build();
108
+ };
109
+ export const se_TagResourceCommand = async (input, context) => {
110
+ const b = rb(input, context);
111
+ const headers = {
112
+ "content-type": "application/json",
113
+ };
114
+ b.bp("/tags/{resourceArn}");
115
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
116
+ let body;
117
+ body = JSON.stringify(take(input, {
118
+ tags: (_) => _json(_),
119
+ }));
120
+ b.m("PUT").h(headers).b(body);
121
+ return b.build();
122
+ };
123
+ export const se_UntagResourceCommand = async (input, context) => {
124
+ const b = rb(input, context);
125
+ const headers = {};
126
+ b.bp("/tags/{resourceArn}");
127
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
128
+ const query = map({
129
+ [_tK]: [
130
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
131
+ () => (input[_tK] || []).map((_entry) => _entry),
132
+ ],
133
+ });
134
+ let body;
135
+ b.m("DELETE").h(headers).q(query).b(body);
136
+ return b.build();
137
+ };
44
138
  export const se_UpdateServiceSettingsCommand = async (input, context) => {
45
139
  const b = rb(input, context);
46
140
  const headers = {
@@ -56,6 +150,35 @@ export const se_UpdateServiceSettingsCommand = async (input, context) => {
56
150
  b.m("POST").h(headers).b(body);
57
151
  return b.build();
58
152
  };
153
+ export const de_DeregisterSubscriptionProviderCommand = async (output, context) => {
154
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
155
+ return de_CommandError(output, context);
156
+ }
157
+ const contents = map({
158
+ $metadata: deserializeMetadata(output),
159
+ });
160
+ await collectBody(output.body, context);
161
+ return contents;
162
+ };
163
+ export const de_GetRegisteredSubscriptionProviderCommand = async (output, context) => {
164
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
165
+ return de_CommandError(output, context);
166
+ }
167
+ const contents = map({
168
+ $metadata: deserializeMetadata(output),
169
+ });
170
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
171
+ const doc = take(data, {
172
+ LastSuccessfulDataRetrievalTime: __expectString,
173
+ SecretArn: __expectString,
174
+ SubscriptionProviderArn: __expectString,
175
+ SubscriptionProviderSource: __expectString,
176
+ SubscriptionProviderStatus: __expectString,
177
+ SubscriptionProviderStatusMessage: __expectString,
178
+ });
179
+ Object.assign(contents, doc);
180
+ return contents;
181
+ };
59
182
  export const de_GetServiceSettingsCommand = async (output, context) => {
60
183
  if (output.statusCode !== 200 && output.statusCode >= 300) {
61
184
  return de_CommandError(output, context);
@@ -104,6 +227,71 @@ export const de_ListLinuxSubscriptionsCommand = async (output, context) => {
104
227
  Object.assign(contents, doc);
105
228
  return contents;
106
229
  };
230
+ export const de_ListRegisteredSubscriptionProvidersCommand = async (output, context) => {
231
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
232
+ return de_CommandError(output, context);
233
+ }
234
+ const contents = map({
235
+ $metadata: deserializeMetadata(output),
236
+ });
237
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
238
+ const doc = take(data, {
239
+ NextToken: __expectString,
240
+ RegisteredSubscriptionProviders: _json,
241
+ });
242
+ Object.assign(contents, doc);
243
+ return contents;
244
+ };
245
+ export const de_ListTagsForResourceCommand = async (output, context) => {
246
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
247
+ return de_CommandError(output, context);
248
+ }
249
+ const contents = map({
250
+ $metadata: deserializeMetadata(output),
251
+ });
252
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
253
+ const doc = take(data, {
254
+ tags: _json,
255
+ });
256
+ Object.assign(contents, doc);
257
+ return contents;
258
+ };
259
+ export const de_RegisterSubscriptionProviderCommand = async (output, context) => {
260
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
261
+ return de_CommandError(output, context);
262
+ }
263
+ const contents = map({
264
+ $metadata: deserializeMetadata(output),
265
+ });
266
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
267
+ const doc = take(data, {
268
+ SubscriptionProviderArn: __expectString,
269
+ SubscriptionProviderSource: __expectString,
270
+ SubscriptionProviderStatus: __expectString,
271
+ });
272
+ Object.assign(contents, doc);
273
+ return contents;
274
+ };
275
+ export const de_TagResourceCommand = async (output, context) => {
276
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
277
+ return de_CommandError(output, context);
278
+ }
279
+ const contents = map({
280
+ $metadata: deserializeMetadata(output),
281
+ });
282
+ await collectBody(output.body, context);
283
+ return contents;
284
+ };
285
+ export const de_UntagResourceCommand = async (output, context) => {
286
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
287
+ return de_CommandError(output, context);
288
+ }
289
+ const contents = map({
290
+ $metadata: deserializeMetadata(output),
291
+ });
292
+ await collectBody(output.body, context);
293
+ return contents;
294
+ };
107
295
  export const de_UpdateServiceSettingsCommand = async (output, context) => {
108
296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
109
297
  return de_CommandError(output, context);
@@ -132,6 +320,9 @@ const de_CommandError = async (output, context) => {
132
320
  case "InternalServerException":
133
321
  case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
134
322
  throw await de_InternalServerExceptionRes(parsedOutput, context);
323
+ case "ResourceNotFoundException":
324
+ case "com.amazonaws.licensemanagerlinuxsubscriptions#ResourceNotFoundException":
325
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
135
326
  case "ThrottlingException":
136
327
  case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
137
328
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -161,6 +352,19 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
161
352
  });
162
353
  return __decorateServiceException(exception, parsedOutput.body);
163
354
  };
355
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
356
+ const contents = map({});
357
+ const data = parsedOutput.body;
358
+ const doc = take(data, {
359
+ message: __expectString,
360
+ });
361
+ Object.assign(contents, doc);
362
+ const exception = new ResourceNotFoundException({
363
+ $metadata: deserializeMetadata(parsedOutput),
364
+ ...contents,
365
+ });
366
+ return __decorateServiceException(exception, parsedOutput.body);
367
+ };
164
368
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
165
369
  const contents = map({});
166
370
  const data = parsedOutput.body;
@@ -199,3 +403,4 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
199
403
  value !== "" &&
200
404
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
201
405
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
406
+ const _tK = "tagKeys";