get_lifecycle_policy_preview
¶
get_lifecycle_policy_preview(
repository_name: RepositoryName,
*,
config_overrides: Optional[ECRClientConfig] = 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/ecr.py
2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 | |