update_app
async
¶
update_app(
app_arn: Arn,
*,
config_overrides: Optional[AsyncresiliencehubClientConfig] = None,
description: Optional[EntityDescription] = None,
policy_arn: Optional[Arn] = None,
clear_resiliency_policy_arn: Optional[BooleanOptional] = None,
assessment_schedule: Optional[AppAssessmentScheduleType] = None,
permission_model: Optional[PermissionModel] = None,
event_subscriptions: Optional[EventSubscriptionList] = None,
) -> UpdateAppResponse
Updates an application.
Parameters:
-
app_arn(Arn) –Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. -
description(Optional[EntityDescription], default:None) –The optional description for an app.
-
policy_arn(Optional[Arn], default:None) –Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. -
clear_resiliency_policy_arn(Optional[BooleanOptional], default:None) –Specifies if the resiliency policy ARN should be cleared.
-
assessment_schedule(Optional[AppAssessmentScheduleType], default:None) –Assessment execution schedule with 'Daily' or 'Disabled' values.
-
permission_model(Optional[PermissionModel], default:None) –Defines the roles and credentials that Resilience Hub would use while creating an application, importing its resources, and running an assessment.
-
event_subscriptions(Optional[EventSubscriptionList], default:None) –The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
Raises:
-
AccessDeniedException–You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions.
-
ConflictException–This exception occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
InternalServerException–This exception occurs when there is an internal failure in the Resilience Hub service.
-
ResourceNotFoundException–This exception occurs when the specified resource could not be found.
-
ThrottlingException–This exception occurs when you have exceeded the limit on the number of requests per second.
-
ValidationException–This exception occurs when a request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resiliencehub/_services/async_resiliencehub.py
4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 | |