Skip to content

Commit

Permalink
feat(client-apprunner): This release adds improvements for managing A…
Browse files Browse the repository at this point in the history
…pp Runner auto scaling configuration resources. New APIs: UpdateDefaultAutoScalingConfiguration and ListServicesForAutoScalingConfiguration. Updated API: DeleteAutoScalingConfiguration.
  • Loading branch information
awstools committed Sep 20, 2023
1 parent 5c17a3f commit 9ebf966
Show file tree
Hide file tree
Showing 21 changed files with 1,094 additions and 29 deletions.
16 changes: 16 additions & 0 deletions clients/client-apprunner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,14 @@ ListServices

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

</details>
<details>
<summary>
ListServicesForAutoScalingConfiguration
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -483,6 +491,14 @@ UntagResource

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

</details>
<details>
<summary>
UpdateDefaultAutoScalingConfiguration
</summary>

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

</details>
<details>
<summary>
Expand Down
46 changes: 46 additions & 0 deletions clients/client-apprunner/src/AppRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ import {
ListServicesCommandInput,
ListServicesCommandOutput,
} from "./commands/ListServicesCommand";
import {
ListServicesForAutoScalingConfigurationCommand,
ListServicesForAutoScalingConfigurationCommandInput,
ListServicesForAutoScalingConfigurationCommandOutput,
} from "./commands/ListServicesForAutoScalingConfigurationCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
Expand Down Expand Up @@ -164,6 +169,11 @@ import {
UntagResourceCommandInput,
UntagResourceCommandOutput,
} from "./commands/UntagResourceCommand";
import {
UpdateDefaultAutoScalingConfigurationCommand,
UpdateDefaultAutoScalingConfigurationCommandInput,
UpdateDefaultAutoScalingConfigurationCommandOutput,
} from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
import {
UpdateServiceCommand,
UpdateServiceCommandInput,
Expand Down Expand Up @@ -201,6 +211,7 @@ const commands = {
ListObservabilityConfigurationsCommand,
ListOperationsCommand,
ListServicesCommand,
ListServicesForAutoScalingConfigurationCommand,
ListTagsForResourceCommand,
ListVpcConnectorsCommand,
ListVpcIngressConnectionsCommand,
Expand All @@ -209,6 +220,7 @@ const commands = {
StartDeploymentCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateDefaultAutoScalingConfigurationCommand,
UpdateServiceCommand,
UpdateVpcIngressConnectionCommand,
};
Expand Down Expand Up @@ -612,6 +624,23 @@ export interface AppRunner {
cb: (err: any, data?: ListServicesCommandOutput) => void
): void;

/**
* @see {@link ListServicesForAutoScalingConfigurationCommand}
*/
listServicesForAutoScalingConfiguration(
args: ListServicesForAutoScalingConfigurationCommandInput,
options?: __HttpHandlerOptions
): Promise<ListServicesForAutoScalingConfigurationCommandOutput>;
listServicesForAutoScalingConfiguration(
args: ListServicesForAutoScalingConfigurationCommandInput,
cb: (err: any, data?: ListServicesForAutoScalingConfigurationCommandOutput) => void
): void;
listServicesForAutoScalingConfiguration(
args: ListServicesForAutoScalingConfigurationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListServicesForAutoScalingConfigurationCommandOutput) => void
): void;

/**
* @see {@link ListTagsForResourceCommand}
*/
Expand Down Expand Up @@ -721,6 +750,23 @@ export interface AppRunner {
cb: (err: any, data?: UntagResourceCommandOutput) => void
): void;

/**
* @see {@link UpdateDefaultAutoScalingConfigurationCommand}
*/
updateDefaultAutoScalingConfiguration(
args: UpdateDefaultAutoScalingConfigurationCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateDefaultAutoScalingConfigurationCommandOutput>;
updateDefaultAutoScalingConfiguration(
args: UpdateDefaultAutoScalingConfigurationCommandInput,
cb: (err: any, data?: UpdateDefaultAutoScalingConfigurationCommandOutput) => void
): void;
updateDefaultAutoScalingConfiguration(
args: UpdateDefaultAutoScalingConfigurationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateDefaultAutoScalingConfigurationCommandOutput) => void
): void;

/**
* @see {@link UpdateServiceCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-apprunner/src/AppRunnerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ import {
} from "./commands/ListObservabilityConfigurationsCommand";
import { ListOperationsCommandInput, ListOperationsCommandOutput } from "./commands/ListOperationsCommand";
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
import {
ListServicesForAutoScalingConfigurationCommandInput,
ListServicesForAutoScalingConfigurationCommandOutput,
} from "./commands/ListServicesForAutoScalingConfigurationCommand";
import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
Expand All @@ -134,6 +138,10 @@ import { ResumeServiceCommandInput, ResumeServiceCommandOutput } from "./command
import { StartDeploymentCommandInput, StartDeploymentCommandOutput } from "./commands/StartDeploymentCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import {
UpdateDefaultAutoScalingConfigurationCommandInput,
UpdateDefaultAutoScalingConfigurationCommandOutput,
} from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
import { UpdateServiceCommandInput, UpdateServiceCommandOutput } from "./commands/UpdateServiceCommand";
import {
UpdateVpcIngressConnectionCommandInput,
Expand Down Expand Up @@ -179,6 +187,7 @@ export type ServiceInputTypes =
| ListObservabilityConfigurationsCommandInput
| ListOperationsCommandInput
| ListServicesCommandInput
| ListServicesForAutoScalingConfigurationCommandInput
| ListTagsForResourceCommandInput
| ListVpcConnectorsCommandInput
| ListVpcIngressConnectionsCommandInput
Expand All @@ -187,6 +196,7 @@ export type ServiceInputTypes =
| StartDeploymentCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateDefaultAutoScalingConfigurationCommandInput
| UpdateServiceCommandInput
| UpdateVpcIngressConnectionCommandInput;

Expand Down Expand Up @@ -219,6 +229,7 @@ export type ServiceOutputTypes =
| ListObservabilityConfigurationsCommandOutput
| ListOperationsCommandOutput
| ListServicesCommandOutput
| ListServicesForAutoScalingConfigurationCommandOutput
| ListTagsForResourceCommandOutput
| ListVpcConnectorsCommandOutput
| ListVpcIngressConnectionsCommandOutput
Expand All @@ -227,6 +238,7 @@ export type ServiceOutputTypes =
| StartDeploymentCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateDefaultAutoScalingConfigurationCommandOutput
| UpdateServiceCommandOutput
| UpdateVpcIngressConnectionCommandOutput;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export interface CreateAutoScalingConfigurationCommandOutput
* returns incremental <code>AutoScalingConfigurationRevision</code> values. When you create a service and configure an auto scaling configuration resource,
* the service uses the latest active revision of the auto scaling configuration by default. You can optionally configure the service to use a specific
* revision.</p>
* <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
* a higher minimal cost.</p>
* <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 a higher minimal cost.</p>
* <p>Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower responsiveness during peak demand.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down Expand Up @@ -82,6 +82,8 @@ export interface CreateAutoScalingConfigurationCommandOutput
* // MaxSize: Number("int"),
* // CreatedAt: new Date("TIMESTAMP"),
* // DeletedAt: new Date("TIMESTAMP"),
* // HasAssociatedService: true || false,
* // IsDefault: true || false,
* // },
* // };
*
Expand Down
4 changes: 4 additions & 0 deletions clients/client-apprunner/src/commands/CreateServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* // AutoScalingConfigurationArn: "STRING_VALUE",
* // AutoScalingConfigurationName: "STRING_VALUE",
* // AutoScalingConfigurationRevision: Number("int"),
* // Status: "ACTIVE" || "INACTIVE",
* // CreatedAt: new Date("TIMESTAMP"),
* // HasAssociatedService: true || false,
* // IsDefault: true || false,
* // },
* // NetworkConfiguration: { // NetworkConfiguration
* // EgressConfiguration: { // EgressConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ export interface DeleteAutoScalingConfigurationCommandOutput

/**
* @public
* <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
* configuration that's used by one or more App Runner services.</p>
* <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
* 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
* more App Runner services.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand All @@ -51,6 +52,7 @@ export interface DeleteAutoScalingConfigurationCommandOutput
* const client = new AppRunnerClient(config);
* const input = { // DeleteAutoScalingConfigurationRequest
* AutoScalingConfigurationArn: "STRING_VALUE", // required
* DeleteAllRevisions: true || false,
* };
* const command = new DeleteAutoScalingConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -66,6 +68,8 @@ export interface DeleteAutoScalingConfigurationCommandOutput
* // MaxSize: Number("int"),
* // CreatedAt: new Date("TIMESTAMP"),
* // DeletedAt: new Date("TIMESTAMP"),
* // HasAssociatedService: true || false,
* // IsDefault: true || false,
* // },
* // };
*
Expand Down
4 changes: 4 additions & 0 deletions clients/client-apprunner/src/commands/DeleteServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
* // AutoScalingConfigurationArn: "STRING_VALUE",
* // AutoScalingConfigurationName: "STRING_VALUE",
* // AutoScalingConfigurationRevision: Number("int"),
* // Status: "ACTIVE" || "INACTIVE",
* // CreatedAt: new Date("TIMESTAMP"),
* // HasAssociatedService: true || false,
* // IsDefault: true || false,
* // },
* // NetworkConfiguration: { // NetworkConfiguration
* // EgressConfiguration: { // EgressConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export interface DescribeAutoScalingConfigurationCommandOutput
* // MaxSize: Number("int"),
* // CreatedAt: new Date("TIMESTAMP"),
* // DeletedAt: new Date("TIMESTAMP"),
* // HasAssociatedService: true || false,
* // IsDefault: true || false,
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ export interface DescribeServiceCommandOutput extends DescribeServiceResponse, _
* // AutoScalingConfigurationArn: "STRING_VALUE",
* // AutoScalingConfigurationName: "STRING_VALUE",
* // AutoScalingConfigurationRevision: Number("int"),
* // Status: "ACTIVE" || "INACTIVE",
* // CreatedAt: new Date("TIMESTAMP"),
* // HasAssociatedService: true || false,
* // IsDefault: true || false,
* // },
* // NetworkConfiguration: { // NetworkConfiguration
* // EgressConfiguration: { // EgressConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export interface ListAutoScalingConfigurationsCommandOutput
* // AutoScalingConfigurationArn: "STRING_VALUE",
* // AutoScalingConfigurationName: "STRING_VALUE",
* // AutoScalingConfigurationRevision: Number("int"),
* // Status: "ACTIVE" || "INACTIVE",
* // CreatedAt: new Date("TIMESTAMP"),
* // HasAssociatedService: true || false,
* // IsDefault: true || false,
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Loading

0 comments on commit 9ebf966

Please sign in to comment.