get_lifecycle_policy_preview
async
¶
get_lifecycle_policy_preview(
repository_name: RepositoryName,
*,
config_overrides: Optional[AsyncECRClientConfig] = None,
registry_id: Optional[RegistryId] = None,
image_ids: Optional[ImageIdentifierList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[LifecyclePreviewMaxResults] = None,
filter: Optional[LifecyclePolicyPreviewFilter] = None,
) -> GetLifecyclePolicyPreviewResponse
Retrieves the results of the lifecycle policy preview request for the specified repository.
Parameters:
-
registry_id(Optional[RegistryId], default:None) –The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
-
repository_name(RepositoryName) –The name of the repository.
-
image_ids(Optional[ImageIdentifierList], default:None) –The list of imageIDs to be included.
-
next_token(Optional[NextToken], default:None) –The
nextTokenvalue returned from a previous paginatedGetLifecyclePolicyPreviewRequestrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return. This option cannot be used when you specify images withimageIds. -
max_results(Optional[LifecyclePreviewMaxResults], default:None) –The maximum number of repository results returned by
GetLifecyclePolicyPreviewRequestin paginated output. When this parameter is used,GetLifecyclePolicyPreviewRequestonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherGetLifecyclePolicyPreviewRequestrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenGetLifecyclePolicyPreviewRequestreturns up to 100 results and anextTokenvalue, if applicable. This option cannot be used when you specify images withimageIds. -
filter(Optional[LifecyclePolicyPreviewFilter], default:None) –An optional parameter that filters results based on image tag status and all tags, if tagged.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
LifecyclePolicyPreviewNotFoundException–There is no dry run for this repository.
-
RepositoryNotFoundException–The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.
-
ServerException–These errors are usually caused by a server-side issue.
-
ValidationException–There was an exception validating this request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ecr/_services/async_ecr.py
2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 | |