@aws-sdk/client-ssm-sap 3.256.0 → 3.258.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 (47) hide show
  1. package/dist-cjs/SsmSap.js +15 -0
  2. package/dist-cjs/commands/ListOperationsCommand.js +46 -0
  3. package/dist-cjs/commands/index.js +1 -0
  4. package/dist-cjs/endpoint/ruleset.js +3 -3
  5. package/dist-cjs/models/models_0.js +20 -2
  6. package/dist-cjs/pagination/ListOperationsPaginator.js +36 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +91 -1
  9. package/dist-cjs/runtimeConfig.browser.js +0 -3
  10. package/dist-cjs/runtimeConfig.js +0 -3
  11. package/dist-cjs/runtimeConfig.shared.js +3 -0
  12. package/dist-es/SsmSap.js +15 -0
  13. package/dist-es/commands/ListOperationsCommand.js +42 -0
  14. package/dist-es/commands/index.js +1 -0
  15. package/dist-es/endpoint/ruleset.js +3 -3
  16. package/dist-es/models/models_0.js +15 -0
  17. package/dist-es/pagination/ListOperationsPaginator.js +32 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +88 -0
  20. package/dist-es/runtimeConfig.browser.js +0 -3
  21. package/dist-es/runtimeConfig.js +0 -3
  22. package/dist-es/runtimeConfig.shared.js +3 -0
  23. package/dist-types/SsmSap.d.ts +11 -3
  24. package/dist-types/SsmSapClient.d.ts +3 -2
  25. package/dist-types/commands/ListOperationsCommand.d.ts +37 -0
  26. package/dist-types/commands/RegisterApplicationCommand.d.ts +2 -2
  27. package/dist-types/commands/UpdateApplicationSettingsCommand.d.ts +2 -1
  28. package/dist-types/commands/index.d.ts +1 -0
  29. package/dist-types/models/models_0.d.ts +214 -127
  30. package/dist-types/pagination/ListOperationsPaginator.d.ts +4 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  33. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  34. package/dist-types/runtimeConfig.d.ts +2 -2
  35. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  36. package/dist-types/ts3.4/SsmSap.d.ts +17 -0
  37. package/dist-types/ts3.4/SsmSapClient.d.ts +6 -0
  38. package/dist-types/ts3.4/commands/ListOperationsCommand.d.ts +34 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +28 -0
  41. package/dist-types/ts3.4/pagination/ListOperationsPaginator.d.ts +11 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  46. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  47. package/package.json +30 -31
@@ -11,6 +11,7 @@ const GetResourcePermissionCommand_1 = require("./commands/GetResourcePermission
11
11
  const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
12
12
  const ListComponentsCommand_1 = require("./commands/ListComponentsCommand");
13
13
  const ListDatabasesCommand_1 = require("./commands/ListDatabasesCommand");
14
+ const ListOperationsCommand_1 = require("./commands/ListOperationsCommand");
14
15
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
15
16
  const PutResourcePermissionCommand_1 = require("./commands/PutResourcePermissionCommand");
16
17
  const RegisterApplicationCommand_1 = require("./commands/RegisterApplicationCommand");
@@ -159,6 +160,20 @@ class SsmSap extends SsmSapClient_1.SsmSapClient {
159
160
  return this.send(command, optionsOrCb);
160
161
  }
161
162
  }
163
+ listOperations(args, optionsOrCb, cb) {
164
+ const command = new ListOperationsCommand_1.ListOperationsCommand(args);
165
+ if (typeof optionsOrCb === "function") {
166
+ this.send(command, optionsOrCb);
167
+ }
168
+ else if (typeof cb === "function") {
169
+ if (typeof optionsOrCb !== "object")
170
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
+ this.send(command, optionsOrCb || {}, cb);
172
+ }
173
+ else {
174
+ return this.send(command, optionsOrCb);
175
+ }
176
+ }
162
177
  listTagsForResource(args, optionsOrCb, cb) {
163
178
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
164
179
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListOperationsCommand = 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_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListOperationsCommand 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, ListOperationsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SsmSapClient";
28
+ const commandName = "ListOperationsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.ListOperationsInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.ListOperationsOutputFilterSensitiveLog,
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_restJson1_1.serializeAws_restJson1ListOperationsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListOperationsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListOperationsCommand = ListOperationsCommand;
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./GetResourcePermissionCommand"), exports);
11
11
  tslib_1.__exportStar(require("./ListApplicationsCommand"), exports);
12
12
  tslib_1.__exportStar(require("./ListComponentsCommand"), exports);
13
13
  tslib_1.__exportStar(require("./ListDatabasesCommand"), exports);
14
+ tslib_1.__exportStar(require("./ListOperationsCommand"), exports);
14
15
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
15
16
  tslib_1.__exportStar(require("./PutResourcePermissionCommand"), exports);
16
17
  tslib_1.__exportStar(require("./RegisterApplicationCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const r = "fn", s = "argv", t = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "fn", r = "argv", s = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TagResourceRequestFilterSensitiveLog = exports.RegisterApplicationOutputFilterSensitiveLog = exports.RegisterApplicationInputFilterSensitiveLog = exports.PutResourcePermissionOutputFilterSensitiveLog = exports.PutResourcePermissionInputFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListDatabasesOutputFilterSensitiveLog = exports.ListDatabasesInputFilterSensitiveLog = exports.ListComponentsOutputFilterSensitiveLog = exports.ListComponentsInputFilterSensitiveLog = exports.ListApplicationsOutputFilterSensitiveLog = exports.ListApplicationsInputFilterSensitiveLog = exports.GetResourcePermissionOutputFilterSensitiveLog = exports.GetResourcePermissionInputFilterSensitiveLog = exports.GetOperationOutputFilterSensitiveLog = exports.OperationFilterSensitiveLog = exports.GetOperationInputFilterSensitiveLog = exports.GetDatabaseOutputFilterSensitiveLog = exports.GetDatabaseInputFilterSensitiveLog = exports.GetComponentOutputFilterSensitiveLog = exports.GetComponentInputFilterSensitiveLog = exports.GetApplicationOutputFilterSensitiveLog = exports.GetApplicationInputFilterSensitiveLog = exports.DeregisterApplicationOutputFilterSensitiveLog = exports.DeregisterApplicationInputFilterSensitiveLog = exports.DeleteResourcePermissionOutputFilterSensitiveLog = exports.DeleteResourcePermissionInputFilterSensitiveLog = exports.DatabaseSummaryFilterSensitiveLog = exports.DatabaseFilterSensitiveLog = exports.ComponentSummaryFilterSensitiveLog = exports.ComponentFilterSensitiveLog = exports.HostFilterSensitiveLog = exports.ApplicationSummaryFilterSensitiveLog = exports.ApplicationCredentialFilterSensitiveLog = exports.ApplicationFilterSensitiveLog = exports.OperationStatus = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.PermissionActionType = exports.DatabaseStatus = exports.DatabaseType = exports.ConflictException = exports.ComponentStatus = exports.HostRole = exports.ComponentType = exports.CredentialType = exports.ApplicationType = exports.ApplicationStatus = void 0;
4
- exports.UpdateApplicationSettingsOutputFilterSensitiveLog = exports.UpdateApplicationSettingsInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = void 0;
3
+ exports.PutResourcePermissionInputFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListOperationsOutputFilterSensitiveLog = exports.ListOperationsInputFilterSensitiveLog = exports.ListDatabasesOutputFilterSensitiveLog = exports.ListDatabasesInputFilterSensitiveLog = exports.ListComponentsOutputFilterSensitiveLog = exports.ListComponentsInputFilterSensitiveLog = exports.ListApplicationsOutputFilterSensitiveLog = exports.ListApplicationsInputFilterSensitiveLog = exports.GetResourcePermissionOutputFilterSensitiveLog = exports.GetResourcePermissionInputFilterSensitiveLog = exports.GetOperationOutputFilterSensitiveLog = exports.OperationFilterSensitiveLog = exports.GetOperationInputFilterSensitiveLog = exports.GetDatabaseOutputFilterSensitiveLog = exports.GetDatabaseInputFilterSensitiveLog = exports.GetComponentOutputFilterSensitiveLog = exports.GetComponentInputFilterSensitiveLog = exports.GetApplicationOutputFilterSensitiveLog = exports.GetApplicationInputFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.DeregisterApplicationOutputFilterSensitiveLog = exports.DeregisterApplicationInputFilterSensitiveLog = exports.DeleteResourcePermissionOutputFilterSensitiveLog = exports.DeleteResourcePermissionInputFilterSensitiveLog = exports.DatabaseSummaryFilterSensitiveLog = exports.DatabaseFilterSensitiveLog = exports.ComponentSummaryFilterSensitiveLog = exports.ComponentFilterSensitiveLog = exports.HostFilterSensitiveLog = exports.ApplicationSummaryFilterSensitiveLog = exports.ApplicationCredentialFilterSensitiveLog = exports.ApplicationFilterSensitiveLog = exports.OperationStatus = exports.FilterOperator = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.PermissionActionType = exports.DatabaseStatus = exports.DatabaseType = exports.ConflictException = exports.ComponentStatus = exports.HostRole = exports.ComponentType = exports.CredentialType = exports.ApplicationType = exports.ApplicationStatus = void 0;
4
+ exports.UpdateApplicationSettingsOutputFilterSensitiveLog = exports.UpdateApplicationSettingsInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RegisterApplicationOutputFilterSensitiveLog = exports.RegisterApplicationInputFilterSensitiveLog = exports.PutResourcePermissionOutputFilterSensitiveLog = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const SsmSapServiceException_1 = require("./SsmSapServiceException");
7
7
  var ApplicationStatus;
@@ -111,6 +111,12 @@ class ValidationException extends SsmSapServiceException_1.SsmSapServiceExceptio
111
111
  }
112
112
  }
113
113
  exports.ValidationException = ValidationException;
114
+ var FilterOperator;
115
+ (function (FilterOperator) {
116
+ FilterOperator["EQUALS"] = "Equals";
117
+ FilterOperator["GREATER_THAN_OR_EQUALS"] = "GreaterThanOrEquals";
118
+ FilterOperator["LESS_THAN_OR_EQUALS"] = "LessThanOrEquals";
119
+ })(FilterOperator = exports.FilterOperator || (exports.FilterOperator = {}));
114
120
  var OperationStatus;
115
121
  (function (OperationStatus) {
116
122
  OperationStatus["ERROR"] = "ERROR";
@@ -167,6 +173,10 @@ const DeregisterApplicationOutputFilterSensitiveLog = (obj) => ({
167
173
  ...obj,
168
174
  });
169
175
  exports.DeregisterApplicationOutputFilterSensitiveLog = DeregisterApplicationOutputFilterSensitiveLog;
176
+ const FilterFilterSensitiveLog = (obj) => ({
177
+ ...obj,
178
+ });
179
+ exports.FilterFilterSensitiveLog = FilterFilterSensitiveLog;
170
180
  const GetApplicationInputFilterSensitiveLog = (obj) => ({
171
181
  ...obj,
172
182
  });
@@ -236,6 +246,14 @@ const ListDatabasesOutputFilterSensitiveLog = (obj) => ({
236
246
  ...obj,
237
247
  });
238
248
  exports.ListDatabasesOutputFilterSensitiveLog = ListDatabasesOutputFilterSensitiveLog;
249
+ const ListOperationsInputFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ });
252
+ exports.ListOperationsInputFilterSensitiveLog = ListOperationsInputFilterSensitiveLog;
253
+ const ListOperationsOutputFilterSensitiveLog = (obj) => ({
254
+ ...obj,
255
+ });
256
+ exports.ListOperationsOutputFilterSensitiveLog = ListOperationsOutputFilterSensitiveLog;
239
257
  const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
240
258
  ...obj,
241
259
  });
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListOperations = void 0;
4
+ const ListOperationsCommand_1 = require("../commands/ListOperationsCommand");
5
+ const SsmSap_1 = require("../SsmSap");
6
+ const SsmSapClient_1 = require("../SsmSapClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListOperationsCommand_1.ListOperationsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listOperations(input, ...args);
12
+ };
13
+ async function* paginateListOperations(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof SsmSap_1.SsmSap) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof SsmSapClient_1.SsmSapClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected SsmSap | SsmSapClient");
28
+ }
29
+ yield page;
30
+ const prevToken = token;
31
+ token = page.NextToken;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ }
34
+ return undefined;
35
+ }
36
+ exports.paginateListOperations = paginateListOperations;
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListApplicationsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListComponentsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./ListDatabasesPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListOperationsPaginator"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateApplicationSettingsCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RegisterApplicationCommand = exports.deserializeAws_restJson1PutResourcePermissionCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListDatabasesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetResourcePermissionCommand = exports.deserializeAws_restJson1GetOperationCommand = exports.deserializeAws_restJson1GetDatabaseCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DeregisterApplicationCommand = exports.deserializeAws_restJson1DeleteResourcePermissionCommand = exports.serializeAws_restJson1UpdateApplicationSettingsCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RegisterApplicationCommand = exports.serializeAws_restJson1PutResourcePermissionCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListDatabasesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetResourcePermissionCommand = exports.serializeAws_restJson1GetOperationCommand = exports.serializeAws_restJson1GetDatabaseCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DeregisterApplicationCommand = exports.serializeAws_restJson1DeleteResourcePermissionCommand = void 0;
3
+ exports.deserializeAws_restJson1UpdateApplicationSettingsCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RegisterApplicationCommand = exports.deserializeAws_restJson1PutResourcePermissionCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOperationsCommand = exports.deserializeAws_restJson1ListDatabasesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetResourcePermissionCommand = exports.deserializeAws_restJson1GetOperationCommand = exports.deserializeAws_restJson1GetDatabaseCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DeregisterApplicationCommand = exports.deserializeAws_restJson1DeleteResourcePermissionCommand = exports.serializeAws_restJson1UpdateApplicationSettingsCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RegisterApplicationCommand = exports.serializeAws_restJson1PutResourcePermissionCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOperationsCommand = exports.serializeAws_restJson1ListDatabasesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetResourcePermissionCommand = exports.serializeAws_restJson1GetOperationCommand = exports.serializeAws_restJson1GetDatabaseCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DeregisterApplicationCommand = exports.serializeAws_restJson1DeleteResourcePermissionCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
@@ -57,6 +57,7 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
57
57
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-application";
58
58
  let body;
59
59
  body = JSON.stringify({
60
+ ...(input.AppRegistryArn != null && { AppRegistryArn: input.AppRegistryArn }),
60
61
  ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
61
62
  ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
62
63
  });
@@ -229,6 +230,30 @@ const serializeAws_restJson1ListDatabasesCommand = async (input, context) => {
229
230
  });
230
231
  };
231
232
  exports.serializeAws_restJson1ListDatabasesCommand = serializeAws_restJson1ListDatabasesCommand;
233
+ const serializeAws_restJson1ListOperationsCommand = async (input, context) => {
234
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
+ const headers = {
236
+ "content-type": "application/json",
237
+ };
238
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-operations";
239
+ let body;
240
+ body = JSON.stringify({
241
+ ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
242
+ ...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
243
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
244
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
245
+ });
246
+ return new protocol_http_1.HttpRequest({
247
+ protocol,
248
+ hostname,
249
+ port,
250
+ method: "POST",
251
+ headers,
252
+ path: resolvedPath,
253
+ body,
254
+ });
255
+ };
256
+ exports.serializeAws_restJson1ListOperationsCommand = serializeAws_restJson1ListOperationsCommand;
232
257
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
233
258
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
259
  const headers = {};
@@ -768,6 +793,46 @@ const deserializeAws_restJson1ListDatabasesCommandError = async (output, context
768
793
  });
769
794
  }
770
795
  };
796
+ const deserializeAws_restJson1ListOperationsCommand = async (output, context) => {
797
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
798
+ return deserializeAws_restJson1ListOperationsCommandError(output, context);
799
+ }
800
+ const contents = map({
801
+ $metadata: deserializeMetadata(output),
802
+ });
803
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
804
+ if (data.NextToken != null) {
805
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
806
+ }
807
+ if (data.Operations != null) {
808
+ contents.Operations = deserializeAws_restJson1OperationList(data.Operations, context);
809
+ }
810
+ return contents;
811
+ };
812
+ exports.deserializeAws_restJson1ListOperationsCommand = deserializeAws_restJson1ListOperationsCommand;
813
+ const deserializeAws_restJson1ListOperationsCommandError = async (output, context) => {
814
+ const parsedOutput = {
815
+ ...output,
816
+ body: await parseErrorBody(output.body, context),
817
+ };
818
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
819
+ switch (errorCode) {
820
+ case "InternalServerException":
821
+ case "com.amazonaws.ssmsap#InternalServerException":
822
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
823
+ case "ValidationException":
824
+ case "com.amazonaws.ssmsap#ValidationException":
825
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
826
+ default:
827
+ const parsedBody = parsedOutput.body;
828
+ (0, smithy_client_1.throwDefaultError)({
829
+ output,
830
+ parsedBody,
831
+ exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
832
+ errorCode,
833
+ });
834
+ }
835
+ };
771
836
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
772
837
  if (output.statusCode !== 200 && output.statusCode >= 300) {
773
838
  return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
@@ -1071,6 +1136,20 @@ const serializeAws_restJson1ApplicationCredentialList = (input, context) => {
1071
1136
  return serializeAws_restJson1ApplicationCredential(entry, context);
1072
1137
  });
1073
1138
  };
1139
+ const serializeAws_restJson1Filter = (input, context) => {
1140
+ return {
1141
+ ...(input.Name != null && { Name: input.Name }),
1142
+ ...(input.Operator != null && { Operator: input.Operator }),
1143
+ ...(input.Value != null && { Value: input.Value }),
1144
+ };
1145
+ };
1146
+ const serializeAws_restJson1FilterList = (input, context) => {
1147
+ return input
1148
+ .filter((e) => e != null)
1149
+ .map((entry) => {
1150
+ return serializeAws_restJson1Filter(entry, context);
1151
+ });
1152
+ };
1074
1153
  const serializeAws_restJson1InstanceList = (input, context) => {
1075
1154
  return input
1076
1155
  .filter((e) => e != null)
@@ -1280,6 +1359,17 @@ const deserializeAws_restJson1OperationIdList = (output, context) => {
1280
1359
  });
1281
1360
  return retVal;
1282
1361
  };
1362
+ const deserializeAws_restJson1OperationList = (output, context) => {
1363
+ const retVal = (output || [])
1364
+ .filter((e) => e != null)
1365
+ .map((entry) => {
1366
+ if (entry === null) {
1367
+ return null;
1368
+ }
1369
+ return deserializeAws_restJson1Operation(entry, context);
1370
+ });
1371
+ return retVal;
1372
+ };
1283
1373
  const deserializeAws_restJson1OperationProperties = (output, context) => {
1284
1374
  return Object.entries(output).reduce((acc, [key, value]) => {
1285
1375
  if (value === null) {
@@ -10,7 +10,6 @@ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
10
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
11
  const util_retry_1 = require("@aws-sdk/util-retry");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
- const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
13
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
14
  const smithy_client_1 = require("@aws-sdk/smithy-client");
16
15
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
@@ -35,8 +34,6 @@ const getRuntimeConfig = (config) => {
35
34
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
36
35
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
37
36
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
38
- utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
39
- utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
40
37
  };
41
38
  };
42
39
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -13,7 +13,6 @@ const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
14
  const util_retry_1 = require("@aws-sdk/util-retry");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
- const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
16
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
17
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
@@ -44,8 +43,6 @@ const getRuntimeConfig = (config) => {
44
43
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
44
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
45
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
- utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
48
- utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
49
46
  };
50
47
  };
51
48
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const url_parser_1 = require("@aws-sdk/url-parser");
6
6
  const util_base64_1 = require("@aws-sdk/util-base64");
7
+ const util_utf8_1 = require("@aws-sdk/util-utf8");
7
8
  const endpointResolver_1 = require("./endpoint/endpointResolver");
8
9
  const getRuntimeConfig = (config) => ({
9
10
  apiVersion: "2018-05-10",
@@ -14,5 +15,7 @@ const getRuntimeConfig = (config) => ({
14
15
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
15
16
  serviceId: config?.serviceId ?? "Ssm Sap",
16
17
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
18
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
19
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
17
20
  });
18
21
  exports.getRuntimeConfig = getRuntimeConfig;
package/dist-es/SsmSap.js CHANGED
@@ -8,6 +8,7 @@ import { GetResourcePermissionCommand, } from "./commands/GetResourcePermissionC
8
8
  import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
9
9
  import { ListComponentsCommand, } from "./commands/ListComponentsCommand";
10
10
  import { ListDatabasesCommand, } from "./commands/ListDatabasesCommand";
11
+ import { ListOperationsCommand, } from "./commands/ListOperationsCommand";
11
12
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
12
13
  import { PutResourcePermissionCommand, } from "./commands/PutResourcePermissionCommand";
13
14
  import { RegisterApplicationCommand, } from "./commands/RegisterApplicationCommand";
@@ -156,6 +157,20 @@ export class SsmSap extends SsmSapClient {
156
157
  return this.send(command, optionsOrCb);
157
158
  }
158
159
  }
160
+ listOperations(args, optionsOrCb, cb) {
161
+ const command = new ListOperationsCommand(args);
162
+ if (typeof optionsOrCb === "function") {
163
+ this.send(command, optionsOrCb);
164
+ }
165
+ else if (typeof cb === "function") {
166
+ if (typeof optionsOrCb !== "object")
167
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
+ this.send(command, optionsOrCb || {}, cb);
169
+ }
170
+ else {
171
+ return this.send(command, optionsOrCb);
172
+ }
173
+ }
159
174
  listTagsForResource(args, optionsOrCb, cb) {
160
175
  const command = new ListTagsForResourceCommand(args);
161
176
  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 { ListOperationsInputFilterSensitiveLog, ListOperationsOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListOperationsCommand, serializeAws_restJson1ListOperationsCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListOperationsCommand 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, ListOperationsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SsmSapClient";
25
+ const commandName = "ListOperationsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListOperationsInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListOperationsOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListOperationsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListOperationsCommand(output, context);
41
+ }
42
+ }
@@ -8,6 +8,7 @@ export * from "./GetResourcePermissionCommand";
8
8
  export * from "./ListApplicationsCommand";
9
9
  export * from "./ListComponentsCommand";
10
10
  export * from "./ListDatabasesCommand";
11
+ export * from "./ListOperationsCommand";
11
12
  export * from "./ListTagsForResourceCommand";
12
13
  export * from "./PutResourcePermissionCommand";
13
14
  export * from "./RegisterApplicationCommand";
@@ -1,4 +1,4 @@
1
- const r = "fn", s = "argv", t = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "fn", r = "argv", s = "ref";
2
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
4
4
  export const ruleSet = _data;
@@ -103,6 +103,12 @@ export class ValidationException extends __BaseException {
103
103
  this.Message = opts.Message;
104
104
  }
105
105
  }
106
+ export var FilterOperator;
107
+ (function (FilterOperator) {
108
+ FilterOperator["EQUALS"] = "Equals";
109
+ FilterOperator["GREATER_THAN_OR_EQUALS"] = "GreaterThanOrEquals";
110
+ FilterOperator["LESS_THAN_OR_EQUALS"] = "LessThanOrEquals";
111
+ })(FilterOperator || (FilterOperator = {}));
106
112
  export var OperationStatus;
107
113
  (function (OperationStatus) {
108
114
  OperationStatus["ERROR"] = "ERROR";
@@ -147,6 +153,9 @@ export const DeregisterApplicationInputFilterSensitiveLog = (obj) => ({
147
153
  export const DeregisterApplicationOutputFilterSensitiveLog = (obj) => ({
148
154
  ...obj,
149
155
  });
156
+ export const FilterFilterSensitiveLog = (obj) => ({
157
+ ...obj,
158
+ });
150
159
  export const GetApplicationInputFilterSensitiveLog = (obj) => ({
151
160
  ...obj,
152
161
  });
@@ -199,6 +208,12 @@ export const ListDatabasesInputFilterSensitiveLog = (obj) => ({
199
208
  export const ListDatabasesOutputFilterSensitiveLog = (obj) => ({
200
209
  ...obj,
201
210
  });
211
+ export const ListOperationsInputFilterSensitiveLog = (obj) => ({
212
+ ...obj,
213
+ });
214
+ export const ListOperationsOutputFilterSensitiveLog = (obj) => ({
215
+ ...obj,
216
+ });
202
217
  export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
203
218
  ...obj,
204
219
  });
@@ -0,0 +1,32 @@
1
+ import { ListOperationsCommand, } from "../commands/ListOperationsCommand";
2
+ import { SsmSap } from "../SsmSap";
3
+ import { SsmSapClient } from "../SsmSapClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListOperationsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listOperations(input, ...args);
9
+ };
10
+ export async function* paginateListOperations(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof SsmSap) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof SsmSapClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected SsmSap | SsmSapClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -2,3 +2,4 @@ export * from "./Interfaces";
2
2
  export * from "./ListApplicationsPaginator";
3
3
  export * from "./ListComponentsPaginator";
4
4
  export * from "./ListDatabasesPaginator";
5
+ export * from "./ListOperationsPaginator";