Skip to content

Commit 459df0b

Browse files
author
awstools
committed
feat(client-ecr): Add UnableToListUpstreamImageReferrersException in ListImageReferrers
1 parent c5badfd commit 459df0b

7 files changed

Lines changed: 65 additions & 6 deletions

File tree

clients/client-ecr/src/commands/ListImageReferrersCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ export interface ListImageReferrersCommandOutput extends ListImageReferrersRespo
9191
* @throws {@link ServerException} (server fault)
9292
* <p>These errors are usually caused by a server-side issue.</p>
9393
*
94+
* @throws {@link UnableToListUpstreamImageReferrersException} (client fault)
95+
* <p>The referrer or referrers were unable to be listed using the pull through cache rule. This
96+
* is usually caused because of an issue with the Secrets Manager secret containing the credentials
97+
* for the upstream registry.</p>
98+
*
9499
* @throws {@link ValidationException} (client fault)
95100
* <p>There was an exception validating this request.</p>
96101
*

clients/client-ecr/src/models/errors.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,28 @@ export class LifecyclePolicyPreviewNotFoundException extends __BaseException {
735735
}
736736
}
737737

738+
/**
739+
* <p>The referrer or referrers were unable to be listed using the pull through cache rule. This
740+
* is usually caused because of an issue with the Secrets Manager secret containing the credentials
741+
* for the upstream registry.</p>
742+
* @public
743+
*/
744+
export class UnableToListUpstreamImageReferrersException extends __BaseException {
745+
readonly name = "UnableToListUpstreamImageReferrersException" as const;
746+
readonly $fault = "client" as const;
747+
/**
748+
* @internal
749+
*/
750+
constructor(opts: __ExceptionOptionType<UnableToListUpstreamImageReferrersException, __BaseException>) {
751+
super({
752+
name: "UnableToListUpstreamImageReferrersException",
753+
$fault: "client",
754+
...opts,
755+
});
756+
Object.setPrototypeOf(this, UnableToListUpstreamImageReferrersException.prototype);
757+
}
758+
}
759+
738760
/**
739761
* <p>The specified image has already been pushed, and there were no changes to the manifest
740762
* or image tag after the last push.</p>

clients/client-ecr/src/models/models_0.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,9 @@ export interface DescribeImagesFilter {
15651565
tagStatus?: TagStatus | undefined;
15661566

15671567
/**
1568-
* <p>The image status with which to filter your <a>DescribeImages</a> results. Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>.</p>
1568+
* <p>The image status with which to filter your <a>DescribeImages</a> results.
1569+
* Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>.
1570+
* If not specified, only images with <code>ACTIVE</code> status are returned.</p>
15691571
* @public
15701572
*/
15711573
imageStatus?: ImageStatusFilter | undefined;
@@ -3602,7 +3604,7 @@ export interface ListImageReferrersRequest {
36023604
* response element. The remaining results of the initial request can be seen by sending
36033605
* another <code>ListImageReferrers</code> request with the returned <code>nextToken</code> value.
36043606
* This value can be between 1 and 50. If this parameter is
3605-
* not used, then <code>ListImageReferrers</code> returns up to 50 results and a
3607+
* not used, then <code>ListImageReferrers</code> returns up to 20 results and a
36063608
* <code>nextToken</code> value, if applicable.</p>
36073609
* @public
36083610
*/
@@ -3684,7 +3686,9 @@ export interface ListImagesFilter {
36843686
tagStatus?: TagStatus | undefined;
36853687

36863688
/**
3687-
* <p>The image status with which to filter your <a>ListImages</a> results. Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>.</p>
3689+
* <p>The image status with which to filter your <a>ListImages</a> results.
3690+
* Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>.
3691+
* If not specified, only images with <code>ACTIVE</code> status are returned.</p>
36883692
* @public
36893693
*/
36903694
imageStatus?: ImageStatusFilter | undefined;

clients/client-ecr/src/schemas/schemas_0.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ const _UTASE = "UnableToAccessSecretException";
301301
const _UTDSVE = "UnableToDecryptSecretValueException";
302302
const _UTGUIE = "UnableToGetUpstreamImageException";
303303
const _UTGULE = "UnableToGetUpstreamLayerException";
304+
const _UTLUIRE = "UnableToListUpstreamImageReferrersException";
304305
const _UURE = "UnsupportedUpstreamRegistryException";
305306
const _V = "Value";
306307
const _VE = "ValidationException";
@@ -560,6 +561,7 @@ import {
560561
UnableToDecryptSecretValueException,
561562
UnableToGetUpstreamImageException,
562563
UnableToGetUpstreamLayerException,
564+
UnableToListUpstreamImageReferrersException,
563565
UnsupportedImageTypeException,
564566
UnsupportedUpstreamRegistryException,
565567
UploadNotFoundException,
@@ -823,6 +825,12 @@ export var UnableToGetUpstreamLayerException$: StaticErrorSchema = [-3, n0, _UTG
823825
[0]
824826
];
825827
n0_registry.registerError(UnableToGetUpstreamLayerException$, UnableToGetUpstreamLayerException);
828+
export var UnableToListUpstreamImageReferrersException$: StaticErrorSchema = [-3, n0, _UTLUIRE,
829+
{ [_e]: _c },
830+
[_m],
831+
[0]
832+
];
833+
n0_registry.registerError(UnableToListUpstreamImageReferrersException$, UnableToListUpstreamImageReferrersException);
826834
export var UnsupportedImageTypeException$: StaticErrorSchema = [-3, n0, _UITE,
827835
{ [_e]: _c },
828836
[_m],

clients/client-ecr/test/index-objects.spec.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ import {
383383
UnableToGetUpstreamImageException$,
384384
UnableToGetUpstreamLayerException,
385385
UnableToGetUpstreamLayerException$,
386+
UnableToListUpstreamImageReferrersException,
387+
UnableToListUpstreamImageReferrersException$,
386388
UnsupportedImageTypeException,
387389
UnsupportedImageTypeException$,
388390
UnsupportedUpstreamRegistryException,
@@ -830,6 +832,8 @@ assert(UnableToGetUpstreamImageException.prototype instanceof ECRServiceExceptio
830832
assert(typeof UnableToGetUpstreamImageException$ === "object");
831833
assert(UnableToGetUpstreamLayerException.prototype instanceof ECRServiceException);
832834
assert(typeof UnableToGetUpstreamLayerException$ === "object");
835+
assert(UnableToListUpstreamImageReferrersException.prototype instanceof ECRServiceException);
836+
assert(typeof UnableToListUpstreamImageReferrersException$ === "object");
833837
assert(UnsupportedImageTypeException.prototype instanceof ECRServiceException);
834838
assert(typeof UnsupportedImageTypeException$ === "object");
835839
assert(UnsupportedUpstreamRegistryException.prototype instanceof ECRServiceException);

clients/client-ecr/test/index-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ export type {
418418
UnableToDecryptSecretValueException,
419419
UnableToGetUpstreamImageException,
420420
UnableToGetUpstreamLayerException,
421+
UnableToListUpstreamImageReferrersException,
421422
UnsupportedImageTypeException,
422423
UnsupportedUpstreamRegistryException,
423424
UploadNotFoundException,

codegen/sdk-codegen/aws-models/ecr.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4480,7 +4480,7 @@
44804480
"imageStatus": {
44814481
"target": "com.amazonaws.ecr#ImageStatusFilter",
44824482
"traits": {
4483-
"smithy.api#documentation": "<p>The image status with which to filter your <a>DescribeImages</a> results. Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>.</p>"
4483+
"smithy.api#documentation": "<p>The image status with which to filter your <a>DescribeImages</a> results.\n Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>. \n If not specified, only images with <code>ACTIVE</code> status are returned.</p>"
44844484
}
44854485
}
44864486
},
@@ -7391,6 +7391,9 @@
73917391
{
73927392
"target": "com.amazonaws.ecr#ServerException"
73937393
},
7394+
{
7395+
"target": "com.amazonaws.ecr#UnableToListUpstreamImageReferrersException"
7396+
},
73947397
{
73957398
"target": "com.amazonaws.ecr#ValidationException"
73967399
}
@@ -7554,7 +7557,7 @@
75547557
"maxResults": {
75557558
"target": "com.amazonaws.ecr#FiftyMaxResults",
75567559
"traits": {
7557-
"smithy.api#documentation": "<p>The maximum number of image referrer results returned by <code>ListImageReferrers</code> in paginated\n output. When this parameter is used, <code>ListImageReferrers</code> only returns\n <code>maxResults</code> results in a single page along with a <code>nextToken</code>\n response element. The remaining results of the initial request can be seen by sending\n another <code>ListImageReferrers</code> request with the returned <code>nextToken</code> value.\n This value can be between 1 and 50. If this parameter is\n not used, then <code>ListImageReferrers</code> returns up to 50 results and a\n <code>nextToken</code> value, if applicable.</p>"
7560+
"smithy.api#documentation": "<p>The maximum number of image referrer results returned by <code>ListImageReferrers</code> in paginated\n output. When this parameter is used, <code>ListImageReferrers</code> only returns\n <code>maxResults</code> results in a single page along with a <code>nextToken</code>\n response element. The remaining results of the initial request can be seen by sending\n another <code>ListImageReferrers</code> request with the returned <code>nextToken</code> value.\n This value can be between 1 and 50. If this parameter is\n not used, then <code>ListImageReferrers</code> returns up to 20 results and a\n <code>nextToken</code> value, if applicable.</p>"
75587561
}
75597562
}
75607563
},
@@ -7655,7 +7658,7 @@
76557658
"imageStatus": {
76567659
"target": "com.amazonaws.ecr#ImageStatusFilter",
76577660
"traits": {
7658-
"smithy.api#documentation": "<p>The image status with which to filter your <a>ListImages</a> results. Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>.</p>"
7661+
"smithy.api#documentation": "<p>The image status with which to filter your <a>ListImages</a> results.\n Valid values are <code>ACTIVE</code>, <code>ARCHIVED</code>, and <code>ACTIVATING</code>.\n If not specified, only images with <code>ACTIVE</code> status are returned.</p>"
76597662
}
76607663
}
76617664
},
@@ -10576,6 +10579,18 @@
1057610579
"smithy.api#error": "client"
1057710580
}
1057810581
},
10582+
"com.amazonaws.ecr#UnableToListUpstreamImageReferrersException": {
10583+
"type": "structure",
10584+
"members": {
10585+
"message": {
10586+
"target": "com.amazonaws.ecr#ExceptionMessage"
10587+
}
10588+
},
10589+
"traits": {
10590+
"smithy.api#documentation": "<p>The referrer or referrers were unable to be listed using the pull through cache rule. This\n is usually caused because of an issue with the Secrets Manager secret containing the credentials\n for the upstream registry.</p>",
10591+
"smithy.api#error": "client"
10592+
}
10593+
},
1057910594
"com.amazonaws.ecr#UnsupportedImageTypeException": {
1058010595
"type": "structure",
1058110596
"members": {

0 commit comments

Comments
 (0)