@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,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
GetResourcePoliciesCommand,
|
|
5
|
-
GetResourcePoliciesCommandInput,
|
|
6
|
-
GetResourcePoliciesCommandOutput,
|
|
7
|
-
} from "../commands/GetResourcePoliciesCommand";
|
|
8
|
-
import { SSMIncidents } from "../SSMIncidents";
|
|
9
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
10
|
-
import { SSMIncidentsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SSMIncidentsClient,
|
|
17
|
-
input: GetResourcePoliciesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<GetResourcePoliciesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new GetResourcePoliciesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SSMIncidents,
|
|
28
|
-
input: GetResourcePoliciesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<GetResourcePoliciesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.getResourcePolicies(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateGetResourcePolicies(
|
|
35
|
-
config: SSMIncidentsPaginationConfiguration,
|
|
36
|
-
input: GetResourcePoliciesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<GetResourcePoliciesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: GetResourcePoliciesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SSMIncidents) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SSMIncidentsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { SSMIncidents } from "../SSMIncidents";
|
|
4
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
5
|
-
|
|
6
|
-
export interface SSMIncidentsPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: SSMIncidents | SSMIncidentsClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListIncidentRecordsCommand,
|
|
5
|
-
ListIncidentRecordsCommandInput,
|
|
6
|
-
ListIncidentRecordsCommandOutput,
|
|
7
|
-
} from "../commands/ListIncidentRecordsCommand";
|
|
8
|
-
import { SSMIncidents } from "../SSMIncidents";
|
|
9
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
10
|
-
import { SSMIncidentsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SSMIncidentsClient,
|
|
17
|
-
input: ListIncidentRecordsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListIncidentRecordsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListIncidentRecordsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SSMIncidents,
|
|
28
|
-
input: ListIncidentRecordsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListIncidentRecordsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listIncidentRecords(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListIncidentRecords(
|
|
35
|
-
config: SSMIncidentsPaginationConfiguration,
|
|
36
|
-
input: ListIncidentRecordsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListIncidentRecordsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListIncidentRecordsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SSMIncidents) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SSMIncidentsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListRelatedItemsCommand,
|
|
5
|
-
ListRelatedItemsCommandInput,
|
|
6
|
-
ListRelatedItemsCommandOutput,
|
|
7
|
-
} from "../commands/ListRelatedItemsCommand";
|
|
8
|
-
import { SSMIncidents } from "../SSMIncidents";
|
|
9
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
10
|
-
import { SSMIncidentsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SSMIncidentsClient,
|
|
17
|
-
input: ListRelatedItemsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListRelatedItemsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListRelatedItemsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SSMIncidents,
|
|
28
|
-
input: ListRelatedItemsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListRelatedItemsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listRelatedItems(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListRelatedItems(
|
|
35
|
-
config: SSMIncidentsPaginationConfiguration,
|
|
36
|
-
input: ListRelatedItemsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListRelatedItemsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListRelatedItemsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SSMIncidents) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SSMIncidentsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListReplicationSetsCommand,
|
|
5
|
-
ListReplicationSetsCommandInput,
|
|
6
|
-
ListReplicationSetsCommandOutput,
|
|
7
|
-
} from "../commands/ListReplicationSetsCommand";
|
|
8
|
-
import { SSMIncidents } from "../SSMIncidents";
|
|
9
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
10
|
-
import { SSMIncidentsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SSMIncidentsClient,
|
|
17
|
-
input: ListReplicationSetsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListReplicationSetsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListReplicationSetsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SSMIncidents,
|
|
28
|
-
input: ListReplicationSetsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListReplicationSetsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listReplicationSets(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListReplicationSets(
|
|
35
|
-
config: SSMIncidentsPaginationConfiguration,
|
|
36
|
-
input: ListReplicationSetsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListReplicationSetsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListReplicationSetsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SSMIncidents) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SSMIncidentsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListResponsePlansCommand,
|
|
5
|
-
ListResponsePlansCommandInput,
|
|
6
|
-
ListResponsePlansCommandOutput,
|
|
7
|
-
} from "../commands/ListResponsePlansCommand";
|
|
8
|
-
import { SSMIncidents } from "../SSMIncidents";
|
|
9
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
10
|
-
import { SSMIncidentsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SSMIncidentsClient,
|
|
17
|
-
input: ListResponsePlansCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListResponsePlansCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListResponsePlansCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SSMIncidents,
|
|
28
|
-
input: ListResponsePlansCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListResponsePlansCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listResponsePlans(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListResponsePlans(
|
|
35
|
-
config: SSMIncidentsPaginationConfiguration,
|
|
36
|
-
input: ListResponsePlansCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListResponsePlansCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListResponsePlansCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SSMIncidents) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SSMIncidentsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListTimelineEventsCommand,
|
|
5
|
-
ListTimelineEventsCommandInput,
|
|
6
|
-
ListTimelineEventsCommandOutput,
|
|
7
|
-
} from "../commands/ListTimelineEventsCommand";
|
|
8
|
-
import { SSMIncidents } from "../SSMIncidents";
|
|
9
|
-
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
10
|
-
import { SSMIncidentsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SSMIncidentsClient,
|
|
17
|
-
input: ListTimelineEventsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListTimelineEventsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListTimelineEventsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SSMIncidents,
|
|
28
|
-
input: ListTimelineEventsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListTimelineEventsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listTimelineEvents(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListTimelineEvents(
|
|
35
|
-
config: SSMIncidentsPaginationConfiguration,
|
|
36
|
-
input: ListTimelineEventsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListTimelineEventsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListTimelineEventsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SSMIncidents) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SSMIncidentsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|