update_service
¶
update_service(
service_arn: AppRunnerResourceArn,
*,
config_overrides: Optional[AppRunnerClientConfig] = None,
source_configuration: Optional[SourceConfiguration] = None,
instance_configuration: Optional[InstanceConfiguration] = None,
auto_scaling_configuration_arn: Optional[AppRunnerResourceArn] = None,
health_check_configuration: Optional[HealthCheckConfiguration] = None,
network_configuration: Optional[NetworkConfiguration] = None,
observability_configuration: Optional[ServiceObservabilityConfiguration] = None,
) -> UpdateServiceResponse
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.
Parameters:
-
service_arn(AppRunnerResourceArn) –The Amazon Resource Name (ARN) of the App Runner service that you want to update.
-
source_configuration(Optional[SourceConfiguration], default:None) –The source configuration to apply to the App Runner service.
You can change the configuration of the code or image repository that the service uses. However, you can't switch from code to image or the other way around. This means that you must provide the same structure member of
SourceConfigurationthat you originally included when you created the service. Specifically, you can include eitherCodeRepositoryorImageRepository. To update the source configuration, set the values to members of the structure that you include. -
instance_configuration(Optional[InstanceConfiguration], default:None) –The runtime configuration to apply to instances (scaling units) of your service.
-
auto_scaling_configuration_arn(Optional[AppRunnerResourceArn], default:None) –The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with the App Runner service.
-
health_check_configuration(Optional[HealthCheckConfiguration], default:None) –The settings for the health check that App Runner performs to monitor the health of the App Runner service.
-
network_configuration(Optional[NetworkConfiguration], default:None) –Configuration settings related to network traffic of the web application that the App Runner service runs.
-
observability_configuration(Optional[ServiceObservabilityConfiguration], default:None) –The observability configuration of your service.
Raises:
-
InternalServiceErrorException–An unexpected service exception occurred.
-
InvalidRequestException–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.
-
InvalidStateException–You can't perform this action when the resource is in its current state.
-
ResourceNotFoundException–A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apprunner/_services/app_runner.py
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 | |