@aws-sdk/client-cloudcontrol 3.315.0 → 3.319.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/CloudControl.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CloudControl = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CloudControlClient_1 = require("./CloudControlClient");
|
|
5
6
|
const CancelResourceRequestCommand_1 = require("./commands/CancelResourceRequestCommand");
|
|
6
7
|
const CreateResourceCommand_1 = require("./commands/CreateResourceCommand");
|
|
@@ -10,118 +11,17 @@ const GetResourceRequestStatusCommand_1 = require("./commands/GetResourceRequest
|
|
|
10
11
|
const ListResourceRequestsCommand_1 = require("./commands/ListResourceRequestsCommand");
|
|
11
12
|
const ListResourcesCommand_1 = require("./commands/ListResourcesCommand");
|
|
12
13
|
const UpdateResourceCommand_1 = require("./commands/UpdateResourceCommand");
|
|
14
|
+
const commands = {
|
|
15
|
+
CancelResourceRequestCommand: CancelResourceRequestCommand_1.CancelResourceRequestCommand,
|
|
16
|
+
CreateResourceCommand: CreateResourceCommand_1.CreateResourceCommand,
|
|
17
|
+
DeleteResourceCommand: DeleteResourceCommand_1.DeleteResourceCommand,
|
|
18
|
+
GetResourceCommand: GetResourceCommand_1.GetResourceCommand,
|
|
19
|
+
GetResourceRequestStatusCommand: GetResourceRequestStatusCommand_1.GetResourceRequestStatusCommand,
|
|
20
|
+
ListResourceRequestsCommand: ListResourceRequestsCommand_1.ListResourceRequestsCommand,
|
|
21
|
+
ListResourcesCommand: ListResourcesCommand_1.ListResourcesCommand,
|
|
22
|
+
UpdateResourceCommand: UpdateResourceCommand_1.UpdateResourceCommand,
|
|
23
|
+
};
|
|
13
24
|
class CloudControl extends CloudControlClient_1.CloudControlClient {
|
|
14
|
-
cancelResourceRequest(args, optionsOrCb, cb) {
|
|
15
|
-
const command = new CancelResourceRequestCommand_1.CancelResourceRequestCommand(args);
|
|
16
|
-
if (typeof optionsOrCb === "function") {
|
|
17
|
-
this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof cb === "function") {
|
|
20
|
-
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
createResource(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new CreateResourceCommand_1.CreateResourceCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
deleteResource(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new DeleteResourceCommand_1.DeleteResourceCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
getResource(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new GetResourceCommand_1.GetResourceCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
getResourceRequestStatus(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new GetResourceRequestStatusCommand_1.GetResourceRequestStatusCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
listResourceRequests(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new ListResourceRequestsCommand_1.ListResourceRequestsCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
listResources(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new ListResourcesCommand_1.ListResourcesCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
updateResource(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new UpdateResourceCommand_1.UpdateResourceCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
25
|
}
|
|
127
26
|
exports.CloudControl = CloudControl;
|
|
27
|
+
(0, smithy_client_1.createAggregatedClient)(commands, CloudControl);
|
|
@@ -772,7 +772,7 @@ const de_UnsupportedActionExceptionRes = async (parsedOutput, context) => {
|
|
|
772
772
|
};
|
|
773
773
|
const se_CreateResourceInput = (input, context) => {
|
|
774
774
|
return (0, smithy_client_1.take)(input, {
|
|
775
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
775
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
776
776
|
DesiredState: [],
|
|
777
777
|
RoleArn: [],
|
|
778
778
|
TypeName: [],
|
|
@@ -781,7 +781,7 @@ const se_CreateResourceInput = (input, context) => {
|
|
|
781
781
|
};
|
|
782
782
|
const se_DeleteResourceInput = (input, context) => {
|
|
783
783
|
return (0, smithy_client_1.take)(input, {
|
|
784
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
784
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
785
785
|
Identifier: [],
|
|
786
786
|
RoleArn: [],
|
|
787
787
|
TypeName: [],
|
|
@@ -790,7 +790,7 @@ const se_DeleteResourceInput = (input, context) => {
|
|
|
790
790
|
};
|
|
791
791
|
const se_UpdateResourceInput = (input, context) => {
|
|
792
792
|
return (0, smithy_client_1.take)(input, {
|
|
793
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
793
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
794
794
|
Identifier: [],
|
|
795
795
|
PatchDocument: [],
|
|
796
796
|
RoleArn: [],
|
package/dist-es/CloudControl.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CloudControlClient } from "./CloudControlClient";
|
|
2
3
|
import { CancelResourceRequestCommand, } from "./commands/CancelResourceRequestCommand";
|
|
3
4
|
import { CreateResourceCommand, } from "./commands/CreateResourceCommand";
|
|
@@ -7,117 +8,16 @@ import { GetResourceRequestStatusCommand, } from "./commands/GetResourceRequestS
|
|
|
7
8
|
import { ListResourceRequestsCommand, } from "./commands/ListResourceRequestsCommand";
|
|
8
9
|
import { ListResourcesCommand, } from "./commands/ListResourcesCommand";
|
|
9
10
|
import { UpdateResourceCommand, } from "./commands/UpdateResourceCommand";
|
|
11
|
+
const commands = {
|
|
12
|
+
CancelResourceRequestCommand,
|
|
13
|
+
CreateResourceCommand,
|
|
14
|
+
DeleteResourceCommand,
|
|
15
|
+
GetResourceCommand,
|
|
16
|
+
GetResourceRequestStatusCommand,
|
|
17
|
+
ListResourceRequestsCommand,
|
|
18
|
+
ListResourcesCommand,
|
|
19
|
+
UpdateResourceCommand,
|
|
20
|
+
};
|
|
10
21
|
export class CloudControl extends CloudControlClient {
|
|
11
|
-
cancelResourceRequest(args, optionsOrCb, cb) {
|
|
12
|
-
const command = new CancelResourceRequestCommand(args);
|
|
13
|
-
if (typeof optionsOrCb === "function") {
|
|
14
|
-
this.send(command, optionsOrCb);
|
|
15
|
-
}
|
|
16
|
-
else if (typeof cb === "function") {
|
|
17
|
-
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
createResource(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new CreateResourceCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
deleteResource(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new DeleteResourceCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
getResource(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new GetResourceCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
getResourceRequestStatus(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new GetResourceRequestStatusCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
listResourceRequests(args, optionsOrCb, cb) {
|
|
82
|
-
const command = new ListResourceRequestsCommand(args);
|
|
83
|
-
if (typeof optionsOrCb === "function") {
|
|
84
|
-
this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
else if (typeof cb === "function") {
|
|
87
|
-
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
listResources(args, optionsOrCb, cb) {
|
|
96
|
-
const command = new ListResourcesCommand(args);
|
|
97
|
-
if (typeof optionsOrCb === "function") {
|
|
98
|
-
this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
else if (typeof cb === "function") {
|
|
101
|
-
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
return this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
updateResource(args, optionsOrCb, cb) {
|
|
110
|
-
const command = new UpdateResourceCommand(args);
|
|
111
|
-
if (typeof optionsOrCb === "function") {
|
|
112
|
-
this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
else if (typeof cb === "function") {
|
|
115
|
-
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
return this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
22
|
}
|
|
23
|
+
createAggregatedClient(commands, CloudControl);
|
|
@@ -753,7 +753,7 @@ const de_UnsupportedActionExceptionRes = async (parsedOutput, context) => {
|
|
|
753
753
|
};
|
|
754
754
|
const se_CreateResourceInput = (input, context) => {
|
|
755
755
|
return take(input, {
|
|
756
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
756
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
757
757
|
DesiredState: [],
|
|
758
758
|
RoleArn: [],
|
|
759
759
|
TypeName: [],
|
|
@@ -762,7 +762,7 @@ const se_CreateResourceInput = (input, context) => {
|
|
|
762
762
|
};
|
|
763
763
|
const se_DeleteResourceInput = (input, context) => {
|
|
764
764
|
return take(input, {
|
|
765
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
765
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
766
766
|
Identifier: [],
|
|
767
767
|
RoleArn: [],
|
|
768
768
|
TypeName: [],
|
|
@@ -771,7 +771,7 @@ const se_DeleteResourceInput = (input, context) => {
|
|
|
771
771
|
};
|
|
772
772
|
const se_UpdateResourceInput = (input, context) => {
|
|
773
773
|
return take(input, {
|
|
774
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
774
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
775
775
|
Identifier: [],
|
|
776
776
|
PatchDocument: [],
|
|
777
777
|
RoleArn: [],
|
|
@@ -8,100 +8,60 @@ import { GetResourceRequestStatusCommandInput, GetResourceRequestStatusCommandOu
|
|
|
8
8
|
import { ListResourceRequestsCommandInput, ListResourceRequestsCommandOutput } from "./commands/ListResourceRequestsCommand";
|
|
9
9
|
import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
|
|
10
10
|
import { UpdateResourceCommandInput, UpdateResourceCommandOutput } from "./commands/UpdateResourceCommand";
|
|
11
|
-
|
|
12
|
-
* @public
|
|
13
|
-
* <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
|
|
14
|
-
* Guide</a>.</p>
|
|
15
|
-
*/
|
|
16
|
-
export declare class CloudControl extends CloudControlClient {
|
|
11
|
+
export interface CloudControl {
|
|
17
12
|
/**
|
|
18
|
-
* @
|
|
19
|
-
* <p>Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling resource operation requests</a> in the
|
|
20
|
-
* <i>Amazon Web Services Cloud Control API User Guide</i>.</p>
|
|
21
|
-
* <p>Only resource operations requests with a status of <code>PENDING</code> or
|
|
22
|
-
* <code>IN_PROGRESS</code> can be canceled.</p>
|
|
13
|
+
* @see {@link CancelResourceRequestCommand}
|
|
23
14
|
*/
|
|
24
15
|
cancelResourceRequest(args: CancelResourceRequestCommandInput, options?: __HttpHandlerOptions): Promise<CancelResourceRequestCommandOutput>;
|
|
25
16
|
cancelResourceRequest(args: CancelResourceRequestCommandInput, cb: (err: any, data?: CancelResourceRequestCommandOutput) => void): void;
|
|
26
17
|
cancelResourceRequest(args: CancelResourceRequestCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelResourceRequestCommandOutput) => void): void;
|
|
27
18
|
/**
|
|
28
|
-
* @
|
|
29
|
-
* <p>Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating a
|
|
30
|
-
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>
|
|
31
|
-
* <p>After you have initiated a resource creation request, you can monitor the progress of your
|
|
32
|
-
* request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> using the <code>RequestToken</code> of the
|
|
33
|
-
* <code>ProgressEvent</code> type returned by <code>CreateResource</code>.</p>
|
|
19
|
+
* @see {@link CreateResourceCommand}
|
|
34
20
|
*/
|
|
35
21
|
createResource(args: CreateResourceCommandInput, options?: __HttpHandlerOptions): Promise<CreateResourceCommandOutput>;
|
|
36
22
|
createResource(args: CreateResourceCommandInput, cb: (err: any, data?: CreateResourceCommandOutput) => void): void;
|
|
37
23
|
createResource(args: CreateResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateResourceCommandOutput) => void): void;
|
|
38
24
|
/**
|
|
39
|
-
* @
|
|
40
|
-
* <p>Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting a
|
|
41
|
-
* resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>
|
|
42
|
-
* <p>After you have initiated a resource deletion request, you can monitor the progress of your
|
|
43
|
-
* request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> using the <code>RequestToken</code> of the
|
|
44
|
-
* <code>ProgressEvent</code> returned by <code>DeleteResource</code>.</p>
|
|
25
|
+
* @see {@link DeleteResourceCommand}
|
|
45
26
|
*/
|
|
46
27
|
deleteResource(args: DeleteResourceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourceCommandOutput>;
|
|
47
28
|
deleteResource(args: DeleteResourceCommandInput, cb: (err: any, data?: DeleteResourceCommandOutput) => void): void;
|
|
48
29
|
deleteResource(args: DeleteResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourceCommandOutput) => void): void;
|
|
49
30
|
/**
|
|
50
|
-
* @
|
|
51
|
-
* <p>Returns information about the current state of the specified resource. For details, see
|
|
52
|
-
* <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading a resource's current state</a>.</p>
|
|
53
|
-
* <p>You can use this action to return information about an existing resource in your account
|
|
54
|
-
* and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.</p>
|
|
31
|
+
* @see {@link GetResourceCommand}
|
|
55
32
|
*/
|
|
56
33
|
getResource(args: GetResourceCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceCommandOutput>;
|
|
57
34
|
getResource(args: GetResourceCommandInput, cb: (err: any, data?: GetResourceCommandOutput) => void): void;
|
|
58
35
|
getResource(args: GetResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceCommandOutput) => void): void;
|
|
59
36
|
/**
|
|
60
|
-
* @
|
|
61
|
-
* <p>Returns the current status of a resource operation request. For more information, see
|
|
62
|
-
* <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking the progress of resource operation requests</a> in the
|
|
63
|
-
* <i>Amazon Web Services Cloud Control API User Guide</i>.</p>
|
|
37
|
+
* @see {@link GetResourceRequestStatusCommand}
|
|
64
38
|
*/
|
|
65
39
|
getResourceRequestStatus(args: GetResourceRequestStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceRequestStatusCommandOutput>;
|
|
66
40
|
getResourceRequestStatus(args: GetResourceRequestStatusCommandInput, cb: (err: any, data?: GetResourceRequestStatusCommandOutput) => void): void;
|
|
67
41
|
getResourceRequestStatus(args: GetResourceRequestStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceRequestStatusCommandOutput) => void): void;
|
|
68
42
|
/**
|
|
69
|
-
* @
|
|
70
|
-
* <p>Returns existing resource operation requests. This includes requests of all status types.
|
|
71
|
-
* For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing active resource operation requests</a> in the
|
|
72
|
-
* <i>Amazon Web Services Cloud Control API User Guide</i>.</p>
|
|
73
|
-
* <note>
|
|
74
|
-
* <p>Resource operation requests expire after 7 days.</p>
|
|
75
|
-
* </note>
|
|
43
|
+
* @see {@link ListResourceRequestsCommand}
|
|
76
44
|
*/
|
|
77
45
|
listResourceRequests(args: ListResourceRequestsCommandInput, options?: __HttpHandlerOptions): Promise<ListResourceRequestsCommandOutput>;
|
|
78
46
|
listResourceRequests(args: ListResourceRequestsCommandInput, cb: (err: any, data?: ListResourceRequestsCommandOutput) => void): void;
|
|
79
47
|
listResourceRequests(args: ListResourceRequestsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourceRequestsCommandOutput) => void): void;
|
|
80
48
|
/**
|
|
81
|
-
* @
|
|
82
|
-
* <p>Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>
|
|
83
|
-
* <p>You can use this action to return information about existing resources in your account and
|
|
84
|
-
* Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.</p>
|
|
49
|
+
* @see {@link ListResourcesCommand}
|
|
85
50
|
*/
|
|
86
51
|
listResources(args: ListResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListResourcesCommandOutput>;
|
|
87
52
|
listResources(args: ListResourcesCommandInput, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
|
|
88
53
|
listResources(args: ListResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
|
|
89
54
|
/**
|
|
90
|
-
* @
|
|
91
|
-
* <p>Updates the specified property values in the resource.</p>
|
|
92
|
-
* <p>You specify your resource property updates as a list of patch operations contained in a
|
|
93
|
-
* JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902">
|
|
94
|
-
* <i>RFC 6902 - JavaScript Object
|
|
95
|
-
* Notation (JSON) Patch</i>
|
|
96
|
-
* </a> standard.</p>
|
|
97
|
-
* <p>For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>
|
|
98
|
-
* <p>After you have initiated a resource update request, you can monitor the progress of your
|
|
99
|
-
* request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> using the <code>RequestToken</code> of the
|
|
100
|
-
* <code>ProgressEvent</code> returned by <code>UpdateResource</code>.</p>
|
|
101
|
-
* <p>For more information about the properties of a specific resource, refer to the related
|
|
102
|
-
* topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource and property types reference</a> in the <i>CloudFormation Users Guide</i>.</p>
|
|
55
|
+
* @see {@link UpdateResourceCommand}
|
|
103
56
|
*/
|
|
104
57
|
updateResource(args: UpdateResourceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateResourceCommandOutput>;
|
|
105
58
|
updateResource(args: UpdateResourceCommandInput, cb: (err: any, data?: UpdateResourceCommandOutput) => void): void;
|
|
106
59
|
updateResource(args: UpdateResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateResourceCommandOutput) => void): void;
|
|
107
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
* <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
|
|
64
|
+
* Guide</a>.</p>
|
|
65
|
+
*/
|
|
66
|
+
export declare class CloudControl extends CloudControlClient implements CloudControl {
|
|
67
|
+
}
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
UpdateResourceCommandInput,
|
|
33
33
|
UpdateResourceCommandOutput,
|
|
34
34
|
} from "./commands/UpdateResourceCommand";
|
|
35
|
-
export
|
|
35
|
+
export interface CloudControl {
|
|
36
36
|
cancelResourceRequest(
|
|
37
37
|
args: CancelResourceRequestCommandInput,
|
|
38
38
|
options?: __HttpHandlerOptions
|
|
@@ -138,3 +138,6 @@ export declare class CloudControl extends CloudControlClient {
|
|
|
138
138
|
cb: (err: any, data?: UpdateResourceCommandOutput) => void
|
|
139
139
|
): void;
|
|
140
140
|
}
|
|
141
|
+
export declare class CloudControl
|
|
142
|
+
extends CloudControlClient
|
|
143
|
+
implements CloudControl {}
|
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.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|