update_app
¶
update_app(
app_arn: Arn,
*,
config_overrides: Optional[resiliencehubClientConfig] = 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/resiliencehub.py
4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 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 | |