@aws-sdk/client-ssm-incidents 3.490.0 → 3.496.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 (55) hide show
  1. package/dist-cjs/SSMIncidents.js +1 -73
  2. package/dist-cjs/SSMIncidentsClient.js +1 -43
  3. package/dist-cjs/commands/BatchGetIncidentFindingsCommand.js +1 -28
  4. package/dist-cjs/commands/CreateReplicationSetCommand.js +1 -28
  5. package/dist-cjs/commands/CreateResponsePlanCommand.js +1 -28
  6. package/dist-cjs/commands/CreateTimelineEventCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteIncidentRecordCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteReplicationSetCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteResponsePlanCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteTimelineEventCommand.js +1 -28
  12. package/dist-cjs/commands/GetIncidentRecordCommand.js +1 -28
  13. package/dist-cjs/commands/GetReplicationSetCommand.js +1 -28
  14. package/dist-cjs/commands/GetResourcePoliciesCommand.js +1 -28
  15. package/dist-cjs/commands/GetResponsePlanCommand.js +1 -28
  16. package/dist-cjs/commands/GetTimelineEventCommand.js +1 -28
  17. package/dist-cjs/commands/ListIncidentFindingsCommand.js +1 -28
  18. package/dist-cjs/commands/ListIncidentRecordsCommand.js +1 -28
  19. package/dist-cjs/commands/ListRelatedItemsCommand.js +1 -28
  20. package/dist-cjs/commands/ListReplicationSetsCommand.js +1 -28
  21. package/dist-cjs/commands/ListResponsePlansCommand.js +1 -28
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  23. package/dist-cjs/commands/ListTimelineEventsCommand.js +1 -28
  24. package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
  25. package/dist-cjs/commands/StartIncidentCommand.js +1 -28
  26. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  27. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  28. package/dist-cjs/commands/UpdateDeletionProtectionCommand.js +1 -28
  29. package/dist-cjs/commands/UpdateIncidentRecordCommand.js +1 -28
  30. package/dist-cjs/commands/UpdateRelatedItemsCommand.js +1 -28
  31. package/dist-cjs/commands/UpdateReplicationSetCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateResponsePlanCommand.js +1 -28
  33. package/dist-cjs/commands/UpdateTimelineEventCommand.js +1 -28
  34. package/dist-cjs/commands/index.js +1 -34
  35. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  36. package/dist-cjs/extensionConfiguration.js +1 -2
  37. package/dist-cjs/index.js +3541 -12
  38. package/dist-cjs/models/SSMIncidentsServiceException.js +1 -12
  39. package/dist-cjs/models/index.js +1 -4
  40. package/dist-cjs/models/models_0.js +1 -285
  41. package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +1 -7
  42. package/dist-cjs/pagination/Interfaces.js +1 -2
  43. package/dist-cjs/pagination/ListIncidentFindingsPaginator.js +1 -7
  44. package/dist-cjs/pagination/ListIncidentRecordsPaginator.js +1 -7
  45. package/dist-cjs/pagination/ListRelatedItemsPaginator.js +1 -7
  46. package/dist-cjs/pagination/ListReplicationSetsPaginator.js +1 -7
  47. package/dist-cjs/pagination/ListResponsePlansPaginator.js +1 -7
  48. package/dist-cjs/pagination/ListTimelineEventsPaginator.js +1 -7
  49. package/dist-cjs/pagination/index.js +1 -11
  50. package/dist-cjs/protocols/Aws_restJson1.js +1 -2250
  51. package/dist-cjs/runtimeExtensions.js +1 -22
  52. package/dist-cjs/waiters/index.js +1 -5
  53. package/dist-cjs/waiters/waitForWaitForReplicationSetActive.js +1 -63
  54. package/dist-cjs/waiters/waitForWaitForReplicationSetDeleted.js +1 -48
  55. package/package.json +41 -41
@@ -1,22 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const asPartial = (t) => t;
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = {
10
- ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
11
- ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
12
- ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
13
- };
14
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
15
- return {
16
- ...runtimeConfig,
17
- ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
18
- ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
19
- ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
20
- };
21
- };
22
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
1
+ module.exports = require("./index.js");
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./waitForWaitForReplicationSetActive"), exports);
5
- tslib_1.__exportStar(require("./waitForWaitForReplicationSetDeleted"), exports);
1
+ module.exports = require("../index.js");
@@ -1,63 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.waitUntilWaitForReplicationSetActive = exports.waitForWaitForReplicationSetActive = void 0;
4
- const util_waiter_1 = require("@smithy/util-waiter");
5
- const GetReplicationSetCommand_1 = require("../commands/GetReplicationSetCommand");
6
- const checkState = async (client, input) => {
7
- let reason;
8
- try {
9
- const result = await client.send(new GetReplicationSetCommand_1.GetReplicationSetCommand(input));
10
- reason = result;
11
- try {
12
- const returnComparator = () => {
13
- return result.replicationSet.status;
14
- };
15
- if (returnComparator() === "ACTIVE") {
16
- return { state: util_waiter_1.WaiterState.SUCCESS, reason };
17
- }
18
- }
19
- catch (e) { }
20
- try {
21
- const returnComparator = () => {
22
- return result.replicationSet.status;
23
- };
24
- if (returnComparator() === "CREATING") {
25
- return { state: util_waiter_1.WaiterState.RETRY, reason };
26
- }
27
- }
28
- catch (e) { }
29
- try {
30
- const returnComparator = () => {
31
- return result.replicationSet.status;
32
- };
33
- if (returnComparator() === "UPDATING") {
34
- return { state: util_waiter_1.WaiterState.RETRY, reason };
35
- }
36
- }
37
- catch (e) { }
38
- try {
39
- const returnComparator = () => {
40
- return result.replicationSet.status;
41
- };
42
- if (returnComparator() === "FAILED") {
43
- return { state: util_waiter_1.WaiterState.FAILURE, reason };
44
- }
45
- }
46
- catch (e) { }
47
- }
48
- catch (exception) {
49
- reason = exception;
50
- }
51
- return { state: util_waiter_1.WaiterState.RETRY, reason };
52
- };
53
- const waitForWaitForReplicationSetActive = async (params, input) => {
54
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
55
- return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
56
- };
57
- exports.waitForWaitForReplicationSetActive = waitForWaitForReplicationSetActive;
58
- const waitUntilWaitForReplicationSetActive = async (params, input) => {
59
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
60
- const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
61
- return (0, util_waiter_1.checkExceptions)(result);
62
- };
63
- exports.waitUntilWaitForReplicationSetActive = waitUntilWaitForReplicationSetActive;
1
+ module.exports = require("../index.js");
@@ -1,48 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.waitUntilWaitForReplicationSetDeleted = exports.waitForWaitForReplicationSetDeleted = void 0;
4
- const util_waiter_1 = require("@smithy/util-waiter");
5
- const GetReplicationSetCommand_1 = require("../commands/GetReplicationSetCommand");
6
- const checkState = async (client, input) => {
7
- let reason;
8
- try {
9
- const result = await client.send(new GetReplicationSetCommand_1.GetReplicationSetCommand(input));
10
- reason = result;
11
- try {
12
- const returnComparator = () => {
13
- return result.replicationSet.status;
14
- };
15
- if (returnComparator() === "DELETING") {
16
- return { state: util_waiter_1.WaiterState.RETRY, reason };
17
- }
18
- }
19
- catch (e) { }
20
- try {
21
- const returnComparator = () => {
22
- return result.replicationSet.status;
23
- };
24
- if (returnComparator() === "FAILED") {
25
- return { state: util_waiter_1.WaiterState.FAILURE, reason };
26
- }
27
- }
28
- catch (e) { }
29
- }
30
- catch (exception) {
31
- reason = exception;
32
- if (exception.name && exception.name == "ResourceNotFoundException") {
33
- return { state: util_waiter_1.WaiterState.SUCCESS, reason };
34
- }
35
- }
36
- return { state: util_waiter_1.WaiterState.RETRY, reason };
37
- };
38
- const waitForWaitForReplicationSetDeleted = async (params, input) => {
39
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
40
- return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
41
- };
42
- exports.waitForWaitForReplicationSetDeleted = waitForWaitForReplicationSetDeleted;
43
- const waitUntilWaitForReplicationSetDeleted = async (params, input) => {
44
- const serviceDefaults = { minDelay: 30, maxDelay: 30 };
45
- const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
46
- return (0, util_waiter_1.checkExceptions)(result);
47
- };
48
- exports.waitUntilWaitForReplicationSetDeleted = waitUntilWaitForReplicationSetDeleted;
1
+ module.exports = require("../index.js");
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-incidents",
3
3
  "description": "AWS SDK for JavaScript Ssm Incidents Client for Node.js, Browser and React Native",
4
- "version": "3.490.0",
4
+ "version": "3.496.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
- "build:cjs": "tsc -p tsconfig.cjs.json",
7
+ "build:cjs": "node ../../scripts/compilation/inline client-ssm-incidents",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
10
  "build:types": "tsc -p tsconfig.types.json",
@@ -20,49 +20,49 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.490.0",
24
- "@aws-sdk/core": "3.490.0",
25
- "@aws-sdk/credential-provider-node": "3.490.0",
26
- "@aws-sdk/middleware-host-header": "3.489.0",
27
- "@aws-sdk/middleware-logger": "3.489.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.489.0",
29
- "@aws-sdk/middleware-signing": "3.489.0",
30
- "@aws-sdk/middleware-user-agent": "3.489.0",
31
- "@aws-sdk/region-config-resolver": "3.489.0",
32
- "@aws-sdk/types": "3.489.0",
33
- "@aws-sdk/util-endpoints": "3.489.0",
34
- "@aws-sdk/util-user-agent-browser": "3.489.0",
35
- "@aws-sdk/util-user-agent-node": "3.489.0",
36
- "@smithy/config-resolver": "^2.0.23",
37
- "@smithy/core": "^1.2.2",
38
- "@smithy/fetch-http-handler": "^2.3.2",
39
- "@smithy/hash-node": "^2.0.18",
40
- "@smithy/invalid-dependency": "^2.0.16",
41
- "@smithy/middleware-content-length": "^2.0.18",
42
- "@smithy/middleware-endpoint": "^2.3.0",
43
- "@smithy/middleware-retry": "^2.0.26",
44
- "@smithy/middleware-serde": "^2.0.16",
45
- "@smithy/middleware-stack": "^2.0.10",
46
- "@smithy/node-config-provider": "^2.1.9",
47
- "@smithy/node-http-handler": "^2.2.2",
48
- "@smithy/protocol-http": "^3.0.12",
49
- "@smithy/smithy-client": "^2.2.1",
50
- "@smithy/types": "^2.8.0",
51
- "@smithy/url-parser": "^2.0.16",
52
- "@smithy/util-base64": "^2.0.1",
53
- "@smithy/util-body-length-browser": "^2.0.1",
54
- "@smithy/util-body-length-node": "^2.1.0",
55
- "@smithy/util-defaults-mode-browser": "^2.0.24",
56
- "@smithy/util-defaults-mode-node": "^2.0.32",
57
- "@smithy/util-endpoints": "^1.0.8",
58
- "@smithy/util-retry": "^2.0.9",
59
- "@smithy/util-utf8": "^2.0.2",
60
- "@smithy/util-waiter": "^2.0.16",
23
+ "@aws-sdk/client-sts": "3.496.0",
24
+ "@aws-sdk/core": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.496.0",
26
+ "@aws-sdk/middleware-host-header": "3.496.0",
27
+ "@aws-sdk/middleware-logger": "3.496.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.496.0",
29
+ "@aws-sdk/middleware-signing": "3.496.0",
30
+ "@aws-sdk/middleware-user-agent": "3.496.0",
31
+ "@aws-sdk/region-config-resolver": "3.496.0",
32
+ "@aws-sdk/types": "3.496.0",
33
+ "@aws-sdk/util-endpoints": "3.496.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.496.0",
35
+ "@aws-sdk/util-user-agent-node": "3.496.0",
36
+ "@smithy/config-resolver": "^2.1.1",
37
+ "@smithy/core": "^1.3.1",
38
+ "@smithy/fetch-http-handler": "^2.4.1",
39
+ "@smithy/hash-node": "^2.1.1",
40
+ "@smithy/invalid-dependency": "^2.1.1",
41
+ "@smithy/middleware-content-length": "^2.1.1",
42
+ "@smithy/middleware-endpoint": "^2.4.1",
43
+ "@smithy/middleware-retry": "^2.1.1",
44
+ "@smithy/middleware-serde": "^2.1.1",
45
+ "@smithy/middleware-stack": "^2.1.1",
46
+ "@smithy/node-config-provider": "^2.2.1",
47
+ "@smithy/node-http-handler": "^2.3.1",
48
+ "@smithy/protocol-http": "^3.1.1",
49
+ "@smithy/smithy-client": "^2.3.1",
50
+ "@smithy/types": "^2.9.1",
51
+ "@smithy/url-parser": "^2.1.1",
52
+ "@smithy/util-base64": "^2.1.1",
53
+ "@smithy/util-body-length-browser": "^2.1.1",
54
+ "@smithy/util-body-length-node": "^2.2.1",
55
+ "@smithy/util-defaults-mode-browser": "^2.1.1",
56
+ "@smithy/util-defaults-mode-node": "^2.1.1",
57
+ "@smithy/util-endpoints": "^1.1.1",
58
+ "@smithy/util-retry": "^2.1.1",
59
+ "@smithy/util-utf8": "^2.1.1",
60
+ "@smithy/util-waiter": "^2.1.1",
61
61
  "tslib": "^2.5.0",
62
62
  "uuid": "^8.3.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@smithy/service-client-documentation-generator": "^2.0.0",
65
+ "@smithy/service-client-documentation-generator": "^2.1.1",
66
66
  "@tsconfig/node14": "1.0.3",
67
67
  "@types/node": "^14.14.31",
68
68
  "@types/uuid": "^8.3.0",