@aws-sdk/client-sustainability 3.1137.0 → 3.1138.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
CHANGED
|
@@ -197,7 +197,7 @@ const commonParams = {
|
|
|
197
197
|
Region: { type: "builtInParams", name: "region" },
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
var version = "3.
|
|
200
|
+
var version = "3.1137.0";
|
|
201
201
|
var packageInfo = {
|
|
202
202
|
version: version};
|
|
203
203
|
|
|
@@ -326,10 +326,10 @@ const _m = "message";
|
|
|
326
326
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sustainability";
|
|
327
327
|
const _se = "server";
|
|
328
328
|
const n0 = "com.amazonaws.sustainability";
|
|
329
|
-
const _s_registry = TypeRegistry
|
|
329
|
+
const _s_registry = new TypeRegistry(_s);
|
|
330
330
|
var SustainabilityServiceException$ = [-3, _s, "SustainabilityServiceException", 0, [], []];
|
|
331
331
|
_s_registry.registerError(SustainabilityServiceException$, SustainabilityServiceException);
|
|
332
|
-
const n0_registry = TypeRegistry
|
|
332
|
+
const n0_registry = new TypeRegistry(n0);
|
|
333
333
|
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
334
334
|
{ [_e]: _c, [_hE]: 403 },
|
|
335
335
|
[_M],
|
|
@@ -60,10 +60,10 @@ const n0 = "com.amazonaws.sustainability";
|
|
|
60
60
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
61
61
|
import { AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
62
62
|
import { SustainabilityServiceException } from "../models/SustainabilityServiceException";
|
|
63
|
-
const _s_registry = TypeRegistry
|
|
63
|
+
const _s_registry = new TypeRegistry(_s);
|
|
64
64
|
export var SustainabilityServiceException$ = [-3, _s, "SustainabilityServiceException", 0, [], []];
|
|
65
65
|
_s_registry.registerError(SustainabilityServiceException$, SustainabilityServiceException);
|
|
66
|
-
const n0_registry = TypeRegistry
|
|
66
|
+
const n0_registry = new TypeRegistry(n0);
|
|
67
67
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
68
68
|
{ [_e]: _c, [_hE]: 403 },
|
|
69
69
|
[_M],
|
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { type GetEstimatedCarbonEmissionsCommandInput, type GetEstimatedCarbonEmissionsCommandOutput } from "./commands/GetEstimatedCarbonEmissionsCommand";
|
|
3
3
|
import { type GetEstimatedCarbonEmissionsDimensionValuesCommandInput, type GetEstimatedCarbonEmissionsDimensionValuesCommandOutput } from "./commands/GetEstimatedCarbonEmissionsDimensionValuesCommand";
|
|
4
4
|
import { type GetEstimatedWaterAllocationCommandInput, type GetEstimatedWaterAllocationCommandOutput } from "./commands/GetEstimatedWaterAllocationCommand";
|
|
5
5
|
import { type GetEstimatedWaterAllocationDimensionValuesCommandInput, type GetEstimatedWaterAllocationDimensionValuesCommandOutput } from "./commands/GetEstimatedWaterAllocationDimensionValuesCommand";
|
|
6
6
|
import { SustainabilityClient } from "./SustainabilityClient";
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export interface SustainabilityRequestOptions extends __HttpHandlerOptions {
|
|
11
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
12
|
+
}
|
|
7
13
|
export interface Sustainability {
|
|
8
14
|
/**
|
|
9
15
|
* @see {@link GetEstimatedCarbonEmissionsCommand}
|
|
10
16
|
*/
|
|
11
|
-
getEstimatedCarbonEmissions(args: GetEstimatedCarbonEmissionsCommandInput, options?:
|
|
17
|
+
getEstimatedCarbonEmissions(args: GetEstimatedCarbonEmissionsCommandInput, options?: SustainabilityRequestOptions): Promise<GetEstimatedCarbonEmissionsCommandOutput>;
|
|
12
18
|
getEstimatedCarbonEmissions(args: GetEstimatedCarbonEmissionsCommandInput, cb: (err: any, data?: GetEstimatedCarbonEmissionsCommandOutput) => void): void;
|
|
13
|
-
getEstimatedCarbonEmissions(args: GetEstimatedCarbonEmissionsCommandInput, options:
|
|
19
|
+
getEstimatedCarbonEmissions(args: GetEstimatedCarbonEmissionsCommandInput, options: SustainabilityRequestOptions, cb: (err: any, data?: GetEstimatedCarbonEmissionsCommandOutput) => void): void;
|
|
14
20
|
/**
|
|
15
21
|
* @see {@link GetEstimatedCarbonEmissionsDimensionValuesCommand}
|
|
16
22
|
*/
|
|
17
|
-
getEstimatedCarbonEmissionsDimensionValues(args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput, options?:
|
|
23
|
+
getEstimatedCarbonEmissionsDimensionValues(args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput, options?: SustainabilityRequestOptions): Promise<GetEstimatedCarbonEmissionsDimensionValuesCommandOutput>;
|
|
18
24
|
getEstimatedCarbonEmissionsDimensionValues(args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput, cb: (err: any, data?: GetEstimatedCarbonEmissionsDimensionValuesCommandOutput) => void): void;
|
|
19
|
-
getEstimatedCarbonEmissionsDimensionValues(args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput, options:
|
|
25
|
+
getEstimatedCarbonEmissionsDimensionValues(args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput, options: SustainabilityRequestOptions, cb: (err: any, data?: GetEstimatedCarbonEmissionsDimensionValuesCommandOutput) => void): void;
|
|
20
26
|
/**
|
|
21
27
|
* @see {@link GetEstimatedWaterAllocationCommand}
|
|
22
28
|
*/
|
|
23
|
-
getEstimatedWaterAllocation(args: GetEstimatedWaterAllocationCommandInput, options?:
|
|
29
|
+
getEstimatedWaterAllocation(args: GetEstimatedWaterAllocationCommandInput, options?: SustainabilityRequestOptions): Promise<GetEstimatedWaterAllocationCommandOutput>;
|
|
24
30
|
getEstimatedWaterAllocation(args: GetEstimatedWaterAllocationCommandInput, cb: (err: any, data?: GetEstimatedWaterAllocationCommandOutput) => void): void;
|
|
25
|
-
getEstimatedWaterAllocation(args: GetEstimatedWaterAllocationCommandInput, options:
|
|
31
|
+
getEstimatedWaterAllocation(args: GetEstimatedWaterAllocationCommandInput, options: SustainabilityRequestOptions, cb: (err: any, data?: GetEstimatedWaterAllocationCommandOutput) => void): void;
|
|
26
32
|
/**
|
|
27
33
|
* @see {@link GetEstimatedWaterAllocationDimensionValuesCommand}
|
|
28
34
|
*/
|
|
29
|
-
getEstimatedWaterAllocationDimensionValues(args: GetEstimatedWaterAllocationDimensionValuesCommandInput, options?:
|
|
35
|
+
getEstimatedWaterAllocationDimensionValues(args: GetEstimatedWaterAllocationDimensionValuesCommandInput, options?: SustainabilityRequestOptions): Promise<GetEstimatedWaterAllocationDimensionValuesCommandOutput>;
|
|
30
36
|
getEstimatedWaterAllocationDimensionValues(args: GetEstimatedWaterAllocationDimensionValuesCommandInput, cb: (err: any, data?: GetEstimatedWaterAllocationDimensionValuesCommandOutput) => void): void;
|
|
31
|
-
getEstimatedWaterAllocationDimensionValues(args: GetEstimatedWaterAllocationDimensionValuesCommandInput, options:
|
|
37
|
+
getEstimatedWaterAllocationDimensionValues(args: GetEstimatedWaterAllocationDimensionValuesCommandInput, options: SustainabilityRequestOptions, cb: (err: any, data?: GetEstimatedWaterAllocationDimensionValuesCommandOutput) => void): void;
|
|
32
38
|
/**
|
|
33
39
|
* @see {@link GetEstimatedCarbonEmissionsCommand}
|
|
34
40
|
* @param args - command input.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
3
4
|
PaginationConfiguration,
|
|
4
5
|
Paginator,
|
|
5
6
|
} from "@smithy/types";
|
|
@@ -20,10 +21,13 @@ import {
|
|
|
20
21
|
GetEstimatedWaterAllocationDimensionValuesCommandOutput,
|
|
21
22
|
} from "./commands/GetEstimatedWaterAllocationDimensionValuesCommand";
|
|
22
23
|
import { SustainabilityClient } from "./SustainabilityClient";
|
|
24
|
+
export interface SustainabilityRequestOptions extends __HttpHandlerOptions {
|
|
25
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
26
|
+
}
|
|
23
27
|
export interface Sustainability {
|
|
24
28
|
getEstimatedCarbonEmissions(
|
|
25
29
|
args: GetEstimatedCarbonEmissionsCommandInput,
|
|
26
|
-
options?:
|
|
30
|
+
options?: SustainabilityRequestOptions,
|
|
27
31
|
): Promise<GetEstimatedCarbonEmissionsCommandOutput>;
|
|
28
32
|
getEstimatedCarbonEmissions(
|
|
29
33
|
args: GetEstimatedCarbonEmissionsCommandInput,
|
|
@@ -31,12 +35,12 @@ export interface Sustainability {
|
|
|
31
35
|
): void;
|
|
32
36
|
getEstimatedCarbonEmissions(
|
|
33
37
|
args: GetEstimatedCarbonEmissionsCommandInput,
|
|
34
|
-
options:
|
|
38
|
+
options: SustainabilityRequestOptions,
|
|
35
39
|
cb: (err: any, data?: GetEstimatedCarbonEmissionsCommandOutput) => void,
|
|
36
40
|
): void;
|
|
37
41
|
getEstimatedCarbonEmissionsDimensionValues(
|
|
38
42
|
args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
39
|
-
options?:
|
|
43
|
+
options?: SustainabilityRequestOptions,
|
|
40
44
|
): Promise<GetEstimatedCarbonEmissionsDimensionValuesCommandOutput>;
|
|
41
45
|
getEstimatedCarbonEmissionsDimensionValues(
|
|
42
46
|
args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
@@ -44,12 +48,12 @@ export interface Sustainability {
|
|
|
44
48
|
): void;
|
|
45
49
|
getEstimatedCarbonEmissionsDimensionValues(
|
|
46
50
|
args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
47
|
-
options:
|
|
51
|
+
options: SustainabilityRequestOptions,
|
|
48
52
|
cb: (err: any, data?: GetEstimatedCarbonEmissionsDimensionValuesCommandOutput) => void,
|
|
49
53
|
): void;
|
|
50
54
|
getEstimatedWaterAllocation(
|
|
51
55
|
args: GetEstimatedWaterAllocationCommandInput,
|
|
52
|
-
options?:
|
|
56
|
+
options?: SustainabilityRequestOptions,
|
|
53
57
|
): Promise<GetEstimatedWaterAllocationCommandOutput>;
|
|
54
58
|
getEstimatedWaterAllocation(
|
|
55
59
|
args: GetEstimatedWaterAllocationCommandInput,
|
|
@@ -57,12 +61,12 @@ export interface Sustainability {
|
|
|
57
61
|
): void;
|
|
58
62
|
getEstimatedWaterAllocation(
|
|
59
63
|
args: GetEstimatedWaterAllocationCommandInput,
|
|
60
|
-
options:
|
|
64
|
+
options: SustainabilityRequestOptions,
|
|
61
65
|
cb: (err: any, data?: GetEstimatedWaterAllocationCommandOutput) => void,
|
|
62
66
|
): void;
|
|
63
67
|
getEstimatedWaterAllocationDimensionValues(
|
|
64
68
|
args: GetEstimatedWaterAllocationDimensionValuesCommandInput,
|
|
65
|
-
options?:
|
|
69
|
+
options?: SustainabilityRequestOptions,
|
|
66
70
|
): Promise<GetEstimatedWaterAllocationDimensionValuesCommandOutput>;
|
|
67
71
|
getEstimatedWaterAllocationDimensionValues(
|
|
68
72
|
args: GetEstimatedWaterAllocationDimensionValuesCommandInput,
|
|
@@ -70,7 +74,7 @@ export interface Sustainability {
|
|
|
70
74
|
): void;
|
|
71
75
|
getEstimatedWaterAllocationDimensionValues(
|
|
72
76
|
args: GetEstimatedWaterAllocationDimensionValuesCommandInput,
|
|
73
|
-
options:
|
|
77
|
+
options: SustainabilityRequestOptions,
|
|
74
78
|
cb: (err: any, data?: GetEstimatedWaterAllocationDimensionValuesCommandOutput) => void,
|
|
75
79
|
): void;
|
|
76
80
|
paginateGetEstimatedCarbonEmissions(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sustainability",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1138.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Sustainability Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sustainability",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
52
|
-
"@aws-sdk/types": "^3.974.
|
|
53
|
-
"@smithy/core": "^3.
|
|
54
|
-
"@smithy/fetch-http-handler": "^5.
|
|
55
|
-
"@smithy/node-http-handler": "^4.
|
|
56
|
-
"@smithy/types": "^4.
|
|
49
|
+
"@aws-sdk/core": "^3.978.1",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.84",
|
|
51
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.47",
|
|
52
|
+
"@aws-sdk/types": "^3.974.6",
|
|
53
|
+
"@smithy/core": "^3.35.0",
|
|
54
|
+
"@smithy/fetch-http-handler": "^5.8.0",
|
|
55
|
+
"@smithy/node-http-handler": "^4.12.1",
|
|
56
|
+
"@smithy/types": "^4.19.0",
|
|
57
57
|
"tslib": "^2.6.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|