@aws-sdk/client-ssm-incidents 3.35.0 → 3.38.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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/SSMIncidents.js +0 -11
- package/dist-cjs/SSMIncidentsClient.js +0 -16
- package/dist-cjs/commands/CreateReplicationSetCommand.js +0 -26
- package/dist-cjs/commands/CreateResponsePlanCommand.js +0 -28
- package/dist-cjs/commands/CreateTimelineEventCommand.js +0 -28
- package/dist-cjs/commands/DeleteIncidentRecordCommand.js +0 -25
- package/dist-cjs/commands/DeleteReplicationSetCommand.js +0 -26
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -27
- package/dist-cjs/commands/DeleteResponsePlanCommand.js +0 -27
- package/dist-cjs/commands/DeleteTimelineEventCommand.js +0 -25
- package/dist-cjs/commands/GetIncidentRecordCommand.js +0 -25
- package/dist-cjs/commands/GetReplicationSetCommand.js +0 -25
- package/dist-cjs/commands/GetResourcePoliciesCommand.js +0 -25
- package/dist-cjs/commands/GetResponsePlanCommand.js +0 -25
- package/dist-cjs/commands/GetTimelineEventCommand.js +0 -25
- package/dist-cjs/commands/ListIncidentRecordsCommand.js +0 -26
- package/dist-cjs/commands/ListRelatedItemsCommand.js +0 -25
- package/dist-cjs/commands/ListReplicationSetsCommand.js +0 -25
- package/dist-cjs/commands/ListResponsePlansCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/ListTimelineEventsCommand.js +0 -25
- package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -25
- package/dist-cjs/commands/StartIncidentCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateDeletionProtectionCommand.js +0 -26
- package/dist-cjs/commands/UpdateIncidentRecordCommand.js +0 -27
- package/dist-cjs/commands/UpdateRelatedItemsCommand.js +0 -25
- package/dist-cjs/commands/UpdateReplicationSetCommand.js +0 -25
- package/dist-cjs/commands/UpdateResponsePlanCommand.js +0 -25
- package/dist-cjs/commands/UpdateTimelineEventCommand.js +0 -26
- package/dist-cjs/commands/index.js +32 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -41
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -307
- package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListIncidentRecordsPaginator.js +0 -11
- package/dist-cjs/pagination/ListRelatedItemsPaginator.js +0 -11
- package/dist-cjs/pagination/ListReplicationSetsPaginator.js +0 -11
- package/dist-cjs/pagination/ListResponsePlansPaginator.js +0 -11
- package/dist-cjs/pagination/ListTimelineEventsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForWaitForReplicationSetActive.js +0 -10
- package/dist-cjs/waiters/waitForWaitForReplicationSetDeleted.js +0 -10
- package/dist-es/SSMIncidents.js +0 -1
- package/dist-es/SSMIncidentsClient.js +0 -1
- package/dist-es/commands/CreateReplicationSetCommand.js +0 -1
- package/dist-es/commands/CreateResponsePlanCommand.js +0 -1
- package/dist-es/commands/CreateTimelineEventCommand.js +0 -1
- package/dist-es/commands/DeleteIncidentRecordCommand.js +0 -1
- package/dist-es/commands/DeleteReplicationSetCommand.js +0 -1
- package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-es/commands/DeleteResponsePlanCommand.js +0 -1
- package/dist-es/commands/DeleteTimelineEventCommand.js +0 -1
- package/dist-es/commands/GetIncidentRecordCommand.js +0 -1
- package/dist-es/commands/GetReplicationSetCommand.js +0 -1
- package/dist-es/commands/GetResourcePoliciesCommand.js +0 -1
- package/dist-es/commands/GetResponsePlanCommand.js +0 -1
- package/dist-es/commands/GetTimelineEventCommand.js +0 -1
- package/dist-es/commands/ListIncidentRecordsCommand.js +0 -1
- package/dist-es/commands/ListRelatedItemsCommand.js +0 -1
- package/dist-es/commands/ListReplicationSetsCommand.js +0 -1
- package/dist-es/commands/ListResponsePlansCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListTimelineEventsCommand.js +0 -1
- package/dist-es/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-es/commands/StartIncidentCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateDeletionProtectionCommand.js +0 -1
- package/dist-es/commands/UpdateIncidentRecordCommand.js +0 -1
- package/dist-es/commands/UpdateRelatedItemsCommand.js +0 -1
- package/dist-es/commands/UpdateReplicationSetCommand.js +0 -1
- package/dist-es/commands/UpdateResponsePlanCommand.js +0 -1
- package/dist-es/commands/UpdateTimelineEventCommand.js +0 -1
- package/dist-es/commands/index.js +29 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -41
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListIncidentRecordsPaginator.js +0 -1
- package/dist-es/pagination/ListRelatedItemsPaginator.js +0 -1
- package/dist-es/pagination/ListReplicationSetsPaginator.js +0 -1
- package/dist-es/pagination/ListResponsePlansPaginator.js +0 -1
- package/dist-es/pagination/ListTimelineEventsPaginator.js +0 -1
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForWaitForReplicationSetActive.js +0 -1
- package/dist-es/waiters/waitForWaitForReplicationSetDeleted.js +0 -1
- package/dist-types/commands/index.d.ts +29 -0
- package/dist-types/index.d.ts +5 -40
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/SSMIncidents.d.ts +30 -114
- package/dist-types/ts3.4/SSMIncidentsClient.d.ts +24 -96
- package/dist-types/ts3.4/commands/CreateReplicationSetCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateResponsePlanCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateTimelineEventCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteIncidentRecordCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteReplicationSetCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteResponsePlanCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteTimelineEventCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetIncidentRecordCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetReplicationSetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetResponsePlanCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetTimelineEventCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListIncidentRecordsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListRelatedItemsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListReplicationSetsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListResponsePlansCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTimelineEventsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartIncidentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateDeletionProtectionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateIncidentRecordCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/UpdateRelatedItemsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateReplicationSetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateResponsePlanCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateTimelineEventCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +29 -0
- package/dist-types/ts3.4/index.d.ts +5 -40
- package/dist-types/ts3.4/models/models_0.d.ts +364 -1300
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForWaitForReplicationSetActive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForWaitForReplicationSetDeleted.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +34 -31
- package/dist-cjs/SSMIncidents.js.map +0 -1
- package/dist-cjs/SSMIncidentsClient.js.map +0 -1
- package/dist-cjs/commands/CreateReplicationSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateResponsePlanCommand.js.map +0 -1
- package/dist-cjs/commands/CreateTimelineEventCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteIncidentRecordCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteReplicationSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteResponsePlanCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteTimelineEventCommand.js.map +0 -1
- package/dist-cjs/commands/GetIncidentRecordCommand.js.map +0 -1
- package/dist-cjs/commands/GetReplicationSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetResourcePoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/GetResponsePlanCommand.js.map +0 -1
- package/dist-cjs/commands/GetTimelineEventCommand.js.map +0 -1
- package/dist-cjs/commands/ListIncidentRecordsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRelatedItemsCommand.js.map +0 -1
- package/dist-cjs/commands/ListReplicationSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListResponsePlansCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListTimelineEventsCommand.js.map +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/StartIncidentCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDeletionProtectionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateIncidentRecordCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRelatedItemsCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateReplicationSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateResponsePlanCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateTimelineEventCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/GetResourcePoliciesPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListIncidentRecordsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRelatedItemsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListReplicationSetsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListResponsePlansPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTimelineEventsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForWaitForReplicationSetActive.js.map +0 -1
- package/dist-cjs/waiters/waitForWaitForReplicationSetDeleted.js.map +0 -1
- package/dist-es/SSMIncidents.js.map +0 -1
- package/dist-es/SSMIncidentsClient.js.map +0 -1
- package/dist-es/commands/CreateReplicationSetCommand.js.map +0 -1
- package/dist-es/commands/CreateResponsePlanCommand.js.map +0 -1
- package/dist-es/commands/CreateTimelineEventCommand.js.map +0 -1
- package/dist-es/commands/DeleteIncidentRecordCommand.js.map +0 -1
- package/dist-es/commands/DeleteReplicationSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteResponsePlanCommand.js.map +0 -1
- package/dist-es/commands/DeleteTimelineEventCommand.js.map +0 -1
- package/dist-es/commands/GetIncidentRecordCommand.js.map +0 -1
- package/dist-es/commands/GetReplicationSetCommand.js.map +0 -1
- package/dist-es/commands/GetResourcePoliciesCommand.js.map +0 -1
- package/dist-es/commands/GetResponsePlanCommand.js.map +0 -1
- package/dist-es/commands/GetTimelineEventCommand.js.map +0 -1
- package/dist-es/commands/ListIncidentRecordsCommand.js.map +0 -1
- package/dist-es/commands/ListRelatedItemsCommand.js.map +0 -1
- package/dist-es/commands/ListReplicationSetsCommand.js.map +0 -1
- package/dist-es/commands/ListResponsePlansCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListTimelineEventsCommand.js.map +0 -1
- package/dist-es/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/StartIncidentCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateDeletionProtectionCommand.js.map +0 -1
- package/dist-es/commands/UpdateIncidentRecordCommand.js.map +0 -1
- package/dist-es/commands/UpdateRelatedItemsCommand.js.map +0 -1
- package/dist-es/commands/UpdateReplicationSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateResponsePlanCommand.js.map +0 -1
- package/dist-es/commands/UpdateTimelineEventCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/GetResourcePoliciesPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListIncidentRecordsPaginator.js.map +0 -1
- package/dist-es/pagination/ListRelatedItemsPaginator.js.map +0 -1
- package/dist-es/pagination/ListReplicationSetsPaginator.js.map +0 -1
- package/dist-es/pagination/ListResponsePlansPaginator.js.map +0 -1
- package/dist-es/pagination/ListTimelineEventsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForWaitForReplicationSetActive.js.map +0 -1
- package/dist-es/waiters/waitForWaitForReplicationSetDeleted.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/SSMIncidents.ts +0 -1095
- package/src/SSMIncidentsClient.ts +0 -372
- package/src/commands/CreateReplicationSetCommand.ts +0 -96
- package/src/commands/CreateResponsePlanCommand.ts +0 -98
- package/src/commands/CreateTimelineEventCommand.ts +0 -98
- package/src/commands/DeleteIncidentRecordCommand.ts +0 -95
- package/src/commands/DeleteReplicationSetCommand.ts +0 -96
- package/src/commands/DeleteResourcePolicyCommand.ts +0 -97
- package/src/commands/DeleteResponsePlanCommand.ts +0 -97
- package/src/commands/DeleteTimelineEventCommand.ts +0 -95
- package/src/commands/GetIncidentRecordCommand.ts +0 -95
- package/src/commands/GetReplicationSetCommand.ts +0 -95
- package/src/commands/GetResourcePoliciesCommand.ts +0 -95
- package/src/commands/GetResponsePlanCommand.ts +0 -95
- package/src/commands/GetTimelineEventCommand.ts +0 -95
- package/src/commands/ListIncidentRecordsCommand.ts +0 -96
- package/src/commands/ListRelatedItemsCommand.ts +0 -95
- package/src/commands/ListReplicationSetsCommand.ts +0 -95
- package/src/commands/ListResponsePlansCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListTimelineEventsCommand.ts +0 -95
- package/src/commands/PutResourcePolicyCommand.ts +0 -95
- package/src/commands/StartIncidentCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateDeletionProtectionCommand.ts +0 -96
- package/src/commands/UpdateIncidentRecordCommand.ts +0 -97
- package/src/commands/UpdateRelatedItemsCommand.ts +0 -95
- package/src/commands/UpdateReplicationSetCommand.ts +0 -95
- package/src/commands/UpdateResponsePlanCommand.ts +0 -95
- package/src/commands/UpdateTimelineEventCommand.ts +0 -96
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -41
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2883
- package/src/pagination/GetResourcePoliciesPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListIncidentRecordsPaginator.ts +0 -59
- package/src/pagination/ListRelatedItemsPaginator.ts +0 -59
- package/src/pagination/ListReplicationSetsPaginator.ts +0 -59
- package/src/pagination/ListResponsePlansPaginator.ts +0 -59
- package/src/pagination/ListTimelineEventsPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -4502
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForWaitForReplicationSetActive.ts +0 -71
- package/src/waiters/waitForWaitForReplicationSetDeleted.ts +0 -58
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
2
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
3
|
-
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
4
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
5
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
6
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
7
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
8
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
9
|
-
|
|
10
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
11
|
-
import packageInfo from "../package.json";
|
|
12
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
-
import { SSMIncidentsClientConfig } from "./SSMIncidentsClient";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => {
|
|
19
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return {
|
|
21
|
-
...clientSharedValues,
|
|
22
|
-
...config,
|
|
23
|
-
runtime: "browser",
|
|
24
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
25
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
26
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
27
|
-
credentialDefaultProvider:
|
|
28
|
-
config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
|
|
29
|
-
defaultUserAgentProvider:
|
|
30
|
-
config?.defaultUserAgentProvider ??
|
|
31
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
33
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
34
|
-
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
|
|
35
|
-
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
|
|
36
|
-
sha256: config?.sha256 ?? Sha256,
|
|
37
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
-
|
|
3
|
-
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
import { SSMIncidentsClientConfig } from "./SSMIncidentsClient";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => {
|
|
10
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
11
|
-
return {
|
|
12
|
-
...browserDefaults,
|
|
13
|
-
...config,
|
|
14
|
-
runtime: "react-native",
|
|
15
|
-
sha256: config?.sha256 ?? Sha256,
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
|
-
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
-
|
|
4
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
5
|
-
import { SSMIncidentsClientConfig } from "./SSMIncidentsClient";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => ({
|
|
11
|
-
apiVersion: "2018-05-10",
|
|
12
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
13
|
-
logger: config?.logger ?? ({} as __Logger),
|
|
14
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
15
|
-
serviceId: config?.serviceId ?? "SSM Incidents",
|
|
16
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
-
});
|
package/src/runtimeConfig.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
2
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
3
|
-
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import { Hash } from "@aws-sdk/hash-node";
|
|
5
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
6
|
-
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
7
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
8
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
13
|
-
|
|
14
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
15
|
-
import packageInfo from "../package.json";
|
|
16
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
17
|
-
import { SSMIncidentsClientConfig } from "./SSMIncidentsClient";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => {
|
|
23
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
24
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
25
|
-
return {
|
|
26
|
-
...clientSharedValues,
|
|
27
|
-
...config,
|
|
28
|
-
runtime: "node",
|
|
29
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
30
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
|
-
credentialDefaultProvider:
|
|
33
|
-
config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
34
|
-
defaultUserAgentProvider:
|
|
35
|
-
config?.defaultUserAgentProvider ??
|
|
36
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
37
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
-
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
|
|
40
|
-
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
41
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
44
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { GetReplicationSetCommand, GetReplicationSetCommandInput } from "../commands/GetReplicationSetCommand";
|
|
4
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: SSMIncidentsClient, input: GetReplicationSetCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new GetReplicationSetCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.replicationSet.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "ACTIVE") {
|
|
16
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
try {
|
|
20
|
-
const returnComparator = () => {
|
|
21
|
-
return result.replicationSet.status;
|
|
22
|
-
};
|
|
23
|
-
if (returnComparator() === "CREATING") {
|
|
24
|
-
return { state: WaiterState.RETRY, reason };
|
|
25
|
-
}
|
|
26
|
-
} catch (e) {}
|
|
27
|
-
try {
|
|
28
|
-
const returnComparator = () => {
|
|
29
|
-
return result.replicationSet.status;
|
|
30
|
-
};
|
|
31
|
-
if (returnComparator() === "UPDATING") {
|
|
32
|
-
return { state: WaiterState.RETRY, reason };
|
|
33
|
-
}
|
|
34
|
-
} catch (e) {}
|
|
35
|
-
try {
|
|
36
|
-
const returnComparator = () => {
|
|
37
|
-
return result.replicationSet.status;
|
|
38
|
-
};
|
|
39
|
-
if (returnComparator() === "FAILED") {
|
|
40
|
-
return { state: WaiterState.FAILURE, reason };
|
|
41
|
-
}
|
|
42
|
-
} catch (e) {}
|
|
43
|
-
} catch (exception) {
|
|
44
|
-
reason = exception;
|
|
45
|
-
}
|
|
46
|
-
return { state: WaiterState.RETRY, reason };
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Wait for a replication set to become ACTIVE
|
|
50
|
-
* @deprecated Use waitUntilWaitForReplicationSetActive instead. waitForWaitForReplicationSetActive does not throw error in non-success cases.
|
|
51
|
-
*/
|
|
52
|
-
export const waitForWaitForReplicationSetActive = async (
|
|
53
|
-
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
54
|
-
input: GetReplicationSetCommandInput
|
|
55
|
-
): Promise<WaiterResult> => {
|
|
56
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 30 };
|
|
57
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Wait for a replication set to become ACTIVE
|
|
61
|
-
* @param params - Waiter configuration options.
|
|
62
|
-
* @param input - The input to GetReplicationSetCommand for polling.
|
|
63
|
-
*/
|
|
64
|
-
export const waitUntilWaitForReplicationSetActive = async (
|
|
65
|
-
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
66
|
-
input: GetReplicationSetCommandInput
|
|
67
|
-
): Promise<WaiterResult> => {
|
|
68
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 30 };
|
|
69
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
70
|
-
return checkExceptions(result);
|
|
71
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { GetReplicationSetCommand, GetReplicationSetCommandInput } from "../commands/GetReplicationSetCommand";
|
|
4
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
5
|
-
|
|
6
|
-
const checkState = async (client: SSMIncidentsClient, input: GetReplicationSetCommandInput): Promise<WaiterResult> => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result: any = await client.send(new GetReplicationSetCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.replicationSet.status;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "DELETING") {
|
|
16
|
-
return { state: WaiterState.RETRY, reason };
|
|
17
|
-
}
|
|
18
|
-
} catch (e) {}
|
|
19
|
-
try {
|
|
20
|
-
const returnComparator = () => {
|
|
21
|
-
return result.replicationSet.status;
|
|
22
|
-
};
|
|
23
|
-
if (returnComparator() === "FAILED") {
|
|
24
|
-
return { state: WaiterState.FAILURE, reason };
|
|
25
|
-
}
|
|
26
|
-
} catch (e) {}
|
|
27
|
-
} catch (exception) {
|
|
28
|
-
reason = exception;
|
|
29
|
-
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
30
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return { state: WaiterState.RETRY, reason };
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Wait for a replication set to be deleted
|
|
37
|
-
* @deprecated Use waitUntilWaitForReplicationSetDeleted instead. waitForWaitForReplicationSetDeleted does not throw error in non-success cases.
|
|
38
|
-
*/
|
|
39
|
-
export const waitForWaitForReplicationSetDeleted = async (
|
|
40
|
-
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
41
|
-
input: GetReplicationSetCommandInput
|
|
42
|
-
): Promise<WaiterResult> => {
|
|
43
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 30 };
|
|
44
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Wait for a replication set to be deleted
|
|
48
|
-
* @param params - Waiter configuration options.
|
|
49
|
-
* @param input - The input to GetReplicationSetCommand for polling.
|
|
50
|
-
*/
|
|
51
|
-
export const waitUntilWaitForReplicationSetDeleted = async (
|
|
52
|
-
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
53
|
-
input: GetReplicationSetCommandInput
|
|
54
|
-
): Promise<WaiterResult> => {
|
|
55
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 30 };
|
|
56
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
-
return checkExceptions(result);
|
|
58
|
-
};
|
package/tsconfig.es.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
8
|
-
"outDir": "dist-es"
|
|
9
|
-
}
|
|
10
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"alwaysStrict": true,
|
|
4
|
-
"target": "ES2018",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"downlevelIteration": true,
|
|
9
|
-
"importHelpers": true,
|
|
10
|
-
"noEmitHelpers": true,
|
|
11
|
-
"incremental": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"esModuleInterop": true,
|
|
14
|
-
"rootDir": "src",
|
|
15
|
-
"outDir": "dist-cjs",
|
|
16
|
-
"removeComments": true
|
|
17
|
-
},
|
|
18
|
-
"typedocOptions": {
|
|
19
|
-
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
20
|
-
"excludeNotExported": true,
|
|
21
|
-
"excludePrivate": true,
|
|
22
|
-
"hideGenerator": true,
|
|
23
|
-
"ignoreCompilerErrors": true,
|
|
24
|
-
"includeDeclarations": true,
|
|
25
|
-
"stripInternal": true,
|
|
26
|
-
"readme": "README.md",
|
|
27
|
-
"mode": "file",
|
|
28
|
-
"out": "docs",
|
|
29
|
-
"theme": "minimal",
|
|
30
|
-
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
31
|
-
},
|
|
32
|
-
"exclude": ["test/**/*"]
|
|
33
|
-
}
|