@aws-sdk/client-cloudcontrol 3.975.0 → 3.980.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 +21 -14
- package/dist-es/CloudControl.js +11 -1
- package/dist-types/CloudControl.d.ts +22 -1
- package/dist-types/ts3.4/CloudControl.d.ts +30 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -864,20 +864,6 @@ class UpdateResourceCommand extends smithyClient.Command
|
|
|
864
864
|
.build() {
|
|
865
865
|
}
|
|
866
866
|
|
|
867
|
-
const commands = {
|
|
868
|
-
CancelResourceRequestCommand,
|
|
869
|
-
CreateResourceCommand,
|
|
870
|
-
DeleteResourceCommand,
|
|
871
|
-
GetResourceCommand,
|
|
872
|
-
GetResourceRequestStatusCommand,
|
|
873
|
-
ListResourceRequestsCommand,
|
|
874
|
-
ListResourcesCommand,
|
|
875
|
-
UpdateResourceCommand,
|
|
876
|
-
};
|
|
877
|
-
class CloudControl extends CloudControlClient {
|
|
878
|
-
}
|
|
879
|
-
smithyClient.createAggregatedClient(commands, CloudControl);
|
|
880
|
-
|
|
881
867
|
const paginateListResourceRequests = core.createPaginator(CloudControlClient, ListResourceRequestsCommand, "NextToken", "NextToken", "MaxResults");
|
|
882
868
|
|
|
883
869
|
const paginateListResources = core.createPaginator(CloudControlClient, ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -930,6 +916,27 @@ const waitUntilResourceRequestSuccess = async (params, input) => {
|
|
|
930
916
|
return utilWaiter.checkExceptions(result);
|
|
931
917
|
};
|
|
932
918
|
|
|
919
|
+
const commands = {
|
|
920
|
+
CancelResourceRequestCommand,
|
|
921
|
+
CreateResourceCommand,
|
|
922
|
+
DeleteResourceCommand,
|
|
923
|
+
GetResourceCommand,
|
|
924
|
+
GetResourceRequestStatusCommand,
|
|
925
|
+
ListResourceRequestsCommand,
|
|
926
|
+
ListResourcesCommand,
|
|
927
|
+
UpdateResourceCommand,
|
|
928
|
+
};
|
|
929
|
+
const paginators = {
|
|
930
|
+
paginateListResourceRequests,
|
|
931
|
+
paginateListResources,
|
|
932
|
+
};
|
|
933
|
+
const waiters = {
|
|
934
|
+
waitUntilResourceRequestSuccess,
|
|
935
|
+
};
|
|
936
|
+
class CloudControl extends CloudControlClient {
|
|
937
|
+
}
|
|
938
|
+
smithyClient.createAggregatedClient(commands, CloudControl, { paginators, waiters });
|
|
939
|
+
|
|
933
940
|
const HandlerErrorCode = {
|
|
934
941
|
ACCESS_DENIED: "AccessDenied",
|
|
935
942
|
ALREADY_EXISTS: "AlreadyExists",
|
package/dist-es/CloudControl.js
CHANGED
|
@@ -8,6 +8,9 @@ import { GetResourceRequestStatusCommand, } from "./commands/GetResourceRequestS
|
|
|
8
8
|
import { ListResourceRequestsCommand, } from "./commands/ListResourceRequestsCommand";
|
|
9
9
|
import { ListResourcesCommand, } from "./commands/ListResourcesCommand";
|
|
10
10
|
import { UpdateResourceCommand, } from "./commands/UpdateResourceCommand";
|
|
11
|
+
import { paginateListResourceRequests } from "./pagination/ListResourceRequestsPaginator";
|
|
12
|
+
import { paginateListResources } from "./pagination/ListResourcesPaginator";
|
|
13
|
+
import { waitUntilResourceRequestSuccess } from "./waiters/waitForResourceRequestSuccess";
|
|
11
14
|
const commands = {
|
|
12
15
|
CancelResourceRequestCommand,
|
|
13
16
|
CreateResourceCommand,
|
|
@@ -18,6 +21,13 @@ const commands = {
|
|
|
18
21
|
ListResourcesCommand,
|
|
19
22
|
UpdateResourceCommand,
|
|
20
23
|
};
|
|
24
|
+
const paginators = {
|
|
25
|
+
paginateListResourceRequests,
|
|
26
|
+
paginateListResources,
|
|
27
|
+
};
|
|
28
|
+
const waiters = {
|
|
29
|
+
waitUntilResourceRequestSuccess,
|
|
30
|
+
};
|
|
21
31
|
export class CloudControl extends CloudControlClient {
|
|
22
32
|
}
|
|
23
|
-
createAggregatedClient(commands, CloudControl);
|
|
33
|
+
createAggregatedClient(commands, CloudControl, { paginators, waiters });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
|
|
2
|
+
import type { WaiterResult } from "@smithy/util-waiter";
|
|
2
3
|
import { CloudControlClient } from "./CloudControlClient";
|
|
3
4
|
import { CancelResourceRequestCommandInput, CancelResourceRequestCommandOutput } from "./commands/CancelResourceRequestCommand";
|
|
4
5
|
import { CreateResourceCommandInput, CreateResourceCommandOutput } from "./commands/CreateResourceCommand";
|
|
@@ -58,6 +59,26 @@ export interface CloudControl {
|
|
|
58
59
|
updateResource(args: UpdateResourceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateResourceCommandOutput>;
|
|
59
60
|
updateResource(args: UpdateResourceCommandInput, cb: (err: any, data?: UpdateResourceCommandOutput) => void): void;
|
|
60
61
|
updateResource(args: UpdateResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateResourceCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link ListResourceRequestsCommand}
|
|
64
|
+
* @param args - command input.
|
|
65
|
+
* @param paginationConfig - optional pagination config.
|
|
66
|
+
* @returns AsyncIterable of {@link ListResourceRequestsCommandOutput}.
|
|
67
|
+
*/
|
|
68
|
+
paginateListResourceRequests(args?: ListResourceRequestsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourceRequestsCommandOutput>;
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link ListResourcesCommand}
|
|
71
|
+
* @param args - command input.
|
|
72
|
+
* @param paginationConfig - optional pagination config.
|
|
73
|
+
* @returns AsyncIterable of {@link ListResourcesCommandOutput}.
|
|
74
|
+
*/
|
|
75
|
+
paginateListResources(args: ListResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourcesCommandOutput>;
|
|
76
|
+
/**
|
|
77
|
+
* @see {@link GetResourceRequestStatusCommand}
|
|
78
|
+
* @param args - command input.
|
|
79
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
80
|
+
*/
|
|
81
|
+
waitUntilResourceRequestSuccess(args: GetResourceRequestStatusCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudControl>, "client">): Promise<WaiterResult>;
|
|
61
82
|
}
|
|
62
83
|
/**
|
|
63
84
|
* <p>For more information about Amazon Web Services Cloud Control API, see the <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon Web Services Cloud Control API User
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
WaiterConfiguration,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
import { WaiterResult } from "@smithy/util-waiter";
|
|
2
8
|
import { CloudControlClient } from "./CloudControlClient";
|
|
3
9
|
import {
|
|
4
10
|
CancelResourceRequestCommandInput,
|
|
@@ -138,6 +144,29 @@ export interface CloudControl {
|
|
|
138
144
|
options: __HttpHandlerOptions,
|
|
139
145
|
cb: (err: any, data?: UpdateResourceCommandOutput) => void
|
|
140
146
|
): void;
|
|
147
|
+
paginateListResourceRequests(
|
|
148
|
+
args?: ListResourceRequestsCommandInput,
|
|
149
|
+
paginationConfig?: Pick<
|
|
150
|
+
PaginationConfiguration,
|
|
151
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
152
|
+
>
|
|
153
|
+
): Paginator<ListResourceRequestsCommandOutput>;
|
|
154
|
+
paginateListResources(
|
|
155
|
+
args: ListResourcesCommandInput,
|
|
156
|
+
paginationConfig?: Pick<
|
|
157
|
+
PaginationConfiguration,
|
|
158
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
159
|
+
>
|
|
160
|
+
): Paginator<ListResourcesCommandOutput>;
|
|
161
|
+
waitUntilResourceRequestSuccess(
|
|
162
|
+
args: GetResourceRequestStatusCommandInput,
|
|
163
|
+
waiterConfig:
|
|
164
|
+
| number
|
|
165
|
+
| Pick<
|
|
166
|
+
WaiterConfiguration<CloudControl>,
|
|
167
|
+
Exclude<keyof WaiterConfiguration<CloudControl>, "client">
|
|
168
|
+
>
|
|
169
|
+
): Promise<WaiterResult>;
|
|
141
170
|
}
|
|
142
171
|
export declare class CloudControl
|
|
143
172
|
extends CloudControlClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudcontrol",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudcontrol Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.980.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-cloudcontrol",
|
|
@@ -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.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.5",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
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",
|