Returns the resolution status for the specified resolution identifier for an application version. If resolutionId is not specified, the current resolution status is returned.
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.
-
app_version
(EntityVersion)
–
The version of the application.
-
resolution_id
(Optional[String255], default:
None
)
–
The identifier for a specific resolution.
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.
-
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
| def describe_app_version_resources_resolution_status(
self,
app_arn: "capo_resiliencehub.types.arn.Arn",
app_version: "capo_resiliencehub.types.entity_version.EntityVersion",
*,
config_overrides: Optional[resiliencehubClientConfig] = None,
resolution_id: Optional["capo_resiliencehub.types.string255.String255"] = None,
) -> "capo_resiliencehub.types.describe_app_version_resources_resolution_status_response.DescribeAppVersionResourcesResolutionStatusResponse":
"""<p>Returns the resolution status for the specified resolution identifier for an application version. If <code>resolutionId</code> is not specified, the current resolution status is returned.</p>
Args:
app_arn: <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
app_version: <p>The version of the application.</p>
resolution_id: <p>The identifier for a specific resolution.</p>
Raises:
capo_resiliencehub.errors.access_denied_exception.AccessDeniedException: <p>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.</p>
capo_resiliencehub.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Resilience Hub service.</p>
capo_resiliencehub.errors.resource_not_found_exception.ResourceNotFoundException: <p>This exception occurs when the specified resource could not be found.</p>
capo_resiliencehub.errors.throttling_exception.ThrottlingException: <p>This exception occurs when you have exceeded the limit on the number of requests per second.</p>
capo_resiliencehub.errors.validation_exception.ValidationException: <p>This exception occurs when a request is not valid.</p>
capo_resiliencehub.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_resiliencehub.types.describe_app_version_resources_resolution_status_request.DescribeAppVersionResourcesResolutionStatusRequest]",
) -> OperationResponse[
"capo_resiliencehub.types.describe_app_version_resources_resolution_status_response.DescribeAppVersionResourcesResolutionStatusResponse"
]:
import capo_resiliencehub._operations.aws_resilience_hub.describe_app_version_resources_resolution_status
output, http_response = (
capo_resiliencehub._operations.aws_resilience_hub.describe_app_version_resources_resolution_status.describe_app_version_resources_resolution_status(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeAppVersionResourcesResolutionStatus"),
)
input_: capo_resiliencehub.types.describe_app_version_resources_resolution_status_request.DescribeAppVersionResourcesResolutionStatusRequest = {
"app_arn": app_arn,
"app_version": app_version,
}
if resolution_id is not None:
input_["resolution_id"] = resolution_id
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|