@aws-sdk/client-controlcatalog 3.974.0 → 3.978.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/dist-cjs/index.js +18 -11
- package/dist-es/ControlCatalog.js +13 -1
- package/dist-types/ControlCatalog.d.ts +36 -1
- package/dist-types/ts3.4/ControlCatalog.d.ts +40 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -610,6 +610,16 @@ class ListObjectivesCommand extends smithyClient.Command
|
|
|
610
610
|
.build() {
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
+
const paginateListCommonControls = core.createPaginator(ControlCatalogClient, ListCommonControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
614
|
+
|
|
615
|
+
const paginateListControlMappings = core.createPaginator(ControlCatalogClient, ListControlMappingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
616
|
+
|
|
617
|
+
const paginateListControls = core.createPaginator(ControlCatalogClient, ListControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
618
|
+
|
|
619
|
+
const paginateListDomains = core.createPaginator(ControlCatalogClient, ListDomainsCommand, "NextToken", "NextToken", "MaxResults");
|
|
620
|
+
|
|
621
|
+
const paginateListObjectives = core.createPaginator(ControlCatalogClient, ListObjectivesCommand, "NextToken", "NextToken", "MaxResults");
|
|
622
|
+
|
|
613
623
|
const commands = {
|
|
614
624
|
GetControlCommand,
|
|
615
625
|
ListCommonControlsCommand,
|
|
@@ -618,19 +628,16 @@ const commands = {
|
|
|
618
628
|
ListDomainsCommand,
|
|
619
629
|
ListObjectivesCommand,
|
|
620
630
|
};
|
|
631
|
+
const paginators = {
|
|
632
|
+
paginateListCommonControls,
|
|
633
|
+
paginateListControlMappings,
|
|
634
|
+
paginateListControls,
|
|
635
|
+
paginateListDomains,
|
|
636
|
+
paginateListObjectives,
|
|
637
|
+
};
|
|
621
638
|
class ControlCatalog extends ControlCatalogClient {
|
|
622
639
|
}
|
|
623
|
-
smithyClient.createAggregatedClient(commands, ControlCatalog);
|
|
624
|
-
|
|
625
|
-
const paginateListCommonControls = core.createPaginator(ControlCatalogClient, ListCommonControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
626
|
-
|
|
627
|
-
const paginateListControlMappings = core.createPaginator(ControlCatalogClient, ListControlMappingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
628
|
-
|
|
629
|
-
const paginateListControls = core.createPaginator(ControlCatalogClient, ListControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
630
|
-
|
|
631
|
-
const paginateListDomains = core.createPaginator(ControlCatalogClient, ListDomainsCommand, "NextToken", "NextToken", "MaxResults");
|
|
632
|
-
|
|
633
|
-
const paginateListObjectives = core.createPaginator(ControlCatalogClient, ListObjectivesCommand, "NextToken", "NextToken", "MaxResults");
|
|
640
|
+
smithyClient.createAggregatedClient(commands, ControlCatalog, { paginators });
|
|
634
641
|
|
|
635
642
|
const ControlBehavior = {
|
|
636
643
|
DETECTIVE: "DETECTIVE",
|
|
@@ -6,6 +6,11 @@ import { ListControlsCommand, } from "./commands/ListControlsCommand";
|
|
|
6
6
|
import { ListDomainsCommand } from "./commands/ListDomainsCommand";
|
|
7
7
|
import { ListObjectivesCommand, } from "./commands/ListObjectivesCommand";
|
|
8
8
|
import { ControlCatalogClient } from "./ControlCatalogClient";
|
|
9
|
+
import { paginateListCommonControls } from "./pagination/ListCommonControlsPaginator";
|
|
10
|
+
import { paginateListControlMappings } from "./pagination/ListControlMappingsPaginator";
|
|
11
|
+
import { paginateListControls } from "./pagination/ListControlsPaginator";
|
|
12
|
+
import { paginateListDomains } from "./pagination/ListDomainsPaginator";
|
|
13
|
+
import { paginateListObjectives } from "./pagination/ListObjectivesPaginator";
|
|
9
14
|
const commands = {
|
|
10
15
|
GetControlCommand,
|
|
11
16
|
ListCommonControlsCommand,
|
|
@@ -14,6 +19,13 @@ const commands = {
|
|
|
14
19
|
ListDomainsCommand,
|
|
15
20
|
ListObjectivesCommand,
|
|
16
21
|
};
|
|
22
|
+
const paginators = {
|
|
23
|
+
paginateListCommonControls,
|
|
24
|
+
paginateListControlMappings,
|
|
25
|
+
paginateListControls,
|
|
26
|
+
paginateListDomains,
|
|
27
|
+
paginateListObjectives,
|
|
28
|
+
};
|
|
17
29
|
export class ControlCatalog extends ControlCatalogClient {
|
|
18
30
|
}
|
|
19
|
-
createAggregatedClient(commands, ControlCatalog);
|
|
31
|
+
createAggregatedClient(commands, ControlCatalog, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { GetControlCommandInput, GetControlCommandOutput } from "./commands/GetControlCommand";
|
|
3
3
|
import { ListCommonControlsCommandInput, ListCommonControlsCommandOutput } from "./commands/ListCommonControlsCommand";
|
|
4
4
|
import { ListControlMappingsCommandInput, ListControlMappingsCommandOutput } from "./commands/ListControlMappingsCommand";
|
|
@@ -48,6 +48,41 @@ export interface ControlCatalog {
|
|
|
48
48
|
listObjectives(args: ListObjectivesCommandInput, options?: __HttpHandlerOptions): Promise<ListObjectivesCommandOutput>;
|
|
49
49
|
listObjectives(args: ListObjectivesCommandInput, cb: (err: any, data?: ListObjectivesCommandOutput) => void): void;
|
|
50
50
|
listObjectives(args: ListObjectivesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListObjectivesCommandOutput) => void): void;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link ListCommonControlsCommand}
|
|
53
|
+
* @param args - command input.
|
|
54
|
+
* @param paginationConfig - optional pagination config.
|
|
55
|
+
* @returns AsyncIterable of {@link ListCommonControlsCommandOutput}.
|
|
56
|
+
*/
|
|
57
|
+
paginateListCommonControls(args?: ListCommonControlsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListCommonControlsCommandOutput>;
|
|
58
|
+
/**
|
|
59
|
+
* @see {@link ListControlMappingsCommand}
|
|
60
|
+
* @param args - command input.
|
|
61
|
+
* @param paginationConfig - optional pagination config.
|
|
62
|
+
* @returns AsyncIterable of {@link ListControlMappingsCommandOutput}.
|
|
63
|
+
*/
|
|
64
|
+
paginateListControlMappings(args?: ListControlMappingsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListControlMappingsCommandOutput>;
|
|
65
|
+
/**
|
|
66
|
+
* @see {@link ListControlsCommand}
|
|
67
|
+
* @param args - command input.
|
|
68
|
+
* @param paginationConfig - optional pagination config.
|
|
69
|
+
* @returns AsyncIterable of {@link ListControlsCommandOutput}.
|
|
70
|
+
*/
|
|
71
|
+
paginateListControls(args?: ListControlsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListControlsCommandOutput>;
|
|
72
|
+
/**
|
|
73
|
+
* @see {@link ListDomainsCommand}
|
|
74
|
+
* @param args - command input.
|
|
75
|
+
* @param paginationConfig - optional pagination config.
|
|
76
|
+
* @returns AsyncIterable of {@link ListDomainsCommandOutput}.
|
|
77
|
+
*/
|
|
78
|
+
paginateListDomains(args?: ListDomainsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDomainsCommandOutput>;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link ListObjectivesCommand}
|
|
81
|
+
* @param args - command input.
|
|
82
|
+
* @param paginationConfig - optional pagination config.
|
|
83
|
+
* @returns AsyncIterable of {@link ListObjectivesCommandOutput}.
|
|
84
|
+
*/
|
|
85
|
+
paginateListObjectives(args?: ListObjectivesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListObjectivesCommandOutput>;
|
|
51
86
|
}
|
|
52
87
|
/**
|
|
53
88
|
* <p>Welcome to the Control Catalog API reference. This guide is for developers who need detailed information about how to programmatically identify and filter the common controls and related metadata that are available to Amazon Web Services customers. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types that are supported by Control Catalog. </p> <p>Use the following links to get started with the Control Catalog API:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/controlcatalog/latest/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Control Catalog API operations.</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/controlcatalog/latest/APIReference/API_Types.html">Data types</a>: An alphabetical list of all Control Catalog data types.</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/controlcatalog/latest/APIReference/CommonParameters.html">Common parameters</a>: Parameters that all operations can use.</p> </li> <li> <p> <a href="https://docs.aws.amazon.com/controlcatalog/latest/APIReference/CommonErrors.html">Common errors</a>: Client and server errors that all operations can return.</p> </li> </ul>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
GetControlCommandInput,
|
|
4
8
|
GetControlCommandOutput,
|
|
@@ -108,6 +112,41 @@ export interface ControlCatalog {
|
|
|
108
112
|
options: __HttpHandlerOptions,
|
|
109
113
|
cb: (err: any, data?: ListObjectivesCommandOutput) => void
|
|
110
114
|
): void;
|
|
115
|
+
paginateListCommonControls(
|
|
116
|
+
args?: ListCommonControlsCommandInput,
|
|
117
|
+
paginationConfig?: Pick<
|
|
118
|
+
PaginationConfiguration,
|
|
119
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
120
|
+
>
|
|
121
|
+
): Paginator<ListCommonControlsCommandOutput>;
|
|
122
|
+
paginateListControlMappings(
|
|
123
|
+
args?: ListControlMappingsCommandInput,
|
|
124
|
+
paginationConfig?: Pick<
|
|
125
|
+
PaginationConfiguration,
|
|
126
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
127
|
+
>
|
|
128
|
+
): Paginator<ListControlMappingsCommandOutput>;
|
|
129
|
+
paginateListControls(
|
|
130
|
+
args?: ListControlsCommandInput,
|
|
131
|
+
paginationConfig?: Pick<
|
|
132
|
+
PaginationConfiguration,
|
|
133
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
134
|
+
>
|
|
135
|
+
): Paginator<ListControlsCommandOutput>;
|
|
136
|
+
paginateListDomains(
|
|
137
|
+
args?: ListDomainsCommandInput,
|
|
138
|
+
paginationConfig?: Pick<
|
|
139
|
+
PaginationConfiguration,
|
|
140
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
141
|
+
>
|
|
142
|
+
): Paginator<ListDomainsCommandOutput>;
|
|
143
|
+
paginateListObjectives(
|
|
144
|
+
args?: ListObjectivesCommandInput,
|
|
145
|
+
paginationConfig?: Pick<
|
|
146
|
+
PaginationConfiguration,
|
|
147
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
148
|
+
>
|
|
149
|
+
): Paginator<ListObjectivesCommandOutput>;
|
|
111
150
|
}
|
|
112
151
|
export declare class ControlCatalog
|
|
113
152
|
extends ControlCatalogClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-controlcatalog",
|
|
3
3
|
"description": "AWS SDK for JavaScript Controlcatalog Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-controlcatalog",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|