update_app
¶
update_app(
app_id: AppId,
*,
config_overrides: Optional[AppMonetizationClientConfig] = None,
name: Optional[AppName] = None,
description: Optional[AppDescription] = None,
identifier: Optional[ResourceArn] = None,
scope: Optional[RequestScope] = None,
cost_tracking: Optional[CostTrackingConfiguration] = None,
) -> UpdateAppResponse
Updates an existing app. This operation is idempotent.
Parameters:
-
app_id(AppId) –The ID of the app to update. You can identify the app by either its ID or its Amazon Resource Name (ARN). If you provide both, they must refer to the same app.
-
name(Optional[AppName], default:None) –A human-readable display name for the app.
-
description(Optional[AppDescription], default:None) –The new description. An empty string clears it; omitting the member keeps the current one.
-
identifier(Optional[ResourceArn], default:None) –The Amazon Resource Name (ARN) of the app. You can identify the app by either its ID or its ARN. If you provide both, they must refer to the same app. A sandbox ARN names the app's sandbox; if you also send scope, the two must name the same environment.
-
scope(Optional[RequestScope], default:None) –The environment to act on: live or sandbox. Optional. You can name the environment with this member, with a sandbox resource ARN, or both; if you send both they must name the same environment, or the request is rejected.
-
cost_tracking(Optional[CostTrackingConfiguration], default:None) –Optional cost-tracking configuration: the IAM role AWS App Monetization uses to track this app's AWS costs. Passing a role also requires permission for iam:PassRole on it. You can send it with or without a new name or description.
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
ConflictException–The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The referenced resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request failed input validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appmonetization/_services/app_monetization.py
3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 | |