Skip to content

Commit 9ebf966

Browse files
author
awstools
committed
feat(client-apprunner): This release adds improvements for managing App Runner auto scaling configuration resources. New APIs: UpdateDefaultAutoScalingConfiguration and ListServicesForAutoScalingConfiguration. Updated API: DeleteAutoScalingConfiguration.
1 parent 5c17a3f commit 9ebf966

21 files changed

+1094
-29
lines changed

clients/client-apprunner/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,14 @@ ListServices
419419

420420
[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)
421421

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+
422430
</details>
423431
<details>
424432
<summary>
@@ -483,6 +491,14 @@ UntagResource
483491

484492
[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)
485493

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+
486502
</details>
487503
<details>
488504
<summary>

clients/client-apprunner/src/AppRunner.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ import {
128128
ListServicesCommandInput,
129129
ListServicesCommandOutput,
130130
} from "./commands/ListServicesCommand";
131+
import {
132+
ListServicesForAutoScalingConfigurationCommand,
133+
ListServicesForAutoScalingConfigurationCommandInput,
134+
ListServicesForAutoScalingConfigurationCommandOutput,
135+
} from "./commands/ListServicesForAutoScalingConfigurationCommand";
131136
import {
132137
ListTagsForResourceCommand,
133138
ListTagsForResourceCommandInput,
@@ -164,6 +169,11 @@ import {
164169
UntagResourceCommandInput,
165170
UntagResourceCommandOutput,
166171
} from "./commands/UntagResourceCommand";
172+
import {
173+
UpdateDefaultAutoScalingConfigurationCommand,
174+
UpdateDefaultAutoScalingConfigurationCommandInput,
175+
UpdateDefaultAutoScalingConfigurationCommandOutput,
176+
} from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
167177
import {
168178
UpdateServiceCommand,
169179
UpdateServiceCommandInput,
@@ -201,6 +211,7 @@ const commands = {
201211
ListObservabilityConfigurationsCommand,
202212
ListOperationsCommand,
203213
ListServicesCommand,
214+
ListServicesForAutoScalingConfigurationCommand,
204215
ListTagsForResourceCommand,
205216
ListVpcConnectorsCommand,
206217
ListVpcIngressConnectionsCommand,
@@ -209,6 +220,7 @@ const commands = {
209220
StartDeploymentCommand,
210221
TagResourceCommand,
211222
UntagResourceCommand,
223+
UpdateDefaultAutoScalingConfigurationCommand,
212224
UpdateServiceCommand,
213225
UpdateVpcIngressConnectionCommand,
214226
};
@@ -612,6 +624,23 @@ export interface AppRunner {
612624
cb: (err: any, data?: ListServicesCommandOutput) => void
613625
): void;
614626

627+
/**
628+
* @see {@link ListServicesForAutoScalingConfigurationCommand}
629+
*/
630+
listServicesForAutoScalingConfiguration(
631+
args: ListServicesForAutoScalingConfigurationCommandInput,
632+
options?: __HttpHandlerOptions
633+
): Promise<ListServicesForAutoScalingConfigurationCommandOutput>;
634+
listServicesForAutoScalingConfiguration(
635+
args: ListServicesForAutoScalingConfigurationCommandInput,
636+
cb: (err: any, data?: ListServicesForAutoScalingConfigurationCommandOutput) => void
637+
): void;
638+
listServicesForAutoScalingConfiguration(
639+
args: ListServicesForAutoScalingConfigurationCommandInput,
640+
options: __HttpHandlerOptions,
641+
cb: (err: any, data?: ListServicesForAutoScalingConfigurationCommandOutput) => void
642+
): void;
643+
615644
/**
616645
* @see {@link ListTagsForResourceCommand}
617646
*/
@@ -721,6 +750,23 @@ export interface AppRunner {
721750
cb: (err: any, data?: UntagResourceCommandOutput) => void
722751
): void;
723752

753+
/**
754+
* @see {@link UpdateDefaultAutoScalingConfigurationCommand}
755+
*/
756+
updateDefaultAutoScalingConfiguration(
757+
args: UpdateDefaultAutoScalingConfigurationCommandInput,
758+
options?: __HttpHandlerOptions
759+
): Promise<UpdateDefaultAutoScalingConfigurationCommandOutput>;
760+
updateDefaultAutoScalingConfiguration(
761+
args: UpdateDefaultAutoScalingConfigurationCommandInput,
762+
cb: (err: any, data?: UpdateDefaultAutoScalingConfigurationCommandOutput) => void
763+
): void;
764+
updateDefaultAutoScalingConfiguration(
765+
args: UpdateDefaultAutoScalingConfigurationCommandInput,
766+
options: __HttpHandlerOptions,
767+
cb: (err: any, data?: UpdateDefaultAutoScalingConfigurationCommandOutput) => void
768+
): void;
769+
724770
/**
725771
* @see {@link UpdateServiceCommand}
726772
*/

clients/client-apprunner/src/AppRunnerClient.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ import {
120120
} from "./commands/ListObservabilityConfigurationsCommand";
121121
import { ListOperationsCommandInput, ListOperationsCommandOutput } from "./commands/ListOperationsCommand";
122122
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
123+
import {
124+
ListServicesForAutoScalingConfigurationCommandInput,
125+
ListServicesForAutoScalingConfigurationCommandOutput,
126+
} from "./commands/ListServicesForAutoScalingConfigurationCommand";
123127
import {
124128
ListTagsForResourceCommandInput,
125129
ListTagsForResourceCommandOutput,
@@ -134,6 +138,10 @@ import { ResumeServiceCommandInput, ResumeServiceCommandOutput } from "./command
134138
import { StartDeploymentCommandInput, StartDeploymentCommandOutput } from "./commands/StartDeploymentCommand";
135139
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
136140
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
141+
import {
142+
UpdateDefaultAutoScalingConfigurationCommandInput,
143+
UpdateDefaultAutoScalingConfigurationCommandOutput,
144+
} from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
137145
import { UpdateServiceCommandInput, UpdateServiceCommandOutput } from "./commands/UpdateServiceCommand";
138146
import {
139147
UpdateVpcIngressConnectionCommandInput,
@@ -179,6 +187,7 @@ export type ServiceInputTypes =
179187
| ListObservabilityConfigurationsCommandInput
180188
| ListOperationsCommandInput
181189
| ListServicesCommandInput
190+
| ListServicesForAutoScalingConfigurationCommandInput
182191
| ListTagsForResourceCommandInput
183192
| ListVpcConnectorsCommandInput
184193
| ListVpcIngressConnectionsCommandInput
@@ -187,6 +196,7 @@ export type ServiceInputTypes =
187196
| StartDeploymentCommandInput
188197
| TagResourceCommandInput
189198
| UntagResourceCommandInput
199+
| UpdateDefaultAutoScalingConfigurationCommandInput
190200
| UpdateServiceCommandInput
191201
| UpdateVpcIngressConnectionCommandInput;
192202

@@ -219,6 +229,7 @@ export type ServiceOutputTypes =
219229
| ListObservabilityConfigurationsCommandOutput
220230
| ListOperationsCommandOutput
221231
| ListServicesCommandOutput
232+
| ListServicesForAutoScalingConfigurationCommandOutput
222233
| ListTagsForResourceCommandOutput
223234
| ListVpcConnectorsCommandOutput
224235
| ListVpcIngressConnectionsCommandOutput
@@ -227,6 +238,7 @@ export type ServiceOutputTypes =
227238
| StartDeploymentCommandOutput
228239
| TagResourceCommandOutput
229240
| UntagResourceCommandOutput
241+
| UpdateDefaultAutoScalingConfigurationCommandOutput
230242
| UpdateServiceCommandOutput
231243
| UpdateVpcIngressConnectionCommandOutput;
232244

clients/client-apprunner/src/commands/CreateAutoScalingConfigurationCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export interface CreateAutoScalingConfigurationCommandOutput
4747
* returns incremental <code>AutoScalingConfigurationRevision</code> values. When you create a service and configure an auto scaling configuration resource,
4848
* the service uses the latest active revision of the auto scaling configuration by default. You can optionally configure the service to use a specific
4949
* revision.</p>
50-
* <p>Configure a higher <code>MinSize</code> to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The tradeoff is
51-
* a higher minimal cost.</p>
50+
* <p>Configure a higher <code>MinSize</code> to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The
51+
* tradeoff is a higher minimal cost.</p>
5252
* <p>Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower responsiveness during peak demand.</p>
5353
* @example
5454
* Use a bare-bones client and the command you need to make an API call.
@@ -82,6 +82,8 @@ export interface CreateAutoScalingConfigurationCommandOutput
8282
* // MaxSize: Number("int"),
8383
* // CreatedAt: new Date("TIMESTAMP"),
8484
* // DeletedAt: new Date("TIMESTAMP"),
85+
* // HasAssociatedService: true || false,
86+
* // IsDefault: true || false,
8587
* // },
8688
* // };
8789
*

clients/client-apprunner/src/commands/CreateServiceCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
206206
* // AutoScalingConfigurationArn: "STRING_VALUE",
207207
* // AutoScalingConfigurationName: "STRING_VALUE",
208208
* // AutoScalingConfigurationRevision: Number("int"),
209+
* // Status: "ACTIVE" || "INACTIVE",
210+
* // CreatedAt: new Date("TIMESTAMP"),
211+
* // HasAssociatedService: true || false,
212+
* // IsDefault: true || false,
209213
* // },
210214
* // NetworkConfiguration: { // NetworkConfiguration
211215
* // EgressConfiguration: { // EgressConfiguration

clients/client-apprunner/src/commands/DeleteAutoScalingConfigurationCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ export interface DeleteAutoScalingConfigurationCommandOutput
4141

4242
/**
4343
* @public
44-
* <p>Delete an App Runner automatic scaling configuration resource. You can delete a specific revision or the latest active revision. You can't delete a
45-
* configuration that's used by one or more App Runner services.</p>
44+
* <p>Delete an App Runner automatic scaling configuration resource. You can delete a top level auto scaling configuration, a specific revision of one, or all
45+
* revisions associated with the top level configuration. You can't delete the default auto scaling configuration or a configuration that's used by one or
46+
* more App Runner services.</p>
4647
* @example
4748
* Use a bare-bones client and the command you need to make an API call.
4849
* ```javascript
@@ -51,6 +52,7 @@ export interface DeleteAutoScalingConfigurationCommandOutput
5152
* const client = new AppRunnerClient(config);
5253
* const input = { // DeleteAutoScalingConfigurationRequest
5354
* AutoScalingConfigurationArn: "STRING_VALUE", // required
55+
* DeleteAllRevisions: true || false,
5456
* };
5557
* const command = new DeleteAutoScalingConfigurationCommand(input);
5658
* const response = await client.send(command);
@@ -66,6 +68,8 @@ export interface DeleteAutoScalingConfigurationCommandOutput
6668
* // MaxSize: Number("int"),
6769
* // CreatedAt: new Date("TIMESTAMP"),
6870
* // DeletedAt: new Date("TIMESTAMP"),
71+
* // HasAssociatedService: true || false,
72+
* // IsDefault: true || false,
6973
* // },
7074
* // };
7175
*

clients/client-apprunner/src/commands/DeleteServiceCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
131131
* // AutoScalingConfigurationArn: "STRING_VALUE",
132132
* // AutoScalingConfigurationName: "STRING_VALUE",
133133
* // AutoScalingConfigurationRevision: Number("int"),
134+
* // Status: "ACTIVE" || "INACTIVE",
135+
* // CreatedAt: new Date("TIMESTAMP"),
136+
* // HasAssociatedService: true || false,
137+
* // IsDefault: true || false,
134138
* // },
135139
* // NetworkConfiguration: { // NetworkConfiguration
136140
* // EgressConfiguration: { // EgressConfiguration

clients/client-apprunner/src/commands/DescribeAutoScalingConfigurationCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export interface DescribeAutoScalingConfigurationCommandOutput
6565
* // MaxSize: Number("int"),
6666
* // CreatedAt: new Date("TIMESTAMP"),
6767
* // DeletedAt: new Date("TIMESTAMP"),
68+
* // HasAssociatedService: true || false,
69+
* // IsDefault: true || false,
6870
* // },
6971
* // };
7072
*

clients/client-apprunner/src/commands/DescribeServiceCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export interface DescribeServiceCommandOutput extends DescribeServiceResponse, _
125125
* // AutoScalingConfigurationArn: "STRING_VALUE",
126126
* // AutoScalingConfigurationName: "STRING_VALUE",
127127
* // AutoScalingConfigurationRevision: Number("int"),
128+
* // Status: "ACTIVE" || "INACTIVE",
129+
* // CreatedAt: new Date("TIMESTAMP"),
130+
* // HasAssociatedService: true || false,
131+
* // IsDefault: true || false,
128132
* // },
129133
* // NetworkConfiguration: { // NetworkConfiguration
130134
* // EgressConfiguration: { // EgressConfiguration

clients/client-apprunner/src/commands/ListAutoScalingConfigurationsCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ export interface ListAutoScalingConfigurationsCommandOutput
6666
* // AutoScalingConfigurationArn: "STRING_VALUE",
6767
* // AutoScalingConfigurationName: "STRING_VALUE",
6868
* // AutoScalingConfigurationRevision: Number("int"),
69+
* // Status: "ACTIVE" || "INACTIVE",
70+
* // CreatedAt: new Date("TIMESTAMP"),
71+
* // HasAssociatedService: true || false,
72+
* // IsDefault: true || false,
6973
* // },
7074
* // ],
7175
* // NextToken: "STRING_VALUE",

0 commit comments

Comments
 (0)