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 { UpdateServiceRequest, UpdateServiceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateServiceCommand}. */ export interface UpdateServiceCommandInput extends UpdateServiceRequest { } /** * @public * * The output of {@link UpdateServiceCommand}. */ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __MetadataBearer { } declare const UpdateServiceCommand_base: { new (input: UpdateServiceCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateServiceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Update an App Runner service. You can update the source configuration and instance configuration of the service. You can also update the ARN of the auto * scaling configuration resource that's associated with the service. However, you can't change the name or the encryption configuration of the service. * These can be set only when you create the service.

*

To update the tags applied to your service, use the separate actions TagResource and UntagResource.

*

This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations * call to track the operation's progress.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppRunnerClient, UpdateServiceCommand } from "@aws-sdk/client-apprunner"; // ES Modules import * // const { AppRunnerClient, UpdateServiceCommand } = 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 = { // UpdateServiceRequest * ServiceArn: "STRING_VALUE", // required * SourceConfiguration: { // SourceConfiguration * CodeRepository: { // CodeRepository * RepositoryUrl: "STRING_VALUE", // required * SourceCodeVersion: { // SourceCodeVersion * Type: "BRANCH", // required * Value: "STRING_VALUE", // required * }, * CodeConfiguration: { // CodeConfiguration * ConfigurationSource: "REPOSITORY" || "API", // required * CodeConfigurationValues: { // CodeConfigurationValues * Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18" || "NODEJS_22", // required * BuildCommand: "STRING_VALUE", * StartCommand: "STRING_VALUE", * Port: "STRING_VALUE", * RuntimeEnvironmentVariables: { // RuntimeEnvironmentVariables * "": "STRING_VALUE", * }, * RuntimeEnvironmentSecrets: { // RuntimeEnvironmentSecrets * "": "STRING_VALUE", * }, * }, * }, * SourceDirectory: "STRING_VALUE", * }, * ImageRepository: { // ImageRepository * ImageIdentifier: "STRING_VALUE", // required * ImageConfiguration: { // ImageConfiguration * RuntimeEnvironmentVariables: { * "": "STRING_VALUE", * }, * StartCommand: "STRING_VALUE", * Port: "STRING_VALUE", * RuntimeEnvironmentSecrets: { * "": "STRING_VALUE", * }, * }, * ImageRepositoryType: "ECR" || "ECR_PUBLIC", // required * }, * AutoDeploymentsEnabled: true || false, * AuthenticationConfiguration: { // AuthenticationConfiguration * ConnectionArn: "STRING_VALUE", * AccessRoleArn: "STRING_VALUE", * }, * }, * InstanceConfiguration: { // InstanceConfiguration * Cpu: "STRING_VALUE", * Memory: "STRING_VALUE", * InstanceRoleArn: "STRING_VALUE", * }, * AutoScalingConfigurationArn: "STRING_VALUE", * HealthCheckConfiguration: { // HealthCheckConfiguration * Protocol: "TCP" || "HTTP", * Path: "STRING_VALUE", * Interval: Number("int"), * Timeout: Number("int"), * HealthyThreshold: Number("int"), * UnhealthyThreshold: Number("int"), * }, * NetworkConfiguration: { // NetworkConfiguration * EgressConfiguration: { // EgressConfiguration * EgressType: "DEFAULT" || "VPC", * VpcConnectorArn: "STRING_VALUE", * }, * IngressConfiguration: { // IngressConfiguration * IsPubliclyAccessible: true || false, * }, * IpAddressType: "IPV4" || "DUAL_STACK", * }, * ObservabilityConfiguration: { // ServiceObservabilityConfiguration * ObservabilityEnabled: true || false, // required * ObservabilityConfigurationArn: "STRING_VALUE", * }, * }; * const command = new UpdateServiceCommand(input); * const response = await client.send(command); * // { // UpdateServiceResponse * // Service: { // Service * // ServiceName: "STRING_VALUE", // required * // ServiceId: "STRING_VALUE", // required * // ServiceArn: "STRING_VALUE", // required * // ServiceUrl: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), // required * // UpdatedAt: new Date("TIMESTAMP"), // required * // DeletedAt: new Date("TIMESTAMP"), * // Status: "CREATE_FAILED" || "RUNNING" || "DELETED" || "DELETE_FAILED" || "PAUSED" || "OPERATION_IN_PROGRESS", // required * // SourceConfiguration: { // SourceConfiguration * // CodeRepository: { // CodeRepository * // RepositoryUrl: "STRING_VALUE", // required * // SourceCodeVersion: { // SourceCodeVersion * // Type: "BRANCH", // required * // Value: "STRING_VALUE", // required * // }, * // CodeConfiguration: { // CodeConfiguration * // ConfigurationSource: "REPOSITORY" || "API", // required * // CodeConfigurationValues: { // CodeConfigurationValues * // Runtime: "PYTHON_3" || "NODEJS_12" || "NODEJS_14" || "CORRETTO_8" || "CORRETTO_11" || "NODEJS_16" || "GO_1" || "DOTNET_6" || "PHP_81" || "RUBY_31" || "PYTHON_311" || "NODEJS_18" || "NODEJS_22", // required * // BuildCommand: "STRING_VALUE", * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", * // RuntimeEnvironmentVariables: { // RuntimeEnvironmentVariables * // "": "STRING_VALUE", * // }, * // RuntimeEnvironmentSecrets: { // RuntimeEnvironmentSecrets * // "": "STRING_VALUE", * // }, * // }, * // }, * // SourceDirectory: "STRING_VALUE", * // }, * // ImageRepository: { // ImageRepository * // ImageIdentifier: "STRING_VALUE", // required * // ImageConfiguration: { // ImageConfiguration * // RuntimeEnvironmentVariables: { * // "": "STRING_VALUE", * // }, * // StartCommand: "STRING_VALUE", * // Port: "STRING_VALUE", * // RuntimeEnvironmentSecrets: { * // "": "STRING_VALUE", * // }, * // }, * // ImageRepositoryType: "ECR" || "ECR_PUBLIC", // required * // }, * // AutoDeploymentsEnabled: true || false, * // AuthenticationConfiguration: { // AuthenticationConfiguration * // ConnectionArn: "STRING_VALUE", * // AccessRoleArn: "STRING_VALUE", * // }, * // }, * // InstanceConfiguration: { // InstanceConfiguration * // Cpu: "STRING_VALUE", * // Memory: "STRING_VALUE", * // InstanceRoleArn: "STRING_VALUE", * // }, * // EncryptionConfiguration: { // EncryptionConfiguration * // KmsKey: "STRING_VALUE", // required * // }, * // HealthCheckConfiguration: { // HealthCheckConfiguration * // Protocol: "TCP" || "HTTP", * // Path: "STRING_VALUE", * // Interval: Number("int"), * // Timeout: Number("int"), * // HealthyThreshold: Number("int"), * // UnhealthyThreshold: Number("int"), * // }, * // AutoScalingConfigurationSummary: { // AutoScalingConfigurationSummary * // 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 * // EgressType: "DEFAULT" || "VPC", * // VpcConnectorArn: "STRING_VALUE", * // }, * // IngressConfiguration: { // IngressConfiguration * // IsPubliclyAccessible: true || false, * // }, * // IpAddressType: "IPV4" || "DUAL_STACK", * // }, * // ObservabilityConfiguration: { // ServiceObservabilityConfiguration * // ObservabilityEnabled: true || false, // required * // ObservabilityConfigurationArn: "STRING_VALUE", * // }, * // }, * // OperationId: "STRING_VALUE", // required * // }; * * ``` * * @param UpdateServiceCommandInput - {@link UpdateServiceCommandInput} * @returns {@link UpdateServiceCommandOutput} * @see {@link UpdateServiceCommandInput} for command's `input` shape. * @see {@link UpdateServiceCommandOutput} 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 InvalidStateException} (client fault) *

You can't perform this action when the resource is in its current state.

* * @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.

* * * @public */ export declare class UpdateServiceCommand extends UpdateServiceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateServiceRequest; output: UpdateServiceResponse; }; sdk: { input: UpdateServiceCommandInput; output: UpdateServiceCommandOutput; }; }; }