@aws-sdk/client-marketplace-metering 3.775.0 → 3.778.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.
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
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://metering.marketplace.{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://metering.marketplace-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: [{ endpoint: { url: "https://metering.marketplace-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://metering.marketplace.{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 }, { conditions: [{ [w]: h, [x]: ["aws", q] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: ["aws-us-gov", q] }], endpoint: r, type: e }, { endpoint: { url: "https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
5
+ const a = true, b = false, c = "isSet", d = "booleanEquals", e = "error", f = "endpoint", g = "tree", h = "PartitionResult", i = "getAttr", j = { [v]: true, "default": false, "type": "Boolean" }, k = { [v]: false, "type": "String" }, l = { [y]: "Endpoint" }, m = { [w]: d, [x]: [{ [y]: "UseFIPS" }, true] }, n = { [w]: d, [x]: [{ [y]: "UseDualStack" }, true] }, o = { [y]: "UseDualStack" }, p = {}, q = { [y]: h }, r = { [w]: d, [x]: [{ [y]: "UseFIPS" }, false] }, s = { [w]: i, [x]: [q, "supportsFIPS"] }, t = { [w]: d, [x]: [true, { [w]: i, [x]: [q, "supportsDualStack"] }] }, u = [{ [y]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [w]: c, [x]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: e }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: e }, { endpoint: { url: l, properties: p, headers: p }, type: f }], type: g }], type: g }, { rules: [{ conditions: [{ [w]: c, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: h }], rules: [{ conditions: [{ [w]: "stringEquals", [x]: [{ [w]: i, [x]: [q, "name"] }, "aws"] }, r, n], endpoint: { url: "https://metering-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }, { conditions: [m, n], rules: [{ conditions: [{ [w]: d, [x]: [a, s] }, t], rules: [{ endpoint: { url: "https://metering.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: e }], type: g }, { conditions: [m, { [w]: d, [x]: [o, b] }], rules: [{ conditions: [{ [w]: d, [x]: [s, a] }], rules: [{ endpoint: { url: "https://metering.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }], type: g }, { conditions: [r, n], rules: [{ conditions: [t], rules: [{ endpoint: { url: "https://metering.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "DualStack is enabled but this partition does not support DualStack", type: e }], type: g }, { endpoint: { url: "https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }], type: g }], type: g }, { error: "Invalid Configuration: Missing Region", type: e }], type: g }] };
7
7
  exports.ruleSet = _data;
@@ -1,4 +1,4 @@
1
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://metering.marketplace.{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://metering.marketplace-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: [{ endpoint: { url: "https://metering.marketplace-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://metering.marketplace.{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 }, { conditions: [{ [w]: h, [x]: ["aws", q] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: ["aws-us-gov", q] }], endpoint: r, type: e }, { endpoint: { url: "https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
2
+ const a = true, b = false, c = "isSet", d = "booleanEquals", e = "error", f = "endpoint", g = "tree", h = "PartitionResult", i = "getAttr", j = { [v]: true, "default": false, "type": "Boolean" }, k = { [v]: false, "type": "String" }, l = { [y]: "Endpoint" }, m = { [w]: d, [x]: [{ [y]: "UseFIPS" }, true] }, n = { [w]: d, [x]: [{ [y]: "UseDualStack" }, true] }, o = { [y]: "UseDualStack" }, p = {}, q = { [y]: h }, r = { [w]: d, [x]: [{ [y]: "UseFIPS" }, false] }, s = { [w]: i, [x]: [q, "supportsFIPS"] }, t = { [w]: d, [x]: [true, { [w]: i, [x]: [q, "supportsDualStack"] }] }, u = [{ [y]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [w]: c, [x]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: e }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: e }, { endpoint: { url: l, properties: p, headers: p }, type: f }], type: g }], type: g }, { rules: [{ conditions: [{ [w]: c, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: h }], rules: [{ conditions: [{ [w]: "stringEquals", [x]: [{ [w]: i, [x]: [q, "name"] }, "aws"] }, r, n], endpoint: { url: "https://metering-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }, { conditions: [m, n], rules: [{ conditions: [{ [w]: d, [x]: [a, s] }, t], rules: [{ endpoint: { url: "https://metering.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: e }], type: g }, { conditions: [m, { [w]: d, [x]: [o, b] }], rules: [{ conditions: [{ [w]: d, [x]: [s, a] }], rules: [{ endpoint: { url: "https://metering.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }], type: g }, { conditions: [r, n], rules: [{ conditions: [t], rules: [{ endpoint: { url: "https://metering.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }], type: g }, { error: "DualStack is enabled but this partition does not support DualStack", type: e }], type: g }, { endpoint: { url: "https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }], type: g }], type: g }, { error: "Invalid Configuration: Missing Region", type: e }], type: g }] };
4
4
  export const ruleSet = _data;
@@ -184,6 +184,7 @@ declare const BatchMeterUsageCommand_base: {
184
184
  * @throws {@link MarketplaceMeteringServiceException}
185
185
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
186
186
  *
187
+ *
187
188
  * @public
188
189
  */
189
190
  export declare class BatchMeterUsageCommand extends BatchMeterUsageCommand_base {
@@ -124,6 +124,7 @@ declare const MeterUsageCommand_base: {
124
124
  * @throws {@link MarketplaceMeteringServiceException}
125
125
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
126
126
  *
127
+ *
127
128
  * @public
128
129
  */
129
130
  export declare class MeterUsageCommand extends MeterUsageCommand_base {
@@ -131,6 +131,7 @@ declare const RegisterUsageCommand_base: {
131
131
  * @throws {@link MarketplaceMeteringServiceException}
132
132
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
133
133
  *
134
+ *
134
135
  * @public
135
136
  */
136
137
  export declare class RegisterUsageCommand extends RegisterUsageCommand_base {
@@ -92,6 +92,7 @@ declare const ResolveCustomerCommand_base: {
92
92
  * @throws {@link MarketplaceMeteringServiceException}
93
93
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
94
94
  *
95
+ *
95
96
  * @public
96
97
  */
97
98
  export declare class ResolveCustomerCommand extends ResolveCustomerCommand_base {
@@ -3,10 +3,10 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provi
3
3
  * @public
4
4
  */
5
5
  export interface ClientInputEndpointParameters {
6
- region?: string | Provider<string>;
7
6
  useDualstackEndpoint?: boolean | Provider<boolean>;
8
7
  useFipsEndpoint?: boolean | Provider<boolean>;
9
8
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
9
+ region?: string | Provider<string>;
10
10
  }
11
11
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
12
  defaultSigningName: string;
@@ -33,8 +33,8 @@ export declare const commonParams: {
33
33
  };
34
34
  };
35
35
  export interface EndpointParameters extends __EndpointParameters {
36
- Region?: string;
37
36
  UseDualStack?: boolean;
38
37
  UseFIPS?: boolean;
39
38
  Endpoint?: string;
39
+ Region?: string;
40
40
  }
@@ -5,7 +5,6 @@ import {
5
5
  Provider,
6
6
  } from "@smithy/types";
7
7
  export interface ClientInputEndpointParameters {
8
- region?: string | Provider<string>;
9
8
  useDualstackEndpoint?: boolean | Provider<boolean>;
10
9
  useFipsEndpoint?: boolean | Provider<boolean>;
11
10
  endpoint?:
@@ -15,6 +14,7 @@ export interface ClientInputEndpointParameters {
15
14
  | Provider<Endpoint>
16
15
  | EndpointV2
17
16
  | Provider<EndpointV2>;
17
+ region?: string | Provider<string>;
18
18
  }
19
19
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
20
  defaultSigningName: string;
@@ -44,8 +44,8 @@ export declare const commonParams: {
44
44
  };
45
45
  };
46
46
  export interface EndpointParameters extends __EndpointParameters {
47
- Region?: string;
48
47
  UseDualStack?: boolean;
49
48
  UseFIPS?: boolean;
50
49
  Endpoint?: string;
50
+ Region?: string;
51
51
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-metering",
3
3
  "description": "AWS SDK for JavaScript Marketplace Metering Client for Node.js, Browser and React Native",
4
- "version": "3.775.0",
4
+ "version": "3.778.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-marketplace-metering",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.775.0",
24
+ "@aws-sdk/credential-provider-node": "3.777.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",