list_apps
async
¶
list_apps(
*,
config_overrides: Optional[AsyncresiliencehubClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
name: Optional[EntityName] = None,
app_arn: Optional[Arn] = None,
from_last_assessment_time: Optional[TimeStamp] = None,
to_last_assessment_time: Optional[TimeStamp] = None,
reverse_order: Optional[BooleanOptional] = None,
aws_application_arn: Optional[Arn] = None,
) -> ListAppsResponse
Lists your Resilience Hub applications.
You can filter applications using only one filter at a time or without using any filter. If you try to filter applications using multiple filters, you will get the following error:
An error occurred (ValidationException) when calling the ListApps operation: Only one filter is supported for this operation.
Parameters:
-
next_token(Optional[NextToken], default:None) –Null, or the token from a previous call to get the next set of results.
-
max_results(Optional[MaxResults], default:None) –Maximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved. -
name(Optional[EntityName], default:None) –The name for the one of the listed applications.
-
app_arn(Optional[Arn], default:None) –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. -
from_last_assessment_time(Optional[TimeStamp], default:None) –Lower limit of the range that is used to filter applications based on their last assessment times.
-
to_last_assessment_time(Optional[TimeStamp], default:None) –Upper limit of the range that is used to filter the applications based on their last assessment times.
-
reverse_order(Optional[BooleanOptional], default:None) –The application list is sorted based on the values of
lastAppComplianceEvaluationTimefield. By default, application list is sorted in ascending order. To sort the application list in descending order, set this field toTrue. -
aws_application_arn(Optional[Arn], default:None) –Amazon Resource Name (ARN) of Resource Groups group that is integrated with an AppRegistry application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
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.
-
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
2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 | |