list_fleets
¶
list_fleets(
*,
config_overrides: Optional[CodeBuildClientConfig] = None,
next_token: Optional[SensitiveString] = None,
max_results: Optional[PageSize] = None,
sort_order: Optional[SortOrderType] = None,
sort_by: Optional[FleetSortByType] = None,
) -> ListFleetsOutput
Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
Parameters:
-
next_token(Optional[SensitiveString], default:None) –During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
-
max_results(Optional[PageSize], default:None) –The maximum number of paginated compute fleets returned per response. Use
nextTokento iterate pages in the list of returned compute fleets. -
sort_order(Optional[SortOrderType], default:None) –The order in which to list compute fleets. Valid values include:
-
ASCENDING: List in ascending order. -
DESCENDING: List in descending order.
Use
sortByto specify the criterion to be used to list compute fleet names. -
-
sort_by(Optional[FleetSortByType], default:None) –The criterion to be used to list compute fleet names. Valid values include:
-
CREATED_TIME: List based on when each compute fleet was created. -
LAST_MODIFIED_TIME: List based on when information about each compute fleet was last changed. -
NAME: List based on each compute fleet's name.
Use
sortOrderto specify in what order to list the compute fleet names based on the preceding criteria. -
Raises:
-
InvalidInputException–The input value that was provided is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codebuild/_services/code_build.py
2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 | |