update_app
async
¶
update_app(
app_id: AppId,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = 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/async_app_monetization.py
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 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 | |