@aws-sdk/client-ecr 3.719.0 → 3.720.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.
@@ -6,7 +6,7 @@ const util_endpoints_2 = require("@smithy/util-endpoints");
6
6
  const ruleset_1 = require("./ruleset");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
- params: ["Region", "UseDualStack", "UseFIPS"],
9
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
12
  return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const m = "fn", n = "argv", o = "ref";
5
- const a = false, b = "PartitionResult", c = "endpoint", d = "tree", e = "error", f = { "required": true, "default": false, "type": "Boolean" }, g = { [m]: "booleanEquals", [n]: [{ [o]: "UseFIPS" }, true] }, h = { [m]: "booleanEquals", [n]: [{ [o]: "UseDualStack" }, true] }, i = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsFIPS"] }] }, j = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsDualStack"] }] }, k = {}, l = [{ [o]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: "String" }, UseFIPS: f, UseDualStack: f }, rules: [{ conditions: [{ [m]: "isSet", [n]: l }, { [m]: "aws.partition", [n]: l, assign: b }], rules: [{ conditions: [g, h], rules: [{ conditions: [i, j], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS and dualstack are enabled, but this partition does not support one or both", type: e }], type: d }, { conditions: [h], rules: [{ conditions: [j], rules: [{ endpoint: { url: "https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "Dualstack is enabled but this partition does not support dualstack", type: e }], type: d }, { conditions: [g], rules: [{ conditions: [i], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }], type: d }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }] };
4
+ const v = "required", w = "fn", x = "argv", y = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [v]: false, "type": "String" }, j = { [v]: true, "default": false, "type": "Boolean" }, k = { [y]: "Endpoint" }, l = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, m = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, n = {}, o = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, p = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, q = { [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, r = { "url": "https://ecr-fips.{Region}.amazonaws.com", "properties": {}, "headers": {} }, s = [l], t = [m], u = [{ [y]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [w]: b, [x]: [k] }], rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [w]: c, [x]: [a, o] }, p], rules: [{ endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: s, rules: [{ conditions: [{ [w]: c, [x]: [o, a] }], rules: [{ conditions: [{ [w]: h, [x]: [q, "aws"] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: [q, "aws-us-gov"] }], endpoint: r, type: e }, { endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: t, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -163,13 +163,14 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
163
163
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
164
164
  return {
165
165
  ...options,
166
- useFipsEndpoint: options.useFipsEndpoint ?? false,
167
166
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
167
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
168
168
  defaultSigningName: "ecr"
169
169
  };
170
170
  }, "resolveClientEndpointParameters");
171
171
  var commonParams = {
172
172
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
173
+ Endpoint: { type: "builtInParams", name: "endpoint" },
173
174
  Region: { type: "builtInParams", name: "region" },
174
175
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
175
176
  };
@@ -1,13 +1,14 @@
1
1
  export const resolveClientEndpointParameters = (options) => {
2
2
  return {
3
3
  ...options,
4
- useFipsEndpoint: options.useFipsEndpoint ?? false,
5
4
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
6
  defaultSigningName: "ecr",
7
7
  };
8
8
  };
9
9
  export const commonParams = {
10
10
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
12
  Region: { type: "builtInParams", name: "region" },
12
13
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
14
  };
@@ -3,7 +3,7 @@ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy
3
3
  import { ruleSet } from "./ruleset";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
- params: ["Region", "UseDualStack", "UseFIPS"],
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
9
  return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
@@ -1,4 +1,4 @@
1
- const m = "fn", n = "argv", o = "ref";
2
- const a = false, b = "PartitionResult", c = "endpoint", d = "tree", e = "error", f = { "required": true, "default": false, "type": "Boolean" }, g = { [m]: "booleanEquals", [n]: [{ [o]: "UseFIPS" }, true] }, h = { [m]: "booleanEquals", [n]: [{ [o]: "UseDualStack" }, true] }, i = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsFIPS"] }] }, j = { [m]: "booleanEquals", [n]: [true, { [m]: "getAttr", [n]: [{ [o]: b }, "supportsDualStack"] }] }, k = {}, l = [{ [o]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: "String" }, UseFIPS: f, UseDualStack: f }, rules: [{ conditions: [{ [m]: "isSet", [n]: l }, { [m]: "aws.partition", [n]: l, assign: b }], rules: [{ conditions: [g, h], rules: [{ conditions: [i, j], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS and dualstack are enabled, but this partition does not support one or both", type: e }], type: d }, { conditions: [h], rules: [{ conditions: [j], rules: [{ endpoint: { url: "https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "Dualstack is enabled but this partition does not support dualstack", type: e }], type: d }, { conditions: [g], rules: [{ conditions: [i], rules: [{ endpoint: { url: "https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }], type: d }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: c }], type: d }] };
1
+ const v = "required", w = "fn", x = "argv", y = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [v]: false, "type": "String" }, j = { [v]: true, "default": false, "type": "Boolean" }, k = { [y]: "Endpoint" }, l = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, m = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, n = {}, o = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, p = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, q = { [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, r = { "url": "https://ecr-fips.{Region}.amazonaws.com", "properties": {}, "headers": {} }, s = [l], t = [m], u = [{ [y]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [w]: b, [x]: [k] }], rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [w]: c, [x]: [a, o] }, p], rules: [{ endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: s, rules: [{ conditions: [{ [w]: c, [x]: [o, a] }], rules: [{ conditions: [{ [w]: h, [x]: [q, "aws"] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: [q, "aws-us-gov"] }], endpoint: r, type: e }, { endpoint: { url: "https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: t, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -1,11 +1,12 @@
1
- import { EndpointParameters as __EndpointParameters, Provider } from "@smithy/types";
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
4
  */
5
5
  export interface ClientInputEndpointParameters {
6
6
  region?: string | Provider<string>;
7
- useFipsEndpoint?: boolean | Provider<boolean>;
8
7
  useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
9
10
  }
10
11
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
11
12
  defaultSigningName: string;
@@ -18,6 +19,10 @@ export declare const commonParams: {
18
19
  readonly type: "builtInParams";
19
20
  readonly name: "useFipsEndpoint";
20
21
  };
22
+ readonly Endpoint: {
23
+ readonly type: "builtInParams";
24
+ readonly name: "endpoint";
25
+ };
21
26
  readonly Region: {
22
27
  readonly type: "builtInParams";
23
28
  readonly name: "region";
@@ -29,6 +34,7 @@ export declare const commonParams: {
29
34
  };
30
35
  export interface EndpointParameters extends __EndpointParameters {
31
36
  Region?: string;
32
- UseFIPS?: boolean;
33
37
  UseDualStack?: boolean;
38
+ UseFIPS?: boolean;
39
+ Endpoint?: string;
34
40
  }
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
32
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
33
33
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
34
34
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
35
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
35
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
36
36
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
37
37
  logger?: import("@smithy/types").Logger | undefined;
38
38
  }) => import("@smithy/types").EndpointV2;
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
32
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
33
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
34
34
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
35
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
35
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
36
36
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
37
37
  logger?: import("@smithy/types").Logger | undefined;
38
38
  }) => import("@smithy/types").EndpointV2;
@@ -1,11 +1,20 @@
1
1
  import {
2
+ Endpoint,
2
3
  EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
3
5
  Provider,
4
6
  } from "@smithy/types";
5
7
  export interface ClientInputEndpointParameters {
6
8
  region?: string | Provider<string>;
7
- useFipsEndpoint?: boolean | Provider<boolean>;
8
9
  useDualstackEndpoint?: boolean | Provider<boolean>;
10
+ useFipsEndpoint?: boolean | Provider<boolean>;
11
+ endpoint?:
12
+ | string
13
+ | Provider<string>
14
+ | Endpoint
15
+ | Provider<Endpoint>
16
+ | EndpointV2
17
+ | Provider<EndpointV2>;
9
18
  }
10
19
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
11
20
  defaultSigningName: string;
@@ -21,6 +30,10 @@ export declare const commonParams: {
21
30
  readonly type: "builtInParams";
22
31
  readonly name: "useFipsEndpoint";
23
32
  };
33
+ readonly Endpoint: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "endpoint";
36
+ };
24
37
  readonly Region: {
25
38
  readonly type: "builtInParams";
26
39
  readonly name: "region";
@@ -32,6 +45,7 @@ export declare const commonParams: {
32
45
  };
33
46
  export interface EndpointParameters extends __EndpointParameters {
34
47
  Region?: string;
35
- UseFIPS?: boolean;
36
48
  UseDualStack?: boolean;
49
+ UseFIPS?: boolean;
50
+ Endpoint?: string;
37
51
  }
@@ -46,11 +46,21 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
46
46
  | import("@smithy/types").RetryStrategyV2
47
47
  | undefined;
48
48
  endpoint?:
49
- | string
50
- | import("@smithy/types").Endpoint
51
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
52
- | import("@smithy/types").EndpointV2
53
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
49
+ | ((
50
+ | string
51
+ | import("@smithy/types").Endpoint
52
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
53
+ | import("@smithy/types").EndpointV2
54
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ ) &
56
+ (
57
+ | string
58
+ | import("@smithy/types").Provider<string>
59
+ | import("@smithy/types").Endpoint
60
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
61
+ | import("@smithy/types").EndpointV2
62
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
63
+ ))
54
64
  | undefined;
55
65
  endpointProvider: (
56
66
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
@@ -47,11 +47,21 @@ export declare const getRuntimeConfig: (config: ECRClientConfig) => {
47
47
  | import("@smithy/types").RetryStrategyV2
48
48
  | undefined;
49
49
  endpoint?:
50
- | string
51
- | import("@smithy/types").Endpoint
52
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
53
- | import("@smithy/types").EndpointV2
54
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
50
+ | ((
51
+ | string
52
+ | import("@smithy/types").Endpoint
53
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
54
+ | import("@smithy/types").EndpointV2
55
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
56
+ ) &
57
+ (
58
+ | string
59
+ | import("@smithy/types").Provider<string>
60
+ | import("@smithy/types").Endpoint
61
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
62
+ | import("@smithy/types").EndpointV2
63
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
64
+ ))
55
65
  | undefined;
56
66
  endpointProvider: (
57
67
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.719.0",
4
+ "version": "3.720.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",