list_application_revisions
¶
list_application_revisions(
application_name: ApplicationName,
*,
config_overrides: Optional[CodeDeployClientConfig] = None,
sort_by: Optional[ApplicationRevisionSortBy] = None,
sort_order: Optional[SortOrder] = None,
s3_bucket: Optional[S3Bucket] = None,
s3_key_prefix: Optional[S3Key] = None,
deployed: Optional[ListStateFilterAction] = None,
next_token: Optional[NextToken] = None,
) -> ListApplicationRevisionsOutput
Lists information about revisions for an application.
Parameters:
-
application_name(ApplicationName) –The name of an CodeDeploy application associated with the user or Amazon Web Services account.
-
sort_by(Optional[ApplicationRevisionSortBy], default:None) –The column name to use to sort the list results:
-
registerTime: Sort by the time the revisions were registered with CodeDeploy. -
firstUsedTime: Sort by the time the revisions were first used in a deployment. -
lastUsedTime: Sort by the time the revisions were last used in a deployment.
If not specified or set to null, the results are returned in an arbitrary order.
-
-
sort_order(Optional[SortOrder], default:None) –The order in which to sort the list results:
-
ascending: ascending order. -
descending: descending order.
If not specified, the results are sorted in ascending order.
If set to null, the results are sorted in an arbitrary order.
-
-
s3_bucket(Optional[S3Bucket], default:None) –An Amazon S3 bucket name to limit the search for revisions.
If set to null, all of the user's buckets are searched.
-
s3_key_prefix(Optional[S3Key], default:None) –A key prefix for the set of Amazon S3 objects to limit the search for revisions.
-
deployed(Optional[ListStateFilterAction], default:None) –Whether to list revisions based on whether the revision is the target revision of a deployment group:
-
include: List revisions that are target revisions of a deployment group. -
exclude: Do not list revisions that are target revisions of a deployment group. -
ignore: List all revisions.
-
-
next_token(Optional[NextToken], default:None) –An identifier returned from the previous
ListApplicationRevisionscall. It can be used to return the next set of applications in the list.
Raises:
-
ApplicationDoesNotExistException–The application does not exist with the user or Amazon Web Services account.
-
ApplicationNameRequiredException–The minimum number of required application names was not specified.
-
BucketNameFilterRequiredException–A bucket name is required, but was not provided.
-
InvalidApplicationNameException–The application name was specified in an invalid format.
-
InvalidBucketNameFilterException–The bucket name either doesn't exist or was specified in an invalid format.
-
InvalidDeployedStateFilterException–The deployed state filter was specified in an invalid format.
-
InvalidKeyPrefixFilterException–The specified key prefix filter was specified in an invalid format.
-
InvalidNextTokenException–The next token was specified in an invalid format.
-
InvalidSortByException–The column name to sort by is either not present or was specified in an invalid format.
-
InvalidSortOrderException–The sort order was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codedeploy/_services/code_deploy.py
1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 | |