@aws-sdk/client-ssm-quicksetup 3.693.0 → 3.698.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 (34) hide show
  1. package/README.md +23 -7
  2. package/dist-cjs/SSMQuickSetup.js +4 -0
  3. package/dist-cjs/commands/GetConfigurationCommand.js +26 -0
  4. package/dist-cjs/commands/ListConfigurationsCommand.js +26 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/pagination/ListConfigurationsPaginator.js +7 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +92 -1
  9. package/dist-es/SSMQuickSetup.js +4 -0
  10. package/dist-es/commands/GetConfigurationCommand.js +22 -0
  11. package/dist-es/commands/ListConfigurationsCommand.js +22 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/pagination/ListConfigurationsPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +87 -0
  16. package/dist-types/SSMQuickSetup.d.ts +15 -0
  17. package/dist-types/SSMQuickSetupClient.d.ts +4 -2
  18. package/dist-types/commands/GetConfigurationCommand.d.ts +112 -0
  19. package/dist-types/commands/ListConfigurationsCommand.d.ts +124 -0
  20. package/dist-types/commands/index.d.ts +2 -0
  21. package/dist-types/models/models_0.d.ts +184 -5
  22. package/dist-types/pagination/ListConfigurationsPaginator.d.ts +7 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  25. package/dist-types/ts3.4/SSMQuickSetup.d.ts +35 -0
  26. package/dist-types/ts3.4/SSMQuickSetupClient.d.ts +12 -0
  27. package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +50 -0
  28. package/dist-types/ts3.4/commands/ListConfigurationsCommand.d.ts +51 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +39 -0
  31. package/dist-types/ts3.4/pagination/ListConfigurationsPaginator.d.ts +11 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  33. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  34. package/package.json +35 -35
package/README.md CHANGED
@@ -25,16 +25,16 @@ using your favorite package manager:
25
25
 
26
26
  The AWS SDK is modulized by clients and commands.
27
27
  To send a request, you only need to import the `SSMQuickSetupClient` and
28
- the commands you need, for example `ListQuickSetupTypesCommand`:
28
+ the commands you need, for example `ListConfigurationsCommand`:
29
29
 
30
30
  ```js
31
31
  // ES5 example
32
- const { SSMQuickSetupClient, ListQuickSetupTypesCommand } = require("@aws-sdk/client-ssm-quicksetup");
32
+ const { SSMQuickSetupClient, ListConfigurationsCommand } = require("@aws-sdk/client-ssm-quicksetup");
33
33
  ```
34
34
 
35
35
  ```ts
36
36
  // ES6+ example
37
- import { SSMQuickSetupClient, ListQuickSetupTypesCommand } from "@aws-sdk/client-ssm-quicksetup";
37
+ import { SSMQuickSetupClient, ListConfigurationsCommand } from "@aws-sdk/client-ssm-quicksetup";
38
38
  ```
39
39
 
40
40
  ### Usage
@@ -53,7 +53,7 @@ const client = new SSMQuickSetupClient({ region: "REGION" });
53
53
  const params = {
54
54
  /** input parameters */
55
55
  };
56
- const command = new ListQuickSetupTypesCommand(params);
56
+ const command = new ListConfigurationsCommand(params);
57
57
  ```
58
58
 
59
59
  #### Async/await
@@ -132,7 +132,7 @@ const client = new AWS.SSMQuickSetup({ region: "REGION" });
132
132
 
133
133
  // async/await.
134
134
  try {
135
- const data = await client.listQuickSetupTypes(params);
135
+ const data = await client.listConfigurations(params);
136
136
  // process data.
137
137
  } catch (error) {
138
138
  // error handling.
@@ -140,7 +140,7 @@ try {
140
140
 
141
141
  // Promises.
142
142
  client
143
- .listQuickSetupTypes(params)
143
+ .listConfigurations(params)
144
144
  .then((data) => {
145
145
  // process data.
146
146
  })
@@ -149,7 +149,7 @@ client
149
149
  });
150
150
 
151
151
  // callbacks.
152
- client.listQuickSetupTypes(params, (err, data) => {
152
+ client.listConfigurations(params, (err, data) => {
153
153
  // process err and data.
154
154
  });
155
155
  ```
@@ -220,6 +220,14 @@ DeleteConfigurationManager
220
220
 
221
221
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ssm-quicksetup/command/DeleteConfigurationManagerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/DeleteConfigurationManagerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/DeleteConfigurationManagerCommandOutput/)
222
222
 
223
+ </details>
224
+ <details>
225
+ <summary>
226
+ GetConfiguration
227
+ </summary>
228
+
229
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ssm-quicksetup/command/GetConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/GetConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/GetConfigurationCommandOutput/)
230
+
223
231
  </details>
224
232
  <details>
225
233
  <summary>
@@ -244,6 +252,14 @@ ListConfigurationManagers
244
252
 
245
253
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ssm-quicksetup/command/ListConfigurationManagersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/ListConfigurationManagersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/ListConfigurationManagersCommandOutput/)
246
254
 
255
+ </details>
256
+ <details>
257
+ <summary>
258
+ ListConfigurations
259
+ </summary>
260
+
261
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ssm-quicksetup/command/ListConfigurationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/ListConfigurationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ssm-quicksetup/Interface/ListConfigurationsCommandOutput/)
262
+
247
263
  </details>
248
264
  <details>
249
265
  <summary>
@@ -4,9 +4,11 @@ exports.SSMQuickSetup = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const CreateConfigurationManagerCommand_1 = require("./commands/CreateConfigurationManagerCommand");
6
6
  const DeleteConfigurationManagerCommand_1 = require("./commands/DeleteConfigurationManagerCommand");
7
+ const GetConfigurationCommand_1 = require("./commands/GetConfigurationCommand");
7
8
  const GetConfigurationManagerCommand_1 = require("./commands/GetConfigurationManagerCommand");
8
9
  const GetServiceSettingsCommand_1 = require("./commands/GetServiceSettingsCommand");
9
10
  const ListConfigurationManagersCommand_1 = require("./commands/ListConfigurationManagersCommand");
11
+ const ListConfigurationsCommand_1 = require("./commands/ListConfigurationsCommand");
10
12
  const ListQuickSetupTypesCommand_1 = require("./commands/ListQuickSetupTypesCommand");
11
13
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
12
14
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
@@ -18,9 +20,11 @@ const SSMQuickSetupClient_1 = require("./SSMQuickSetupClient");
18
20
  const commands = {
19
21
  CreateConfigurationManagerCommand: CreateConfigurationManagerCommand_1.CreateConfigurationManagerCommand,
20
22
  DeleteConfigurationManagerCommand: DeleteConfigurationManagerCommand_1.DeleteConfigurationManagerCommand,
23
+ GetConfigurationCommand: GetConfigurationCommand_1.GetConfigurationCommand,
21
24
  GetConfigurationManagerCommand: GetConfigurationManagerCommand_1.GetConfigurationManagerCommand,
22
25
  GetServiceSettingsCommand: GetServiceSettingsCommand_1.GetServiceSettingsCommand,
23
26
  ListConfigurationManagersCommand: ListConfigurationManagersCommand_1.ListConfigurationManagersCommand,
27
+ ListConfigurationsCommand: ListConfigurationsCommand_1.ListConfigurationsCommand,
24
28
  ListQuickSetupTypesCommand: ListQuickSetupTypesCommand_1.ListQuickSetupTypesCommand,
25
29
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
26
30
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetConfigurationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("QuickSetup", "GetConfiguration", {})
20
+ .n("SSMQuickSetupClient", "GetConfigurationCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_GetConfigurationCommand)
23
+ .de(Aws_restJson1_1.de_GetConfigurationCommand)
24
+ .build() {
25
+ }
26
+ exports.GetConfigurationCommand = GetConfigurationCommand;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListConfigurationsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListConfigurationsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("QuickSetup", "ListConfigurations", {})
20
+ .n("SSMQuickSetupClient", "ListConfigurationsCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_ListConfigurationsCommand)
23
+ .de(Aws_restJson1_1.de_ListConfigurationsCommand)
24
+ .build() {
25
+ }
26
+ exports.ListConfigurationsCommand = ListConfigurationsCommand;
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CreateConfigurationManagerCommand"), exports);
5
5
  tslib_1.__exportStar(require("./DeleteConfigurationManagerCommand"), exports);
6
+ tslib_1.__exportStar(require("./GetConfigurationCommand"), exports);
6
7
  tslib_1.__exportStar(require("./GetConfigurationManagerCommand"), exports);
7
8
  tslib_1.__exportStar(require("./GetServiceSettingsCommand"), exports);
8
9
  tslib_1.__exportStar(require("./ListConfigurationManagersCommand"), exports);
10
+ tslib_1.__exportStar(require("./ListConfigurationsCommand"), exports);
9
11
  tslib_1.__exportStar(require("./ListQuickSetupTypesCommand"), exports);
10
12
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
11
13
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListConfigurationsCommand_1 = require("../commands/ListConfigurationsCommand");
6
+ const SSMQuickSetupClient_1 = require("../SSMQuickSetupClient");
7
+ exports.paginateListConfigurations = (0, core_1.createPaginator)(SSMQuickSetupClient_1.SSMQuickSetupClient, ListConfigurationsCommand_1.ListConfigurationsCommand, "StartingToken", "NextToken", "MaxItems");
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListConfigurationManagersPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListConfigurationsPaginator"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateServiceSettingsCommand = exports.de_UpdateConfigurationManagerCommand = exports.de_UpdateConfigurationDefinitionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuickSetupTypesCommand = exports.de_ListConfigurationManagersCommand = exports.de_GetServiceSettingsCommand = exports.de_GetConfigurationManagerCommand = exports.de_DeleteConfigurationManagerCommand = exports.de_CreateConfigurationManagerCommand = exports.se_UpdateServiceSettingsCommand = exports.se_UpdateConfigurationManagerCommand = exports.se_UpdateConfigurationDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQuickSetupTypesCommand = exports.se_ListConfigurationManagersCommand = exports.se_GetServiceSettingsCommand = exports.se_GetConfigurationManagerCommand = exports.se_DeleteConfigurationManagerCommand = exports.se_CreateConfigurationManagerCommand = void 0;
3
+ exports.de_UpdateServiceSettingsCommand = exports.de_UpdateConfigurationManagerCommand = exports.de_UpdateConfigurationDefinitionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuickSetupTypesCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationManagersCommand = exports.de_GetServiceSettingsCommand = exports.de_GetConfigurationManagerCommand = exports.de_GetConfigurationCommand = exports.de_DeleteConfigurationManagerCommand = exports.de_CreateConfigurationManagerCommand = exports.se_UpdateServiceSettingsCommand = exports.se_UpdateConfigurationManagerCommand = exports.se_UpdateConfigurationDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQuickSetupTypesCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationManagersCommand = exports.se_GetServiceSettingsCommand = exports.se_GetConfigurationManagerCommand = exports.se_GetConfigurationCommand = exports.se_DeleteConfigurationManagerCommand = exports.se_CreateConfigurationManagerCommand = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
5
  const core_2 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
@@ -33,6 +33,16 @@ const se_DeleteConfigurationManagerCommand = async (input, context) => {
33
33
  return b.build();
34
34
  };
35
35
  exports.se_DeleteConfigurationManagerCommand = se_DeleteConfigurationManagerCommand;
36
+ const se_GetConfigurationCommand = async (input, context) => {
37
+ const b = (0, core_2.requestBuilder)(input, context);
38
+ const headers = {};
39
+ b.bp("/getConfiguration/{ConfigurationId}");
40
+ b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
41
+ let body;
42
+ b.m("GET").h(headers).b(body);
43
+ return b.build();
44
+ };
45
+ exports.se_GetConfigurationCommand = se_GetConfigurationCommand;
36
46
  const se_GetConfigurationManagerCommand = async (input, context) => {
37
47
  const b = (0, core_2.requestBuilder)(input, context);
38
48
  const headers = {};
@@ -68,6 +78,24 @@ const se_ListConfigurationManagersCommand = async (input, context) => {
68
78
  return b.build();
69
79
  };
70
80
  exports.se_ListConfigurationManagersCommand = se_ListConfigurationManagersCommand;
81
+ const se_ListConfigurationsCommand = async (input, context) => {
82
+ const b = (0, core_2.requestBuilder)(input, context);
83
+ const headers = {
84
+ "content-type": "application/json",
85
+ };
86
+ b.bp("/listConfigurations");
87
+ let body;
88
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
89
+ ConfigurationDefinitionId: [],
90
+ Filters: (_) => (0, smithy_client_1._json)(_),
91
+ ManagerArn: [],
92
+ MaxItems: [],
93
+ StartingToken: [],
94
+ }));
95
+ b.m("POST").h(headers).b(body);
96
+ return b.build();
97
+ };
98
+ exports.se_ListConfigurationsCommand = se_ListConfigurationsCommand;
71
99
  const se_ListQuickSetupTypesCommand = async (input, context) => {
72
100
  const b = (0, core_2.requestBuilder)(input, context);
73
101
  const headers = {};
@@ -190,6 +218,31 @@ const de_DeleteConfigurationManagerCommand = async (output, context) => {
190
218
  return contents;
191
219
  };
192
220
  exports.de_DeleteConfigurationManagerCommand = de_DeleteConfigurationManagerCommand;
221
+ const de_GetConfigurationCommand = async (output, context) => {
222
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
223
+ return de_CommandError(output, context);
224
+ }
225
+ const contents = (0, smithy_client_1.map)({
226
+ $metadata: deserializeMetadata(output),
227
+ });
228
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
229
+ const doc = (0, smithy_client_1.take)(data, {
230
+ Account: smithy_client_1.expectString,
231
+ ConfigurationDefinitionId: smithy_client_1.expectString,
232
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
233
+ Id: smithy_client_1.expectString,
234
+ LastModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
235
+ ManagerArn: smithy_client_1.expectString,
236
+ Parameters: smithy_client_1._json,
237
+ Region: smithy_client_1.expectString,
238
+ StatusSummaries: (_) => de_StatusSummariesList(_, context),
239
+ Type: smithy_client_1.expectString,
240
+ TypeVersion: smithy_client_1.expectString,
241
+ });
242
+ Object.assign(contents, doc);
243
+ return contents;
244
+ };
245
+ exports.de_GetConfigurationCommand = de_GetConfigurationCommand;
193
246
  const de_GetConfigurationManagerCommand = async (output, context) => {
194
247
  if (output.statusCode !== 200 && output.statusCode >= 300) {
195
248
  return de_CommandError(output, context);
@@ -243,6 +296,22 @@ const de_ListConfigurationManagersCommand = async (output, context) => {
243
296
  return contents;
244
297
  };
245
298
  exports.de_ListConfigurationManagersCommand = de_ListConfigurationManagersCommand;
299
+ const de_ListConfigurationsCommand = async (output, context) => {
300
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
301
+ return de_CommandError(output, context);
302
+ }
303
+ const contents = (0, smithy_client_1.map)({
304
+ $metadata: deserializeMetadata(output),
305
+ });
306
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
307
+ const doc = (0, smithy_client_1.take)(data, {
308
+ ConfigurationsList: (_) => de_ConfigurationsList(_, context),
309
+ NextToken: smithy_client_1.expectString,
310
+ });
311
+ Object.assign(contents, doc);
312
+ return contents;
313
+ };
314
+ exports.de_ListConfigurationsCommand = de_ListConfigurationsCommand;
246
315
  const de_ListQuickSetupTypesCommand = async (output, context) => {
247
316
  if (output.statusCode !== 200 && output.statusCode >= 300) {
248
317
  return de_CommandError(output, context);
@@ -458,6 +527,28 @@ const de_ConfigurationManagerSummary = (output, context) => {
458
527
  StatusSummaries: (_) => de_StatusSummariesList(_, context),
459
528
  });
460
529
  };
530
+ const de_ConfigurationsList = (output, context) => {
531
+ const retVal = (output || [])
532
+ .filter((e) => e != null)
533
+ .map((entry) => {
534
+ return de_ConfigurationSummary(entry, context);
535
+ });
536
+ return retVal;
537
+ };
538
+ const de_ConfigurationSummary = (output, context) => {
539
+ return (0, smithy_client_1.take)(output, {
540
+ Account: smithy_client_1.expectString,
541
+ ConfigurationDefinitionId: smithy_client_1.expectString,
542
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
543
+ FirstClassParameters: smithy_client_1._json,
544
+ Id: smithy_client_1.expectString,
545
+ ManagerArn: smithy_client_1.expectString,
546
+ Region: smithy_client_1.expectString,
547
+ StatusSummaries: (_) => de_StatusSummariesList(_, context),
548
+ Type: smithy_client_1.expectString,
549
+ TypeVersion: smithy_client_1.expectString,
550
+ });
551
+ };
461
552
  const de_StatusSummariesList = (output, context) => {
462
553
  const retVal = (output || [])
463
554
  .filter((e) => e != null)
@@ -1,9 +1,11 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CreateConfigurationManagerCommand, } from "./commands/CreateConfigurationManagerCommand";
3
3
  import { DeleteConfigurationManagerCommand, } from "./commands/DeleteConfigurationManagerCommand";
4
+ import { GetConfigurationCommand, } from "./commands/GetConfigurationCommand";
4
5
  import { GetConfigurationManagerCommand, } from "./commands/GetConfigurationManagerCommand";
5
6
  import { GetServiceSettingsCommand, } from "./commands/GetServiceSettingsCommand";
6
7
  import { ListConfigurationManagersCommand, } from "./commands/ListConfigurationManagersCommand";
8
+ import { ListConfigurationsCommand, } from "./commands/ListConfigurationsCommand";
7
9
  import { ListQuickSetupTypesCommand, } from "./commands/ListQuickSetupTypesCommand";
8
10
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
9
11
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -15,9 +17,11 @@ import { SSMQuickSetupClient } from "./SSMQuickSetupClient";
15
17
  const commands = {
16
18
  CreateConfigurationManagerCommand,
17
19
  DeleteConfigurationManagerCommand,
20
+ GetConfigurationCommand,
18
21
  GetConfigurationManagerCommand,
19
22
  GetServiceSettingsCommand,
20
23
  ListConfigurationManagersCommand,
24
+ ListConfigurationsCommand,
21
25
  ListQuickSetupTypesCommand,
22
26
  ListTagsForResourceCommand,
23
27
  TagResourceCommand,
@@ -0,0 +1,22 @@
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_GetConfigurationCommand, se_GetConfigurationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("QuickSetup", "GetConfiguration", {})
17
+ .n("SSMQuickSetupClient", "GetConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetConfigurationCommand)
20
+ .de(de_GetConfigurationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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_ListConfigurationsCommand, se_ListConfigurationsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListConfigurationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("QuickSetup", "ListConfigurations", {})
17
+ .n("SSMQuickSetupClient", "ListConfigurationsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListConfigurationsCommand)
20
+ .de(de_ListConfigurationsCommand)
21
+ .build() {
22
+ }
@@ -1,8 +1,10 @@
1
1
  export * from "./CreateConfigurationManagerCommand";
2
2
  export * from "./DeleteConfigurationManagerCommand";
3
+ export * from "./GetConfigurationCommand";
3
4
  export * from "./GetConfigurationManagerCommand";
4
5
  export * from "./GetServiceSettingsCommand";
5
6
  export * from "./ListConfigurationManagersCommand";
7
+ export * from "./ListConfigurationsCommand";
6
8
  export * from "./ListQuickSetupTypesCommand";
7
9
  export * from "./ListTagsForResourceCommand";
8
10
  export * from "./TagResourceCommand";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListConfigurationsCommand, } from "../commands/ListConfigurationsCommand";
3
+ import { SSMQuickSetupClient } from "../SSMQuickSetupClient";
4
+ export const paginateListConfigurations = createPaginator(SSMQuickSetupClient, ListConfigurationsCommand, "StartingToken", "NextToken", "MaxItems");
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListConfigurationManagersPaginator";
3
+ export * from "./ListConfigurationsPaginator";
@@ -28,6 +28,15 @@ export const se_DeleteConfigurationManagerCommand = async (input, context) => {
28
28
  b.m("DELETE").h(headers).b(body);
29
29
  return b.build();
30
30
  };
31
+ export const se_GetConfigurationCommand = async (input, context) => {
32
+ const b = rb(input, context);
33
+ const headers = {};
34
+ b.bp("/getConfiguration/{ConfigurationId}");
35
+ b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
36
+ let body;
37
+ b.m("GET").h(headers).b(body);
38
+ return b.build();
39
+ };
31
40
  export const se_GetConfigurationManagerCommand = async (input, context) => {
32
41
  const b = rb(input, context);
33
42
  const headers = {};
@@ -60,6 +69,23 @@ export const se_ListConfigurationManagersCommand = async (input, context) => {
60
69
  b.m("POST").h(headers).b(body);
61
70
  return b.build();
62
71
  };
72
+ export const se_ListConfigurationsCommand = async (input, context) => {
73
+ const b = rb(input, context);
74
+ const headers = {
75
+ "content-type": "application/json",
76
+ };
77
+ b.bp("/listConfigurations");
78
+ let body;
79
+ body = JSON.stringify(take(input, {
80
+ ConfigurationDefinitionId: [],
81
+ Filters: (_) => _json(_),
82
+ ManagerArn: [],
83
+ MaxItems: [],
84
+ StartingToken: [],
85
+ }));
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
88
+ };
63
89
  export const se_ListQuickSetupTypesCommand = async (input, context) => {
64
90
  const b = rb(input, context);
65
91
  const headers = {};
@@ -173,6 +199,30 @@ export const de_DeleteConfigurationManagerCommand = async (output, context) => {
173
199
  await collectBody(output.body, context);
174
200
  return contents;
175
201
  };
202
+ export const de_GetConfigurationCommand = async (output, context) => {
203
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
204
+ return de_CommandError(output, context);
205
+ }
206
+ const contents = map({
207
+ $metadata: deserializeMetadata(output),
208
+ });
209
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
210
+ const doc = take(data, {
211
+ Account: __expectString,
212
+ ConfigurationDefinitionId: __expectString,
213
+ CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
214
+ Id: __expectString,
215
+ LastModifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
216
+ ManagerArn: __expectString,
217
+ Parameters: _json,
218
+ Region: __expectString,
219
+ StatusSummaries: (_) => de_StatusSummariesList(_, context),
220
+ Type: __expectString,
221
+ TypeVersion: __expectString,
222
+ });
223
+ Object.assign(contents, doc);
224
+ return contents;
225
+ };
176
226
  export const de_GetConfigurationManagerCommand = async (output, context) => {
177
227
  if (output.statusCode !== 200 && output.statusCode >= 300) {
178
228
  return de_CommandError(output, context);
@@ -223,6 +273,21 @@ export const de_ListConfigurationManagersCommand = async (output, context) => {
223
273
  Object.assign(contents, doc);
224
274
  return contents;
225
275
  };
276
+ export const de_ListConfigurationsCommand = async (output, context) => {
277
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
278
+ return de_CommandError(output, context);
279
+ }
280
+ const contents = map({
281
+ $metadata: deserializeMetadata(output),
282
+ });
283
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
284
+ const doc = take(data, {
285
+ ConfigurationsList: (_) => de_ConfigurationsList(_, context),
286
+ NextToken: __expectString,
287
+ });
288
+ Object.assign(contents, doc);
289
+ return contents;
290
+ };
226
291
  export const de_ListQuickSetupTypesCommand = async (output, context) => {
227
292
  if (output.statusCode !== 200 && output.statusCode >= 300) {
228
293
  return de_CommandError(output, context);
@@ -431,6 +496,28 @@ const de_ConfigurationManagerSummary = (output, context) => {
431
496
  StatusSummaries: (_) => de_StatusSummariesList(_, context),
432
497
  });
433
498
  };
499
+ const de_ConfigurationsList = (output, context) => {
500
+ const retVal = (output || [])
501
+ .filter((e) => e != null)
502
+ .map((entry) => {
503
+ return de_ConfigurationSummary(entry, context);
504
+ });
505
+ return retVal;
506
+ };
507
+ const de_ConfigurationSummary = (output, context) => {
508
+ return take(output, {
509
+ Account: __expectString,
510
+ ConfigurationDefinitionId: __expectString,
511
+ CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
512
+ FirstClassParameters: _json,
513
+ Id: __expectString,
514
+ ManagerArn: __expectString,
515
+ Region: __expectString,
516
+ StatusSummaries: (_) => de_StatusSummariesList(_, context),
517
+ Type: __expectString,
518
+ TypeVersion: __expectString,
519
+ });
520
+ };
434
521
  const de_StatusSummariesList = (output, context) => {
435
522
  const retVal = (output || [])
436
523
  .filter((e) => e != null)
@@ -1,9 +1,11 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CreateConfigurationManagerCommandInput, CreateConfigurationManagerCommandOutput } from "./commands/CreateConfigurationManagerCommand";
3
3
  import { DeleteConfigurationManagerCommandInput, DeleteConfigurationManagerCommandOutput } from "./commands/DeleteConfigurationManagerCommand";
4
+ import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
4
5
  import { GetConfigurationManagerCommandInput, GetConfigurationManagerCommandOutput } from "./commands/GetConfigurationManagerCommand";
5
6
  import { GetServiceSettingsCommandInput, GetServiceSettingsCommandOutput } from "./commands/GetServiceSettingsCommand";
6
7
  import { ListConfigurationManagersCommandInput, ListConfigurationManagersCommandOutput } from "./commands/ListConfigurationManagersCommand";
8
+ import { ListConfigurationsCommandInput, ListConfigurationsCommandOutput } from "./commands/ListConfigurationsCommand";
7
9
  import { ListQuickSetupTypesCommandInput, ListQuickSetupTypesCommandOutput } from "./commands/ListQuickSetupTypesCommand";
8
10
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
9
11
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -25,6 +27,12 @@ export interface SSMQuickSetup {
25
27
  deleteConfigurationManager(args: DeleteConfigurationManagerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConfigurationManagerCommandOutput>;
26
28
  deleteConfigurationManager(args: DeleteConfigurationManagerCommandInput, cb: (err: any, data?: DeleteConfigurationManagerCommandOutput) => void): void;
27
29
  deleteConfigurationManager(args: DeleteConfigurationManagerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConfigurationManagerCommandOutput) => void): void;
30
+ /**
31
+ * @see {@link GetConfigurationCommand}
32
+ */
33
+ getConfiguration(args: GetConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetConfigurationCommandOutput>;
34
+ getConfiguration(args: GetConfigurationCommandInput, cb: (err: any, data?: GetConfigurationCommandOutput) => void): void;
35
+ getConfiguration(args: GetConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConfigurationCommandOutput) => void): void;
28
36
  /**
29
37
  * @see {@link GetConfigurationManagerCommand}
30
38
  */
@@ -45,6 +53,13 @@ export interface SSMQuickSetup {
45
53
  listConfigurationManagers(args: ListConfigurationManagersCommandInput, options?: __HttpHandlerOptions): Promise<ListConfigurationManagersCommandOutput>;
46
54
  listConfigurationManagers(args: ListConfigurationManagersCommandInput, cb: (err: any, data?: ListConfigurationManagersCommandOutput) => void): void;
47
55
  listConfigurationManagers(args: ListConfigurationManagersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConfigurationManagersCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link ListConfigurationsCommand}
58
+ */
59
+ listConfigurations(): Promise<ListConfigurationsCommandOutput>;
60
+ listConfigurations(args: ListConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListConfigurationsCommandOutput>;
61
+ listConfigurations(args: ListConfigurationsCommandInput, cb: (err: any, data?: ListConfigurationsCommandOutput) => void): void;
62
+ listConfigurations(args: ListConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConfigurationsCommandOutput) => void): void;
48
63
  /**
49
64
  * @see {@link ListQuickSetupTypesCommand}
50
65
  */
@@ -9,9 +9,11 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { CreateConfigurationManagerCommandInput, CreateConfigurationManagerCommandOutput } from "./commands/CreateConfigurationManagerCommand";
11
11
  import { DeleteConfigurationManagerCommandInput, DeleteConfigurationManagerCommandOutput } from "./commands/DeleteConfigurationManagerCommand";
12
+ import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
12
13
  import { GetConfigurationManagerCommandInput, GetConfigurationManagerCommandOutput } from "./commands/GetConfigurationManagerCommand";
13
14
  import { GetServiceSettingsCommandInput, GetServiceSettingsCommandOutput } from "./commands/GetServiceSettingsCommand";
14
15
  import { ListConfigurationManagersCommandInput, ListConfigurationManagersCommandOutput } from "./commands/ListConfigurationManagersCommand";
16
+ import { ListConfigurationsCommandInput, ListConfigurationsCommandOutput } from "./commands/ListConfigurationsCommand";
15
17
  import { ListQuickSetupTypesCommandInput, ListQuickSetupTypesCommandOutput } from "./commands/ListQuickSetupTypesCommand";
16
18
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
17
19
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -25,11 +27,11 @@ export { __Client };
25
27
  /**
26
28
  * @public
27
29
  */
28
- export type ServiceInputTypes = CreateConfigurationManagerCommandInput | DeleteConfigurationManagerCommandInput | GetConfigurationManagerCommandInput | GetServiceSettingsCommandInput | ListConfigurationManagersCommandInput | ListQuickSetupTypesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationDefinitionCommandInput | UpdateConfigurationManagerCommandInput | UpdateServiceSettingsCommandInput;
30
+ export type ServiceInputTypes = CreateConfigurationManagerCommandInput | DeleteConfigurationManagerCommandInput | GetConfigurationCommandInput | GetConfigurationManagerCommandInput | GetServiceSettingsCommandInput | ListConfigurationManagersCommandInput | ListConfigurationsCommandInput | ListQuickSetupTypesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationDefinitionCommandInput | UpdateConfigurationManagerCommandInput | UpdateServiceSettingsCommandInput;
29
31
  /**
30
32
  * @public
31
33
  */
32
- export type ServiceOutputTypes = CreateConfigurationManagerCommandOutput | DeleteConfigurationManagerCommandOutput | GetConfigurationManagerCommandOutput | GetServiceSettingsCommandOutput | ListConfigurationManagersCommandOutput | ListQuickSetupTypesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationDefinitionCommandOutput | UpdateConfigurationManagerCommandOutput | UpdateServiceSettingsCommandOutput;
34
+ export type ServiceOutputTypes = CreateConfigurationManagerCommandOutput | DeleteConfigurationManagerCommandOutput | GetConfigurationCommandOutput | GetConfigurationManagerCommandOutput | GetServiceSettingsCommandOutput | ListConfigurationManagersCommandOutput | ListConfigurationsCommandOutput | ListQuickSetupTypesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationDefinitionCommandOutput | UpdateConfigurationManagerCommandOutput | UpdateServiceSettingsCommandOutput;
33
35
  /**
34
36
  * @public
35
37
  */