@aws-sdk/client-ecr 3.826.0 → 3.830.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 +2 -0
- package/dist-es/protocols/Aws_json1_1.js +2 -0
- package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeImagesCommand.d.ts +13 -4
- package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/models/models_0.d.ts +21 -6
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -2624,6 +2624,8 @@ var de_AwsEcrContainerImageDetails = /* @__PURE__ */ __name((output, context) =>
|
|
|
2624
2624
|
author: import_smithy_client.expectString,
|
|
2625
2625
|
imageHash: import_smithy_client.expectString,
|
|
2626
2626
|
imageTags: import_smithy_client._json,
|
|
2627
|
+
inUseCount: import_smithy_client.expectLong,
|
|
2628
|
+
lastInUseAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastInUseAt"),
|
|
2627
2629
|
platform: import_smithy_client.expectString,
|
|
2628
2630
|
pushedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "pushedAt"),
|
|
2629
2631
|
registry: import_smithy_client.expectString,
|
|
@@ -1461,6 +1461,8 @@ const de_AwsEcrContainerImageDetails = (output, context) => {
|
|
|
1461
1461
|
author: __expectString,
|
|
1462
1462
|
imageHash: __expectString,
|
|
1463
1463
|
imageTags: _json,
|
|
1464
|
+
inUseCount: __expectLong,
|
|
1465
|
+
lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1464
1466
|
platform: __expectString,
|
|
1465
1467
|
pushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1466
1468
|
registry: __expectString,
|
|
@@ -137,6 +137,8 @@ declare const DescribeImageScanFindingsCommand_base: {
|
|
|
137
137
|
* // ],
|
|
138
138
|
* // platform: "STRING_VALUE",
|
|
139
139
|
* // pushedAt: new Date("TIMESTAMP"),
|
|
140
|
+
* // lastInUseAt: new Date("TIMESTAMP"),
|
|
141
|
+
* // inUseCount: Number("long"),
|
|
140
142
|
* // registry: "STRING_VALUE",
|
|
141
143
|
* // repositoryName: "STRING_VALUE",
|
|
142
144
|
* // },
|
|
@@ -29,11 +29,20 @@ declare const DescribeImagesCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Returns metadata about the images in a repository.</p>
|
|
31
31
|
* <note>
|
|
32
|
-
* <p>
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* <p>Starting with Docker version 1.9, the Docker client compresses image layers before
|
|
33
|
+
* pushing them to a V2 Docker registry. The output of the <code>docker images</code>
|
|
34
|
+
* command shows the uncompressed image size. Therefore, Docker might return a larger
|
|
35
|
+
* image than the image shown in the Amazon Web Services Management Console.</p>
|
|
36
36
|
* </note>
|
|
37
|
+
* <important>
|
|
38
|
+
* <p>The new version of Amazon ECR <i>Basic Scanning</i> doesn't use the
|
|
39
|
+
* <a>ImageDetail$imageScanFindingsSummary</a> and
|
|
40
|
+
* <a>ImageDetail$imageScanStatus</a>
|
|
41
|
+
* attributes from the API response to return scan results.
|
|
42
|
+
* Use the <a>DescribeImageScanFindings</a> API instead. For more
|
|
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>
|
|
45
|
+
* </important>
|
|
37
46
|
* @example
|
|
38
47
|
* Use a bare-bones client and the command you need to make an API call.
|
|
39
48
|
* ```javascript
|
|
@@ -3,9 +3,9 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provi
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface ClientInputEndpointParameters {
|
|
6
|
-
region?: string | Provider<string>;
|
|
7
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
|
-
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
9
|
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
10
|
}
|
|
11
11
|
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
@@ -31,8 +31,8 @@ export declare const commonParams: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export interface EndpointParameters extends __EndpointParameters {
|
|
34
|
-
Region?: string;
|
|
35
|
-
UseDualStack?: boolean;
|
|
36
|
-
UseFIPS?: boolean;
|
|
37
|
-
Endpoint?: string;
|
|
34
|
+
Region?: string | undefined;
|
|
35
|
+
UseDualStack?: boolean | undefined;
|
|
36
|
+
UseFIPS?: boolean | undefined;
|
|
37
|
+
Endpoint?: string | undefined;
|
|
38
38
|
}
|
|
@@ -664,7 +664,7 @@ export interface CreatePullThroughCacheRuleRequest {
|
|
|
664
664
|
* <ul>
|
|
665
665
|
* <li>
|
|
666
666
|
* <p>Amazon ECR (<code>ecr</code>) –
|
|
667
|
-
* <code
|
|
667
|
+
* <code><accountId>.dkr.ecr.<region>.amazonaws.com</code>
|
|
668
668
|
* </p>
|
|
669
669
|
* </li>
|
|
670
670
|
* <li>
|
|
@@ -1243,8 +1243,8 @@ export interface RepositoryCreationTemplate {
|
|
|
1243
1243
|
resourceTags?: Tag[] | undefined;
|
|
1244
1244
|
/**
|
|
1245
1245
|
* <p>The tag mutability setting for the repository. If this parameter is omitted, the
|
|
1246
|
-
* default setting of MUTABLE will be used which will allow image tags to be overwritten.
|
|
1247
|
-
* If IMMUTABLE is specified, all image tags within the repository will be immutable which
|
|
1246
|
+
* default setting of <code>MUTABLE</code> will be used which will allow image tags to be overwritten.
|
|
1247
|
+
* If <code>IMMUTABLE</code> is specified, all image tags within the repository will be immutable which
|
|
1248
1248
|
* will prevent them from being overwritten.</p>
|
|
1249
1249
|
* @public
|
|
1250
1250
|
*/
|
|
@@ -1881,7 +1881,7 @@ export interface ImageDetail {
|
|
|
1881
1881
|
* <p>Starting with Docker version 1.9, the Docker client compresses image layers before
|
|
1882
1882
|
* pushing them to a V2 Docker registry. The output of the <code>docker images</code>
|
|
1883
1883
|
* command shows the uncompressed image size. Therefore, Docker might return a larger
|
|
1884
|
-
* image than the image
|
|
1884
|
+
* image than the image shown in the Amazon Web Services Management Console.</p>
|
|
1885
1885
|
* </note>
|
|
1886
1886
|
* @public
|
|
1887
1887
|
*/
|
|
@@ -2187,6 +2187,17 @@ export interface AwsEcrContainerImageDetails {
|
|
|
2187
2187
|
* @public
|
|
2188
2188
|
*/
|
|
2189
2189
|
pushedAt?: Date | undefined;
|
|
2190
|
+
/**
|
|
2191
|
+
* <p>The most recent date and time a cluster was running the image.</p>
|
|
2192
|
+
* @public
|
|
2193
|
+
*/
|
|
2194
|
+
lastInUseAt?: Date | undefined;
|
|
2195
|
+
/**
|
|
2196
|
+
* <p>The number of Amazon ECS or Amazon EKS clusters currently running the
|
|
2197
|
+
* image.</p>
|
|
2198
|
+
* @public
|
|
2199
|
+
*/
|
|
2200
|
+
inUseCount?: number | undefined;
|
|
2190
2201
|
/**
|
|
2191
2202
|
* <p>The registry the Amazon ECR container image belongs to.</p>
|
|
2192
2203
|
* @public
|
|
@@ -2942,6 +2953,10 @@ export interface GetAuthorizationTokenResponse {
|
|
|
2942
2953
|
/**
|
|
2943
2954
|
* <p>A list of authorization token data objects that correspond to the
|
|
2944
2955
|
* <code>registryIds</code> values in the request.</p>
|
|
2956
|
+
* <note>
|
|
2957
|
+
* <p>The size of the authorization token returned by Amazon ECR is not fixed. We recommend
|
|
2958
|
+
* that you don't make assumptions about the maximum size.</p>
|
|
2959
|
+
* </note>
|
|
2945
2960
|
* @public
|
|
2946
2961
|
*/
|
|
2947
2962
|
authorizationData?: AuthorizationData[] | undefined;
|
|
@@ -3118,10 +3133,10 @@ export interface GetLifecyclePolicyPreviewRequest {
|
|
|
3118
3133
|
another <code>GetLifecyclePolicyPreviewRequest</code> request
|
|
3119
3134
|
* with the returned <code>nextToken</code>
|
|
3120
3135
|
value. This value can be between
|
|
3121
|
-
* 1 and
|
|
3136
|
+
* 1 and 100. If this
|
|
3122
3137
|
parameter is not used, then
|
|
3123
3138
|
* <code>GetLifecyclePolicyPreviewRequest</code> returns up to
|
|
3124
|
-
|
|
3139
|
+
100
|
|
3125
3140
|
* results and a <code>nextToken</code> value, if
|
|
3126
3141
|
applicable. This option cannot be used
|
|
3127
3142
|
* when you specify images with <code>imageIds</code>.</p>
|
|
@@ -15,8 +15,8 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
17
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
19
|
-
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
18
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
cacheMiddleware?: boolean | undefined;
|
|
22
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -17,8 +17,8 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
17
17
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
18
18
|
disableHostPrefix: boolean;
|
|
19
19
|
serviceId: string;
|
|
20
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
21
|
-
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
20
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
23
|
profile?: string;
|
|
24
24
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
Provider,
|
|
6
6
|
} from "@smithy/types";
|
|
7
7
|
export interface ClientInputEndpointParameters {
|
|
8
|
-
region?: string | Provider<string>;
|
|
9
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
|
-
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
9
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
10
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
11
11
|
endpoint?:
|
|
12
12
|
| string
|
|
13
13
|
| Provider<string>
|
|
@@ -41,8 +41,8 @@ export declare const commonParams: {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export interface EndpointParameters extends __EndpointParameters {
|
|
44
|
-
Region?: string;
|
|
45
|
-
UseDualStack?: boolean;
|
|
46
|
-
UseFIPS?: boolean;
|
|
47
|
-
Endpoint?: string;
|
|
44
|
+
Region?: string | undefined;
|
|
45
|
+
UseDualStack?: boolean | undefined;
|
|
46
|
+
UseFIPS?: boolean | undefined;
|
|
47
|
+
Endpoint?: string | undefined;
|
|
48
48
|
}
|
|
@@ -659,6 +659,8 @@ export interface AwsEcrContainerImageDetails {
|
|
|
659
659
|
imageTags?: string[] | undefined;
|
|
660
660
|
platform?: string | undefined;
|
|
661
661
|
pushedAt?: Date | undefined;
|
|
662
|
+
lastInUseAt?: Date | undefined;
|
|
663
|
+
inUseCount?: number | undefined;
|
|
662
664
|
registry?: string | undefined;
|
|
663
665
|
repositoryName?: string | undefined;
|
|
664
666
|
}
|
|
@@ -22,8 +22,10 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
23
|
sha256: import("@smithy/types").HashConstructor;
|
|
24
24
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
25
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
26
|
-
|
|
25
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
28
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
29
|
apiVersion: string;
|
|
28
30
|
cacheMiddleware?: boolean | undefined;
|
|
29
31
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -19,8 +19,10 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
|
|
|
19
19
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
20
20
|
disableHostPrefix: boolean;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
23
|
-
|
|
22
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
23
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
24
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
25
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
24
26
|
region: string | import("@smithy/types").Provider<any>;
|
|
25
27
|
profile?: string;
|
|
26
28
|
defaultUserAgentProvider: (
|
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.830.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,16 +21,16 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.826.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.830.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.821.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.821.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.821.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.828.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.821.0",
|
|
30
30
|
"@aws-sdk/types": "3.821.0",
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.828.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.821.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.828.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.4",
|
|
35
35
|
"@smithy/core": "^3.5.3",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.4",
|