list_fleets
async
¶
list_fleets(
*,
config_overrides: Optional[AsyncCodeBuildClientConfig] = 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/async_code_build.py
2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 | |