diff --git a/clients/client-apprunner/README.md b/clients/client-apprunner/README.md
index 97abff32bd4a..aea6c2f6350a 100644
--- a/clients/client-apprunner/README.md
+++ b/clients/client-apprunner/README.md
@@ -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)
+
+
+ListServicesForAutoScalingConfiguration
+
+
+[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)
+
@@ -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)
+
+UpdateDefaultAutoScalingConfiguration
+
+
+[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)
+
diff --git a/clients/client-apprunner/src/AppRunner.ts b/clients/client-apprunner/src/AppRunner.ts
index 4585221f5345..3c122704c091 100644
--- a/clients/client-apprunner/src/AppRunner.ts
+++ b/clients/client-apprunner/src/AppRunner.ts
@@ -128,6 +128,11 @@ import {
ListServicesCommandInput,
ListServicesCommandOutput,
} from "./commands/ListServicesCommand";
+import {
+ ListServicesForAutoScalingConfigurationCommand,
+ ListServicesForAutoScalingConfigurationCommandInput,
+ ListServicesForAutoScalingConfigurationCommandOutput,
+} from "./commands/ListServicesForAutoScalingConfigurationCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
@@ -164,6 +169,11 @@ import {
UntagResourceCommandInput,
UntagResourceCommandOutput,
} from "./commands/UntagResourceCommand";
+import {
+ UpdateDefaultAutoScalingConfigurationCommand,
+ UpdateDefaultAutoScalingConfigurationCommandInput,
+ UpdateDefaultAutoScalingConfigurationCommandOutput,
+} from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
import {
UpdateServiceCommand,
UpdateServiceCommandInput,
@@ -201,6 +211,7 @@ const commands = {
ListObservabilityConfigurationsCommand,
ListOperationsCommand,
ListServicesCommand,
+ ListServicesForAutoScalingConfigurationCommand,
ListTagsForResourceCommand,
ListVpcConnectorsCommand,
ListVpcIngressConnectionsCommand,
@@ -209,6 +220,7 @@ const commands = {
StartDeploymentCommand,
TagResourceCommand,
UntagResourceCommand,
+ UpdateDefaultAutoScalingConfigurationCommand,
UpdateServiceCommand,
UpdateVpcIngressConnectionCommand,
};
@@ -612,6 +624,23 @@ export interface AppRunner {
cb: (err: any, data?: ListServicesCommandOutput) => void
): void;
+ /**
+ * @see {@link ListServicesForAutoScalingConfigurationCommand}
+ */
+ listServicesForAutoScalingConfiguration(
+ args: ListServicesForAutoScalingConfigurationCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise
AutoScalingConfigurationRevision
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.
Configure a higher MinSize
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.
Configure a higher MinSize
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.
Configure a lower MaxSize
to control your cost. The tradeoff is lower responsiveness during peak demand.
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.
+ *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.
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -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); @@ -66,6 +68,8 @@ export interface DeleteAutoScalingConfigurationCommandOutput * // MaxSize: Number("int"), * // CreatedAt: new Date("TIMESTAMP"), * // DeletedAt: new Date("TIMESTAMP"), + * // HasAssociatedService: true || false, + * // IsDefault: true || false, * // }, * // }; * diff --git a/clients/client-apprunner/src/commands/DeleteServiceCommand.ts b/clients/client-apprunner/src/commands/DeleteServiceCommand.ts index 17e60aaf6f0b..61b6fd3b87c9 100644 --- a/clients/client-apprunner/src/commands/DeleteServiceCommand.ts +++ b/clients/client-apprunner/src/commands/DeleteServiceCommand.ts @@ -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 diff --git a/clients/client-apprunner/src/commands/DescribeAutoScalingConfigurationCommand.ts b/clients/client-apprunner/src/commands/DescribeAutoScalingConfigurationCommand.ts index 2abd3a84c82c..b7f7b16e2763 100644 --- a/clients/client-apprunner/src/commands/DescribeAutoScalingConfigurationCommand.ts +++ b/clients/client-apprunner/src/commands/DescribeAutoScalingConfigurationCommand.ts @@ -65,6 +65,8 @@ export interface DescribeAutoScalingConfigurationCommandOutput * // MaxSize: Number("int"), * // CreatedAt: new Date("TIMESTAMP"), * // DeletedAt: new Date("TIMESTAMP"), + * // HasAssociatedService: true || false, + * // IsDefault: true || false, * // }, * // }; * diff --git a/clients/client-apprunner/src/commands/DescribeServiceCommand.ts b/clients/client-apprunner/src/commands/DescribeServiceCommand.ts index 786981b4feb3..c340b71fd3a9 100644 --- a/clients/client-apprunner/src/commands/DescribeServiceCommand.ts +++ b/clients/client-apprunner/src/commands/DescribeServiceCommand.ts @@ -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 diff --git a/clients/client-apprunner/src/commands/ListAutoScalingConfigurationsCommand.ts b/clients/client-apprunner/src/commands/ListAutoScalingConfigurationsCommand.ts index 4395e966cbdd..a04b4380e0f9 100644 --- a/clients/client-apprunner/src/commands/ListAutoScalingConfigurationsCommand.ts +++ b/clients/client-apprunner/src/commands/ListAutoScalingConfigurationsCommand.ts @@ -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", diff --git a/clients/client-apprunner/src/commands/ListServicesForAutoScalingConfigurationCommand.ts b/clients/client-apprunner/src/commands/ListServicesForAutoScalingConfigurationCommand.ts new file mode 100644 index 000000000000..721bd49427f0 --- /dev/null +++ b/clients/client-apprunner/src/commands/ListServicesForAutoScalingConfigurationCommand.ts @@ -0,0 +1,177 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { AppRunnerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppRunnerClient"; +import { + ListServicesForAutoScalingConfigurationRequest, + ListServicesForAutoScalingConfigurationResponse, +} from "../models/models_0"; +import { + de_ListServicesForAutoScalingConfigurationCommand, + se_ListServicesForAutoScalingConfigurationCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListServicesForAutoScalingConfigurationCommand}. + */ +export interface ListServicesForAutoScalingConfigurationCommandInput + extends ListServicesForAutoScalingConfigurationRequest {} +/** + * @public + * + * The output of {@link ListServicesForAutoScalingConfigurationCommand}. + */ +export interface ListServicesForAutoScalingConfigurationCommandOutput + extends ListServicesForAutoScalingConfigurationResponse, + __MetadataBearer {} + +/** + * @public + *Returns a list of the associated App Runner services using an auto scaling configuration.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { AppRunnerClient, ListServicesForAutoScalingConfigurationCommand } from "@aws-sdk/client-apprunner"; // ES Modules import + * // const { AppRunnerClient, ListServicesForAutoScalingConfigurationCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import + * const client = new AppRunnerClient(config); + * const input = { // ListServicesForAutoScalingConfigurationRequest + * AutoScalingConfigurationArn: "STRING_VALUE", // required + * MaxResults: Number("int"), + * NextToken: "STRING_VALUE", + * }; + * const command = new ListServicesForAutoScalingConfigurationCommand(input); + * const response = await client.send(command); + * // { // ListServicesForAutoScalingConfigurationResponse + * // ServiceArnList: [ // ServiceArnList // required + * // "STRING_VALUE", + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListServicesForAutoScalingConfigurationCommandInput - {@link ListServicesForAutoScalingConfigurationCommandInput} + * @returns {@link ListServicesForAutoScalingConfigurationCommandOutput} + * @see {@link ListServicesForAutoScalingConfigurationCommandInput} for command's `input` shape. + * @see {@link ListServicesForAutoScalingConfigurationCommandOutput} for command's `response` shape. + * @see {@link AppRunnerClientResolvedConfig | config} for AppRunnerClient's `config` shape. + * + * @throws {@link InternalServiceErrorException} (server fault) + *An unexpected service exception occurred.
+ * + * @throws {@link InvalidRequestException} (client fault) + *One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.
+ * + * @throws {@link AppRunnerServiceException} + *Base exception class for all service exceptions from AppRunner service.
+ * + */ +export class ListServicesForAutoScalingConfigurationCommand extends $Command< + ListServicesForAutoScalingConfigurationCommandInput, + ListServicesForAutoScalingConfigurationCommandOutput, + AppRunnerClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListServicesForAutoScalingConfigurationCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackUpdate an auto scaling configuration to be the default. The existing default auto scaling configuration will be set to non-default + * automatically.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { AppRunnerClient, UpdateDefaultAutoScalingConfigurationCommand } from "@aws-sdk/client-apprunner"; // ES Modules import + * // const { AppRunnerClient, UpdateDefaultAutoScalingConfigurationCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import + * const client = new AppRunnerClient(config); + * const input = { // UpdateDefaultAutoScalingConfigurationRequest + * AutoScalingConfigurationArn: "STRING_VALUE", // required + * }; + * const command = new UpdateDefaultAutoScalingConfigurationCommand(input); + * const response = await client.send(command); + * // { // UpdateDefaultAutoScalingConfigurationResponse + * // AutoScalingConfiguration: { // AutoScalingConfiguration + * // AutoScalingConfigurationArn: "STRING_VALUE", + * // AutoScalingConfigurationName: "STRING_VALUE", + * // AutoScalingConfigurationRevision: Number("int"), + * // Latest: true || false, + * // Status: "ACTIVE" || "INACTIVE", + * // MaxConcurrency: Number("int"), + * // MinSize: Number("int"), + * // MaxSize: Number("int"), + * // CreatedAt: new Date("TIMESTAMP"), + * // DeletedAt: new Date("TIMESTAMP"), + * // HasAssociatedService: true || false, + * // IsDefault: true || false, + * // }, + * // }; + * + * ``` + * + * @param UpdateDefaultAutoScalingConfigurationCommandInput - {@link UpdateDefaultAutoScalingConfigurationCommandInput} + * @returns {@link UpdateDefaultAutoScalingConfigurationCommandOutput} + * @see {@link UpdateDefaultAutoScalingConfigurationCommandInput} for command's `input` shape. + * @see {@link UpdateDefaultAutoScalingConfigurationCommandOutput} for command's `response` shape. + * @see {@link AppRunnerClientResolvedConfig | config} for AppRunnerClient's `config` shape. + * + * @throws {@link InternalServiceErrorException} (server fault) + *An unexpected service exception occurred.
+ * + * @throws {@link InvalidRequestException} (client fault) + *One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.
+ * + * @throws {@link AppRunnerServiceException} + *Base exception class for all service exceptions from AppRunner service.
+ * + */ +export class UpdateDefaultAutoScalingConfigurationCommand extends $Command< + UpdateDefaultAutoScalingConfigurationCommandInput, + UpdateDefaultAutoScalingConfigurationCommandOutput, + AppRunnerClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: UpdateDefaultAutoScalingConfigurationCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackA name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number 1
of this
- * name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number
+ * 1
of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you don't provide a custome one). You can't use it
- * to create a new auto scaling configuration, and you can't create a revision of it.
When you want to use your own auto scaling configuration for your App Runner service, create a configuration with a different name, - * and then provide it when you create or update your service.
+ *Prior to the release of Managing auto
+ * scaling, the name DefaultConfiguration
was reserved.
This restriction is no longer in place. You can now manage DefaultConfiguration
the same way you manage your custom auto scaling
+ * configurations. This means you can do the following with the DefaultConfiguration
that App Runner provides:
Create new revisions of the DefaultConfiguration
.
Delete the revisions of the DefaultConfiguration
.
Delete the auto scaling configuration for which the App Runner DefaultConfiguration
was created.
If you delete the auto scaling configuration you can create another custom auto scaling configuration with the same
+ * DefaultConfiguration
name. The original DefaultConfiguration
resource provided by App Runner remains in your account unless
+ * you make changes to it.
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
*/ DeletedAt?: Date; + + /** + * @public + *Indicates if this auto scaling configuration has an App Runner service associated with it. A value of true
indicates one or more services are
+ * associated. A value of false
indicates no services are associated.
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does not have an
+ * auto scaling configuration ARN specified during creation. Each account can have only one
+ * default AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any revision under
+ * the same AutoScalingConfigurationName
.
AutoScalingConfigurationName
.
*/
AutoScalingConfigurationRevision?: number;
+
+ /**
+ * @public
+ * The current state of the auto scaling configuration. If the status of a configuration revision is INACTIVE
, it was deleted and can't be
+ * used. Inactive configuration revisions are permanently removed some time after they are deleted.
The time when the auto scaling configuration was created. It's in Unix time stamp format.
+ */ + CreatedAt?: Date; + + /** + * @public + *Indicates if this auto scaling configuration has an App Runner service associated with it. A value of true
indicates one or more services are
+ * associated. A value of false
indicates no services are associated.
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does not have an
+ * auto scaling configuration ARN specified during creation. Each account can have only one
+ * default AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any revision under
+ * the same AutoScalingConfigurationName
.
Set to true
to delete all of the revisions associated with the AutoScalingConfigurationArn
parameter value.
When DeleteAllRevisions
is set to true
, the only valid value for the Amazon Resource Name (ARN) is a partial ARN ending
+ * with: .../name
.
The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to list the services for.
+ *The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either .../name
+ *
or
+ * .../name/revision
+ *
. If a revision isn't specified, the latest active revision is used.
The maximum number of results to include in each response (result page). It's used for a paginated request.
+ *If you don't specify MaxResults
, the request retrieves all available results in a single response.
A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be + * identical to the ones specified in the initial request.
+ *If you don't specify NextToken
, the request retrieves the first result page.
A list of service ARN records. In a paginated request, the request returns up to MaxResults
records for each call.
The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.
+ */ + NextToken?: string; +} + /** * @public */ @@ -2888,6 +3004,33 @@ export interface UntagResourceRequest { */ export interface UntagResourceResponse {} +/** + * @public + */ +export interface UpdateDefaultAutoScalingConfigurationRequest { + /** + * @public + *The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to set as the default.
+ *The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either .../name
+ *
or
+ * .../name/revision
+ *
. If a revision isn't specified, the latest active revision is set as the
+ * default.
A description of the App Runner auto scaling configuration that was set as default.
+ */ + AutoScalingConfiguration: AutoScalingConfiguration | undefined; +} + /** * @public */ diff --git a/clients/client-apprunner/src/pagination/ListServicesForAutoScalingConfigurationPaginator.ts b/clients/client-apprunner/src/pagination/ListServicesForAutoScalingConfigurationPaginator.ts new file mode 100644 index 000000000000..096f9f41d05e --- /dev/null +++ b/clients/client-apprunner/src/pagination/ListServicesForAutoScalingConfigurationPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { AppRunnerClient } from "../AppRunnerClient"; +import { + ListServicesForAutoScalingConfigurationCommand, + ListServicesForAutoScalingConfigurationCommandInput, + ListServicesForAutoScalingConfigurationCommandOutput, +} from "../commands/ListServicesForAutoScalingConfigurationCommand"; +import { AppRunnerPaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: AppRunnerClient, + input: ListServicesForAutoScalingConfigurationCommandInput, + ...args: any +): PromiseThe revision of this auto scaling configuration. It's unique among all the active configurations (\"Status\": \"ACTIVE\"
) that share the same\n AutoScalingConfigurationName
.
It's set to true
for the configuration with the highest Revision
among all configurations that share the same\n AutoScalingConfigurationName
. It's set to false
otherwise.
The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service\n up.
" } }, "MinSize": { - "target": "com.amazonaws.apprunner#Integer", + "target": "com.amazonaws.apprunner#MinSize", "traits": { - "smithy.api#default": 0, "smithy.api#documentation": "The minimum number of instances that App Runner provisions for a service. The service always has at least MinSize
provisioned instances. Some\n of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be\n quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
" } }, "MaxSize": { - "target": "com.amazonaws.apprunner#Integer", + "target": "com.amazonaws.apprunner#MaxSize", "traits": { - "smithy.api#default": 0, "smithy.api#documentation": "The maximum number of instances that a service scales up to. At most MaxSize
instances actively serve traffic for your service.
The time when the auto scaling configuration was deleted. It's in Unix time stamp format.
" } + }, + "HasAssociatedService": { + "target": "com.amazonaws.apprunner#HasAssociatedService", + "traits": { + "smithy.api#documentation": "Indicates if this auto scaling configuration has an App Runner service associated with it. A value of true
indicates one or more services are\n associated. A value of false
indicates no services are associated.
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does not have an\n auto scaling configuration ARN specified during creation. Each account can have only one\n default AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any revision under \n the same AutoScalingConfigurationName
.
The revision of this auto scaling configuration. It's unique among all the active configurations (\"Status\": \"ACTIVE\"
) with the same\n AutoScalingConfigurationName
.
The current state of the auto scaling configuration. If the status of a configuration revision is INACTIVE
, it was deleted and can't be\n used. Inactive configuration revisions are permanently removed some time after they are deleted.
The time when the auto scaling configuration was created. It's in Unix time stamp format.
" + } + }, + "HasAssociatedService": { + "target": "com.amazonaws.apprunner#HasAssociatedService", + "traits": { + "smithy.api#documentation": "Indicates if this auto scaling configuration has an App Runner service associated with it. A value of true
indicates one or more services are\n associated. A value of false
indicates no services are associated.
Indicates if this auto scaling configuration should be used as the default for a new App Runner service that does not have an\n auto scaling configuration ARN specified during creation. Each account can have only one\n default AutoScalingConfiguration
per region. The default AutoScalingConfiguration
can be any revision under \n the same AutoScalingConfigurationName
.
Create an App Runner automatic scaling configuration resource. App Runner requires this resource when you create or update App Runner services and you require\n non-default auto scaling settings. You can share an auto scaling configuration across multiple services.
\nCreate multiple revisions of a configuration by calling this action multiple times using the same AutoScalingConfigurationName
. The call\n returns incremental AutoScalingConfigurationRevision
values. When you create a service and configure an auto scaling configuration resource,\n the service uses the latest active revision of the auto scaling configuration by default. You can optionally configure the service to use a specific\n revision.
Configure a higher MinSize
to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The tradeoff is\n a higher minimal cost.
Configure a lower MaxSize
to control your cost. The tradeoff is lower responsiveness during peak demand.
Create an App Runner automatic scaling configuration resource. App Runner requires this resource when you create or update App Runner services and you require\n non-default auto scaling settings. You can share an auto scaling configuration across multiple services.
\nCreate multiple revisions of a configuration by calling this action multiple times using the same AutoScalingConfigurationName
. The call\n returns incremental AutoScalingConfigurationRevision
values. When you create a service and configure an auto scaling configuration resource,\n the service uses the latest active revision of the auto scaling configuration by default. You can optionally configure the service to use a specific\n revision.
Configure a higher MinSize
to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The\n tradeoff is a higher minimal cost.
Configure a lower MaxSize
to control your cost. The tradeoff is lower responsiveness during peak demand.
A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number 1
of this\n name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
The name DefaultConfiguration
is reserved (it's the configuration that App Runner uses if you don't provide a custome one). You can't use it\n to create a new auto scaling configuration, and you can't create a revision of it.
When you want to use your own auto scaling configuration for your App Runner service, create a configuration with a different name,\n and then provide it when you create or update your service.
\nA name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number\n 1
of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
Prior to the release of Managing auto\n scaling, the name DefaultConfiguration
was reserved.
This restriction is no longer in place. You can now manage DefaultConfiguration
the same way you manage your custom auto scaling\n configurations. This means you can do the following with the DefaultConfiguration
that App Runner provides:
Create new revisions of the DefaultConfiguration
.
Delete the revisions of the DefaultConfiguration
.
Delete the auto scaling configuration for which the App Runner DefaultConfiguration
was created.
If you delete the auto scaling configuration you can create another custom auto scaling configuration with the same\n DefaultConfiguration
name. The original DefaultConfiguration
resource provided by App Runner remains in your account unless\n you make changes to it.
Delete an App Runner automatic scaling configuration resource. You can delete a specific revision or the latest active revision. You can't delete a\n configuration that's used by one or more App Runner services.
" + "smithy.api#documentation": "Delete an App Runner automatic scaling configuration resource. You can delete a top level auto scaling configuration, a specific revision of one, or all\n 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\n more App Runner services.
" } }, "com.amazonaws.apprunner#DeleteAutoScalingConfigurationRequest": { @@ -2051,6 +2091,13 @@ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to delete.
\nThe ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either .../name\n
or\n .../name/revision\n
. If a revision isn't specified, the latest active revision is deleted.
Set to true
to delete all of the revisions associated with the AutoScalingConfigurationArn
parameter value.
When DeleteAllRevisions
is set to true
, the only valid value for the Amazon Resource Name (ARN) is a partial ARN ending\n with: .../name
.
Returns a list of the associated App Runner services using an auto scaling configuration.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.apprunner#ListServicesForAutoScalingConfigurationRequest": { + "type": "structure", + "members": { + "AutoScalingConfigurationArn": { + "target": "com.amazonaws.apprunner#AppRunnerResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to list the services for.
\nThe ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either .../name\n
or\n .../name/revision\n
. If a revision isn't specified, the latest active revision is used.
The maximum number of results to include in each response (result page). It's used for a paginated request.
\nIf you don't specify MaxResults
, the request retrieves all available results in a single response.
A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be\n identical to the ones specified in the initial request.
\nIf you don't specify NextToken
, the request retrieves the first result page.
A list of service ARN records. In a paginated request, the request returns up to MaxResults
records for each call.
The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.apprunner#ListServicesRequest": { "type": "structure", "members": { @@ -3788,6 +3920,9 @@ "smithy.api#output": {} } }, + "com.amazonaws.apprunner#MaxConcurrency": { + "type": "integer" + }, "com.amazonaws.apprunner#MaxResults": { "type": "integer", "traits": { @@ -3797,6 +3932,9 @@ } } }, + "com.amazonaws.apprunner#MaxSize": { + "type": "integer" + }, "com.amazonaws.apprunner#Memory": { "type": "string", "traits": { @@ -3807,6 +3945,9 @@ "smithy.api#pattern": "^512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB$" } }, + "com.amazonaws.apprunner#MinSize": { + "type": "integer" + }, "com.amazonaws.apprunner#NetworkConfiguration": { "type": "structure", "members": { @@ -4503,6 +4644,12 @@ "smithy.api#documentation": "Describes an App Runner service. It can describe a service in any state, including deleted services.
\nThis type contains the full information about a service, including configuration details. It's returned by the CreateService, DescribeService, and DeleteService actions. A subset of this\n information is returned by the ListServices action using the ServiceSummary type.
" } }, + "com.amazonaws.apprunner#ServiceArnList": { + "type": "list", + "member": { + "target": "com.amazonaws.apprunner#AppRunnerResourceArn" + } + }, "com.amazonaws.apprunner#ServiceId": { "type": "string", "traits": { @@ -5010,6 +5157,59 @@ "smithy.api#output": {} } }, + "com.amazonaws.apprunner#UpdateDefaultAutoScalingConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.apprunner#UpdateDefaultAutoScalingConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.apprunner#UpdateDefaultAutoScalingConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apprunner#InternalServiceErrorException" + }, + { + "target": "com.amazonaws.apprunner#InvalidRequestException" + }, + { + "target": "com.amazonaws.apprunner#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "Update an auto scaling configuration to be the default. The existing default auto scaling configuration will be set to non-default\n automatically.
" + } + }, + "com.amazonaws.apprunner#UpdateDefaultAutoScalingConfigurationRequest": { + "type": "structure", + "members": { + "AutoScalingConfigurationArn": { + "target": "com.amazonaws.apprunner#AppRunnerResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to set as the default.
\nThe ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either .../name\n
or\n .../name/revision\n
. If a revision isn't specified, the latest active revision is set as the\n default.
A description of the App Runner auto scaling configuration that was set as default.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.apprunner#UpdateService": { "type": "operation", "input": { @@ -5446,4 +5646,4 @@ } } } -} \ No newline at end of file +}