import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AppRunnerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppRunnerClient"; import type { CreateAutoScalingConfigurationRequest, CreateAutoScalingConfigurationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateAutoScalingConfigurationCommand}. */ export interface CreateAutoScalingConfigurationCommandInput extends CreateAutoScalingConfigurationRequest { } /** * @public * * The output of {@link CreateAutoScalingConfigurationCommand}. */ export interface CreateAutoScalingConfigurationCommandOutput extends CreateAutoScalingConfigurationResponse, __MetadataBearer { } declare const CreateAutoScalingConfigurationCommand_base: { new (input: CreateAutoScalingConfigurationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateAutoScalingConfigurationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Create an App Runner automatic scaling configuration resource. App Runner requires this resource when you create or update App Runner services and you require * non-default auto scaling settings. You can share an auto scaling configuration across multiple services.

*

Create multiple revisions of a configuration by calling this action multiple times using the same AutoScalingConfigurationName. The call * returns incremental 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 lower MaxSize to control your cost. The tradeoff is lower responsiveness during peak demand.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppRunnerClient, CreateAutoScalingConfigurationCommand } from "@aws-sdk/client-apprunner"; // ES Modules import * // const { AppRunnerClient, CreateAutoScalingConfigurationCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import * // import type { AppRunnerClientConfig } from "@aws-sdk/client-apprunner"; * const config = {}; // type is AppRunnerClientConfig * const client = new AppRunnerClient(config); * const input = { // CreateAutoScalingConfigurationRequest * AutoScalingConfigurationName: "STRING_VALUE", // required * MaxConcurrency: Number("int"), * MinSize: Number("int"), * MaxSize: Number("int"), * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateAutoScalingConfigurationCommand(input); * const response = await client.send(command); * // { // CreateAutoScalingConfigurationResponse * // 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 CreateAutoScalingConfigurationCommandInput - {@link CreateAutoScalingConfigurationCommandInput} * @returns {@link CreateAutoScalingConfigurationCommandOutput} * @see {@link CreateAutoScalingConfigurationCommandInput} for command's `input` shape. * @see {@link CreateAutoScalingConfigurationCommandOutput} 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 ServiceQuotaExceededException} (client fault) *

App Runner can't create this resource. You've reached your account quota for this resource type.

*

For App Runner per-resource quotas, see App Runner endpoints and quotas in the * Amazon Web Services General Reference.

* * @throws {@link AppRunnerServiceException} *

Base exception class for all service exceptions from AppRunner service.

* * * @public */ export declare class CreateAutoScalingConfigurationCommand extends CreateAutoScalingConfigurationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateAutoScalingConfigurationRequest; output: CreateAutoScalingConfigurationResponse; }; sdk: { input: CreateAutoScalingConfigurationCommandInput; output: CreateAutoScalingConfigurationCommandOutput; }; }; }