describe_project_versions
async
¶
describe_project_versions(
project_arn: ProjectArn,
*,
config_overrides: Optional[AsyncRekognitionClientConfig] = None,
version_names: Optional[VersionNames] = None,
next_token: Optional[ExtendedPaginationToken] = None,
max_results: Optional[ProjectVersionsPageSize] = None,
) -> DescribeProjectVersionsResponse
Lists and describes the versions of an Amazon Rekognition project. You can specify up to 10 model or adapter versions in ProjectVersionArns. If you don't specify a value, descriptions for all model/adapter versions in the project are returned.
This operation requires permissions to perform the rekognition:DescribeProjectVersions action.
Parameters:
-
project_arn(ProjectArn) –The Amazon Resource Name (ARN) of the project that contains the model/adapter you want to describe.
-
version_names(Optional[VersionNames], default:None) –A list of model or project version names that you want to describe. You can add up to 10 model or project version names to the list. If you don't specify a value, all project version descriptions are returned. A version name is part of a project version ARN. For example,
my-model.2020-01-21T09.10.15is the version name in the following ARN.arn:aws:rekognition:us-east-1:123456789012:project/getting-started/version/my-model.2020-01-21T09.10.15/1234567890123. -
next_token(Optional[ExtendedPaginationToken], default:None) –If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
-
max_results(Optional[ProjectVersionsPageSize], default:None) –The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
Raises:
-
AccessDeniedException–You are not authorized to perform the action.
-
InternalServerError–Amazon Rekognition experienced a service issue. Try your call again.
-
InvalidPaginationTokenException–Pagination token in the request is not valid.
-
InvalidParameterException–Input parameter violated a constraint. Validate your parameter before calling the API operation again.
-
ProvisionedThroughputExceededException–The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.
-
ResourceNotFoundException–The resource specified in the request cannot be found.
-
ThrottlingException–Amazon Rekognition is temporarily unable to process the request. Try your call again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rekognition/_services/async_rekognition.py
1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 | |