ECR / Client / describe_pull_through_cache_rules
describe_pull_through_cache_rules#
- ECR.Client.describe_pull_through_cache_rules(**kwargs)#
- Returns the pull through cache rules for a registry. - See also: AWS API Documentation - Request Syntax- response = client.describe_pull_through_cache_rules( registryId='string', ecrRepositoryPrefixes=[ 'string', ], nextToken='string', maxResults=123 ) - Parameters:
- registryId (string) – 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. 
- ecrRepositoryPrefixes (list) – - 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. - (string) – 
 
- nextToken (string) – The - nextTokenvalue returned from a previous paginated- DescribePullThroughCacheRulesRequestrequest where- maxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the- nextTokenvalue. This value is null when there are no more results to return.
- maxResults (integer) – The maximum number of pull through cache rules returned by - DescribePullThroughCacheRulesRequestin paginated output. When this parameter is used,- DescribePullThroughCacheRulesRequestonly returns- maxResultsresults in a single page along with a- nextTokenresponse element. The remaining results of the initial request can be seen by sending another- DescribePullThroughCacheRulesRequestrequest with the returned- nextTokenvalue. This value can be between 1 and 1000. If this parameter is not used, then- DescribePullThroughCacheRulesRequestreturns up to 100 results and a- nextTokenvalue, if applicable.
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'pullThroughCacheRules': [ { 'ecrRepositoryPrefix': 'string', 'upstreamRegistryUrl': 'string', 'createdAt': datetime(2015, 1, 1), 'registryId': 'string' }, ], 'nextToken': 'string' } - Response Structure- (dict) – - pullThroughCacheRules (list) – - The details of the pull through cache rules. - (dict) – - The details of a pull through cache rule. - ecrRepositoryPrefix (string) – - The Amazon ECR repository prefix associated with the pull through cache rule. 
- upstreamRegistryUrl (string) – - The upstream registry URL associated with the pull through cache rule. 
- createdAt (datetime) – - The date and time the pull through cache was created. 
- registryId (string) – - The Amazon Web Services account ID associated with the registry the pull through cache rule is associated with. 
 
 
- nextToken (string) – - The - nextTokenvalue to include in a future- DescribePullThroughCacheRulesRequestrequest. When the results of a- DescribePullThroughCacheRulesRequestrequest exceed- maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
 
 
 - Exceptions- ECR.Client.exceptions.ServerException
- ECR.Client.exceptions.InvalidParameterException
- ECR.Client.exceptions.ValidationException
- ECR.Client.exceptions.PullThroughCacheRuleNotFoundException