@aws-sdk/client-cloudcontrol 3.477.0 → 3.481.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/commands/CancelResourceRequestCommand.js +18 -41
- package/dist-cjs/commands/CreateResourceCommand.js +18 -41
- package/dist-cjs/commands/DeleteResourceCommand.js +18 -41
- package/dist-cjs/commands/GetResourceCommand.js +18 -41
- package/dist-cjs/commands/GetResourceRequestStatusCommand.js +18 -41
- package/dist-cjs/commands/ListResourceRequestsCommand.js +18 -41
- package/dist-cjs/commands/ListResourcesCommand.js +18 -41
- package/dist-cjs/commands/UpdateResourceCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ListResourceRequestsPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourcesPaginator.js +2 -24
- package/dist-es/commands/CancelResourceRequestCommand.js +18 -41
- package/dist-es/commands/CreateResourceCommand.js +18 -41
- package/dist-es/commands/DeleteResourceCommand.js +18 -41
- package/dist-es/commands/GetResourceCommand.js +18 -41
- package/dist-es/commands/GetResourceRequestStatusCommand.js +18 -41
- package/dist-es/commands/ListResourceRequestsCommand.js +18 -41
- package/dist-es/commands/ListResourcesCommand.js +18 -41
- package/dist-es/commands/UpdateResourceCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ListResourceRequestsPaginator.js +2 -23
- package/dist-es/pagination/ListResourcesPaginator.js +2 -23
- package/dist-types/commands/CancelResourceRequestCommand.d.ts +6 -21
- package/dist-types/commands/CreateResourceCommand.d.ts +6 -21
- package/dist-types/commands/DeleteResourceCommand.d.ts +6 -21
- package/dist-types/commands/GetResourceCommand.d.ts +6 -21
- package/dist-types/commands/GetResourceRequestStatusCommand.d.ts +6 -21
- package/dist-types/commands/ListResourceRequestsCommand.d.ts +6 -21
- package/dist-types/commands/ListResourcesCommand.d.ts +6 -21
- package/dist-types/commands/UpdateResourceCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ListResourceRequestsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CancelResourceRequestCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetResourceRequestStatusCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListResourceRequestsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListResourcesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListResourceRequestsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourcesPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class CancelResourceRequestCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "CancelResourceRequestCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.CancelResourceRequestOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "CancelResourceRequest",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_CancelResourceRequestCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_CancelResourceRequestCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class CancelResourceRequestCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "CancelResourceRequest", {})
|
|
23
|
+
.n("CloudControlClient", "CancelResourceRequestCommand")
|
|
24
|
+
.f(void 0, models_0_1.CancelResourceRequestOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_CancelResourceRequestCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_CancelResourceRequestCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.CancelResourceRequestCommand = CancelResourceRequestCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class CreateResourceCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "CreateResourceCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.CreateResourceInputFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.CreateResourceOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "CreateResource",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_CreateResourceCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_CreateResourceCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class CreateResourceCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "CreateResource", {})
|
|
23
|
+
.n("CloudControlClient", "CreateResourceCommand")
|
|
24
|
+
.f(models_0_1.CreateResourceInputFilterSensitiveLog, models_0_1.CreateResourceOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_CreateResourceCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_CreateResourceCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.CreateResourceCommand = CreateResourceCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class DeleteResourceCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "DeleteResourceCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.DeleteResourceOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "DeleteResource",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_DeleteResourceCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_DeleteResourceCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class DeleteResourceCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "DeleteResource", {})
|
|
23
|
+
.n("CloudControlClient", "DeleteResourceCommand")
|
|
24
|
+
.f(void 0, models_0_1.DeleteResourceOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_DeleteResourceCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_DeleteResourceCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.DeleteResourceCommand = DeleteResourceCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class GetResourceCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "GetResourceCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.GetResourceOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "GetResource",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_GetResourceCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_GetResourceCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class GetResourceCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "GetResource", {})
|
|
23
|
+
.n("CloudControlClient", "GetResourceCommand")
|
|
24
|
+
.f(void 0, models_0_1.GetResourceOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_GetResourceCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_GetResourceCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.GetResourceCommand = GetResourceCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class GetResourceRequestStatusCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "GetResourceRequestStatusCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.GetResourceRequestStatusOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "GetResourceRequestStatus",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_GetResourceRequestStatusCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_GetResourceRequestStatusCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class GetResourceRequestStatusCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "GetResourceRequestStatus", {})
|
|
23
|
+
.n("CloudControlClient", "GetResourceRequestStatusCommand")
|
|
24
|
+
.f(void 0, models_0_1.GetResourceRequestStatusOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_GetResourceRequestStatusCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_GetResourceRequestStatusCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.GetResourceRequestStatusCommand = GetResourceRequestStatusCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class ListResourceRequestsCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "ListResourceRequestsCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.ListResourceRequestsOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "ListResourceRequests",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_ListResourceRequestsCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_ListResourceRequestsCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class ListResourceRequestsCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "ListResourceRequests", {})
|
|
23
|
+
.n("CloudControlClient", "ListResourceRequestsCommand")
|
|
24
|
+
.f(void 0, models_0_1.ListResourceRequestsOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_ListResourceRequestsCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_ListResourceRequestsCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.ListResourceRequestsCommand = ListResourceRequestsCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class ListResourcesCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "ListResourcesCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.ListResourcesInputFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.ListResourcesOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "ListResources",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_ListResourcesCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_ListResourcesCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class ListResourcesCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "ListResources", {})
|
|
23
|
+
.n("CloudControlClient", "ListResourcesCommand")
|
|
24
|
+
.f(models_0_1.ListResourcesInputFilterSensitiveLog, models_0_1.ListResourcesOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_ListResourcesCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_ListResourcesCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.ListResourcesCommand = ListResourcesCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
-
class UpdateResourceCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "CloudControlClient";
|
|
30
|
-
const commandName = "UpdateResourceCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.UpdateResourceInputFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.UpdateResourceOutputFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "CloudApiService",
|
|
39
|
-
operation: "UpdateResource",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_0_1.se_UpdateResourceCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_0_1.de_UpdateResourceCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class UpdateResourceCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("CloudApiService", "UpdateResource", {})
|
|
23
|
+
.n("CloudControlClient", "UpdateResourceCommand")
|
|
24
|
+
.f(models_0_1.UpdateResourceInputFilterSensitiveLog, models_0_1.UpdateResourceOutputFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_json1_0_1.se_UpdateResourceCommand)
|
|
26
|
+
.de(Aws_json1_0_1.de_UpdateResourceCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.UpdateResourceCommand = UpdateResourceCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveClientEndpointParameters = void 0;
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceRequests = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudControlClient_1 = require("../CloudControlClient");
|
|
5
6
|
const ListResourceRequestsCommand_1 = require("../commands/ListResourceRequestsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceRequestsCommand_1.ListResourceRequestsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceRequests(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudControlClient_1.CloudControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudControl | CloudControlClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResourceRequests = paginateListResourceRequests;
|
|
7
|
+
exports.paginateListResourceRequests = (0, core_1.createPaginator)(CloudControlClient_1.CloudControlClient, ListResourceRequestsCommand_1.ListResourceRequestsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudControlClient_1 = require("../CloudControlClient");
|
|
5
6
|
const ListResourcesCommand_1 = require("../commands/ListResourcesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourcesCommand_1.ListResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudControlClient_1.CloudControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudControl | CloudControlClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResources = paginateListResources;
|
|
7
|
+
exports.paginateListResources = (0, core_1.createPaginator)(CloudControlClient_1.CloudControlClient, ListResourcesCommand_1.ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
|