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; + 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} */ @@ -721,6 +750,23 @@ export interface AppRunner { cb: (err: any, data?: UntagResourceCommandOutput) => void ): void; + /** + * @see {@link UpdateDefaultAutoScalingConfigurationCommand} + */ + updateDefaultAutoScalingConfiguration( + args: UpdateDefaultAutoScalingConfigurationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + 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} */ diff --git a/clients/client-apprunner/src/AppRunnerClient.ts b/clients/client-apprunner/src/AppRunnerClient.ts index 9c9309680aa9..c1793c0f14fc 100644 --- a/clients/client-apprunner/src/AppRunnerClient.ts +++ b/clients/client-apprunner/src/AppRunnerClient.ts @@ -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, @@ -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, @@ -179,6 +187,7 @@ export type ServiceInputTypes = | ListObservabilityConfigurationsCommandInput | ListOperationsCommandInput | ListServicesCommandInput + | ListServicesForAutoScalingConfigurationCommandInput | ListTagsForResourceCommandInput | ListVpcConnectorsCommandInput | ListVpcIngressConnectionsCommandInput @@ -187,6 +196,7 @@ export type ServiceInputTypes = | StartDeploymentCommandInput | TagResourceCommandInput | UntagResourceCommandInput + | UpdateDefaultAutoScalingConfigurationCommandInput | UpdateServiceCommandInput | UpdateVpcIngressConnectionCommandInput; @@ -219,6 +229,7 @@ export type ServiceOutputTypes = | ListObservabilityConfigurationsCommandOutput | ListOperationsCommandOutput | ListServicesCommandOutput + | ListServicesForAutoScalingConfigurationCommandOutput | ListTagsForResourceCommandOutput | ListVpcConnectorsCommandOutput | ListVpcIngressConnectionsCommandOutput @@ -227,6 +238,7 @@ export type ServiceOutputTypes = | StartDeploymentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput + | UpdateDefaultAutoScalingConfigurationCommandOutput | UpdateServiceCommandOutput | UpdateVpcIngressConnectionCommandOutput; diff --git a/clients/client-apprunner/src/commands/CreateAutoScalingConfigurationCommand.ts b/clients/client-apprunner/src/commands/CreateAutoScalingConfigurationCommand.ts index 48a41401fe25..b17e1f2bc6ef 100644 --- a/clients/client-apprunner/src/commands/CreateAutoScalingConfigurationCommand.ts +++ b/clients/client-apprunner/src/commands/CreateAutoScalingConfigurationCommand.ts @@ -47,8 +47,8 @@ export interface CreateAutoScalingConfigurationCommandOutput * 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 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. @@ -82,6 +82,8 @@ export interface CreateAutoScalingConfigurationCommandOutput * // 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/CreateServiceCommand.ts b/clients/client-apprunner/src/commands/CreateServiceCommand.ts index ddba9d4b3382..0f7d3cee4886 100644 --- a/clients/client-apprunner/src/commands/CreateServiceCommand.ts +++ b/clients/client-apprunner/src/commands/CreateServiceCommand.ts @@ -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 diff --git a/clients/client-apprunner/src/commands/DeleteAutoScalingConfigurationCommand.ts b/clients/client-apprunner/src/commands/DeleteAutoScalingConfigurationCommand.ts index 673e2d5d1e7c..2503cda54260 100644 --- a/clients/client-apprunner/src/commands/DeleteAutoScalingConfigurationCommand.ts +++ b/clients/client-apprunner/src/commands/DeleteAutoScalingConfigurationCommand.ts @@ -41,8 +41,9 @@ export interface DeleteAutoScalingConfigurationCommandOutput /** * @public - *

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: MiddlewareStack, + configuration: AppRunnerClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListServicesForAutoScalingConfigurationCommandInput, + ListServicesForAutoScalingConfigurationCommandOutput + > { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin( + configuration, + ListServicesForAutoScalingConfigurationCommand.getEndpointParameterInstructions() + ) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "AppRunnerClient"; + const commandName = "ListServicesForAutoScalingConfigurationCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: ListServicesForAutoScalingConfigurationCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_ListServicesForAutoScalingConfigurationCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ListServicesForAutoScalingConfigurationCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-apprunner/src/commands/PauseServiceCommand.ts b/clients/client-apprunner/src/commands/PauseServiceCommand.ts index e3100213e8c4..7406d19395f7 100644 --- a/clients/client-apprunner/src/commands/PauseServiceCommand.ts +++ b/clients/client-apprunner/src/commands/PauseServiceCommand.ts @@ -124,6 +124,10 @@ export interface PauseServiceCommandOutput extends PauseServiceResponse, __Metad * // 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/ResumeServiceCommand.ts b/clients/client-apprunner/src/commands/ResumeServiceCommand.ts index 04f2b39f927d..6b660d81774e 100644 --- a/clients/client-apprunner/src/commands/ResumeServiceCommand.ts +++ b/clients/client-apprunner/src/commands/ResumeServiceCommand.ts @@ -127,6 +127,10 @@ export interface ResumeServiceCommandOutput extends ResumeServiceResponse, __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/UpdateDefaultAutoScalingConfigurationCommand.ts b/clients/client-apprunner/src/commands/UpdateDefaultAutoScalingConfigurationCommand.ts new file mode 100644 index 000000000000..fe400f2a57e7 --- /dev/null +++ b/clients/client-apprunner/src/commands/UpdateDefaultAutoScalingConfigurationCommand.ts @@ -0,0 +1,180 @@ +// 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 { + UpdateDefaultAutoScalingConfigurationRequest, + UpdateDefaultAutoScalingConfigurationResponse, +} from "../models/models_0"; +import { + de_UpdateDefaultAutoScalingConfigurationCommand, + se_UpdateDefaultAutoScalingConfigurationCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UpdateDefaultAutoScalingConfigurationCommand}. + */ +export interface UpdateDefaultAutoScalingConfigurationCommandInput + extends UpdateDefaultAutoScalingConfigurationRequest {} +/** + * @public + * + * The output of {@link UpdateDefaultAutoScalingConfigurationCommand}. + */ +export interface UpdateDefaultAutoScalingConfigurationCommandOutput + extends UpdateDefaultAutoScalingConfigurationResponse, + __MetadataBearer {} + +/** + * @public + *

Update 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: MiddlewareStack, + configuration: AppRunnerClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateDefaultAutoScalingConfigurationCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "AppRunnerClient"; + const commandName = "UpdateDefaultAutoScalingConfigurationCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: UpdateDefaultAutoScalingConfigurationCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_UpdateDefaultAutoScalingConfigurationCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_UpdateDefaultAutoScalingConfigurationCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-apprunner/src/commands/UpdateServiceCommand.ts b/clients/client-apprunner/src/commands/UpdateServiceCommand.ts index a24e893fd5a1..766f57cf76eb 100644 --- a/clients/client-apprunner/src/commands/UpdateServiceCommand.ts +++ b/clients/client-apprunner/src/commands/UpdateServiceCommand.ts @@ -201,6 +201,10 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __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/index.ts b/clients/client-apprunner/src/commands/index.ts index 1c2a7281a467..de6ed4a1277d 100644 --- a/clients/client-apprunner/src/commands/index.ts +++ b/clients/client-apprunner/src/commands/index.ts @@ -24,6 +24,7 @@ export * from "./ListConnectionsCommand"; export * from "./ListObservabilityConfigurationsCommand"; export * from "./ListOperationsCommand"; export * from "./ListServicesCommand"; +export * from "./ListServicesForAutoScalingConfigurationCommand"; export * from "./ListTagsForResourceCommand"; export * from "./ListVpcConnectorsCommand"; export * from "./ListVpcIngressConnectionsCommand"; @@ -32,5 +33,6 @@ export * from "./ResumeServiceCommand"; export * from "./StartDeploymentCommand"; export * from "./TagResourceCommand"; export * from "./UntagResourceCommand"; +export * from "./UpdateDefaultAutoScalingConfigurationCommand"; export * from "./UpdateServiceCommand"; export * from "./UpdateVpcIngressConnectionCommand"; diff --git a/clients/client-apprunner/src/models/models_0.ts b/clients/client-apprunner/src/models/models_0.ts index e64846d832fc..60c0fbb51a8e 100644 --- a/clients/client-apprunner/src/models/models_0.ts +++ b/clients/client-apprunner/src/models/models_0.ts @@ -275,13 +275,29 @@ export interface Tag { export interface CreateAutoScalingConfigurationRequest { /** * @public - *

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.

+ *

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.

    + *
  • + *
*
*/ AutoScalingConfigurationName: string | undefined; @@ -412,6 +428,22 @@ export interface AutoScalingConfiguration { *

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.

+ */ + HasAssociatedService?: boolean; + + /** + * @public + *

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.

+ */ + IsDefault?: boolean; } /** @@ -1325,6 +1357,35 @@ export interface AutoScalingConfigurationSummary { * 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.

+ */ + Status?: AutoScalingConfigurationStatus | string; + + /** + * @public + *

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.

+ */ + HasAssociatedService?: boolean; + + /** + * @public + *

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.

+ */ + IsDefault?: boolean; } /** @@ -1784,6 +1845,14 @@ export interface DeleteAutoScalingConfigurationRequest { * . If a revision isn't specified, the latest active revision is deleted.

*/ AutoScalingConfigurationArn: string | undefined; + + /** + * @public + *

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.

+ */ + DeleteAllRevisions?: boolean; } /** @@ -2616,6 +2685,53 @@ export interface ListServicesResponse { NextToken?: string; } +/** + * @public + */ +export interface ListServicesForAutoScalingConfigurationRequest { + /** + * @public + *

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.

+ */ + AutoScalingConfigurationArn: string | undefined; + + /** + * @public + *

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.

+ */ + MaxResults?: number; + + /** + * @public + *

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.

+ */ + NextToken?: string; +} + +/** + * @public + */ +export interface ListServicesForAutoScalingConfigurationResponse { + /** + * @public + *

A list of service ARN records. In a paginated request, the request returns up to MaxResults records for each call.

+ */ + ServiceArnList: string[] | undefined; + + /** + * @public + *

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.

+ */ + AutoScalingConfigurationArn: string | undefined; +} + +/** + * @public + */ +export interface UpdateDefaultAutoScalingConfigurationResponse { + /** + * @public + *

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 +): Promise => { + // @ts-ignore + return await client.send(new ListServicesForAutoScalingConfigurationCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateListServicesForAutoScalingConfiguration( + config: AppRunnerPaginationConfiguration, + input: ListServicesForAutoScalingConfigurationCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: ListServicesForAutoScalingConfigurationCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof AppRunnerClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected AppRunner | AppRunnerClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-apprunner/src/pagination/index.ts b/clients/client-apprunner/src/pagination/index.ts index fa5eb248edf0..9f422aa08375 100644 --- a/clients/client-apprunner/src/pagination/index.ts +++ b/clients/client-apprunner/src/pagination/index.ts @@ -5,6 +5,7 @@ export * from "./ListAutoScalingConfigurationsPaginator"; export * from "./ListConnectionsPaginator"; export * from "./ListObservabilityConfigurationsPaginator"; export * from "./ListOperationsPaginator"; +export * from "./ListServicesForAutoScalingConfigurationPaginator"; export * from "./ListServicesPaginator"; export * from "./ListVpcConnectorsPaginator"; export * from "./ListVpcIngressConnectionsPaginator"; diff --git a/clients/client-apprunner/src/protocols/Aws_json1_0.ts b/clients/client-apprunner/src/protocols/Aws_json1_0.ts index b2bca792e21f..e03a296fb853 100644 --- a/clients/client-apprunner/src/protocols/Aws_json1_0.ts +++ b/clients/client-apprunner/src/protocols/Aws_json1_0.ts @@ -90,6 +90,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, @@ -104,6 +108,10 @@ import { ResumeServiceCommandInput, ResumeServiceCommandOutput } from "../comman 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, @@ -114,6 +122,7 @@ import { AssociateCustomDomainRequest, AuthenticationConfiguration, AutoScalingConfiguration, + AutoScalingConfigurationSummary, CodeConfiguration, CodeConfigurationValues, CodeRepository, @@ -167,11 +176,13 @@ import { InvalidRequestException, InvalidStateException, ListAutoScalingConfigurationsRequest, + ListAutoScalingConfigurationsResponse, ListConnectionsRequest, ListConnectionsResponse, ListObservabilityConfigurationsRequest, ListOperationsRequest, ListOperationsResponse, + ListServicesForAutoScalingConfigurationRequest, ListServicesRequest, ListServicesResponse, ListTagsForResourceRequest, @@ -198,6 +209,8 @@ import { TagResourceRequest, TraceConfiguration, UntagResourceRequest, + UpdateDefaultAutoScalingConfigurationRequest, + UpdateDefaultAutoScalingConfigurationResponse, UpdateServiceRequest, UpdateServiceResponse, UpdateVpcIngressConnectionRequest, @@ -531,6 +544,19 @@ export const se_ListServicesCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0ListServicesForAutoScalingConfigurationCommand + */ +export const se_ListServicesForAutoScalingConfigurationCommand = async ( + input: ListServicesForAutoScalingConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListServicesForAutoScalingConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0ListTagsForResourceCommand */ @@ -635,6 +661,19 @@ export const se_UntagResourceCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0UpdateDefaultAutoScalingConfigurationCommand + */ +export const se_UpdateDefaultAutoScalingConfigurationCommand = async ( + input: UpdateDefaultAutoScalingConfigurationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateDefaultAutoScalingConfiguration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0UpdateServiceCommand */ @@ -1725,7 +1764,7 @@ export const de_ListAutoScalingConfigurationsCommand = async ( } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); + contents = de_ListAutoScalingConfigurationsResponse(data, context); const response: ListAutoScalingConfigurationsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, @@ -1961,6 +2000,58 @@ const de_ListServicesCommandError = async ( } }; +/** + * deserializeAws_json1_0ListServicesForAutoScalingConfigurationCommand + */ +export const de_ListServicesForAutoScalingConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_ListServicesForAutoScalingConfigurationCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListServicesForAutoScalingConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ListServicesForAutoScalingConfigurationCommandError + */ +const de_ListServicesForAutoScalingConfigurationCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServiceErrorException": + case "com.amazonaws.apprunner#InternalServiceErrorException": + throw await de_InternalServiceErrorExceptionRes(parsedOutput, context); + case "InvalidRequestException": + case "com.amazonaws.apprunner#InvalidRequestException": + throw await de_InvalidRequestExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.apprunner#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_0ListTagsForResourceCommand */ @@ -2386,6 +2477,58 @@ const de_UntagResourceCommandError = async ( } }; +/** + * deserializeAws_json1_0UpdateDefaultAutoScalingConfigurationCommand + */ +export const de_UpdateDefaultAutoScalingConfigurationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_UpdateDefaultAutoScalingConfigurationCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_UpdateDefaultAutoScalingConfigurationResponse(data, context); + const response: UpdateDefaultAutoScalingConfigurationCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0UpdateDefaultAutoScalingConfigurationCommandError + */ +const de_UpdateDefaultAutoScalingConfigurationCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServiceErrorException": + case "com.amazonaws.apprunner#InternalServiceErrorException": + throw await de_InternalServiceErrorExceptionRes(parsedOutput, context); + case "InvalidRequestException": + case "com.amazonaws.apprunner#InvalidRequestException": + throw await de_InvalidRequestExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.apprunner#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_0UpdateServiceCommand */ @@ -2648,6 +2791,8 @@ const de_ServiceQuotaExceededExceptionRes = async ( // se_ListOperationsRequest omitted. +// se_ListServicesForAutoScalingConfigurationRequest omitted. + // se_ListServicesRequest omitted. // se_ListTagsForResourceRequest omitted. @@ -2690,6 +2835,8 @@ const de_ServiceQuotaExceededExceptionRes = async ( // se_UntagResourceRequest omitted. +// se_UpdateDefaultAutoScalingConfigurationRequest omitted. + // se_UpdateServiceRequest omitted. // se_UpdateVpcIngressConnectionRequest omitted. @@ -2708,6 +2855,8 @@ const de_AutoScalingConfiguration = (output: any, context: __SerdeContext): Auto AutoScalingConfigurationRevision: __expectInt32, CreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), DeletedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + HasAssociatedService: __expectBoolean, + IsDefault: __expectBoolean, Latest: __expectBoolean, MaxConcurrency: __expectInt32, MaxSize: __expectInt32, @@ -2716,9 +2865,35 @@ const de_AutoScalingConfiguration = (output: any, context: __SerdeContext): Auto }) as any; }; -// de_AutoScalingConfigurationSummary omitted. +/** + * deserializeAws_json1_0AutoScalingConfigurationSummary + */ +const de_AutoScalingConfigurationSummary = (output: any, context: __SerdeContext): AutoScalingConfigurationSummary => { + return take(output, { + AutoScalingConfigurationArn: __expectString, + AutoScalingConfigurationName: __expectString, + AutoScalingConfigurationRevision: __expectInt32, + CreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + HasAssociatedService: __expectBoolean, + IsDefault: __expectBoolean, + Status: __expectString, + }) as any; +}; -// de_AutoScalingConfigurationSummaryList omitted. +/** + * deserializeAws_json1_0AutoScalingConfigurationSummaryList + */ +const de_AutoScalingConfigurationSummaryList = ( + output: any, + context: __SerdeContext +): AutoScalingConfigurationSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_AutoScalingConfigurationSummary(entry, context); + }); + return retVal; +}; // de_CertificateValidationRecord omitted. @@ -2980,7 +3155,18 @@ const de_DescribeVpcIngressConnectionResponse = ( // de_InvalidStateException omitted. -// de_ListAutoScalingConfigurationsResponse omitted. +/** + * deserializeAws_json1_0ListAutoScalingConfigurationsResponse + */ +const de_ListAutoScalingConfigurationsResponse = ( + output: any, + context: __SerdeContext +): ListAutoScalingConfigurationsResponse => { + return take(output, { + AutoScalingConfigurationSummaryList: (_: any) => de_AutoScalingConfigurationSummaryList(_, context), + NextToken: __expectString, + }) as any; +}; /** * deserializeAws_json1_0ListConnectionsResponse @@ -3004,6 +3190,8 @@ const de_ListOperationsResponse = (output: any, context: __SerdeContext): ListOp }) as any; }; +// de_ListServicesForAutoScalingConfigurationResponse omitted. + /** * deserializeAws_json1_0ListServicesResponse */ @@ -3108,7 +3296,7 @@ const de_ResumeServiceResponse = (output: any, context: __SerdeContext): ResumeS */ const de_Service = (output: any, context: __SerdeContext): Service => { return take(output, { - AutoScalingConfigurationSummary: _json, + AutoScalingConfigurationSummary: (_: any) => de_AutoScalingConfigurationSummary(_, context), CreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), DeletedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), EncryptionConfiguration: _json, @@ -3126,6 +3314,8 @@ const de_Service = (output: any, context: __SerdeContext): Service => { }) as any; }; +// de_ServiceArnList omitted. + // de_ServiceObservabilityConfiguration omitted. // de_ServiceQuotaExceededException omitted. @@ -3175,6 +3365,18 @@ const de_ServiceSummaryList = (output: any, context: __SerdeContext): ServiceSum // de_UntagResourceResponse omitted. +/** + * deserializeAws_json1_0UpdateDefaultAutoScalingConfigurationResponse + */ +const de_UpdateDefaultAutoScalingConfigurationResponse = ( + output: any, + context: __SerdeContext +): UpdateDefaultAutoScalingConfigurationResponse => { + return take(output, { + AutoScalingConfiguration: (_: any) => de_AutoScalingConfiguration(_, context), + }) as any; +}; + /** * deserializeAws_json1_0UpdateServiceResponse */ diff --git a/codegen/sdk-codegen/aws-models/apprunner.json b/codegen/sdk-codegen/aws-models/apprunner.json index d73aa1b7ea15..1c79444f60da 100644 --- a/codegen/sdk-codegen/aws-models/apprunner.json +++ b/codegen/sdk-codegen/aws-models/apprunner.json @@ -134,6 +134,9 @@ { "target": "com.amazonaws.apprunner#ListServices" }, + { + "target": "com.amazonaws.apprunner#ListServicesForAutoScalingConfiguration" + }, { "target": "com.amazonaws.apprunner#ListTagsForResource" }, @@ -158,6 +161,9 @@ { "target": "com.amazonaws.apprunner#UntagResource" }, + { + "target": "com.amazonaws.apprunner#UpdateDefaultAutoScalingConfiguration" + }, { "target": "com.amazonaws.apprunner#UpdateService" }, @@ -1023,16 +1029,14 @@ } }, "AutoScalingConfigurationRevision": { - "target": "com.amazonaws.apprunner#Integer", + "target": "com.amazonaws.apprunner#AutoScalingConfigurationRevision", "traits": { - "smithy.api#default": 0, "smithy.api#documentation": "

The revision of this auto scaling configuration. It's unique among all the active configurations (\"Status\": \"ACTIVE\") that share the same\n AutoScalingConfigurationName.

" } }, "Latest": { - "target": "com.amazonaws.apprunner#Boolean", + "target": "com.amazonaws.apprunner#Latest", "traits": { - "smithy.api#default": false, "smithy.api#documentation": "

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.

" } }, @@ -1043,23 +1047,20 @@ } }, "MaxConcurrency": { - "target": "com.amazonaws.apprunner#Integer", + "target": "com.amazonaws.apprunner#MaxConcurrency", "traits": { - "smithy.api#default": 0, "smithy.api#documentation": "

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.

\n

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.

" } }, @@ -1074,6 +1075,18 @@ "traits": { "smithy.api#documentation": "

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.

" + } + }, + "IsDefault": { + "target": "com.amazonaws.apprunner#IsDefault", + "traits": { + "smithy.api#documentation": "

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.

" + } } }, "traits": { @@ -1090,6 +1103,9 @@ "smithy.api#pattern": "^[A-Za-z0-9][A-Za-z0-9\\-_]{3,31}$" } }, + "com.amazonaws.apprunner#AutoScalingConfigurationRevision": { + "type": "integer" + }, "com.amazonaws.apprunner#AutoScalingConfigurationStatus": { "type": "enum", "members": { @@ -1128,6 +1144,30 @@ "smithy.api#default": 0, "smithy.api#documentation": "

The revision of this auto scaling configuration. It's unique among all the active configurations (\"Status\": \"ACTIVE\") with the same\n AutoScalingConfigurationName.

" } + }, + "Status": { + "target": "com.amazonaws.apprunner#AutoScalingConfigurationStatus", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "CreatedAt": { + "target": "com.amazonaws.apprunner#Timestamp", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "IsDefault": { + "target": "com.amazonaws.apprunner#IsDefault", + "traits": { + "smithy.api#documentation": "

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.

" + } } }, "traits": { @@ -1476,7 +1516,7 @@ } ], "traits": { - "smithy.api#documentation": "

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.

\n

Create 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.

\n

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.

\n

Configure a lower MaxSize to control your cost. The tradeoff is lower responsiveness during peak demand.

" + "smithy.api#documentation": "

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.

\n

Create 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.

\n

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.

\n

Configure a lower MaxSize to control your cost. The tradeoff is lower responsiveness during peak demand.

" } }, "com.amazonaws.apprunner#CreateAutoScalingConfigurationRequest": { @@ -1485,7 +1525,7 @@ "AutoScalingConfigurationName": { "target": "com.amazonaws.apprunner#AutoScalingConfigurationName", "traits": { - "smithy.api#documentation": "

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.

\n \n

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.

\n

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.

\n
", + "smithy.api#documentation": "

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\n 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.

\n \n

Prior to the release of Managing auto\n scaling, the name DefaultConfiguration was reserved.

\n

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:

\n
    \n
  • \n

    Create new revisions of the DefaultConfiguration.

    \n
  • \n
  • \n

    Delete the revisions of the DefaultConfiguration.

    \n
  • \n
  • \n

    Delete the auto scaling configuration for which the App Runner DefaultConfiguration was created.

    \n
  • \n
  • \n

    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.

    \n
  • \n
\n
", "smithy.api#required": {} } }, @@ -2039,7 +2079,7 @@ } ], "traits": { - "smithy.api#documentation": "

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.

\n

The 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.

", "smithy.api#required": {} } + }, + "DeleteAllRevisions": { + "target": "com.amazonaws.apprunner#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

Set to true to delete all of the revisions associated with the AutoScalingConfigurationArn parameter value.

\n

When DeleteAllRevisions is set to true, the only valid value for the Amazon Resource Name (ARN) is a partial ARN ending\n with: .../name.

" + } } }, "traits": { @@ -2875,6 +2922,9 @@ } } }, + "com.amazonaws.apprunner#HasAssociatedService": { + "type": "boolean" + }, "com.amazonaws.apprunner#HealthCheckConfiguration": { "type": "structure", "members": { @@ -3185,6 +3235,9 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.apprunner#IsDefault": { + "type": "boolean" + }, "com.amazonaws.apprunner#KmsKeyArn": { "type": "string", "traits": { @@ -3195,6 +3248,9 @@ "smithy.api#pattern": "^arn:aws(-[\\w]+)*:kms:[a-z\\-]+-[0-9]{1}:[0-9]{12}:key\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } }, + "com.amazonaws.apprunner#Latest": { + "type": "boolean" + }, "com.amazonaws.apprunner#ListAutoScalingConfigurations": { "type": "operation", "input": { @@ -3534,6 +3590,82 @@ } } }, + "com.amazonaws.apprunner#ListServicesForAutoScalingConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.apprunner#ListServicesForAutoScalingConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.apprunner#ListServicesForAutoScalingConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apprunner#InternalServiceErrorException" + }, + { + "target": "com.amazonaws.apprunner#InvalidRequestException" + }, + { + "target": "com.amazonaws.apprunner#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

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.

\n

The 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.

", + "smithy.api#required": {} + } + }, + "MaxResults": { + "target": "com.amazonaws.apprunner#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to include in each response (result page). It's used for a paginated request.

\n

If you don't specify MaxResults, the request retrieves all available results in a single response.

" + } + }, + "NextToken": { + "target": "com.amazonaws.apprunner#NextToken", + "traits": { + "smithy.api#documentation": "

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.

\n

If you don't specify NextToken, the request retrieves the first result page.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.apprunner#ListServicesForAutoScalingConfigurationResponse": { + "type": "structure", + "members": { + "ServiceArnList": { + "target": "com.amazonaws.apprunner#ServiceArnList", + "traits": { + "smithy.api#documentation": "

A list of service ARN records. In a paginated request, the request returns up to MaxResults records for each call.

", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.apprunner#NextToken", + "traits": { + "smithy.api#documentation": "

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.

\n

This 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.

\n

The 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.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.apprunner#UpdateDefaultAutoScalingConfigurationResponse": { + "type": "structure", + "members": { + "AutoScalingConfiguration": { + "target": "com.amazonaws.apprunner#AutoScalingConfiguration", + "traits": { + "smithy.api#documentation": "

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 +}