@aws-sdk/client-apprunner 3.413.0 → 3.417.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/README.md +16 -0
- package/dist-cjs/AppRunner.js +4 -0
- package/dist-cjs/commands/ListServicesForAutoScalingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/UpdateDefaultAutoScalingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/pagination/ListServicesForAutoScalingConfigurationPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +128 -4
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/AppRunner.js +4 -0
- package/dist-es/commands/ListServicesForAutoScalingConfigurationCommand.js +42 -0
- package/dist-es/commands/UpdateDefaultAutoScalingConfigurationCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/pagination/ListServicesForAutoScalingConfigurationPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +122 -2
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/AppRunner.d.ts +14 -0
- package/dist-types/AppRunnerClient.d.ts +4 -2
- package/dist-types/commands/CreateAutoScalingConfigurationCommand.d.ts +4 -2
- package/dist-types/commands/CreateServiceCommand.d.ts +4 -0
- package/dist-types/commands/DeleteAutoScalingConfigurationCommand.d.ts +6 -2
- package/dist-types/commands/DeleteServiceCommand.d.ts +4 -0
- package/dist-types/commands/DescribeAutoScalingConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/DescribeServiceCommand.d.ts +4 -0
- package/dist-types/commands/ListAutoScalingConfigurationsCommand.d.ts +4 -0
- package/dist-types/commands/ListServicesForAutoScalingConfigurationCommand.d.ts +87 -0
- package/dist-types/commands/PauseServiceCommand.d.ts +4 -0
- package/dist-types/commands/ResumeServiceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateDefaultAutoScalingConfigurationCommand.d.ts +96 -0
- package/dist-types/commands/UpdateServiceCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +135 -6
- package/dist-types/pagination/ListServicesForAutoScalingConfigurationPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/ts3.4/AppRunner.d.ts +46 -0
- package/dist-types/ts3.4/AppRunnerClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListServicesForAutoScalingConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateDefaultAutoScalingConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/dist-types/ts3.4/pagination/ListServicesForAutoScalingConfigurationPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -419,6 +419,14 @@ ListServices
|
|
|
419
419
|
|
|
420
420
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/classes/listservicescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/listservicescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/listservicescommandoutput.html)
|
|
421
421
|
|
|
422
|
+
</details>
|
|
423
|
+
<details>
|
|
424
|
+
<summary>
|
|
425
|
+
ListServicesForAutoScalingConfiguration
|
|
426
|
+
</summary>
|
|
427
|
+
|
|
428
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/classes/listservicesforautoscalingconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/listservicesforautoscalingconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/listservicesforautoscalingconfigurationcommandoutput.html)
|
|
429
|
+
|
|
422
430
|
</details>
|
|
423
431
|
<details>
|
|
424
432
|
<summary>
|
|
@@ -483,6 +491,14 @@ UntagResource
|
|
|
483
491
|
|
|
484
492
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/untagresourcecommandoutput.html)
|
|
485
493
|
|
|
494
|
+
</details>
|
|
495
|
+
<details>
|
|
496
|
+
<summary>
|
|
497
|
+
UpdateDefaultAutoScalingConfiguration
|
|
498
|
+
</summary>
|
|
499
|
+
|
|
500
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/classes/updatedefaultautoscalingconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/updatedefaultautoscalingconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-apprunner/interfaces/updatedefaultautoscalingconfigurationcommandoutput.html)
|
|
501
|
+
|
|
486
502
|
</details>
|
|
487
503
|
<details>
|
|
488
504
|
<summary>
|
package/dist-cjs/AppRunner.js
CHANGED
|
@@ -28,6 +28,7 @@ const ListConnectionsCommand_1 = require("./commands/ListConnectionsCommand");
|
|
|
28
28
|
const ListObservabilityConfigurationsCommand_1 = require("./commands/ListObservabilityConfigurationsCommand");
|
|
29
29
|
const ListOperationsCommand_1 = require("./commands/ListOperationsCommand");
|
|
30
30
|
const ListServicesCommand_1 = require("./commands/ListServicesCommand");
|
|
31
|
+
const ListServicesForAutoScalingConfigurationCommand_1 = require("./commands/ListServicesForAutoScalingConfigurationCommand");
|
|
31
32
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
32
33
|
const ListVpcConnectorsCommand_1 = require("./commands/ListVpcConnectorsCommand");
|
|
33
34
|
const ListVpcIngressConnectionsCommand_1 = require("./commands/ListVpcIngressConnectionsCommand");
|
|
@@ -36,6 +37,7 @@ const ResumeServiceCommand_1 = require("./commands/ResumeServiceCommand");
|
|
|
36
37
|
const StartDeploymentCommand_1 = require("./commands/StartDeploymentCommand");
|
|
37
38
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
38
39
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
40
|
+
const UpdateDefaultAutoScalingConfigurationCommand_1 = require("./commands/UpdateDefaultAutoScalingConfigurationCommand");
|
|
39
41
|
const UpdateServiceCommand_1 = require("./commands/UpdateServiceCommand");
|
|
40
42
|
const UpdateVpcIngressConnectionCommand_1 = require("./commands/UpdateVpcIngressConnectionCommand");
|
|
41
43
|
const commands = {
|
|
@@ -64,6 +66,7 @@ const commands = {
|
|
|
64
66
|
ListObservabilityConfigurationsCommand: ListObservabilityConfigurationsCommand_1.ListObservabilityConfigurationsCommand,
|
|
65
67
|
ListOperationsCommand: ListOperationsCommand_1.ListOperationsCommand,
|
|
66
68
|
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
69
|
+
ListServicesForAutoScalingConfigurationCommand: ListServicesForAutoScalingConfigurationCommand_1.ListServicesForAutoScalingConfigurationCommand,
|
|
67
70
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
68
71
|
ListVpcConnectorsCommand: ListVpcConnectorsCommand_1.ListVpcConnectorsCommand,
|
|
69
72
|
ListVpcIngressConnectionsCommand: ListVpcIngressConnectionsCommand_1.ListVpcIngressConnectionsCommand,
|
|
@@ -72,6 +75,7 @@ const commands = {
|
|
|
72
75
|
StartDeploymentCommand: StartDeploymentCommand_1.StartDeploymentCommand,
|
|
73
76
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
74
77
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
78
|
+
UpdateDefaultAutoScalingConfigurationCommand: UpdateDefaultAutoScalingConfigurationCommand_1.UpdateDefaultAutoScalingConfigurationCommand,
|
|
75
79
|
UpdateServiceCommand: UpdateServiceCommand_1.UpdateServiceCommand,
|
|
76
80
|
UpdateVpcIngressConnectionCommand: UpdateVpcIngressConnectionCommand_1.UpdateVpcIngressConnectionCommand,
|
|
77
81
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListServicesForAutoScalingConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class ListServicesForAutoScalingConfigurationCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListServicesForAutoScalingConfigurationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AppRunnerClient";
|
|
28
|
+
const commandName = "ListServicesForAutoScalingConfigurationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.se_ListServicesForAutoScalingConfigurationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.de_ListServicesForAutoScalingConfigurationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListServicesForAutoScalingConfigurationCommand = ListServicesForAutoScalingConfigurationCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateDefaultAutoScalingConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
9
|
+
class UpdateDefaultAutoScalingConfigurationCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDefaultAutoScalingConfigurationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AppRunnerClient";
|
|
28
|
+
const commandName = "UpdateDefaultAutoScalingConfigurationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_0_1.se_UpdateDefaultAutoScalingConfigurationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_0_1.de_UpdateDefaultAutoScalingConfigurationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateDefaultAutoScalingConfigurationCommand = UpdateDefaultAutoScalingConfigurationCommand;
|
|
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./ListConnectionsCommand"), exports);
|
|
|
26
26
|
tslib_1.__exportStar(require("./ListObservabilityConfigurationsCommand"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./ListOperationsCommand"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./ListServicesCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./ListServicesForAutoScalingConfigurationCommand"), exports);
|
|
29
30
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./ListVpcConnectorsCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./ListVpcIngressConnectionsCommand"), exports);
|
|
@@ -34,5 +35,6 @@ tslib_1.__exportStar(require("./ResumeServiceCommand"), exports);
|
|
|
34
35
|
tslib_1.__exportStar(require("./StartDeploymentCommand"), exports);
|
|
35
36
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
36
37
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./UpdateDefaultAutoScalingConfigurationCommand"), exports);
|
|
37
39
|
tslib_1.__exportStar(require("./UpdateServiceCommand"), exports);
|
|
38
40
|
tslib_1.__exportStar(require("./UpdateVpcIngressConnectionCommand"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListServicesForAutoScalingConfiguration = void 0;
|
|
4
|
+
const AppRunnerClient_1 = require("../AppRunnerClient");
|
|
5
|
+
const ListServicesForAutoScalingConfigurationCommand_1 = require("../commands/ListServicesForAutoScalingConfigurationCommand");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListServicesForAutoScalingConfigurationCommand_1.ListServicesForAutoScalingConfigurationCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListServicesForAutoScalingConfiguration(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 AppRunnerClient_1.AppRunnerClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected AppRunner | AppRunnerClient");
|
|
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.paginateListServicesForAutoScalingConfiguration = paginateListServicesForAutoScalingConfiguration;
|
|
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./ListAutoScalingConfigurationsPaginator"), export
|
|
|
7
7
|
tslib_1.__exportStar(require("./ListConnectionsPaginator"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./ListObservabilityConfigurationsPaginator"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./ListOperationsPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListServicesForAutoScalingConfigurationPaginator"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListServicesPaginator"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./ListVpcConnectorsPaginator"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./ListVpcIngressConnectionsPaginator"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateVpcIngressConnectionCommand = exports.de_UpdateServiceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDeploymentCommand = exports.de_ResumeServiceCommand = exports.de_PauseServiceCommand = exports.de_ListVpcIngressConnectionsCommand = exports.de_ListVpcConnectorsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesCommand = exports.de_ListOperationsCommand = exports.de_ListObservabilityConfigurationsCommand = exports.de_ListConnectionsCommand = exports.de_ListAutoScalingConfigurationsCommand = exports.de_DisassociateCustomDomainCommand = exports.de_DescribeVpcIngressConnectionCommand = exports.de_DescribeVpcConnectorCommand = exports.de_DescribeServiceCommand = exports.de_DescribeObservabilityConfigurationCommand = void 0;
|
|
3
|
+
exports.de_DeleteVpcIngressConnectionCommand = exports.de_DeleteVpcConnectorCommand = exports.de_DeleteServiceCommand = exports.de_DeleteObservabilityConfigurationCommand = exports.de_DeleteConnectionCommand = exports.de_DeleteAutoScalingConfigurationCommand = exports.de_CreateVpcIngressConnectionCommand = exports.de_CreateVpcConnectorCommand = exports.de_CreateServiceCommand = exports.de_CreateObservabilityConfigurationCommand = exports.de_CreateConnectionCommand = exports.de_CreateAutoScalingConfigurationCommand = exports.de_AssociateCustomDomainCommand = exports.se_UpdateVpcIngressConnectionCommand = exports.se_UpdateServiceCommand = exports.se_UpdateDefaultAutoScalingConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartDeploymentCommand = exports.se_ResumeServiceCommand = exports.se_PauseServiceCommand = exports.se_ListVpcIngressConnectionsCommand = exports.se_ListVpcConnectorsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesForAutoScalingConfigurationCommand = exports.se_ListServicesCommand = exports.se_ListOperationsCommand = exports.se_ListObservabilityConfigurationsCommand = exports.se_ListConnectionsCommand = exports.se_ListAutoScalingConfigurationsCommand = exports.se_DisassociateCustomDomainCommand = exports.se_DescribeVpcIngressConnectionCommand = exports.se_DescribeVpcConnectorCommand = exports.se_DescribeServiceCommand = exports.se_DescribeObservabilityConfigurationCommand = exports.se_DescribeCustomDomainsCommand = exports.se_DescribeAutoScalingConfigurationCommand = exports.se_DeleteVpcIngressConnectionCommand = exports.se_DeleteVpcConnectorCommand = exports.se_DeleteServiceCommand = exports.se_DeleteObservabilityConfigurationCommand = exports.se_DeleteConnectionCommand = exports.se_DeleteAutoScalingConfigurationCommand = exports.se_CreateVpcIngressConnectionCommand = exports.se_CreateVpcConnectorCommand = exports.se_CreateServiceCommand = exports.se_CreateObservabilityConfigurationCommand = exports.se_CreateConnectionCommand = exports.se_CreateAutoScalingConfigurationCommand = exports.se_AssociateCustomDomainCommand = void 0;
|
|
4
|
+
exports.de_UpdateVpcIngressConnectionCommand = exports.de_UpdateServiceCommand = exports.de_UpdateDefaultAutoScalingConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDeploymentCommand = exports.de_ResumeServiceCommand = exports.de_PauseServiceCommand = exports.de_ListVpcIngressConnectionsCommand = exports.de_ListVpcConnectorsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesForAutoScalingConfigurationCommand = exports.de_ListServicesCommand = exports.de_ListOperationsCommand = exports.de_ListObservabilityConfigurationsCommand = exports.de_ListConnectionsCommand = exports.de_ListAutoScalingConfigurationsCommand = exports.de_DisassociateCustomDomainCommand = exports.de_DescribeVpcIngressConnectionCommand = exports.de_DescribeVpcConnectorCommand = exports.de_DescribeServiceCommand = exports.de_DescribeObservabilityConfigurationCommand = exports.de_DescribeCustomDomainsCommand = exports.de_DescribeAutoScalingConfigurationCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const AppRunnerServiceException_1 = require("../models/AppRunnerServiceException");
|
|
@@ -181,6 +181,13 @@ const se_ListServicesCommand = async (input, context) => {
|
|
|
181
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
182
|
};
|
|
183
183
|
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
184
|
+
const se_ListServicesForAutoScalingConfigurationCommand = async (input, context) => {
|
|
185
|
+
const headers = sharedHeaders("ListServicesForAutoScalingConfiguration");
|
|
186
|
+
let body;
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
+
};
|
|
190
|
+
exports.se_ListServicesForAutoScalingConfigurationCommand = se_ListServicesForAutoScalingConfigurationCommand;
|
|
184
191
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
185
192
|
const headers = sharedHeaders("ListTagsForResource");
|
|
186
193
|
let body;
|
|
@@ -237,6 +244,13 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
237
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
245
|
};
|
|
239
246
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
247
|
+
const se_UpdateDefaultAutoScalingConfigurationCommand = async (input, context) => {
|
|
248
|
+
const headers = sharedHeaders("UpdateDefaultAutoScalingConfiguration");
|
|
249
|
+
let body;
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
+
};
|
|
253
|
+
exports.se_UpdateDefaultAutoScalingConfigurationCommand = se_UpdateDefaultAutoScalingConfigurationCommand;
|
|
240
254
|
const se_UpdateServiceCommand = async (input, context) => {
|
|
241
255
|
const headers = sharedHeaders("UpdateService");
|
|
242
256
|
let body;
|
|
@@ -1049,7 +1063,7 @@ const de_ListAutoScalingConfigurationsCommand = async (output, context) => {
|
|
|
1049
1063
|
}
|
|
1050
1064
|
const data = await parseBody(output.body, context);
|
|
1051
1065
|
let contents = {};
|
|
1052
|
-
contents = (
|
|
1066
|
+
contents = de_ListAutoScalingConfigurationsResponse(data, context);
|
|
1053
1067
|
const response = {
|
|
1054
1068
|
$metadata: deserializeMetadata(output),
|
|
1055
1069
|
...contents,
|
|
@@ -1226,6 +1240,45 @@ const de_ListServicesCommandError = async (output, context) => {
|
|
|
1226
1240
|
});
|
|
1227
1241
|
}
|
|
1228
1242
|
};
|
|
1243
|
+
const de_ListServicesForAutoScalingConfigurationCommand = async (output, context) => {
|
|
1244
|
+
if (output.statusCode >= 300) {
|
|
1245
|
+
return de_ListServicesForAutoScalingConfigurationCommandError(output, context);
|
|
1246
|
+
}
|
|
1247
|
+
const data = await parseBody(output.body, context);
|
|
1248
|
+
let contents = {};
|
|
1249
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1250
|
+
const response = {
|
|
1251
|
+
$metadata: deserializeMetadata(output),
|
|
1252
|
+
...contents,
|
|
1253
|
+
};
|
|
1254
|
+
return response;
|
|
1255
|
+
};
|
|
1256
|
+
exports.de_ListServicesForAutoScalingConfigurationCommand = de_ListServicesForAutoScalingConfigurationCommand;
|
|
1257
|
+
const de_ListServicesForAutoScalingConfigurationCommandError = async (output, context) => {
|
|
1258
|
+
const parsedOutput = {
|
|
1259
|
+
...output,
|
|
1260
|
+
body: await parseErrorBody(output.body, context),
|
|
1261
|
+
};
|
|
1262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
+
switch (errorCode) {
|
|
1264
|
+
case "InternalServiceErrorException":
|
|
1265
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1266
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1267
|
+
case "InvalidRequestException":
|
|
1268
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1269
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1270
|
+
case "ResourceNotFoundException":
|
|
1271
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1272
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1273
|
+
default:
|
|
1274
|
+
const parsedBody = parsedOutput.body;
|
|
1275
|
+
return throwDefaultError({
|
|
1276
|
+
output,
|
|
1277
|
+
parsedBody,
|
|
1278
|
+
errorCode,
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1229
1282
|
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1230
1283
|
if (output.statusCode >= 300) {
|
|
1231
1284
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -1547,6 +1600,45 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1547
1600
|
});
|
|
1548
1601
|
}
|
|
1549
1602
|
};
|
|
1603
|
+
const de_UpdateDefaultAutoScalingConfigurationCommand = async (output, context) => {
|
|
1604
|
+
if (output.statusCode >= 300) {
|
|
1605
|
+
return de_UpdateDefaultAutoScalingConfigurationCommandError(output, context);
|
|
1606
|
+
}
|
|
1607
|
+
const data = await parseBody(output.body, context);
|
|
1608
|
+
let contents = {};
|
|
1609
|
+
contents = de_UpdateDefaultAutoScalingConfigurationResponse(data, context);
|
|
1610
|
+
const response = {
|
|
1611
|
+
$metadata: deserializeMetadata(output),
|
|
1612
|
+
...contents,
|
|
1613
|
+
};
|
|
1614
|
+
return response;
|
|
1615
|
+
};
|
|
1616
|
+
exports.de_UpdateDefaultAutoScalingConfigurationCommand = de_UpdateDefaultAutoScalingConfigurationCommand;
|
|
1617
|
+
const de_UpdateDefaultAutoScalingConfigurationCommandError = async (output, context) => {
|
|
1618
|
+
const parsedOutput = {
|
|
1619
|
+
...output,
|
|
1620
|
+
body: await parseErrorBody(output.body, context),
|
|
1621
|
+
};
|
|
1622
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
+
switch (errorCode) {
|
|
1624
|
+
case "InternalServiceErrorException":
|
|
1625
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1626
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1627
|
+
case "InvalidRequestException":
|
|
1628
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1629
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1630
|
+
case "ResourceNotFoundException":
|
|
1631
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1632
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1633
|
+
default:
|
|
1634
|
+
const parsedBody = parsedOutput.body;
|
|
1635
|
+
return throwDefaultError({
|
|
1636
|
+
output,
|
|
1637
|
+
parsedBody,
|
|
1638
|
+
errorCode,
|
|
1639
|
+
});
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1550
1642
|
const de_UpdateServiceCommand = async (output, context) => {
|
|
1551
1643
|
if (output.statusCode >= 300) {
|
|
1552
1644
|
return de_UpdateServiceCommandError(output, context);
|
|
@@ -1683,6 +1775,8 @@ const de_AutoScalingConfiguration = (output, context) => {
|
|
|
1683
1775
|
AutoScalingConfigurationRevision: smithy_client_1.expectInt32,
|
|
1684
1776
|
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1685
1777
|
DeletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1778
|
+
HasAssociatedService: smithy_client_1.expectBoolean,
|
|
1779
|
+
IsDefault: smithy_client_1.expectBoolean,
|
|
1686
1780
|
Latest: smithy_client_1.expectBoolean,
|
|
1687
1781
|
MaxConcurrency: smithy_client_1.expectInt32,
|
|
1688
1782
|
MaxSize: smithy_client_1.expectInt32,
|
|
@@ -1690,6 +1784,25 @@ const de_AutoScalingConfiguration = (output, context) => {
|
|
|
1690
1784
|
Status: smithy_client_1.expectString,
|
|
1691
1785
|
});
|
|
1692
1786
|
};
|
|
1787
|
+
const de_AutoScalingConfigurationSummary = (output, context) => {
|
|
1788
|
+
return (0, smithy_client_1.take)(output, {
|
|
1789
|
+
AutoScalingConfigurationArn: smithy_client_1.expectString,
|
|
1790
|
+
AutoScalingConfigurationName: smithy_client_1.expectString,
|
|
1791
|
+
AutoScalingConfigurationRevision: smithy_client_1.expectInt32,
|
|
1792
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1793
|
+
HasAssociatedService: smithy_client_1.expectBoolean,
|
|
1794
|
+
IsDefault: smithy_client_1.expectBoolean,
|
|
1795
|
+
Status: smithy_client_1.expectString,
|
|
1796
|
+
});
|
|
1797
|
+
};
|
|
1798
|
+
const de_AutoScalingConfigurationSummaryList = (output, context) => {
|
|
1799
|
+
const retVal = (output || [])
|
|
1800
|
+
.filter((e) => e != null)
|
|
1801
|
+
.map((entry) => {
|
|
1802
|
+
return de_AutoScalingConfigurationSummary(entry, context);
|
|
1803
|
+
});
|
|
1804
|
+
return retVal;
|
|
1805
|
+
};
|
|
1693
1806
|
const de_Connection = (output, context) => {
|
|
1694
1807
|
return (0, smithy_client_1.take)(output, {
|
|
1695
1808
|
ConnectionArn: smithy_client_1.expectString,
|
|
@@ -1803,6 +1916,12 @@ const de_DescribeVpcIngressConnectionResponse = (output, context) => {
|
|
|
1803
1916
|
VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
|
|
1804
1917
|
});
|
|
1805
1918
|
};
|
|
1919
|
+
const de_ListAutoScalingConfigurationsResponse = (output, context) => {
|
|
1920
|
+
return (0, smithy_client_1.take)(output, {
|
|
1921
|
+
AutoScalingConfigurationSummaryList: (_) => de_AutoScalingConfigurationSummaryList(_, context),
|
|
1922
|
+
NextToken: smithy_client_1.expectString,
|
|
1923
|
+
});
|
|
1924
|
+
};
|
|
1806
1925
|
const de_ListConnectionsResponse = (output, context) => {
|
|
1807
1926
|
return (0, smithy_client_1.take)(output, {
|
|
1808
1927
|
ConnectionSummaryList: (_) => de_ConnectionSummaryList(_, context),
|
|
@@ -1872,7 +1991,7 @@ const de_ResumeServiceResponse = (output, context) => {
|
|
|
1872
1991
|
};
|
|
1873
1992
|
const de_Service = (output, context) => {
|
|
1874
1993
|
return (0, smithy_client_1.take)(output, {
|
|
1875
|
-
AutoScalingConfigurationSummary:
|
|
1994
|
+
AutoScalingConfigurationSummary: (_) => de_AutoScalingConfigurationSummary(_, context),
|
|
1876
1995
|
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1877
1996
|
DeletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1878
1997
|
EncryptionConfiguration: smithy_client_1._json,
|
|
@@ -1908,6 +2027,11 @@ const de_ServiceSummaryList = (output, context) => {
|
|
|
1908
2027
|
});
|
|
1909
2028
|
return retVal;
|
|
1910
2029
|
};
|
|
2030
|
+
const de_UpdateDefaultAutoScalingConfigurationResponse = (output, context) => {
|
|
2031
|
+
return (0, smithy_client_1.take)(output, {
|
|
2032
|
+
AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
|
|
2033
|
+
});
|
|
2034
|
+
};
|
|
1911
2035
|
const de_UpdateServiceResponse = (output, context) => {
|
|
1912
2036
|
return (0, smithy_client_1.take)(output, {
|
|
1913
2037
|
OperationId: smithy_client_1.expectString,
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const asPartial = (t) => t;
|
|
7
8
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
8
9
|
const extensionConfiguration = {
|
|
10
|
+
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
9
11
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
10
12
|
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
11
13
|
};
|
|
12
14
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
13
15
|
return {
|
|
14
16
|
...runtimeConfig,
|
|
17
|
+
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
15
18
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
16
19
|
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
17
20
|
};
|
package/dist-es/AppRunner.js
CHANGED
|
@@ -25,6 +25,7 @@ import { ListConnectionsCommand, } from "./commands/ListConnectionsCommand";
|
|
|
25
25
|
import { ListObservabilityConfigurationsCommand, } from "./commands/ListObservabilityConfigurationsCommand";
|
|
26
26
|
import { ListOperationsCommand, } from "./commands/ListOperationsCommand";
|
|
27
27
|
import { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
28
|
+
import { ListServicesForAutoScalingConfigurationCommand, } from "./commands/ListServicesForAutoScalingConfigurationCommand";
|
|
28
29
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
29
30
|
import { ListVpcConnectorsCommand, } from "./commands/ListVpcConnectorsCommand";
|
|
30
31
|
import { ListVpcIngressConnectionsCommand, } from "./commands/ListVpcIngressConnectionsCommand";
|
|
@@ -33,6 +34,7 @@ import { ResumeServiceCommand, } from "./commands/ResumeServiceCommand";
|
|
|
33
34
|
import { StartDeploymentCommand, } from "./commands/StartDeploymentCommand";
|
|
34
35
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
35
36
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
37
|
+
import { UpdateDefaultAutoScalingConfigurationCommand, } from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
|
|
36
38
|
import { UpdateServiceCommand, } from "./commands/UpdateServiceCommand";
|
|
37
39
|
import { UpdateVpcIngressConnectionCommand, } from "./commands/UpdateVpcIngressConnectionCommand";
|
|
38
40
|
const commands = {
|
|
@@ -61,6 +63,7 @@ const commands = {
|
|
|
61
63
|
ListObservabilityConfigurationsCommand,
|
|
62
64
|
ListOperationsCommand,
|
|
63
65
|
ListServicesCommand,
|
|
66
|
+
ListServicesForAutoScalingConfigurationCommand,
|
|
64
67
|
ListTagsForResourceCommand,
|
|
65
68
|
ListVpcConnectorsCommand,
|
|
66
69
|
ListVpcIngressConnectionsCommand,
|
|
@@ -69,6 +72,7 @@ const commands = {
|
|
|
69
72
|
StartDeploymentCommand,
|
|
70
73
|
TagResourceCommand,
|
|
71
74
|
UntagResourceCommand,
|
|
75
|
+
UpdateDefaultAutoScalingConfigurationCommand,
|
|
72
76
|
UpdateServiceCommand,
|
|
73
77
|
UpdateVpcIngressConnectionCommand,
|
|
74
78
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_ListServicesForAutoScalingConfigurationCommand, se_ListServicesForAutoScalingConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListServicesForAutoScalingConfigurationCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListServicesForAutoScalingConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AppRunnerClient";
|
|
25
|
+
const commandName = "ListServicesForAutoScalingConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListServicesForAutoScalingConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListServicesForAutoScalingConfigurationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_UpdateDefaultAutoScalingConfigurationCommand, se_UpdateDefaultAutoScalingConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateDefaultAutoScalingConfigurationCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDefaultAutoScalingConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AppRunnerClient";
|
|
25
|
+
const commandName = "UpdateDefaultAutoScalingConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_UpdateDefaultAutoScalingConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_UpdateDefaultAutoScalingConfigurationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -23,6 +23,7 @@ export * from "./ListConnectionsCommand";
|
|
|
23
23
|
export * from "./ListObservabilityConfigurationsCommand";
|
|
24
24
|
export * from "./ListOperationsCommand";
|
|
25
25
|
export * from "./ListServicesCommand";
|
|
26
|
+
export * from "./ListServicesForAutoScalingConfigurationCommand";
|
|
26
27
|
export * from "./ListTagsForResourceCommand";
|
|
27
28
|
export * from "./ListVpcConnectorsCommand";
|
|
28
29
|
export * from "./ListVpcIngressConnectionsCommand";
|
|
@@ -31,5 +32,6 @@ export * from "./ResumeServiceCommand";
|
|
|
31
32
|
export * from "./StartDeploymentCommand";
|
|
32
33
|
export * from "./TagResourceCommand";
|
|
33
34
|
export * from "./UntagResourceCommand";
|
|
35
|
+
export * from "./UpdateDefaultAutoScalingConfigurationCommand";
|
|
34
36
|
export * from "./UpdateServiceCommand";
|
|
35
37
|
export * from "./UpdateVpcIngressConnectionCommand";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AppRunnerClient } from "../AppRunnerClient";
|
|
2
|
+
import { ListServicesForAutoScalingConfigurationCommand, } from "../commands/ListServicesForAutoScalingConfigurationCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListServicesForAutoScalingConfigurationCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListServicesForAutoScalingConfiguration(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof AppRunnerClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected AppRunner | AppRunnerClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./ListAutoScalingConfigurationsPaginator";
|
|
|
4
4
|
export * from "./ListConnectionsPaginator";
|
|
5
5
|
export * from "./ListObservabilityConfigurationsPaginator";
|
|
6
6
|
export * from "./ListOperationsPaginator";
|
|
7
|
+
export * from "./ListServicesForAutoScalingConfigurationPaginator";
|
|
7
8
|
export * from "./ListServicesPaginator";
|
|
8
9
|
export * from "./ListVpcConnectorsPaginator";
|
|
9
10
|
export * from "./ListVpcIngressConnectionsPaginator";
|