describe_pull_through_cache_rules
¶
describe_pull_through_cache_rules(
*,
config_overrides: Optional[ECRClientConfig] = None,
registry_id: Optional[RegistryId] = None,
ecr_repository_prefixes: Optional[PullThroughCacheRuleRepositoryPrefixList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> DescribePullThroughCacheRulesResponse
Returns the pull through cache rules for a registry.
Parameters:
-
registry_id(Optional[RegistryId], default:None) –The Amazon Web Services account ID associated with the registry to return the pull through cache rules for. If you do not specify a registry, the default registry is assumed.
-
ecr_repository_prefixes(Optional[PullThroughCacheRuleRepositoryPrefixList], default:None) –The Amazon ECR repository prefixes associated with the pull through cache rules to return. If no repository prefix value is specified, all pull through cache rules are returned.
-
next_token(Optional[NextToken], default:None) –The
nextTokenvalue returned from a previous paginatedDescribePullThroughCacheRulesRequestrequest 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 is null when there are no more results to return. -
max_results(Optional[MaxResults], default:None) –The maximum number of pull through cache rules returned by
DescribePullThroughCacheRulesRequestin paginated output. When this parameter is used,DescribePullThroughCacheRulesRequestonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribePullThroughCacheRulesRequestrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter is not used, thenDescribePullThroughCacheRulesRequestreturns up to 100 results and anextTokenvalue, if applicable.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
PullThroughCacheRuleNotFoundException–The pull through cache rule was not found. Specify a valid pull through cache rule and try again.
-
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
1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 | |