@aws-sdk/client-ecr 3.934.0 → 3.935.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/index.js +538 -154
- package/dist-es/ECR.js +10 -0
- package/dist-es/commands/DeregisterPullTimeUpdateExclusionCommand.js +16 -0
- package/dist-es/commands/ListImageReferrersCommand.js +16 -0
- package/dist-es/commands/ListPullTimeUpdateExclusionsCommand.js +16 -0
- package/dist-es/commands/RegisterPullTimeUpdateExclusionCommand.js +16 -0
- package/dist-es/commands/UpdateImageStorageClassCommand.js +16 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +141 -0
- package/dist-es/models/errors.js +551 -0
- package/dist-es/models/models_0.js +1 -595
- package/dist-es/schemas/schemas_0.js +259 -52
- package/dist-types/ECR.d.ts +36 -0
- package/dist-types/ECRClient.d.ts +7 -2
- package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteImageCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetImageCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterPullTimeUpdateExclusionCommand.d.ts +107 -0
- package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImagesCommand.d.ts +11 -8
- package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +9 -1
- package/dist-types/commands/ListImageReferrersCommand.d.ts +224 -0
- package/dist-types/commands/ListImagesCommand.d.ts +1 -0
- package/dist-types/commands/ListPullTimeUpdateExclusionsCommand.d.ts +127 -0
- package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/RegisterPullTimeUpdateExclusionCommand.d.ts +93 -0
- package/dist-types/commands/StartImageScanCommand.d.ts +8 -6
- package/dist-types/commands/UpdateImageStorageClassCommand.d.ts +156 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +349 -0
- package/dist-types/models/errors.d.ts +597 -0
- package/dist-types/models/models_0.d.ts +372 -812
- package/dist-types/schemas/schemas_0.d.ts +29 -0
- package/dist-types/ts3.4/ECR.d.ts +92 -0
- package/dist-types/ts3.4/ECRClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeregisterPullTimeUpdateExclusionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListImageReferrersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPullTimeUpdateExclusionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterPullTimeUpdateExclusionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateImageStorageClassCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +187 -0
- package/dist-types/ts3.4/models/errors.d.ts +369 -0
- package/dist-types/ts3.4/models/models_0.d.ts +100 -461
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +29 -0
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-types/ECR.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { DeleteRegistryPolicyCommandInput, DeleteRegistryPolicyCommandOutput } f
|
|
|
13
13
|
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
|
|
14
14
|
import { DeleteRepositoryCreationTemplateCommandInput, DeleteRepositoryCreationTemplateCommandOutput } from "./commands/DeleteRepositoryCreationTemplateCommand";
|
|
15
15
|
import { DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput } from "./commands/DeleteRepositoryPolicyCommand";
|
|
16
|
+
import { DeregisterPullTimeUpdateExclusionCommandInput, DeregisterPullTimeUpdateExclusionCommandOutput } from "./commands/DeregisterPullTimeUpdateExclusionCommand";
|
|
16
17
|
import { DescribeImageReplicationStatusCommandInput, DescribeImageReplicationStatusCommandOutput } from "./commands/DescribeImageReplicationStatusCommand";
|
|
17
18
|
import { DescribeImageScanFindingsCommandInput, DescribeImageScanFindingsCommandOutput } from "./commands/DescribeImageScanFindingsCommand";
|
|
18
19
|
import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "./commands/DescribeImagesCommand";
|
|
@@ -29,7 +30,9 @@ import { GetRegistryPolicyCommandInput, GetRegistryPolicyCommandOutput } from ".
|
|
|
29
30
|
import { GetRegistryScanningConfigurationCommandInput, GetRegistryScanningConfigurationCommandOutput } from "./commands/GetRegistryScanningConfigurationCommand";
|
|
30
31
|
import { GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput } from "./commands/GetRepositoryPolicyCommand";
|
|
31
32
|
import { InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput } from "./commands/InitiateLayerUploadCommand";
|
|
33
|
+
import { ListImageReferrersCommandInput, ListImageReferrersCommandOutput } from "./commands/ListImageReferrersCommand";
|
|
32
34
|
import { ListImagesCommandInput, ListImagesCommandOutput } from "./commands/ListImagesCommand";
|
|
35
|
+
import { ListPullTimeUpdateExclusionsCommandInput, ListPullTimeUpdateExclusionsCommandOutput } from "./commands/ListPullTimeUpdateExclusionsCommand";
|
|
33
36
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
34
37
|
import { PutAccountSettingCommandInput, PutAccountSettingCommandOutput } from "./commands/PutAccountSettingCommand";
|
|
35
38
|
import { PutImageCommandInput, PutImageCommandOutput } from "./commands/PutImageCommand";
|
|
@@ -39,11 +42,13 @@ import { PutLifecyclePolicyCommandInput, PutLifecyclePolicyCommandOutput } from
|
|
|
39
42
|
import { PutRegistryPolicyCommandInput, PutRegistryPolicyCommandOutput } from "./commands/PutRegistryPolicyCommand";
|
|
40
43
|
import { PutRegistryScanningConfigurationCommandInput, PutRegistryScanningConfigurationCommandOutput } from "./commands/PutRegistryScanningConfigurationCommand";
|
|
41
44
|
import { PutReplicationConfigurationCommandInput, PutReplicationConfigurationCommandOutput } from "./commands/PutReplicationConfigurationCommand";
|
|
45
|
+
import { RegisterPullTimeUpdateExclusionCommandInput, RegisterPullTimeUpdateExclusionCommandOutput } from "./commands/RegisterPullTimeUpdateExclusionCommand";
|
|
42
46
|
import { SetRepositoryPolicyCommandInput, SetRepositoryPolicyCommandOutput } from "./commands/SetRepositoryPolicyCommand";
|
|
43
47
|
import { StartImageScanCommandInput, StartImageScanCommandOutput } from "./commands/StartImageScanCommand";
|
|
44
48
|
import { StartLifecyclePolicyPreviewCommandInput, StartLifecyclePolicyPreviewCommandOutput } from "./commands/StartLifecyclePolicyPreviewCommand";
|
|
45
49
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
46
50
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
51
|
+
import { UpdateImageStorageClassCommandInput, UpdateImageStorageClassCommandOutput } from "./commands/UpdateImageStorageClassCommand";
|
|
47
52
|
import { UpdatePullThroughCacheRuleCommandInput, UpdatePullThroughCacheRuleCommandOutput } from "./commands/UpdatePullThroughCacheRuleCommand";
|
|
48
53
|
import { UpdateRepositoryCreationTemplateCommandInput, UpdateRepositoryCreationTemplateCommandOutput } from "./commands/UpdateRepositoryCreationTemplateCommand";
|
|
49
54
|
import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
|
|
@@ -135,6 +140,12 @@ export interface ECR {
|
|
|
135
140
|
deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRepositoryPolicyCommandOutput>;
|
|
136
141
|
deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, cb: (err: any, data?: DeleteRepositoryPolicyCommandOutput) => void): void;
|
|
137
142
|
deleteRepositoryPolicy(args: DeleteRepositoryPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRepositoryPolicyCommandOutput) => void): void;
|
|
143
|
+
/**
|
|
144
|
+
* @see {@link DeregisterPullTimeUpdateExclusionCommand}
|
|
145
|
+
*/
|
|
146
|
+
deregisterPullTimeUpdateExclusion(args: DeregisterPullTimeUpdateExclusionCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterPullTimeUpdateExclusionCommandOutput>;
|
|
147
|
+
deregisterPullTimeUpdateExclusion(args: DeregisterPullTimeUpdateExclusionCommandInput, cb: (err: any, data?: DeregisterPullTimeUpdateExclusionCommandOutput) => void): void;
|
|
148
|
+
deregisterPullTimeUpdateExclusion(args: DeregisterPullTimeUpdateExclusionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterPullTimeUpdateExclusionCommandOutput) => void): void;
|
|
138
149
|
/**
|
|
139
150
|
* @see {@link DescribeImageReplicationStatusCommand}
|
|
140
151
|
*/
|
|
@@ -238,12 +249,25 @@ export interface ECR {
|
|
|
238
249
|
initiateLayerUpload(args: InitiateLayerUploadCommandInput, options?: __HttpHandlerOptions): Promise<InitiateLayerUploadCommandOutput>;
|
|
239
250
|
initiateLayerUpload(args: InitiateLayerUploadCommandInput, cb: (err: any, data?: InitiateLayerUploadCommandOutput) => void): void;
|
|
240
251
|
initiateLayerUpload(args: InitiateLayerUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InitiateLayerUploadCommandOutput) => void): void;
|
|
252
|
+
/**
|
|
253
|
+
* @see {@link ListImageReferrersCommand}
|
|
254
|
+
*/
|
|
255
|
+
listImageReferrers(args: ListImageReferrersCommandInput, options?: __HttpHandlerOptions): Promise<ListImageReferrersCommandOutput>;
|
|
256
|
+
listImageReferrers(args: ListImageReferrersCommandInput, cb: (err: any, data?: ListImageReferrersCommandOutput) => void): void;
|
|
257
|
+
listImageReferrers(args: ListImageReferrersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImageReferrersCommandOutput) => void): void;
|
|
241
258
|
/**
|
|
242
259
|
* @see {@link ListImagesCommand}
|
|
243
260
|
*/
|
|
244
261
|
listImages(args: ListImagesCommandInput, options?: __HttpHandlerOptions): Promise<ListImagesCommandOutput>;
|
|
245
262
|
listImages(args: ListImagesCommandInput, cb: (err: any, data?: ListImagesCommandOutput) => void): void;
|
|
246
263
|
listImages(args: ListImagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImagesCommandOutput) => void): void;
|
|
264
|
+
/**
|
|
265
|
+
* @see {@link ListPullTimeUpdateExclusionsCommand}
|
|
266
|
+
*/
|
|
267
|
+
listPullTimeUpdateExclusions(): Promise<ListPullTimeUpdateExclusionsCommandOutput>;
|
|
268
|
+
listPullTimeUpdateExclusions(args: ListPullTimeUpdateExclusionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPullTimeUpdateExclusionsCommandOutput>;
|
|
269
|
+
listPullTimeUpdateExclusions(args: ListPullTimeUpdateExclusionsCommandInput, cb: (err: any, data?: ListPullTimeUpdateExclusionsCommandOutput) => void): void;
|
|
270
|
+
listPullTimeUpdateExclusions(args: ListPullTimeUpdateExclusionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPullTimeUpdateExclusionsCommandOutput) => void): void;
|
|
247
271
|
/**
|
|
248
272
|
* @see {@link ListTagsForResourceCommand}
|
|
249
273
|
*/
|
|
@@ -299,6 +323,12 @@ export interface ECR {
|
|
|
299
323
|
putReplicationConfiguration(args: PutReplicationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutReplicationConfigurationCommandOutput>;
|
|
300
324
|
putReplicationConfiguration(args: PutReplicationConfigurationCommandInput, cb: (err: any, data?: PutReplicationConfigurationCommandOutput) => void): void;
|
|
301
325
|
putReplicationConfiguration(args: PutReplicationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutReplicationConfigurationCommandOutput) => void): void;
|
|
326
|
+
/**
|
|
327
|
+
* @see {@link RegisterPullTimeUpdateExclusionCommand}
|
|
328
|
+
*/
|
|
329
|
+
registerPullTimeUpdateExclusion(args: RegisterPullTimeUpdateExclusionCommandInput, options?: __HttpHandlerOptions): Promise<RegisterPullTimeUpdateExclusionCommandOutput>;
|
|
330
|
+
registerPullTimeUpdateExclusion(args: RegisterPullTimeUpdateExclusionCommandInput, cb: (err: any, data?: RegisterPullTimeUpdateExclusionCommandOutput) => void): void;
|
|
331
|
+
registerPullTimeUpdateExclusion(args: RegisterPullTimeUpdateExclusionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterPullTimeUpdateExclusionCommandOutput) => void): void;
|
|
302
332
|
/**
|
|
303
333
|
* @see {@link SetRepositoryPolicyCommand}
|
|
304
334
|
*/
|
|
@@ -329,6 +359,12 @@ export interface ECR {
|
|
|
329
359
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
330
360
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
331
361
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
362
|
+
/**
|
|
363
|
+
* @see {@link UpdateImageStorageClassCommand}
|
|
364
|
+
*/
|
|
365
|
+
updateImageStorageClass(args: UpdateImageStorageClassCommandInput, options?: __HttpHandlerOptions): Promise<UpdateImageStorageClassCommandOutput>;
|
|
366
|
+
updateImageStorageClass(args: UpdateImageStorageClassCommandInput, cb: (err: any, data?: UpdateImageStorageClassCommandOutput) => void): void;
|
|
367
|
+
updateImageStorageClass(args: UpdateImageStorageClassCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateImageStorageClassCommandOutput) => void): void;
|
|
332
368
|
/**
|
|
333
369
|
* @see {@link UpdatePullThroughCacheRuleCommand}
|
|
334
370
|
*/
|
|
@@ -21,6 +21,7 @@ import { DeleteRegistryPolicyCommandInput, DeleteRegistryPolicyCommandOutput } f
|
|
|
21
21
|
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
|
|
22
22
|
import { DeleteRepositoryCreationTemplateCommandInput, DeleteRepositoryCreationTemplateCommandOutput } from "./commands/DeleteRepositoryCreationTemplateCommand";
|
|
23
23
|
import { DeleteRepositoryPolicyCommandInput, DeleteRepositoryPolicyCommandOutput } from "./commands/DeleteRepositoryPolicyCommand";
|
|
24
|
+
import { DeregisterPullTimeUpdateExclusionCommandInput, DeregisterPullTimeUpdateExclusionCommandOutput } from "./commands/DeregisterPullTimeUpdateExclusionCommand";
|
|
24
25
|
import { DescribeImageReplicationStatusCommandInput, DescribeImageReplicationStatusCommandOutput } from "./commands/DescribeImageReplicationStatusCommand";
|
|
25
26
|
import { DescribeImageScanFindingsCommandInput, DescribeImageScanFindingsCommandOutput } from "./commands/DescribeImageScanFindingsCommand";
|
|
26
27
|
import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "./commands/DescribeImagesCommand";
|
|
@@ -37,7 +38,9 @@ import { GetRegistryPolicyCommandInput, GetRegistryPolicyCommandOutput } from ".
|
|
|
37
38
|
import { GetRegistryScanningConfigurationCommandInput, GetRegistryScanningConfigurationCommandOutput } from "./commands/GetRegistryScanningConfigurationCommand";
|
|
38
39
|
import { GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput } from "./commands/GetRepositoryPolicyCommand";
|
|
39
40
|
import { InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput } from "./commands/InitiateLayerUploadCommand";
|
|
41
|
+
import { ListImageReferrersCommandInput, ListImageReferrersCommandOutput } from "./commands/ListImageReferrersCommand";
|
|
40
42
|
import { ListImagesCommandInput, ListImagesCommandOutput } from "./commands/ListImagesCommand";
|
|
43
|
+
import { ListPullTimeUpdateExclusionsCommandInput, ListPullTimeUpdateExclusionsCommandOutput } from "./commands/ListPullTimeUpdateExclusionsCommand";
|
|
41
44
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
42
45
|
import { PutAccountSettingCommandInput, PutAccountSettingCommandOutput } from "./commands/PutAccountSettingCommand";
|
|
43
46
|
import { PutImageCommandInput, PutImageCommandOutput } from "./commands/PutImageCommand";
|
|
@@ -47,11 +50,13 @@ import { PutLifecyclePolicyCommandInput, PutLifecyclePolicyCommandOutput } from
|
|
|
47
50
|
import { PutRegistryPolicyCommandInput, PutRegistryPolicyCommandOutput } from "./commands/PutRegistryPolicyCommand";
|
|
48
51
|
import { PutRegistryScanningConfigurationCommandInput, PutRegistryScanningConfigurationCommandOutput } from "./commands/PutRegistryScanningConfigurationCommand";
|
|
49
52
|
import { PutReplicationConfigurationCommandInput, PutReplicationConfigurationCommandOutput } from "./commands/PutReplicationConfigurationCommand";
|
|
53
|
+
import { RegisterPullTimeUpdateExclusionCommandInput, RegisterPullTimeUpdateExclusionCommandOutput } from "./commands/RegisterPullTimeUpdateExclusionCommand";
|
|
50
54
|
import { SetRepositoryPolicyCommandInput, SetRepositoryPolicyCommandOutput } from "./commands/SetRepositoryPolicyCommand";
|
|
51
55
|
import { StartImageScanCommandInput, StartImageScanCommandOutput } from "./commands/StartImageScanCommand";
|
|
52
56
|
import { StartLifecyclePolicyPreviewCommandInput, StartLifecyclePolicyPreviewCommandOutput } from "./commands/StartLifecyclePolicyPreviewCommand";
|
|
53
57
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
54
58
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
59
|
+
import { UpdateImageStorageClassCommandInput, UpdateImageStorageClassCommandOutput } from "./commands/UpdateImageStorageClassCommand";
|
|
55
60
|
import { UpdatePullThroughCacheRuleCommandInput, UpdatePullThroughCacheRuleCommandOutput } from "./commands/UpdatePullThroughCacheRuleCommand";
|
|
56
61
|
import { UpdateRepositoryCreationTemplateCommandInput, UpdateRepositoryCreationTemplateCommandOutput } from "./commands/UpdateRepositoryCreationTemplateCommand";
|
|
57
62
|
import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
|
|
@@ -62,11 +67,11 @@ export { __Client };
|
|
|
62
67
|
/**
|
|
63
68
|
* @public
|
|
64
69
|
*/
|
|
65
|
-
export type ServiceInputTypes = BatchCheckLayerAvailabilityCommandInput | BatchDeleteImageCommandInput | BatchGetImageCommandInput | BatchGetRepositoryScanningConfigurationCommandInput | CompleteLayerUploadCommandInput | CreatePullThroughCacheRuleCommandInput | CreateRepositoryCommandInput | CreateRepositoryCreationTemplateCommandInput | DeleteLifecyclePolicyCommandInput | DeletePullThroughCacheRuleCommandInput | DeleteRegistryPolicyCommandInput | DeleteRepositoryCommandInput | DeleteRepositoryCreationTemplateCommandInput | DeleteRepositoryPolicyCommandInput | DescribeImageReplicationStatusCommandInput | DescribeImageScanFindingsCommandInput | DescribeImagesCommandInput | DescribePullThroughCacheRulesCommandInput | DescribeRegistryCommandInput | DescribeRepositoriesCommandInput | DescribeRepositoryCreationTemplatesCommandInput | GetAccountSettingCommandInput | GetAuthorizationTokenCommandInput | GetDownloadUrlForLayerCommandInput | GetLifecyclePolicyCommandInput | GetLifecyclePolicyPreviewCommandInput | GetRegistryPolicyCommandInput | GetRegistryScanningConfigurationCommandInput | GetRepositoryPolicyCommandInput | InitiateLayerUploadCommandInput | ListImagesCommandInput | ListTagsForResourceCommandInput | PutAccountSettingCommandInput | PutImageCommandInput | PutImageScanningConfigurationCommandInput | PutImageTagMutabilityCommandInput | PutLifecyclePolicyCommandInput | PutRegistryPolicyCommandInput | PutRegistryScanningConfigurationCommandInput | PutReplicationConfigurationCommandInput | SetRepositoryPolicyCommandInput | StartImageScanCommandInput | StartLifecyclePolicyPreviewCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePullThroughCacheRuleCommandInput | UpdateRepositoryCreationTemplateCommandInput | UploadLayerPartCommandInput | ValidatePullThroughCacheRuleCommandInput;
|
|
70
|
+
export type ServiceInputTypes = BatchCheckLayerAvailabilityCommandInput | BatchDeleteImageCommandInput | BatchGetImageCommandInput | BatchGetRepositoryScanningConfigurationCommandInput | CompleteLayerUploadCommandInput | CreatePullThroughCacheRuleCommandInput | CreateRepositoryCommandInput | CreateRepositoryCreationTemplateCommandInput | DeleteLifecyclePolicyCommandInput | DeletePullThroughCacheRuleCommandInput | DeleteRegistryPolicyCommandInput | DeleteRepositoryCommandInput | DeleteRepositoryCreationTemplateCommandInput | DeleteRepositoryPolicyCommandInput | DeregisterPullTimeUpdateExclusionCommandInput | DescribeImageReplicationStatusCommandInput | DescribeImageScanFindingsCommandInput | DescribeImagesCommandInput | DescribePullThroughCacheRulesCommandInput | DescribeRegistryCommandInput | DescribeRepositoriesCommandInput | DescribeRepositoryCreationTemplatesCommandInput | GetAccountSettingCommandInput | GetAuthorizationTokenCommandInput | GetDownloadUrlForLayerCommandInput | GetLifecyclePolicyCommandInput | GetLifecyclePolicyPreviewCommandInput | GetRegistryPolicyCommandInput | GetRegistryScanningConfigurationCommandInput | GetRepositoryPolicyCommandInput | InitiateLayerUploadCommandInput | ListImageReferrersCommandInput | ListImagesCommandInput | ListPullTimeUpdateExclusionsCommandInput | ListTagsForResourceCommandInput | PutAccountSettingCommandInput | PutImageCommandInput | PutImageScanningConfigurationCommandInput | PutImageTagMutabilityCommandInput | PutLifecyclePolicyCommandInput | PutRegistryPolicyCommandInput | PutRegistryScanningConfigurationCommandInput | PutReplicationConfigurationCommandInput | RegisterPullTimeUpdateExclusionCommandInput | SetRepositoryPolicyCommandInput | StartImageScanCommandInput | StartLifecyclePolicyPreviewCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateImageStorageClassCommandInput | UpdatePullThroughCacheRuleCommandInput | UpdateRepositoryCreationTemplateCommandInput | UploadLayerPartCommandInput | ValidatePullThroughCacheRuleCommandInput;
|
|
66
71
|
/**
|
|
67
72
|
* @public
|
|
68
73
|
*/
|
|
69
|
-
export type ServiceOutputTypes = BatchCheckLayerAvailabilityCommandOutput | BatchDeleteImageCommandOutput | BatchGetImageCommandOutput | BatchGetRepositoryScanningConfigurationCommandOutput | CompleteLayerUploadCommandOutput | CreatePullThroughCacheRuleCommandOutput | CreateRepositoryCommandOutput | CreateRepositoryCreationTemplateCommandOutput | DeleteLifecyclePolicyCommandOutput | DeletePullThroughCacheRuleCommandOutput | DeleteRegistryPolicyCommandOutput | DeleteRepositoryCommandOutput | DeleteRepositoryCreationTemplateCommandOutput | DeleteRepositoryPolicyCommandOutput | DescribeImageReplicationStatusCommandOutput | DescribeImageScanFindingsCommandOutput | DescribeImagesCommandOutput | DescribePullThroughCacheRulesCommandOutput | DescribeRegistryCommandOutput | DescribeRepositoriesCommandOutput | DescribeRepositoryCreationTemplatesCommandOutput | GetAccountSettingCommandOutput | GetAuthorizationTokenCommandOutput | GetDownloadUrlForLayerCommandOutput | GetLifecyclePolicyCommandOutput | GetLifecyclePolicyPreviewCommandOutput | GetRegistryPolicyCommandOutput | GetRegistryScanningConfigurationCommandOutput | GetRepositoryPolicyCommandOutput | InitiateLayerUploadCommandOutput | ListImagesCommandOutput | ListTagsForResourceCommandOutput | PutAccountSettingCommandOutput | PutImageCommandOutput | PutImageScanningConfigurationCommandOutput | PutImageTagMutabilityCommandOutput | PutLifecyclePolicyCommandOutput | PutRegistryPolicyCommandOutput | PutRegistryScanningConfigurationCommandOutput | PutReplicationConfigurationCommandOutput | SetRepositoryPolicyCommandOutput | StartImageScanCommandOutput | StartLifecyclePolicyPreviewCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePullThroughCacheRuleCommandOutput | UpdateRepositoryCreationTemplateCommandOutput | UploadLayerPartCommandOutput | ValidatePullThroughCacheRuleCommandOutput;
|
|
74
|
+
export type ServiceOutputTypes = BatchCheckLayerAvailabilityCommandOutput | BatchDeleteImageCommandOutput | BatchGetImageCommandOutput | BatchGetRepositoryScanningConfigurationCommandOutput | CompleteLayerUploadCommandOutput | CreatePullThroughCacheRuleCommandOutput | CreateRepositoryCommandOutput | CreateRepositoryCreationTemplateCommandOutput | DeleteLifecyclePolicyCommandOutput | DeletePullThroughCacheRuleCommandOutput | DeleteRegistryPolicyCommandOutput | DeleteRepositoryCommandOutput | DeleteRepositoryCreationTemplateCommandOutput | DeleteRepositoryPolicyCommandOutput | DeregisterPullTimeUpdateExclusionCommandOutput | DescribeImageReplicationStatusCommandOutput | DescribeImageScanFindingsCommandOutput | DescribeImagesCommandOutput | DescribePullThroughCacheRulesCommandOutput | DescribeRegistryCommandOutput | DescribeRepositoriesCommandOutput | DescribeRepositoryCreationTemplatesCommandOutput | GetAccountSettingCommandOutput | GetAuthorizationTokenCommandOutput | GetDownloadUrlForLayerCommandOutput | GetLifecyclePolicyCommandOutput | GetLifecyclePolicyPreviewCommandOutput | GetRegistryPolicyCommandOutput | GetRegistryScanningConfigurationCommandOutput | GetRepositoryPolicyCommandOutput | InitiateLayerUploadCommandOutput | ListImageReferrersCommandOutput | ListImagesCommandOutput | ListPullTimeUpdateExclusionsCommandOutput | ListTagsForResourceCommandOutput | PutAccountSettingCommandOutput | PutImageCommandOutput | PutImageScanningConfigurationCommandOutput | PutImageTagMutabilityCommandOutput | PutLifecyclePolicyCommandOutput | PutRegistryPolicyCommandOutput | PutRegistryScanningConfigurationCommandOutput | PutReplicationConfigurationCommandOutput | RegisterPullTimeUpdateExclusionCommandOutput | SetRepositoryPolicyCommandOutput | StartImageScanCommandOutput | StartLifecyclePolicyPreviewCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateImageStorageClassCommandOutput | UpdatePullThroughCacheRuleCommandOutput | UpdateRepositoryCreationTemplateCommandOutput | UploadLayerPartCommandOutput | ValidatePullThroughCacheRuleCommandOutput;
|
|
70
75
|
/**
|
|
71
76
|
* @public
|
|
72
77
|
*/
|
|
@@ -56,7 +56,7 @@ declare const BatchCheckLayerAvailabilityCommand_base: {
|
|
|
56
56
|
* // layers: [ // LayerList
|
|
57
57
|
* // { // Layer
|
|
58
58
|
* // layerDigest: "STRING_VALUE",
|
|
59
|
-
* // layerAvailability: "AVAILABLE" || "UNAVAILABLE",
|
|
59
|
+
* // layerAvailability: "AVAILABLE" || "UNAVAILABLE" || "ARCHIVED",
|
|
60
60
|
* // layerSize: Number("long"),
|
|
61
61
|
* // mediaType: "STRING_VALUE",
|
|
62
62
|
* // },
|
|
@@ -66,7 +66,7 @@ declare const BatchDeleteImageCommand_base: {
|
|
|
66
66
|
* // imageDigest: "STRING_VALUE",
|
|
67
67
|
* // imageTag: "STRING_VALUE",
|
|
68
68
|
* // },
|
|
69
|
-
* // failureCode: "InvalidImageDigest" || "InvalidImageTag" || "ImageTagDoesNotMatchDigest" || "ImageNotFound" || "MissingDigestAndTag" || "ImageReferencedByManifestList" || "KmsError" || "UpstreamAccessDenied" || "UpstreamTooManyRequests" || "UpstreamUnavailable",
|
|
69
|
+
* // failureCode: "InvalidImageDigest" || "InvalidImageTag" || "ImageTagDoesNotMatchDigest" || "ImageNotFound" || "MissingDigestAndTag" || "ImageReferencedByManifestList" || "KmsError" || "UpstreamAccessDenied" || "UpstreamTooManyRequests" || "UpstreamUnavailable" || "ImageInaccessible",
|
|
70
70
|
* // failureReason: "STRING_VALUE",
|
|
71
71
|
* // },
|
|
72
72
|
* // ],
|
|
@@ -73,7 +73,7 @@ declare const BatchGetImageCommand_base: {
|
|
|
73
73
|
* // imageDigest: "STRING_VALUE",
|
|
74
74
|
* // imageTag: "STRING_VALUE",
|
|
75
75
|
* // },
|
|
76
|
-
* // failureCode: "InvalidImageDigest" || "InvalidImageTag" || "ImageTagDoesNotMatchDigest" || "ImageNotFound" || "MissingDigestAndTag" || "ImageReferencedByManifestList" || "KmsError" || "UpstreamAccessDenied" || "UpstreamTooManyRequests" || "UpstreamUnavailable",
|
|
76
|
+
* // failureCode: "InvalidImageDigest" || "InvalidImageTag" || "ImageTagDoesNotMatchDigest" || "ImageNotFound" || "MissingDigestAndTag" || "ImageReferencedByManifestList" || "KmsError" || "UpstreamAccessDenied" || "UpstreamTooManyRequests" || "UpstreamUnavailable" || "ImageInaccessible",
|
|
77
77
|
* // failureReason: "STRING_VALUE",
|
|
78
78
|
* // },
|
|
79
79
|
* // ],
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
|
|
4
|
+
import { DeregisterPullTimeUpdateExclusionRequest, DeregisterPullTimeUpdateExclusionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeregisterPullTimeUpdateExclusionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeregisterPullTimeUpdateExclusionCommandInput extends DeregisterPullTimeUpdateExclusionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeregisterPullTimeUpdateExclusionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeregisterPullTimeUpdateExclusionCommandOutput extends DeregisterPullTimeUpdateExclusionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeregisterPullTimeUpdateExclusionCommand_base: {
|
|
25
|
+
new (input: DeregisterPullTimeUpdateExclusionCommandInput): import("@smithy/smithy-client").CommandImpl<DeregisterPullTimeUpdateExclusionCommandInput, DeregisterPullTimeUpdateExclusionCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeregisterPullTimeUpdateExclusionCommandInput): import("@smithy/smithy-client").CommandImpl<DeregisterPullTimeUpdateExclusionCommandInput, DeregisterPullTimeUpdateExclusionCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Removes a principal from the pull time update exclusion list for a registry. Once removed, Amazon ECR will resume updating the pull time if the specified principal pulls an image.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECRClient, DeregisterPullTimeUpdateExclusionCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
35
|
+
* // const { ECRClient, DeregisterPullTimeUpdateExclusionCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
36
|
+
* // import type { ECRClientConfig } from "@aws-sdk/client-ecr";
|
|
37
|
+
* const config = {}; // type is ECRClientConfig
|
|
38
|
+
* const client = new ECRClient(config);
|
|
39
|
+
* const input = { // DeregisterPullTimeUpdateExclusionRequest
|
|
40
|
+
* principalArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeregisterPullTimeUpdateExclusionCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // DeregisterPullTimeUpdateExclusionResponse
|
|
45
|
+
* // principalArn: "STRING_VALUE",
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param DeregisterPullTimeUpdateExclusionCommandInput - {@link DeregisterPullTimeUpdateExclusionCommandInput}
|
|
51
|
+
* @returns {@link DeregisterPullTimeUpdateExclusionCommandOutput}
|
|
52
|
+
* @see {@link DeregisterPullTimeUpdateExclusionCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link DeregisterPullTimeUpdateExclusionCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ExclusionNotFoundException} (client fault)
|
|
57
|
+
* <p>The specified pull time update exclusion was not found.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
60
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
61
|
+
* request.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
64
|
+
* <p>The operation did not succeed because it would have exceeded a service limit for your
|
|
65
|
+
* account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR service quotas</a> in
|
|
66
|
+
* the Amazon Elastic Container Registry User Guide.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ServerException} (server fault)
|
|
69
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* <p>There was an exception validating this request.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ECRServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @example To remove a principal from the pull time exclusion list
|
|
79
|
+
* ```javascript
|
|
80
|
+
* // This example removes an IAM role from the pull time update exclusion list. Amazon ECR will resume recording image pull timestamps for this principal.
|
|
81
|
+
* const input = {
|
|
82
|
+
* principalArn: "arn:aws:iam::012345678910:role/ECRAccess"
|
|
83
|
+
* };
|
|
84
|
+
* const command = new DeregisterPullTimeUpdateExclusionCommand(input);
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* {
|
|
88
|
+
* principalArn: "arn:aws:iam::012345678910:role/ECRAccess"
|
|
89
|
+
* }
|
|
90
|
+
* *\/
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class DeregisterPullTimeUpdateExclusionCommand extends DeregisterPullTimeUpdateExclusionCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: DeregisterPullTimeUpdateExclusionRequest;
|
|
100
|
+
output: DeregisterPullTimeUpdateExclusionResponse;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: DeregisterPullTimeUpdateExclusionCommandInput;
|
|
104
|
+
output: DeregisterPullTimeUpdateExclusionCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -56,7 +56,7 @@ declare const DescribeImageScanFindingsCommand_base: {
|
|
|
56
56
|
* // imageTag: "STRING_VALUE",
|
|
57
57
|
* // },
|
|
58
58
|
* // imageScanStatus: { // ImageScanStatus
|
|
59
|
-
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED",
|
|
59
|
+
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED" || "IMAGE_ARCHIVED",
|
|
60
60
|
* // description: "STRING_VALUE",
|
|
61
61
|
* // },
|
|
62
62
|
* // imageScanFindings: { // ImageScanFindings
|
|
@@ -35,13 +35,11 @@ declare const DescribeImagesCommand_base: {
|
|
|
35
35
|
* image than the image shown in the Amazon Web Services Management Console.</p>
|
|
36
36
|
* </note>
|
|
37
37
|
* <important>
|
|
38
|
-
* <p>The new version of Amazon ECR
|
|
39
|
-
* <a>ImageDetail$imageScanFindingsSummary</a> and
|
|
40
|
-
* <a>
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* information about Amazon Web Services native basic scanning, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html"> Scan images for software
|
|
44
|
-
* vulnerabilities in Amazon ECR</a>.</p>
|
|
38
|
+
* <p>The new version of Amazon ECR
|
|
39
|
+
* <i>Basic Scanning</i> doesn't use the <a>ImageDetail$imageScanFindingsSummary</a> and <a>ImageDetail$imageScanStatus</a> attributes from the API response to
|
|
40
|
+
* return scan results. Use the <a>DescribeImageScanFindings</a> API
|
|
41
|
+
* instead. For more information about Amazon Web Services native basic scanning, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html"> Scan
|
|
42
|
+
* images for software vulnerabilities in Amazon ECR</a>.</p>
|
|
45
43
|
* </important>
|
|
46
44
|
* @example
|
|
47
45
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -64,6 +62,7 @@ declare const DescribeImagesCommand_base: {
|
|
|
64
62
|
* maxResults: Number("int"),
|
|
65
63
|
* filter: { // DescribeImagesFilter
|
|
66
64
|
* tagStatus: "TAGGED" || "UNTAGGED" || "ANY",
|
|
65
|
+
* imageStatus: "ACTIVE" || "ARCHIVED" || "ACTIVATING" || "ANY",
|
|
67
66
|
* },
|
|
68
67
|
* };
|
|
69
68
|
* const command = new DescribeImagesCommand(input);
|
|
@@ -80,7 +79,7 @@ declare const DescribeImagesCommand_base: {
|
|
|
80
79
|
* // imageSizeInBytes: Number("long"),
|
|
81
80
|
* // imagePushedAt: new Date("TIMESTAMP"),
|
|
82
81
|
* // imageScanStatus: { // ImageScanStatus
|
|
83
|
-
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED",
|
|
82
|
+
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED" || "IMAGE_ARCHIVED",
|
|
84
83
|
* // description: "STRING_VALUE",
|
|
85
84
|
* // },
|
|
86
85
|
* // imageScanFindingsSummary: { // ImageScanFindingsSummary
|
|
@@ -93,6 +92,10 @@ declare const DescribeImagesCommand_base: {
|
|
|
93
92
|
* // imageManifestMediaType: "STRING_VALUE",
|
|
94
93
|
* // artifactMediaType: "STRING_VALUE",
|
|
95
94
|
* // lastRecordedPullTime: new Date("TIMESTAMP"),
|
|
95
|
+
* // subjectManifestDigest: "STRING_VALUE",
|
|
96
|
+
* // imageStatus: "ACTIVE" || "ARCHIVED" || "ACTIVATING",
|
|
97
|
+
* // lastArchivedAt: new Date("TIMESTAMP"),
|
|
98
|
+
* // lastActivatedAt: new Date("TIMESTAMP"),
|
|
96
99
|
* // },
|
|
97
100
|
* // ],
|
|
98
101
|
* // nextToken: "STRING_VALUE",
|
|
@@ -68,13 +68,21 @@ declare const GetLifecyclePolicyPreviewCommand_base: {
|
|
|
68
68
|
* // imageDigest: "STRING_VALUE",
|
|
69
69
|
* // imagePushedAt: new Date("TIMESTAMP"),
|
|
70
70
|
* // action: { // LifecyclePolicyRuleAction
|
|
71
|
-
* // type: "EXPIRE",
|
|
71
|
+
* // type: "EXPIRE" || "TRANSITION",
|
|
72
|
+
* // targetStorageClass: "ARCHIVE",
|
|
72
73
|
* // },
|
|
73
74
|
* // appliedRulePriority: Number("int"),
|
|
75
|
+
* // storageClass: "ARCHIVE" || "STANDARD",
|
|
74
76
|
* // },
|
|
75
77
|
* // ],
|
|
76
78
|
* // summary: { // LifecyclePolicyPreviewSummary
|
|
77
79
|
* // expiringImageTotalCount: Number("int"),
|
|
80
|
+
* // transitioningImageTotalCounts: [ // TransitioningImageTotalCounts
|
|
81
|
+
* // { // TransitioningImageTotalCount
|
|
82
|
+
* // targetStorageClass: "ARCHIVE",
|
|
83
|
+
* // imageTotalCount: Number("int"),
|
|
84
|
+
* // },
|
|
85
|
+
* // ],
|
|
78
86
|
* // },
|
|
79
87
|
* // };
|
|
80
88
|
*
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
|
|
4
|
+
import { ListImageReferrersRequest, ListImageReferrersResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListImageReferrersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListImageReferrersCommandInput extends ListImageReferrersRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListImageReferrersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListImageReferrersCommandOutput extends ListImageReferrersResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListImageReferrersCommand_base: {
|
|
25
|
+
new (input: ListImageReferrersCommandInput): import("@smithy/smithy-client").CommandImpl<ListImageReferrersCommandInput, ListImageReferrersCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListImageReferrersCommandInput): import("@smithy/smithy-client").CommandImpl<ListImageReferrersCommandInput, ListImageReferrersCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists the artifacts associated with a specified subject image.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECRClient, ListImageReferrersCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
35
|
+
* // const { ECRClient, ListImageReferrersCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
36
|
+
* // import type { ECRClientConfig } from "@aws-sdk/client-ecr";
|
|
37
|
+
* const config = {}; // type is ECRClientConfig
|
|
38
|
+
* const client = new ECRClient(config);
|
|
39
|
+
* const input = { // ListImageReferrersRequest
|
|
40
|
+
* registryId: "STRING_VALUE",
|
|
41
|
+
* repositoryName: "STRING_VALUE", // required
|
|
42
|
+
* subjectId: { // SubjectIdentifier
|
|
43
|
+
* imageDigest: "STRING_VALUE", // required
|
|
44
|
+
* },
|
|
45
|
+
* filter: { // ListImageReferrersFilter
|
|
46
|
+
* artifactTypes: [ // ArtifactTypeList
|
|
47
|
+
* "STRING_VALUE",
|
|
48
|
+
* ],
|
|
49
|
+
* artifactStatus: "ACTIVE" || "ARCHIVED" || "ACTIVATING" || "ANY",
|
|
50
|
+
* },
|
|
51
|
+
* nextToken: "STRING_VALUE",
|
|
52
|
+
* maxResults: Number("int"),
|
|
53
|
+
* };
|
|
54
|
+
* const command = new ListImageReferrersCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // ListImageReferrersResponse
|
|
57
|
+
* // referrers: [ // ImageReferrerList
|
|
58
|
+
* // { // ImageReferrer
|
|
59
|
+
* // digest: "STRING_VALUE", // required
|
|
60
|
+
* // mediaType: "STRING_VALUE", // required
|
|
61
|
+
* // artifactType: "STRING_VALUE",
|
|
62
|
+
* // size: Number("long"), // required
|
|
63
|
+
* // annotations: { // Annotations
|
|
64
|
+
* // "<keys>": "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // artifactStatus: "ACTIVE" || "ARCHIVED" || "ACTIVATING",
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // nextToken: "STRING_VALUE",
|
|
70
|
+
* // };
|
|
71
|
+
*
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @param ListImageReferrersCommandInput - {@link ListImageReferrersCommandInput}
|
|
75
|
+
* @returns {@link ListImageReferrersCommandOutput}
|
|
76
|
+
* @see {@link ListImageReferrersCommandInput} for command's `input` shape.
|
|
77
|
+
* @see {@link ListImageReferrersCommandOutput} for command's `response` shape.
|
|
78
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
81
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
82
|
+
* request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link RepositoryNotFoundException} (client fault)
|
|
85
|
+
* <p>The specified repository could not be found. Check the spelling of the specified
|
|
86
|
+
* repository and ensure that you are performing operations on the correct registry.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ServerException} (server fault)
|
|
89
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ValidationException} (client fault)
|
|
92
|
+
* <p>There was an exception validating this request.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ECRServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @example To list both active and archived artifacts
|
|
99
|
+
* ```javascript
|
|
100
|
+
* // This example lists all artifacts including those that have been archived, by specifying the artifactStatus filter as ANY.
|
|
101
|
+
* const input = {
|
|
102
|
+
* filter: {
|
|
103
|
+
* artifactStatus: "ANY"
|
|
104
|
+
* },
|
|
105
|
+
* repositoryName: "sample-repo",
|
|
106
|
+
* subjectId: {
|
|
107
|
+
* imageDigest: "sha256:943e640159415616581703a53fa4ed87e96740655fd67daf2d2146a35337bce5"
|
|
108
|
+
* }
|
|
109
|
+
* };
|
|
110
|
+
* const command = new ListImageReferrersCommand(input);
|
|
111
|
+
* const response = await client.send(command);
|
|
112
|
+
* /* response is
|
|
113
|
+
* {
|
|
114
|
+
* referrers: [
|
|
115
|
+
* {
|
|
116
|
+
* annotations: {
|
|
117
|
+
* dev.sigstore.bundle.content: "dsse-envelope",
|
|
118
|
+
* dev.sigstore.bundle.predicateType: "https://sigstore.dev/cosign/sign/v1",
|
|
119
|
+
* org.opencontainers.image.created: "2025-11-17T22:00:33Z"
|
|
120
|
+
* },
|
|
121
|
+
* artifactStatus: "ACTIVE",
|
|
122
|
+
* artifactType: "application/vnd.dev.sigstore.bundle.v0.3+json",
|
|
123
|
+
* digest: "sha256:270c60be5b6ed41e6e7c505ac0c4e2577748affc14147bcba76b533604dc7a07",
|
|
124
|
+
* mediaType: "application/vnd.oci.image.manifest.v1+json",
|
|
125
|
+
* size: 888
|
|
126
|
+
* },
|
|
127
|
+
* {
|
|
128
|
+
* annotations: {
|
|
129
|
+
* dev.sigstore.bundle.predicateType: "https://sigstore.dev/cosign/sign/v1",
|
|
130
|
+
* org.opencontainers.image.created: "2025-10-15T14:30:00Z"
|
|
131
|
+
* },
|
|
132
|
+
* artifactStatus: "ARCHIVED",
|
|
133
|
+
* artifactType: "application/vnd.dev.sigstore.bundle.v0.2+json",
|
|
134
|
+
* digest: "sha256:5a1c89f2b3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0",
|
|
135
|
+
* mediaType: "application/vnd.oci.image.manifest.v1+json",
|
|
136
|
+
* size: 856
|
|
137
|
+
* }
|
|
138
|
+
* ]
|
|
139
|
+
* }
|
|
140
|
+
* *\/
|
|
141
|
+
* ```
|
|
142
|
+
*
|
|
143
|
+
* @example To list artifacts associated with a subject image
|
|
144
|
+
* ```javascript
|
|
145
|
+
* // This example lists all artifacts (such as Sigstore signatures) that reference a specific container image in the sample-repo repository.
|
|
146
|
+
* const input = {
|
|
147
|
+
* repositoryName: "sample-repo",
|
|
148
|
+
* subjectId: {
|
|
149
|
+
* imageDigest: "sha256:943e640159415616581703a53fa4ed87e96740655fd67daf2d2146a35337bce5"
|
|
150
|
+
* }
|
|
151
|
+
* };
|
|
152
|
+
* const command = new ListImageReferrersCommand(input);
|
|
153
|
+
* const response = await client.send(command);
|
|
154
|
+
* /* response is
|
|
155
|
+
* {
|
|
156
|
+
* referrers: [
|
|
157
|
+
* {
|
|
158
|
+
* annotations: {
|
|
159
|
+
* dev.sigstore.bundle.content: "dsse-envelope",
|
|
160
|
+
* dev.sigstore.bundle.predicateType: "https://sigstore.dev/cosign/sign/v1",
|
|
161
|
+
* org.opencontainers.image.created: "2025-11-17T22:00:33Z"
|
|
162
|
+
* },
|
|
163
|
+
* artifactStatus: "ACTIVE",
|
|
164
|
+
* artifactType: "application/vnd.dev.sigstore.bundle.v0.3+json",
|
|
165
|
+
* digest: "sha256:270c60be5b6ed41e6e7c505ac0c4e2577748affc14147bcba76b533604dc7a07",
|
|
166
|
+
* mediaType: "application/vnd.oci.image.manifest.v1+json",
|
|
167
|
+
* size: 888
|
|
168
|
+
* }
|
|
169
|
+
* ]
|
|
170
|
+
* }
|
|
171
|
+
* *\/
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* @example To list artifacts of a specific type
|
|
175
|
+
* ```javascript
|
|
176
|
+
* // This example lists only Sigstore bundle artifacts associated with a subject image by filtering on the artifact type.
|
|
177
|
+
* const input = {
|
|
178
|
+
* filter: {
|
|
179
|
+
* artifactTypes: [
|
|
180
|
+
* "application/vnd.dev.sigstore.bundle.v0.3+json"
|
|
181
|
+
* ]
|
|
182
|
+
* },
|
|
183
|
+
* repositoryName: "sample-repo",
|
|
184
|
+
* subjectId: {
|
|
185
|
+
* imageDigest: "sha256:943e640159415616581703a53fa4ed87e96740655fd67daf2d2146a35337bce5"
|
|
186
|
+
* }
|
|
187
|
+
* };
|
|
188
|
+
* const command = new ListImageReferrersCommand(input);
|
|
189
|
+
* const response = await client.send(command);
|
|
190
|
+
* /* response is
|
|
191
|
+
* {
|
|
192
|
+
* referrers: [
|
|
193
|
+
* {
|
|
194
|
+
* annotations: {
|
|
195
|
+
* dev.sigstore.bundle.content: "dsse-envelope",
|
|
196
|
+
* dev.sigstore.bundle.predicateType: "https://sigstore.dev/cosign/sign/v1",
|
|
197
|
+
* org.opencontainers.image.created: "2025-11-17T22:00:33Z"
|
|
198
|
+
* },
|
|
199
|
+
* artifactStatus: "ACTIVE",
|
|
200
|
+
* artifactType: "application/vnd.dev.sigstore.bundle.v0.3+json",
|
|
201
|
+
* digest: "sha256:270c60be5b6ed41e6e7c505ac0c4e2577748affc14147bcba76b533604dc7a07",
|
|
202
|
+
* mediaType: "application/vnd.oci.image.manifest.v1+json",
|
|
203
|
+
* size: 888
|
|
204
|
+
* }
|
|
205
|
+
* ]
|
|
206
|
+
* }
|
|
207
|
+
* *\/
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export declare class ListImageReferrersCommand extends ListImageReferrersCommand_base {
|
|
213
|
+
/** @internal type navigation helper, not in runtime. */
|
|
214
|
+
protected static __types: {
|
|
215
|
+
api: {
|
|
216
|
+
input: ListImageReferrersRequest;
|
|
217
|
+
output: ListImageReferrersResponse;
|
|
218
|
+
};
|
|
219
|
+
sdk: {
|
|
220
|
+
input: ListImageReferrersCommandInput;
|
|
221
|
+
output: ListImageReferrersCommandOutput;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
}
|
|
@@ -49,6 +49,7 @@ declare const ListImagesCommand_base: {
|
|
|
49
49
|
* maxResults: Number("int"),
|
|
50
50
|
* filter: { // ListImagesFilter
|
|
51
51
|
* tagStatus: "TAGGED" || "UNTAGGED" || "ANY",
|
|
52
|
+
* imageStatus: "ACTIVE" || "ARCHIVED" || "ACTIVATING" || "ANY",
|
|
52
53
|
* },
|
|
53
54
|
* };
|
|
54
55
|
* const command = new ListImagesCommand(input);
|