@aws-sdk/client-ecr 3.758.0 → 3.772.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/dist-cjs/index.js +62 -53
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +8 -0
- package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +6 -2
- package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +2 -0
- package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +3 -1
- package/dist-types/commands/UpdatePullThroughCacheRuleCommand.d.ts +4 -1
- package/dist-types/commands/ValidatePullThroughCacheRuleCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +105 -18
- package/dist-types/ts3.4/models/models_0.d.ts +15 -1
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
BatchCheckLayerAvailabilityCommand: () => BatchCheckLayerAvailabilityCommand,
|
|
25
25
|
BatchDeleteImageCommand: () => BatchDeleteImageCommand,
|
|
26
26
|
BatchGetImageCommand: () => BatchGetImageCommand,
|
|
@@ -144,7 +144,7 @@ __export(src_exports, {
|
|
|
144
144
|
waitUntilImageScanComplete: () => waitUntilImageScanComplete,
|
|
145
145
|
waitUntilLifecyclePolicyPreviewComplete: () => waitUntilLifecyclePolicyPreviewComplete
|
|
146
146
|
});
|
|
147
|
-
module.exports = __toCommonJS(
|
|
147
|
+
module.exports = __toCommonJS(index_exports);
|
|
148
148
|
|
|
149
149
|
// src/ECRClient.ts
|
|
150
150
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
@@ -271,9 +271,9 @@ var ECRClient = class extends import_smithy_client.Client {
|
|
|
271
271
|
this.middlewareStack.use(
|
|
272
272
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
273
273
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultECRHttpAuthSchemeParametersProvider,
|
|
274
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
274
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
275
275
|
"aws.auth#sigv4": config.credentials
|
|
276
|
-
})
|
|
276
|
+
}), "identityProviderConfigProvider")
|
|
277
277
|
})
|
|
278
278
|
);
|
|
279
279
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -573,6 +573,7 @@ var UploadNotFoundException = class _UploadNotFoundException extends ECRServiceE
|
|
|
573
573
|
var UpstreamRegistry = {
|
|
574
574
|
AzureContainerRegistry: "azure-container-registry",
|
|
575
575
|
DockerHub: "docker-hub",
|
|
576
|
+
Ecr: "ecr",
|
|
576
577
|
EcrPublic: "ecr-public",
|
|
577
578
|
GitHubContainerRegistry: "github-container-registry",
|
|
578
579
|
GitLabContainerRegistry: "gitlab-container-registry",
|
|
@@ -2608,7 +2609,7 @@ var se_UploadLayerPartRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
2608
2609
|
var de_AuthorizationData = /* @__PURE__ */ __name((output, context) => {
|
|
2609
2610
|
return (0, import_smithy_client.take)(output, {
|
|
2610
2611
|
authorizationToken: import_smithy_client.expectString,
|
|
2611
|
-
expiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2612
|
+
expiresAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "expiresAt"),
|
|
2612
2613
|
proxyEndpoint: import_smithy_client.expectString
|
|
2613
2614
|
});
|
|
2614
2615
|
}, "de_AuthorizationData");
|
|
@@ -2625,30 +2626,32 @@ var de_AwsEcrContainerImageDetails = /* @__PURE__ */ __name((output, context) =>
|
|
|
2625
2626
|
imageHash: import_smithy_client.expectString,
|
|
2626
2627
|
imageTags: import_smithy_client._json,
|
|
2627
2628
|
platform: import_smithy_client.expectString,
|
|
2628
|
-
pushedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2629
|
+
pushedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "pushedAt"),
|
|
2629
2630
|
registry: import_smithy_client.expectString,
|
|
2630
2631
|
repositoryName: import_smithy_client.expectString
|
|
2631
2632
|
});
|
|
2632
2633
|
}, "de_AwsEcrContainerImageDetails");
|
|
2633
2634
|
var de_CreatePullThroughCacheRuleResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2634
2635
|
return (0, import_smithy_client.take)(output, {
|
|
2635
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2636
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
2636
2637
|
credentialArn: import_smithy_client.expectString,
|
|
2638
|
+
customRoleArn: import_smithy_client.expectString,
|
|
2637
2639
|
ecrRepositoryPrefix: import_smithy_client.expectString,
|
|
2638
2640
|
registryId: import_smithy_client.expectString,
|
|
2639
2641
|
upstreamRegistry: import_smithy_client.expectString,
|
|
2640
|
-
upstreamRegistryUrl: import_smithy_client.expectString
|
|
2642
|
+
upstreamRegistryUrl: import_smithy_client.expectString,
|
|
2643
|
+
upstreamRepositoryPrefix: import_smithy_client.expectString
|
|
2641
2644
|
});
|
|
2642
2645
|
}, "de_CreatePullThroughCacheRuleResponse");
|
|
2643
2646
|
var de_CreateRepositoryCreationTemplateResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2644
2647
|
return (0, import_smithy_client.take)(output, {
|
|
2645
2648
|
registryId: import_smithy_client.expectString,
|
|
2646
|
-
repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context)
|
|
2649
|
+
repositoryCreationTemplate: /* @__PURE__ */ __name((_) => de_RepositoryCreationTemplate(_, context), "repositoryCreationTemplate")
|
|
2647
2650
|
});
|
|
2648
2651
|
}, "de_CreateRepositoryCreationTemplateResponse");
|
|
2649
2652
|
var de_CreateRepositoryResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2650
2653
|
return (0, import_smithy_client.take)(output, {
|
|
2651
|
-
repository: (_) => de_Repository(_, context)
|
|
2654
|
+
repository: /* @__PURE__ */ __name((_) => de_Repository(_, context), "repository")
|
|
2652
2655
|
});
|
|
2653
2656
|
}, "de_CreateRepositoryResponse");
|
|
2654
2657
|
var de_CvssScore = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2676,7 +2679,7 @@ var de_CvssScoreList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2676
2679
|
}, "de_CvssScoreList");
|
|
2677
2680
|
var de_DeleteLifecyclePolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2678
2681
|
return (0, import_smithy_client.take)(output, {
|
|
2679
|
-
lastEvaluatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2682
|
+
lastEvaluatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastEvaluatedAt"),
|
|
2680
2683
|
lifecyclePolicyText: import_smithy_client.expectString,
|
|
2681
2684
|
registryId: import_smithy_client.expectString,
|
|
2682
2685
|
repositoryName: import_smithy_client.expectString
|
|
@@ -2684,28 +2687,30 @@ var de_DeleteLifecyclePolicyResponse = /* @__PURE__ */ __name((output, context)
|
|
|
2684
2687
|
}, "de_DeleteLifecyclePolicyResponse");
|
|
2685
2688
|
var de_DeletePullThroughCacheRuleResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2686
2689
|
return (0, import_smithy_client.take)(output, {
|
|
2687
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2690
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
2688
2691
|
credentialArn: import_smithy_client.expectString,
|
|
2692
|
+
customRoleArn: import_smithy_client.expectString,
|
|
2689
2693
|
ecrRepositoryPrefix: import_smithy_client.expectString,
|
|
2690
2694
|
registryId: import_smithy_client.expectString,
|
|
2691
|
-
upstreamRegistryUrl: import_smithy_client.expectString
|
|
2695
|
+
upstreamRegistryUrl: import_smithy_client.expectString,
|
|
2696
|
+
upstreamRepositoryPrefix: import_smithy_client.expectString
|
|
2692
2697
|
});
|
|
2693
2698
|
}, "de_DeletePullThroughCacheRuleResponse");
|
|
2694
2699
|
var de_DeleteRepositoryCreationTemplateResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2695
2700
|
return (0, import_smithy_client.take)(output, {
|
|
2696
2701
|
registryId: import_smithy_client.expectString,
|
|
2697
|
-
repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context)
|
|
2702
|
+
repositoryCreationTemplate: /* @__PURE__ */ __name((_) => de_RepositoryCreationTemplate(_, context), "repositoryCreationTemplate")
|
|
2698
2703
|
});
|
|
2699
2704
|
}, "de_DeleteRepositoryCreationTemplateResponse");
|
|
2700
2705
|
var de_DeleteRepositoryResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2701
2706
|
return (0, import_smithy_client.take)(output, {
|
|
2702
|
-
repository: (_) => de_Repository(_, context)
|
|
2707
|
+
repository: /* @__PURE__ */ __name((_) => de_Repository(_, context), "repository")
|
|
2703
2708
|
});
|
|
2704
2709
|
}, "de_DeleteRepositoryResponse");
|
|
2705
2710
|
var de_DescribeImageScanFindingsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2706
2711
|
return (0, import_smithy_client.take)(output, {
|
|
2707
2712
|
imageId: import_smithy_client._json,
|
|
2708
|
-
imageScanFindings: (_) => de_ImageScanFindings(_, context),
|
|
2713
|
+
imageScanFindings: /* @__PURE__ */ __name((_) => de_ImageScanFindings(_, context), "imageScanFindings"),
|
|
2709
2714
|
imageScanStatus: import_smithy_client._json,
|
|
2710
2715
|
nextToken: import_smithy_client.expectString,
|
|
2711
2716
|
registryId: import_smithy_client.expectString,
|
|
@@ -2714,27 +2719,27 @@ var de_DescribeImageScanFindingsResponse = /* @__PURE__ */ __name((output, conte
|
|
|
2714
2719
|
}, "de_DescribeImageScanFindingsResponse");
|
|
2715
2720
|
var de_DescribeImagesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2716
2721
|
return (0, import_smithy_client.take)(output, {
|
|
2717
|
-
imageDetails: (_) => de_ImageDetailList(_, context),
|
|
2722
|
+
imageDetails: /* @__PURE__ */ __name((_) => de_ImageDetailList(_, context), "imageDetails"),
|
|
2718
2723
|
nextToken: import_smithy_client.expectString
|
|
2719
2724
|
});
|
|
2720
2725
|
}, "de_DescribeImagesResponse");
|
|
2721
2726
|
var de_DescribePullThroughCacheRulesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2722
2727
|
return (0, import_smithy_client.take)(output, {
|
|
2723
2728
|
nextToken: import_smithy_client.expectString,
|
|
2724
|
-
pullThroughCacheRules: (_) => de_PullThroughCacheRuleList(_, context)
|
|
2729
|
+
pullThroughCacheRules: /* @__PURE__ */ __name((_) => de_PullThroughCacheRuleList(_, context), "pullThroughCacheRules")
|
|
2725
2730
|
});
|
|
2726
2731
|
}, "de_DescribePullThroughCacheRulesResponse");
|
|
2727
2732
|
var de_DescribeRepositoriesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2728
2733
|
return (0, import_smithy_client.take)(output, {
|
|
2729
2734
|
nextToken: import_smithy_client.expectString,
|
|
2730
|
-
repositories: (_) => de_RepositoryList(_, context)
|
|
2735
|
+
repositories: /* @__PURE__ */ __name((_) => de_RepositoryList(_, context), "repositories")
|
|
2731
2736
|
});
|
|
2732
2737
|
}, "de_DescribeRepositoriesResponse");
|
|
2733
2738
|
var de_DescribeRepositoryCreationTemplatesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2734
2739
|
return (0, import_smithy_client.take)(output, {
|
|
2735
2740
|
nextToken: import_smithy_client.expectString,
|
|
2736
2741
|
registryId: import_smithy_client.expectString,
|
|
2737
|
-
repositoryCreationTemplates: (_) => de_RepositoryCreationTemplateList(_, context)
|
|
2742
|
+
repositoryCreationTemplates: /* @__PURE__ */ __name((_) => de_RepositoryCreationTemplateList(_, context), "repositoryCreationTemplates")
|
|
2738
2743
|
});
|
|
2739
2744
|
}, "de_DescribeRepositoryCreationTemplatesResponse");
|
|
2740
2745
|
var de_EnhancedImageScanFinding = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2743,19 +2748,19 @@ var de_EnhancedImageScanFinding = /* @__PURE__ */ __name((output, context) => {
|
|
|
2743
2748
|
description: import_smithy_client.expectString,
|
|
2744
2749
|
exploitAvailable: import_smithy_client.expectString,
|
|
2745
2750
|
findingArn: import_smithy_client.expectString,
|
|
2746
|
-
firstObservedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2751
|
+
firstObservedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "firstObservedAt"),
|
|
2747
2752
|
fixAvailable: import_smithy_client.expectString,
|
|
2748
|
-
lastObservedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2749
|
-
packageVulnerabilityDetails: (_) => de_PackageVulnerabilityDetails(_, context),
|
|
2753
|
+
lastObservedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastObservedAt"),
|
|
2754
|
+
packageVulnerabilityDetails: /* @__PURE__ */ __name((_) => de_PackageVulnerabilityDetails(_, context), "packageVulnerabilityDetails"),
|
|
2750
2755
|
remediation: import_smithy_client._json,
|
|
2751
|
-
resources: (_) => de_ResourceList(_, context),
|
|
2756
|
+
resources: /* @__PURE__ */ __name((_) => de_ResourceList(_, context), "resources"),
|
|
2752
2757
|
score: import_smithy_client.limitedParseDouble,
|
|
2753
|
-
scoreDetails: (_) => de_ScoreDetails(_, context),
|
|
2758
|
+
scoreDetails: /* @__PURE__ */ __name((_) => de_ScoreDetails(_, context), "scoreDetails"),
|
|
2754
2759
|
severity: import_smithy_client.expectString,
|
|
2755
2760
|
status: import_smithy_client.expectString,
|
|
2756
2761
|
title: import_smithy_client.expectString,
|
|
2757
2762
|
type: import_smithy_client.expectString,
|
|
2758
|
-
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
2763
|
+
updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
|
|
2759
2764
|
});
|
|
2760
2765
|
}, "de_EnhancedImageScanFinding");
|
|
2761
2766
|
var de_EnhancedImageScanFindingList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2766,14 +2771,14 @@ var de_EnhancedImageScanFindingList = /* @__PURE__ */ __name((output, context) =
|
|
|
2766
2771
|
}, "de_EnhancedImageScanFindingList");
|
|
2767
2772
|
var de_GetAuthorizationTokenResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2768
2773
|
return (0, import_smithy_client.take)(output, {
|
|
2769
|
-
authorizationData: (_) => de_AuthorizationDataList(_, context)
|
|
2774
|
+
authorizationData: /* @__PURE__ */ __name((_) => de_AuthorizationDataList(_, context), "authorizationData")
|
|
2770
2775
|
});
|
|
2771
2776
|
}, "de_GetAuthorizationTokenResponse");
|
|
2772
2777
|
var de_GetLifecyclePolicyPreviewResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2773
2778
|
return (0, import_smithy_client.take)(output, {
|
|
2774
2779
|
lifecyclePolicyText: import_smithy_client.expectString,
|
|
2775
2780
|
nextToken: import_smithy_client.expectString,
|
|
2776
|
-
previewResults: (_) => de_LifecyclePolicyPreviewResultList(_, context),
|
|
2781
|
+
previewResults: /* @__PURE__ */ __name((_) => de_LifecyclePolicyPreviewResultList(_, context), "previewResults"),
|
|
2777
2782
|
registryId: import_smithy_client.expectString,
|
|
2778
2783
|
repositoryName: import_smithy_client.expectString,
|
|
2779
2784
|
status: import_smithy_client.expectString,
|
|
@@ -2782,7 +2787,7 @@ var de_GetLifecyclePolicyPreviewResponse = /* @__PURE__ */ __name((output, conte
|
|
|
2782
2787
|
}, "de_GetLifecyclePolicyPreviewResponse");
|
|
2783
2788
|
var de_GetLifecyclePolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2784
2789
|
return (0, import_smithy_client.take)(output, {
|
|
2785
|
-
lastEvaluatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2790
|
+
lastEvaluatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastEvaluatedAt"),
|
|
2786
2791
|
lifecyclePolicyText: import_smithy_client.expectString,
|
|
2787
2792
|
registryId: import_smithy_client.expectString,
|
|
2788
2793
|
repositoryName: import_smithy_client.expectString
|
|
@@ -2793,12 +2798,12 @@ var de_ImageDetail = /* @__PURE__ */ __name((output, context) => {
|
|
|
2793
2798
|
artifactMediaType: import_smithy_client.expectString,
|
|
2794
2799
|
imageDigest: import_smithy_client.expectString,
|
|
2795
2800
|
imageManifestMediaType: import_smithy_client.expectString,
|
|
2796
|
-
imagePushedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2797
|
-
imageScanFindingsSummary: (_) => de_ImageScanFindingsSummary(_, context),
|
|
2801
|
+
imagePushedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "imagePushedAt"),
|
|
2802
|
+
imageScanFindingsSummary: /* @__PURE__ */ __name((_) => de_ImageScanFindingsSummary(_, context), "imageScanFindingsSummary"),
|
|
2798
2803
|
imageScanStatus: import_smithy_client._json,
|
|
2799
2804
|
imageSizeInBytes: import_smithy_client.expectLong,
|
|
2800
2805
|
imageTags: import_smithy_client._json,
|
|
2801
|
-
lastRecordedPullTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2806
|
+
lastRecordedPullTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastRecordedPullTime"),
|
|
2802
2807
|
registryId: import_smithy_client.expectString,
|
|
2803
2808
|
repositoryName: import_smithy_client.expectString
|
|
2804
2809
|
});
|
|
@@ -2811,18 +2816,18 @@ var de_ImageDetailList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2811
2816
|
}, "de_ImageDetailList");
|
|
2812
2817
|
var de_ImageScanFindings = /* @__PURE__ */ __name((output, context) => {
|
|
2813
2818
|
return (0, import_smithy_client.take)(output, {
|
|
2814
|
-
enhancedFindings: (_) => de_EnhancedImageScanFindingList(_, context),
|
|
2819
|
+
enhancedFindings: /* @__PURE__ */ __name((_) => de_EnhancedImageScanFindingList(_, context), "enhancedFindings"),
|
|
2815
2820
|
findingSeverityCounts: import_smithy_client._json,
|
|
2816
2821
|
findings: import_smithy_client._json,
|
|
2817
|
-
imageScanCompletedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2818
|
-
vulnerabilitySourceUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
2822
|
+
imageScanCompletedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "imageScanCompletedAt"),
|
|
2823
|
+
vulnerabilitySourceUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "vulnerabilitySourceUpdatedAt")
|
|
2819
2824
|
});
|
|
2820
2825
|
}, "de_ImageScanFindings");
|
|
2821
2826
|
var de_ImageScanFindingsSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2822
2827
|
return (0, import_smithy_client.take)(output, {
|
|
2823
2828
|
findingSeverityCounts: import_smithy_client._json,
|
|
2824
|
-
imageScanCompletedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2825
|
-
vulnerabilitySourceUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
2829
|
+
imageScanCompletedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "imageScanCompletedAt"),
|
|
2830
|
+
vulnerabilitySourceUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "vulnerabilitySourceUpdatedAt")
|
|
2826
2831
|
});
|
|
2827
2832
|
}, "de_ImageScanFindingsSummary");
|
|
2828
2833
|
var de_LifecyclePolicyPreviewResult = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2830,7 +2835,7 @@ var de_LifecyclePolicyPreviewResult = /* @__PURE__ */ __name((output, context) =
|
|
|
2830
2835
|
action: import_smithy_client._json,
|
|
2831
2836
|
appliedRulePriority: import_smithy_client.expectInt32,
|
|
2832
2837
|
imageDigest: import_smithy_client.expectString,
|
|
2833
|
-
imagePushedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2838
|
+
imagePushedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "imagePushedAt"),
|
|
2834
2839
|
imageTags: import_smithy_client._json
|
|
2835
2840
|
});
|
|
2836
2841
|
}, "de_LifecyclePolicyPreviewResult");
|
|
@@ -2842,27 +2847,29 @@ var de_LifecyclePolicyPreviewResultList = /* @__PURE__ */ __name((output, contex
|
|
|
2842
2847
|
}, "de_LifecyclePolicyPreviewResultList");
|
|
2843
2848
|
var de_PackageVulnerabilityDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2844
2849
|
return (0, import_smithy_client.take)(output, {
|
|
2845
|
-
cvss: (_) => de_CvssScoreList(_, context),
|
|
2850
|
+
cvss: /* @__PURE__ */ __name((_) => de_CvssScoreList(_, context), "cvss"),
|
|
2846
2851
|
referenceUrls: import_smithy_client._json,
|
|
2847
2852
|
relatedVulnerabilities: import_smithy_client._json,
|
|
2848
2853
|
source: import_smithy_client.expectString,
|
|
2849
2854
|
sourceUrl: import_smithy_client.expectString,
|
|
2850
|
-
vendorCreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2855
|
+
vendorCreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "vendorCreatedAt"),
|
|
2851
2856
|
vendorSeverity: import_smithy_client.expectString,
|
|
2852
|
-
vendorUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2857
|
+
vendorUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "vendorUpdatedAt"),
|
|
2853
2858
|
vulnerabilityId: import_smithy_client.expectString,
|
|
2854
2859
|
vulnerablePackages: import_smithy_client._json
|
|
2855
2860
|
});
|
|
2856
2861
|
}, "de_PackageVulnerabilityDetails");
|
|
2857
2862
|
var de_PullThroughCacheRule = /* @__PURE__ */ __name((output, context) => {
|
|
2858
2863
|
return (0, import_smithy_client.take)(output, {
|
|
2859
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2864
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
2860
2865
|
credentialArn: import_smithy_client.expectString,
|
|
2866
|
+
customRoleArn: import_smithy_client.expectString,
|
|
2861
2867
|
ecrRepositoryPrefix: import_smithy_client.expectString,
|
|
2862
2868
|
registryId: import_smithy_client.expectString,
|
|
2863
|
-
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2869
|
+
updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
|
|
2864
2870
|
upstreamRegistry: import_smithy_client.expectString,
|
|
2865
|
-
upstreamRegistryUrl: import_smithy_client.expectString
|
|
2871
|
+
upstreamRegistryUrl: import_smithy_client.expectString,
|
|
2872
|
+
upstreamRepositoryPrefix: import_smithy_client.expectString
|
|
2866
2873
|
});
|
|
2867
2874
|
}, "de_PullThroughCacheRule");
|
|
2868
2875
|
var de_PullThroughCacheRuleList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2873,7 +2880,7 @@ var de_PullThroughCacheRuleList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2873
2880
|
}, "de_PullThroughCacheRuleList");
|
|
2874
2881
|
var de_Repository = /* @__PURE__ */ __name((output, context) => {
|
|
2875
2882
|
return (0, import_smithy_client.take)(output, {
|
|
2876
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2883
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
2877
2884
|
encryptionConfiguration: import_smithy_client._json,
|
|
2878
2885
|
imageScanningConfiguration: import_smithy_client._json,
|
|
2879
2886
|
imageTagMutability: import_smithy_client.expectString,
|
|
@@ -2886,7 +2893,7 @@ var de_Repository = /* @__PURE__ */ __name((output, context) => {
|
|
|
2886
2893
|
var de_RepositoryCreationTemplate = /* @__PURE__ */ __name((output, context) => {
|
|
2887
2894
|
return (0, import_smithy_client.take)(output, {
|
|
2888
2895
|
appliedFor: import_smithy_client._json,
|
|
2889
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2896
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
2890
2897
|
customRoleArn: import_smithy_client.expectString,
|
|
2891
2898
|
description: import_smithy_client.expectString,
|
|
2892
2899
|
encryptionConfiguration: import_smithy_client._json,
|
|
@@ -2895,7 +2902,7 @@ var de_RepositoryCreationTemplate = /* @__PURE__ */ __name((output, context) =>
|
|
|
2895
2902
|
prefix: import_smithy_client.expectString,
|
|
2896
2903
|
repositoryPolicy: import_smithy_client.expectString,
|
|
2897
2904
|
resourceTags: import_smithy_client._json,
|
|
2898
|
-
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
2905
|
+
updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
|
|
2899
2906
|
});
|
|
2900
2907
|
}, "de_RepositoryCreationTemplate");
|
|
2901
2908
|
var de_RepositoryCreationTemplateList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2912,7 +2919,7 @@ var de_RepositoryList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2912
2919
|
}, "de_RepositoryList");
|
|
2913
2920
|
var de_Resource = /* @__PURE__ */ __name((output, context) => {
|
|
2914
2921
|
return (0, import_smithy_client.take)(output, {
|
|
2915
|
-
details: (_) => de_ResourceDetails(_, context),
|
|
2922
|
+
details: /* @__PURE__ */ __name((_) => de_ResourceDetails(_, context), "details"),
|
|
2916
2923
|
id: import_smithy_client.expectString,
|
|
2917
2924
|
tags: import_smithy_client._json,
|
|
2918
2925
|
type: import_smithy_client.expectString
|
|
@@ -2920,7 +2927,7 @@ var de_Resource = /* @__PURE__ */ __name((output, context) => {
|
|
|
2920
2927
|
}, "de_Resource");
|
|
2921
2928
|
var de_ResourceDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2922
2929
|
return (0, import_smithy_client.take)(output, {
|
|
2923
|
-
awsEcrContainerImage: (_) => de_AwsEcrContainerImageDetails(_, context)
|
|
2930
|
+
awsEcrContainerImage: /* @__PURE__ */ __name((_) => de_AwsEcrContainerImageDetails(_, context), "awsEcrContainerImage")
|
|
2924
2931
|
});
|
|
2925
2932
|
}, "de_ResourceDetails");
|
|
2926
2933
|
var de_ResourceList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2931,21 +2938,23 @@ var de_ResourceList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2931
2938
|
}, "de_ResourceList");
|
|
2932
2939
|
var de_ScoreDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2933
2940
|
return (0, import_smithy_client.take)(output, {
|
|
2934
|
-
cvss: (_) => de_CvssScoreDetails(_, context)
|
|
2941
|
+
cvss: /* @__PURE__ */ __name((_) => de_CvssScoreDetails(_, context), "cvss")
|
|
2935
2942
|
});
|
|
2936
2943
|
}, "de_ScoreDetails");
|
|
2937
2944
|
var de_UpdatePullThroughCacheRuleResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2938
2945
|
return (0, import_smithy_client.take)(output, {
|
|
2939
2946
|
credentialArn: import_smithy_client.expectString,
|
|
2947
|
+
customRoleArn: import_smithy_client.expectString,
|
|
2940
2948
|
ecrRepositoryPrefix: import_smithy_client.expectString,
|
|
2941
2949
|
registryId: import_smithy_client.expectString,
|
|
2942
|
-
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
2950
|
+
updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
|
|
2951
|
+
upstreamRepositoryPrefix: import_smithy_client.expectString
|
|
2943
2952
|
});
|
|
2944
2953
|
}, "de_UpdatePullThroughCacheRuleResponse");
|
|
2945
2954
|
var de_UpdateRepositoryCreationTemplateResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2946
2955
|
return (0, import_smithy_client.take)(output, {
|
|
2947
2956
|
registryId: import_smithy_client.expectString,
|
|
2948
|
-
repositoryCreationTemplate: (_) => de_RepositoryCreationTemplate(_, context)
|
|
2957
|
+
repositoryCreationTemplate: /* @__PURE__ */ __name((_) => de_RepositoryCreationTemplate(_, context), "repositoryCreationTemplate")
|
|
2949
2958
|
});
|
|
2950
2959
|
}, "de_UpdateRepositoryCreationTemplateResponse");
|
|
2951
2960
|
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
@@ -179,6 +179,7 @@ export class UploadNotFoundException extends __BaseException {
|
|
|
179
179
|
export const UpstreamRegistry = {
|
|
180
180
|
AzureContainerRegistry: "azure-container-registry",
|
|
181
181
|
DockerHub: "docker-hub",
|
|
182
|
+
Ecr: "ecr",
|
|
182
183
|
EcrPublic: "ecr-public",
|
|
183
184
|
GitHubContainerRegistry: "github-container-registry",
|
|
184
185
|
GitLabContainerRegistry: "gitlab-container-registry",
|
|
@@ -1471,10 +1471,12 @@ const de_CreatePullThroughCacheRuleResponse = (output, context) => {
|
|
|
1471
1471
|
return take(output, {
|
|
1472
1472
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1473
1473
|
credentialArn: __expectString,
|
|
1474
|
+
customRoleArn: __expectString,
|
|
1474
1475
|
ecrRepositoryPrefix: __expectString,
|
|
1475
1476
|
registryId: __expectString,
|
|
1476
1477
|
upstreamRegistry: __expectString,
|
|
1477
1478
|
upstreamRegistryUrl: __expectString,
|
|
1479
|
+
upstreamRepositoryPrefix: __expectString,
|
|
1478
1480
|
});
|
|
1479
1481
|
};
|
|
1480
1482
|
const de_CreateRepositoryCreationTemplateResponse = (output, context) => {
|
|
@@ -1525,9 +1527,11 @@ const de_DeletePullThroughCacheRuleResponse = (output, context) => {
|
|
|
1525
1527
|
return take(output, {
|
|
1526
1528
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1527
1529
|
credentialArn: __expectString,
|
|
1530
|
+
customRoleArn: __expectString,
|
|
1528
1531
|
ecrRepositoryPrefix: __expectString,
|
|
1529
1532
|
registryId: __expectString,
|
|
1530
1533
|
upstreamRegistryUrl: __expectString,
|
|
1534
|
+
upstreamRepositoryPrefix: __expectString,
|
|
1531
1535
|
});
|
|
1532
1536
|
};
|
|
1533
1537
|
const de_DeleteRepositoryCreationTemplateResponse = (output, context) => {
|
|
@@ -1703,11 +1707,13 @@ const de_PullThroughCacheRule = (output, context) => {
|
|
|
1703
1707
|
return take(output, {
|
|
1704
1708
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1705
1709
|
credentialArn: __expectString,
|
|
1710
|
+
customRoleArn: __expectString,
|
|
1706
1711
|
ecrRepositoryPrefix: __expectString,
|
|
1707
1712
|
registryId: __expectString,
|
|
1708
1713
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1709
1714
|
upstreamRegistry: __expectString,
|
|
1710
1715
|
upstreamRegistryUrl: __expectString,
|
|
1716
|
+
upstreamRepositoryPrefix: __expectString,
|
|
1711
1717
|
});
|
|
1712
1718
|
};
|
|
1713
1719
|
const de_PullThroughCacheRuleList = (output, context) => {
|
|
@@ -1790,9 +1796,11 @@ const de_ScoreDetails = (output, context) => {
|
|
|
1790
1796
|
const de_UpdatePullThroughCacheRuleResponse = (output, context) => {
|
|
1791
1797
|
return take(output, {
|
|
1792
1798
|
credentialArn: __expectString,
|
|
1799
|
+
customRoleArn: __expectString,
|
|
1793
1800
|
ecrRepositoryPrefix: __expectString,
|
|
1794
1801
|
registryId: __expectString,
|
|
1795
1802
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1803
|
+
upstreamRepositoryPrefix: __expectString,
|
|
1796
1804
|
});
|
|
1797
1805
|
};
|
|
1798
1806
|
const de_UpdateRepositoryCreationTemplateResponse = (output, context) => {
|
|
@@ -41,8 +41,10 @@ declare const CreatePullThroughCacheRuleCommand_base: {
|
|
|
41
41
|
* ecrRepositoryPrefix: "STRING_VALUE", // required
|
|
42
42
|
* upstreamRegistryUrl: "STRING_VALUE", // required
|
|
43
43
|
* registryId: "STRING_VALUE",
|
|
44
|
-
* upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
|
|
44
|
+
* upstreamRegistry: "ecr" || "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
|
|
45
45
|
* credentialArn: "STRING_VALUE",
|
|
46
|
+
* customRoleArn: "STRING_VALUE",
|
|
47
|
+
* upstreamRepositoryPrefix: "STRING_VALUE",
|
|
46
48
|
* };
|
|
47
49
|
* const command = new CreatePullThroughCacheRuleCommand(input);
|
|
48
50
|
* const response = await client.send(command);
|
|
@@ -51,8 +53,10 @@ declare const CreatePullThroughCacheRuleCommand_base: {
|
|
|
51
53
|
* // upstreamRegistryUrl: "STRING_VALUE",
|
|
52
54
|
* // createdAt: new Date("TIMESTAMP"),
|
|
53
55
|
* // registryId: "STRING_VALUE",
|
|
54
|
-
* // upstreamRegistry: "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
|
|
56
|
+
* // upstreamRegistry: "ecr" || "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
|
|
55
57
|
* // credentialArn: "STRING_VALUE",
|
|
58
|
+
* // customRoleArn: "STRING_VALUE",
|
|
59
|
+
* // upstreamRepositoryPrefix: "STRING_VALUE",
|
|
56
60
|
* // };
|
|
57
61
|
*
|
|
58
62
|
* ```
|
|
@@ -46,6 +46,8 @@ declare const DeletePullThroughCacheRuleCommand_base: {
|
|
|
46
46
|
* // createdAt: new Date("TIMESTAMP"),
|
|
47
47
|
* // registryId: "STRING_VALUE",
|
|
48
48
|
* // credentialArn: "STRING_VALUE",
|
|
49
|
+
* // customRoleArn: "STRING_VALUE",
|
|
50
|
+
* // upstreamRepositoryPrefix: "STRING_VALUE",
|
|
49
51
|
* // };
|
|
50
52
|
*
|
|
51
53
|
* ```
|
|
@@ -52,7 +52,9 @@ declare const DescribePullThroughCacheRulesCommand_base: {
|
|
|
52
52
|
* // createdAt: new Date("TIMESTAMP"),
|
|
53
53
|
* // registryId: "STRING_VALUE",
|
|
54
54
|
* // credentialArn: "STRING_VALUE",
|
|
55
|
-
* //
|
|
55
|
+
* // customRoleArn: "STRING_VALUE",
|
|
56
|
+
* // upstreamRepositoryPrefix: "STRING_VALUE",
|
|
57
|
+
* // upstreamRegistry: "ecr" || "ecr-public" || "quay" || "k8s" || "docker-hub" || "github-container-registry" || "azure-container-registry" || "gitlab-container-registry",
|
|
56
58
|
* // updatedAt: new Date("TIMESTAMP"),
|
|
57
59
|
* // },
|
|
58
60
|
* // ],
|
|
@@ -37,7 +37,8 @@ declare const UpdatePullThroughCacheRuleCommand_base: {
|
|
|
37
37
|
* const input = { // UpdatePullThroughCacheRuleRequest
|
|
38
38
|
* registryId: "STRING_VALUE",
|
|
39
39
|
* ecrRepositoryPrefix: "STRING_VALUE", // required
|
|
40
|
-
* credentialArn: "STRING_VALUE",
|
|
40
|
+
* credentialArn: "STRING_VALUE",
|
|
41
|
+
* customRoleArn: "STRING_VALUE",
|
|
41
42
|
* };
|
|
42
43
|
* const command = new UpdatePullThroughCacheRuleCommand(input);
|
|
43
44
|
* const response = await client.send(command);
|
|
@@ -46,6 +47,8 @@ declare const UpdatePullThroughCacheRuleCommand_base: {
|
|
|
46
47
|
* // registryId: "STRING_VALUE",
|
|
47
48
|
* // updatedAt: new Date("TIMESTAMP"),
|
|
48
49
|
* // credentialArn: "STRING_VALUE",
|
|
50
|
+
* // customRoleArn: "STRING_VALUE",
|
|
51
|
+
* // upstreamRepositoryPrefix: "STRING_VALUE",
|
|
49
52
|
* // };
|
|
50
53
|
*
|
|
51
54
|
* ```
|
|
@@ -48,6 +48,8 @@ declare const ValidatePullThroughCacheRuleCommand_base: {
|
|
|
48
48
|
* // registryId: "STRING_VALUE",
|
|
49
49
|
* // upstreamRegistryUrl: "STRING_VALUE",
|
|
50
50
|
* // credentialArn: "STRING_VALUE",
|
|
51
|
+
* // customRoleArn: "STRING_VALUE",
|
|
52
|
+
* // upstreamRepositoryPrefix: "STRING_VALUE",
|
|
51
53
|
* // isValid: true || false,
|
|
52
54
|
* // failure: "STRING_VALUE",
|
|
53
55
|
* // };
|
|
@@ -632,6 +632,7 @@ export declare class UploadNotFoundException extends __BaseException {
|
|
|
632
632
|
export declare const UpstreamRegistry: {
|
|
633
633
|
readonly AzureContainerRegistry: "azure-container-registry";
|
|
634
634
|
readonly DockerHub: "docker-hub";
|
|
635
|
+
readonly Ecr: "ecr";
|
|
635
636
|
readonly EcrPublic: "ecr-public";
|
|
636
637
|
readonly GitHubContainerRegistry: "github-container-registry";
|
|
637
638
|
readonly GitLabContainerRegistry: "gitlab-container-registry";
|
|
@@ -648,6 +649,11 @@ export type UpstreamRegistry = (typeof UpstreamRegistry)[keyof typeof UpstreamRe
|
|
|
648
649
|
export interface CreatePullThroughCacheRuleRequest {
|
|
649
650
|
/**
|
|
650
651
|
* <p>The repository name prefix to use when caching images from the source registry.</p>
|
|
652
|
+
* <important>
|
|
653
|
+
* <p>There is always an assumed <code>/</code> applied to the end of the prefix. If you
|
|
654
|
+
* specify <code>ecr-public</code> as the prefix, Amazon ECR treats that as
|
|
655
|
+
* <code>ecr-public/</code>.</p>
|
|
656
|
+
* </important>
|
|
651
657
|
* @public
|
|
652
658
|
*/
|
|
653
659
|
ecrRepositoryPrefix: string | undefined;
|
|
@@ -657,32 +663,42 @@ export interface CreatePullThroughCacheRuleRequest {
|
|
|
657
663
|
* registry.</p>
|
|
658
664
|
* <ul>
|
|
659
665
|
* <li>
|
|
660
|
-
* <p>Amazon ECR
|
|
666
|
+
* <p>Amazon ECR (<code>ecr</code>) –
|
|
667
|
+
* <code>dkr.ecr.<region>.amazonaws.com</code>
|
|
661
668
|
* </p>
|
|
662
669
|
* </li>
|
|
663
670
|
* <li>
|
|
664
|
-
* <p>
|
|
671
|
+
* <p>Amazon ECR Public (<code>ecr-public</code>) – <code>public.ecr.aws</code>
|
|
672
|
+
* </p>
|
|
673
|
+
* </li>
|
|
674
|
+
* <li>
|
|
675
|
+
* <p>Docker Hub (<code>docker-hub</code>) –
|
|
665
676
|
* <code>registry-1.docker.io</code>
|
|
666
677
|
* </p>
|
|
667
678
|
* </li>
|
|
668
679
|
* <li>
|
|
669
|
-
* <p>
|
|
680
|
+
* <p>GitHub Container Registry (<code>github-container-registry</code>) –
|
|
681
|
+
* <code>ghcr.io</code>
|
|
670
682
|
* </p>
|
|
671
683
|
* </li>
|
|
672
684
|
* <li>
|
|
673
|
-
* <p>
|
|
685
|
+
* <p>GitLab Container Registry (<code>gitlab-container-registry</code>) –
|
|
686
|
+
* <code>registry.gitlab.com</code>
|
|
674
687
|
* </p>
|
|
675
688
|
* </li>
|
|
676
689
|
* <li>
|
|
677
|
-
* <p>
|
|
678
|
-
* <code>ghcr.io</code>
|
|
690
|
+
* <p>Kubernetes (<code>k8s</code>) – <code>registry.k8s.io</code>
|
|
679
691
|
* </p>
|
|
680
692
|
* </li>
|
|
681
693
|
* <li>
|
|
682
|
-
* <p>Microsoft Azure Container Registry (<code>azure-container-registry</code>)
|
|
694
|
+
* <p>Microsoft Azure Container Registry (<code>azure-container-registry</code>) –
|
|
683
695
|
* <code><custom>.azurecr.io</code>
|
|
684
696
|
* </p>
|
|
685
697
|
* </li>
|
|
698
|
+
* <li>
|
|
699
|
+
* <p>Quay (<code>quay</code>) – <code>quay.io</code>
|
|
700
|
+
* </p>
|
|
701
|
+
* </li>
|
|
686
702
|
* </ul>
|
|
687
703
|
* @public
|
|
688
704
|
*/
|
|
@@ -704,6 +720,20 @@ export interface CreatePullThroughCacheRuleRequest {
|
|
|
704
720
|
* @public
|
|
705
721
|
*/
|
|
706
722
|
credentialArn?: string | undefined;
|
|
723
|
+
/**
|
|
724
|
+
* <p>Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon ECR to authenticate to
|
|
725
|
+
* the ECR upstream registry. This role must be in the same account as the registry that
|
|
726
|
+
* you are configuring.</p>
|
|
727
|
+
* @public
|
|
728
|
+
*/
|
|
729
|
+
customRoleArn?: string | undefined;
|
|
730
|
+
/**
|
|
731
|
+
* <p>The repository name prefix of the upstream registry to match with the upstream
|
|
732
|
+
* repository name. When this field isn't specified, Amazon ECR will use the
|
|
733
|
+
* <code>ROOT</code>.</p>
|
|
734
|
+
* @public
|
|
735
|
+
*/
|
|
736
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
707
737
|
}
|
|
708
738
|
/**
|
|
709
739
|
* @public
|
|
@@ -741,6 +771,16 @@ export interface CreatePullThroughCacheRuleResponse {
|
|
|
741
771
|
* @public
|
|
742
772
|
*/
|
|
743
773
|
credentialArn?: string | undefined;
|
|
774
|
+
/**
|
|
775
|
+
* <p>The ARN of the IAM role associated with the pull through cache rule.</p>
|
|
776
|
+
* @public
|
|
777
|
+
*/
|
|
778
|
+
customRoleArn?: string | undefined;
|
|
779
|
+
/**
|
|
780
|
+
* <p>The upstream repository prefix associated with the pull through cache rule.</p>
|
|
781
|
+
* @public
|
|
782
|
+
*/
|
|
783
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
744
784
|
}
|
|
745
785
|
/**
|
|
746
786
|
* <p>A pull through cache rule with these settings already exists for the private
|
|
@@ -1210,8 +1250,8 @@ export interface RepositoryCreationTemplate {
|
|
|
1210
1250
|
*/
|
|
1211
1251
|
imageTagMutability?: ImageTagMutability | undefined;
|
|
1212
1252
|
/**
|
|
1213
|
-
* <p>
|
|
1214
|
-
* policy is a permissions policy associated with a repository to control access
|
|
1253
|
+
* <p>The repository policy to apply to repositories created using the template. A
|
|
1254
|
+
* repository policy is a permissions policy associated with a repository to control access
|
|
1215
1255
|
* permissions. </p>
|
|
1216
1256
|
* @public
|
|
1217
1257
|
*/
|
|
@@ -1377,6 +1417,16 @@ export interface DeletePullThroughCacheRuleResponse {
|
|
|
1377
1417
|
* @public
|
|
1378
1418
|
*/
|
|
1379
1419
|
credentialArn?: string | undefined;
|
|
1420
|
+
/**
|
|
1421
|
+
* <p>The ARN of the IAM role associated with the pull through cache rule.</p>
|
|
1422
|
+
* @public
|
|
1423
|
+
*/
|
|
1424
|
+
customRoleArn?: string | undefined;
|
|
1425
|
+
/**
|
|
1426
|
+
* <p>The upstream repository prefix associated with the pull through cache rule.</p>
|
|
1427
|
+
* @public
|
|
1428
|
+
*/
|
|
1429
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
1380
1430
|
}
|
|
1381
1431
|
/**
|
|
1382
1432
|
* <p>The pull through cache rule was not found. Specify a valid pull through cache rule and
|
|
@@ -1828,10 +1878,10 @@ export interface ImageDetail {
|
|
|
1828
1878
|
* <p>If the image is a manifest list, this will be the max size of all manifests in the
|
|
1829
1879
|
* list.</p>
|
|
1830
1880
|
* <note>
|
|
1831
|
-
* <p>
|
|
1832
|
-
*
|
|
1833
|
-
*
|
|
1834
|
-
*
|
|
1881
|
+
* <p>Starting with Docker version 1.9, the Docker client compresses image layers before
|
|
1882
|
+
* pushing them to a V2 Docker registry. The output of the <code>docker images</code>
|
|
1883
|
+
* command shows the uncompressed image size. Therefore, Docker might return a larger
|
|
1884
|
+
* image than the image sizes returned by <a>DescribeImages</a>.</p>
|
|
1835
1885
|
* </note>
|
|
1836
1886
|
* @public
|
|
1837
1887
|
*/
|
|
@@ -2541,6 +2591,16 @@ export interface PullThroughCacheRule {
|
|
|
2541
2591
|
* @public
|
|
2542
2592
|
*/
|
|
2543
2593
|
credentialArn?: string | undefined;
|
|
2594
|
+
/**
|
|
2595
|
+
* <p>The ARN of the IAM role associated with the pull through cache rule.</p>
|
|
2596
|
+
* @public
|
|
2597
|
+
*/
|
|
2598
|
+
customRoleArn?: string | undefined;
|
|
2599
|
+
/**
|
|
2600
|
+
* <p>The upstream repository prefix associated with the pull through cache rule.</p>
|
|
2601
|
+
* @public
|
|
2602
|
+
*/
|
|
2603
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
2544
2604
|
/**
|
|
2545
2605
|
* <p>The name of the upstream source registry associated with the pull through cache
|
|
2546
2606
|
* rule.</p>
|
|
@@ -2826,10 +2886,10 @@ export interface GetAccountSettingResponse {
|
|
|
2826
2886
|
*/
|
|
2827
2887
|
name?: string | undefined;
|
|
2828
2888
|
/**
|
|
2829
|
-
* <p>The setting value for the setting name. The following are valid values for the basic
|
|
2830
|
-
* type being used: <code>AWS_NATIVE</code> or <code>CLAIR</code>. The following are
|
|
2831
|
-
* values for the registry policy scope being used: <code>V1</code> or
|
|
2832
|
-
*
|
|
2889
|
+
* <p>The setting value for the setting name. The following are valid values for the basic
|
|
2890
|
+
* scan type being used: <code>AWS_NATIVE</code> or <code>CLAIR</code>. The following are
|
|
2891
|
+
* valid values for the registry policy scope being used: <code>V1</code> or
|
|
2892
|
+
* <code>V2</code>.</p>
|
|
2833
2893
|
* @public
|
|
2834
2894
|
*/
|
|
2835
2895
|
value?: string | undefined;
|
|
@@ -4048,7 +4108,14 @@ export interface UpdatePullThroughCacheRuleRequest {
|
|
|
4048
4108
|
* to the upstream registry.</p>
|
|
4049
4109
|
* @public
|
|
4050
4110
|
*/
|
|
4051
|
-
credentialArn
|
|
4111
|
+
credentialArn?: string | undefined;
|
|
4112
|
+
/**
|
|
4113
|
+
* <p>Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon ECR to authenticate to the
|
|
4114
|
+
* ECR upstream registry. This role must be in the same account as the registry that you
|
|
4115
|
+
* are configuring.</p>
|
|
4116
|
+
* @public
|
|
4117
|
+
*/
|
|
4118
|
+
customRoleArn?: string | undefined;
|
|
4052
4119
|
}
|
|
4053
4120
|
/**
|
|
4054
4121
|
* @public
|
|
@@ -4076,6 +4143,16 @@ export interface UpdatePullThroughCacheRuleResponse {
|
|
|
4076
4143
|
* @public
|
|
4077
4144
|
*/
|
|
4078
4145
|
credentialArn?: string | undefined;
|
|
4146
|
+
/**
|
|
4147
|
+
* <p>The ARN of the IAM role associated with the pull through cache rule.</p>
|
|
4148
|
+
* @public
|
|
4149
|
+
*/
|
|
4150
|
+
customRoleArn?: string | undefined;
|
|
4151
|
+
/**
|
|
4152
|
+
* <p>The upstream repository prefix associated with the pull through cache rule.</p>
|
|
4153
|
+
* @public
|
|
4154
|
+
*/
|
|
4155
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
4079
4156
|
}
|
|
4080
4157
|
/**
|
|
4081
4158
|
* @public
|
|
@@ -4300,6 +4377,16 @@ export interface ValidatePullThroughCacheRuleResponse {
|
|
|
4300
4377
|
* @public
|
|
4301
4378
|
*/
|
|
4302
4379
|
credentialArn?: string | undefined;
|
|
4380
|
+
/**
|
|
4381
|
+
* <p>The ARN of the IAM role associated with the pull through cache rule.</p>
|
|
4382
|
+
* @public
|
|
4383
|
+
*/
|
|
4384
|
+
customRoleArn?: string | undefined;
|
|
4385
|
+
/**
|
|
4386
|
+
* <p>The upstream repository prefix associated with the pull through cache rule.</p>
|
|
4387
|
+
* @public
|
|
4388
|
+
*/
|
|
4389
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
4303
4390
|
/**
|
|
4304
4391
|
* <p>Whether or not the pull through cache rule was validated. If <code>true</code>, Amazon ECR
|
|
4305
4392
|
* was able to reach the upstream registry and authentication was successful. If
|
|
@@ -219,6 +219,7 @@ export declare class UploadNotFoundException extends __BaseException {
|
|
|
219
219
|
export declare const UpstreamRegistry: {
|
|
220
220
|
readonly AzureContainerRegistry: "azure-container-registry";
|
|
221
221
|
readonly DockerHub: "docker-hub";
|
|
222
|
+
readonly Ecr: "ecr";
|
|
222
223
|
readonly EcrPublic: "ecr-public";
|
|
223
224
|
readonly GitHubContainerRegistry: "github-container-registry";
|
|
224
225
|
readonly GitLabContainerRegistry: "gitlab-container-registry";
|
|
@@ -233,6 +234,8 @@ export interface CreatePullThroughCacheRuleRequest {
|
|
|
233
234
|
registryId?: string | undefined;
|
|
234
235
|
upstreamRegistry?: UpstreamRegistry | undefined;
|
|
235
236
|
credentialArn?: string | undefined;
|
|
237
|
+
customRoleArn?: string | undefined;
|
|
238
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
236
239
|
}
|
|
237
240
|
export interface CreatePullThroughCacheRuleResponse {
|
|
238
241
|
ecrRepositoryPrefix?: string | undefined;
|
|
@@ -241,6 +244,8 @@ export interface CreatePullThroughCacheRuleResponse {
|
|
|
241
244
|
registryId?: string | undefined;
|
|
242
245
|
upstreamRegistry?: UpstreamRegistry | undefined;
|
|
243
246
|
credentialArn?: string | undefined;
|
|
247
|
+
customRoleArn?: string | undefined;
|
|
248
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
244
249
|
}
|
|
245
250
|
export declare class PullThroughCacheRuleAlreadyExistsException extends __BaseException {
|
|
246
251
|
readonly name: "PullThroughCacheRuleAlreadyExistsException";
|
|
@@ -433,6 +438,8 @@ export interface DeletePullThroughCacheRuleResponse {
|
|
|
433
438
|
createdAt?: Date | undefined;
|
|
434
439
|
registryId?: string | undefined;
|
|
435
440
|
credentialArn?: string | undefined;
|
|
441
|
+
customRoleArn?: string | undefined;
|
|
442
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
436
443
|
}
|
|
437
444
|
export declare class PullThroughCacheRuleNotFoundException extends __BaseException {
|
|
438
445
|
readonly name: "PullThroughCacheRuleNotFoundException";
|
|
@@ -742,6 +749,8 @@ export interface PullThroughCacheRule {
|
|
|
742
749
|
createdAt?: Date | undefined;
|
|
743
750
|
registryId?: string | undefined;
|
|
744
751
|
credentialArn?: string | undefined;
|
|
752
|
+
customRoleArn?: string | undefined;
|
|
753
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
745
754
|
upstreamRegistry?: UpstreamRegistry | undefined;
|
|
746
755
|
updatedAt?: Date | undefined;
|
|
747
756
|
}
|
|
@@ -1137,13 +1146,16 @@ export interface UntagResourceResponse {}
|
|
|
1137
1146
|
export interface UpdatePullThroughCacheRuleRequest {
|
|
1138
1147
|
registryId?: string | undefined;
|
|
1139
1148
|
ecrRepositoryPrefix: string | undefined;
|
|
1140
|
-
credentialArn
|
|
1149
|
+
credentialArn?: string | undefined;
|
|
1150
|
+
customRoleArn?: string | undefined;
|
|
1141
1151
|
}
|
|
1142
1152
|
export interface UpdatePullThroughCacheRuleResponse {
|
|
1143
1153
|
ecrRepositoryPrefix?: string | undefined;
|
|
1144
1154
|
registryId?: string | undefined;
|
|
1145
1155
|
updatedAt?: Date | undefined;
|
|
1146
1156
|
credentialArn?: string | undefined;
|
|
1157
|
+
customRoleArn?: string | undefined;
|
|
1158
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
1147
1159
|
}
|
|
1148
1160
|
export interface UpdateRepositoryCreationTemplateRequest {
|
|
1149
1161
|
prefix: string | undefined;
|
|
@@ -1196,6 +1208,8 @@ export interface ValidatePullThroughCacheRuleResponse {
|
|
|
1196
1208
|
registryId?: string | undefined;
|
|
1197
1209
|
upstreamRegistryUrl?: string | undefined;
|
|
1198
1210
|
credentialArn?: string | undefined;
|
|
1211
|
+
customRoleArn?: string | undefined;
|
|
1212
|
+
upstreamRepositoryPrefix?: string | undefined;
|
|
1199
1213
|
isValid?: boolean | undefined;
|
|
1200
1214
|
failure?: string | undefined;
|
|
1201
1215
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecr",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.772.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecr",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.758.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.772.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.772.0",
|
|
28
28
|
"@aws-sdk/middleware-user-agent": "3.758.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
30
30
|
"@aws-sdk/types": "3.734.0",
|