update_app_version_resource
async
¶
update_app_version_resource(
app_arn: Arn,
*,
config_overrides: Optional[AsyncresiliencehubClientConfig] = None,
resource_name: Optional[EntityName] = None,
logical_resource_id: Optional[LogicalResourceId] = None,
physical_resource_id: Optional[String2048] = None,
aws_region: Optional[AwsRegion] = None,
aws_account_id: Optional[CustomerId] = None,
resource_type: Optional[String255] = None,
app_components: Optional[AppComponentNameList] = None,
additional_info: Optional[AdditionalInfoMap] = None,
excluded: Optional[BooleanOptional] = None,
) -> UpdateAppVersionResourceResponse
Updates the resource details in the Resilience Hub application.
-
This action has no effect outside Resilience Hub.
-
This API updates the Resilience Hub application draft version. To use this resource for running resiliency assessments, you must publish the Resilience Hub application using the
PublishAppVersionAPI. -
To update application version with new
physicalResourceID, you must callResolveAppVersionResourcesAPI.
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. -
resource_name(Optional[EntityName], default:None) –Name of the resource.
-
logical_resource_id(Optional[LogicalResourceId], default:None) –Logical identifier of the resource.
-
physical_resource_id(Optional[String2048], default:None) –Physical identifier of the resource.
-
aws_region(Optional[AwsRegion], default:None) –Amazon Web Services region that owns the physical resource.
-
aws_account_id(Optional[CustomerId], default:None) –Amazon Web Services account that owns the physical resource.
-
resource_type(Optional[String255], default:None) –Type of resource.
-
app_components(Optional[AppComponentNameList], default:None) –List of Application Components that this resource belongs to. If an Application Component is not part of the Resilience Hub application, it will be added.
-
additional_info(Optional[AdditionalInfoMap], default:None) –Currently, there is no supported additional information for resources.
-
excluded(Optional[BooleanOptional], default:None) –Indicates if a resource is excluded from an Resilience Hub application.
You can exclude only imported resources from an Resilience Hub application.
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.
-
ServiceQuotaExceededException–This exception occurs when you have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
-
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
4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 | |