@aws-sdk/client-sustainability 3.1088.0 → 3.1089.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/README.md +15 -1
- package/dist-cjs/index.js +89 -1
- package/dist-es/Sustainability.js +8 -0
- package/dist-es/commands/GetEstimatedWaterAllocationCommand.js +4 -0
- package/dist-es/commands/GetEstimatedWaterAllocationDimensionValuesCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +6 -0
- package/dist-es/pagination/GetEstimatedWaterAllocationDimensionValuesPaginator.js +4 -0
- package/dist-es/pagination/GetEstimatedWaterAllocationPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +55 -0
- package/dist-types/Sustainability.d.ts +29 -1
- package/dist-types/SustainabilityClient.d.ts +5 -3
- package/dist-types/commands/GetEstimatedWaterAllocationCommand.d.ts +162 -0
- package/dist-types/commands/GetEstimatedWaterAllocationDimensionValuesCommand.d.ts +149 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/enums.d.ts +34 -6
- package/dist-types/models/models_0.d.ts +146 -9
- package/dist-types/pagination/GetEstimatedWaterAllocationDimensionValuesPaginator.d.ts +7 -0
- package/dist-types/pagination/GetEstimatedWaterAllocationPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/Sustainability.d.ts +48 -0
- package/dist-types/ts3.4/SustainabilityClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/GetEstimatedWaterAllocationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetEstimatedWaterAllocationDimensionValuesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +41 -1
- package/dist-types/ts3.4/pagination/GetEstimatedWaterAllocationDimensionValuesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetEstimatedWaterAllocationPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +2 -2
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetEstimatedWaterAllocationRequest, GetEstimatedWaterAllocationResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetEstimatedWaterAllocationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetEstimatedWaterAllocationCommandInput extends GetEstimatedWaterAllocationRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetEstimatedWaterAllocationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetEstimatedWaterAllocationCommandOutput extends GetEstimatedWaterAllocationResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetEstimatedWaterAllocationCommand_base: {
|
|
22
|
+
new (input: GetEstimatedWaterAllocationCommandInput): import("@smithy/core/client").CommandImpl<GetEstimatedWaterAllocationCommandInput, GetEstimatedWaterAllocationCommandOutput, import("..").SustainabilityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetEstimatedWaterAllocationCommandInput): import("@smithy/core/client").CommandImpl<GetEstimatedWaterAllocationCommandInput, GetEstimatedWaterAllocationCommandOutput, import("..").SustainabilityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns estimated water allocation values based on customer grouping and filtering parameters. We recommend using pagination to ensure that the operation returns quickly and successfully. </p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SustainabilityClient, GetEstimatedWaterAllocationCommand } from "@aws-sdk/client-sustainability"; // ES Modules import
|
|
32
|
+
* // const { SustainabilityClient, GetEstimatedWaterAllocationCommand } = require("@aws-sdk/client-sustainability"); // CommonJS import
|
|
33
|
+
* // import type { SustainabilityClientConfig } from "@aws-sdk/client-sustainability";
|
|
34
|
+
* const config = {}; // type is SustainabilityClientConfig
|
|
35
|
+
* const client = new SustainabilityClient(config);
|
|
36
|
+
* const input = { // GetEstimatedWaterAllocationRequest
|
|
37
|
+
* TimePeriod: { // TimePeriod
|
|
38
|
+
* Start: new Date("TIMESTAMP"), // required
|
|
39
|
+
* End: new Date("TIMESTAMP"), // required
|
|
40
|
+
* },
|
|
41
|
+
* GroupBy: [ // DimensionList
|
|
42
|
+
* "USAGE_ACCOUNT_ID" || "REGION" || "SERVICE",
|
|
43
|
+
* ],
|
|
44
|
+
* FilterBy: { // FilterExpression
|
|
45
|
+
* Dimensions: { // DimensionListMap
|
|
46
|
+
* "<keys>": [ // DimensionValueList
|
|
47
|
+
* "STRING_VALUE",
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* AllocationTypes: [ // WaterAllocationTypeList
|
|
52
|
+
* "TOTAL_WATER_WITHDRAWALS",
|
|
53
|
+
* ],
|
|
54
|
+
* Granularity: "YEARLY_CALENDAR" || "YEARLY_FISCAL" || "QUARTERLY_CALENDAR" || "QUARTERLY_FISCAL" || "MONTHLY",
|
|
55
|
+
* MaxResults: Number("int"),
|
|
56
|
+
* NextToken: "STRING_VALUE",
|
|
57
|
+
* };
|
|
58
|
+
* const command = new GetEstimatedWaterAllocationCommand(input);
|
|
59
|
+
* const response = await client.send(command);
|
|
60
|
+
* // { // GetEstimatedWaterAllocationResponse
|
|
61
|
+
* // Results: [ // EstimatedWaterAllocationList // required
|
|
62
|
+
* // { // EstimatedWaterAllocation
|
|
63
|
+
* // TimePeriod: { // TimePeriod
|
|
64
|
+
* // Start: new Date("TIMESTAMP"), // required
|
|
65
|
+
* // End: new Date("TIMESTAMP"), // required
|
|
66
|
+
* // },
|
|
67
|
+
* // DimensionsValues: { // DimensionsMap // required
|
|
68
|
+
* // "<keys>": "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // ModelVersion: "STRING_VALUE", // required
|
|
71
|
+
* // AllocationValues: { // WaterAllocationMap // required
|
|
72
|
+
* // "<keys>": { // WaterAllocation
|
|
73
|
+
* // Value: Number("double"), // required
|
|
74
|
+
* // Unit: "m3", // required
|
|
75
|
+
* // },
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // ],
|
|
79
|
+
* // NextToken: "STRING_VALUE",
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param GetEstimatedWaterAllocationCommandInput - {@link GetEstimatedWaterAllocationCommandInput}
|
|
85
|
+
* @returns {@link GetEstimatedWaterAllocationCommandOutput}
|
|
86
|
+
* @see {@link GetEstimatedWaterAllocationCommandInput} for command's `input` shape.
|
|
87
|
+
* @see {@link GetEstimatedWaterAllocationCommandOutput} for command's `response` shape.
|
|
88
|
+
* @see {@link SustainabilityClientResolvedConfig | config} for SustainabilityClient's `config` shape.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
91
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link InternalServerException} (server fault)
|
|
94
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
97
|
+
* <p>The request was denied due to request throttling.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ValidationException} (client fault)
|
|
100
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link SustainabilityServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from Sustainability service.</p>
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
* @example GetEstimatedWaterAllocationSuccess
|
|
107
|
+
* ```javascript
|
|
108
|
+
* //
|
|
109
|
+
* const input = {
|
|
110
|
+
* AllocationTypes: [
|
|
111
|
+
* "TOTAL_WATER_WITHDRAWALS"
|
|
112
|
+
* ],
|
|
113
|
+
* Granularity: "YEARLY_CALENDAR",
|
|
114
|
+
* GroupBy: [
|
|
115
|
+
* "SERVICE"
|
|
116
|
+
* ],
|
|
117
|
+
* TimePeriod: {
|
|
118
|
+
* End: "2026-01-01T00:00:00.00Z",
|
|
119
|
+
* Start: "2025-01-01T00:00:00.00Z"
|
|
120
|
+
* }
|
|
121
|
+
* };
|
|
122
|
+
* const command = new GetEstimatedWaterAllocationCommand(input);
|
|
123
|
+
* const response = await client.send(command);
|
|
124
|
+
* /* response is
|
|
125
|
+
* {
|
|
126
|
+
* Results: [
|
|
127
|
+
* {
|
|
128
|
+
* AllocationValues: {
|
|
129
|
+
* TOTAL_WATER_WITHDRAWALS: {
|
|
130
|
+
* Unit: "m3",
|
|
131
|
+
* Value: 1
|
|
132
|
+
* }
|
|
133
|
+
* },
|
|
134
|
+
* DimensionsValues: {
|
|
135
|
+
* SERVICE: "AmazonEC2"
|
|
136
|
+
* },
|
|
137
|
+
* ModelVersion: "v1.0.0",
|
|
138
|
+
* TimePeriod: {
|
|
139
|
+
* End: "2026-01-01T00:00:00Z",
|
|
140
|
+
* Start: "2025-01-01T00:00:00Z"
|
|
141
|
+
* }
|
|
142
|
+
* }
|
|
143
|
+
* ]
|
|
144
|
+
* }
|
|
145
|
+
* *\/
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export declare class GetEstimatedWaterAllocationCommand extends GetEstimatedWaterAllocationCommand_base {
|
|
151
|
+
/** @internal type navigation helper, not in runtime. */
|
|
152
|
+
protected static __types: {
|
|
153
|
+
api: {
|
|
154
|
+
input: GetEstimatedWaterAllocationRequest;
|
|
155
|
+
output: GetEstimatedWaterAllocationResponse;
|
|
156
|
+
};
|
|
157
|
+
sdk: {
|
|
158
|
+
input: GetEstimatedWaterAllocationCommandInput;
|
|
159
|
+
output: GetEstimatedWaterAllocationCommandOutput;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetEstimatedWaterAllocationDimensionValuesRequest, GetEstimatedWaterAllocationDimensionValuesResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetEstimatedWaterAllocationDimensionValuesCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetEstimatedWaterAllocationDimensionValuesCommandInput extends GetEstimatedWaterAllocationDimensionValuesRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetEstimatedWaterAllocationDimensionValuesCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetEstimatedWaterAllocationDimensionValuesCommandOutput extends GetEstimatedWaterAllocationDimensionValuesResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetEstimatedWaterAllocationDimensionValuesCommand_base: {
|
|
22
|
+
new (input: GetEstimatedWaterAllocationDimensionValuesCommandInput): import("@smithy/core/client").CommandImpl<GetEstimatedWaterAllocationDimensionValuesCommandInput, GetEstimatedWaterAllocationDimensionValuesCommandOutput, import("..").SustainabilityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetEstimatedWaterAllocationDimensionValuesCommandInput): import("@smithy/core/client").CommandImpl<GetEstimatedWaterAllocationDimensionValuesCommandInput, GetEstimatedWaterAllocationDimensionValuesCommandOutput, import("..").SustainabilityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns the possible dimension values available for a customer's account. We recommend using pagination to ensure that the operation returns quickly and successfully. </p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SustainabilityClient, GetEstimatedWaterAllocationDimensionValuesCommand } from "@aws-sdk/client-sustainability"; // ES Modules import
|
|
32
|
+
* // const { SustainabilityClient, GetEstimatedWaterAllocationDimensionValuesCommand } = require("@aws-sdk/client-sustainability"); // CommonJS import
|
|
33
|
+
* // import type { SustainabilityClientConfig } from "@aws-sdk/client-sustainability";
|
|
34
|
+
* const config = {}; // type is SustainabilityClientConfig
|
|
35
|
+
* const client = new SustainabilityClient(config);
|
|
36
|
+
* const input = { // GetEstimatedWaterAllocationDimensionValuesRequest
|
|
37
|
+
* TimePeriod: { // TimePeriod
|
|
38
|
+
* Start: new Date("TIMESTAMP"), // required
|
|
39
|
+
* End: new Date("TIMESTAMP"), // required
|
|
40
|
+
* },
|
|
41
|
+
* Dimensions: [ // DimensionList // required
|
|
42
|
+
* "USAGE_ACCOUNT_ID" || "REGION" || "SERVICE",
|
|
43
|
+
* ],
|
|
44
|
+
* MaxResults: Number("int"),
|
|
45
|
+
* NextToken: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new GetEstimatedWaterAllocationDimensionValuesCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // GetEstimatedWaterAllocationDimensionValuesResponse
|
|
50
|
+
* // Results: [ // DimensionEntryList // required
|
|
51
|
+
* // { // DimensionEntry
|
|
52
|
+
* // Dimension: "USAGE_ACCOUNT_ID" || "REGION" || "SERVICE", // required
|
|
53
|
+
* // Value: "STRING_VALUE", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // NextToken: "STRING_VALUE",
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param GetEstimatedWaterAllocationDimensionValuesCommandInput - {@link GetEstimatedWaterAllocationDimensionValuesCommandInput}
|
|
62
|
+
* @returns {@link GetEstimatedWaterAllocationDimensionValuesCommandOutput}
|
|
63
|
+
* @see {@link GetEstimatedWaterAllocationDimensionValuesCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link GetEstimatedWaterAllocationDimensionValuesCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link SustainabilityClientResolvedConfig | config} for SustainabilityClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
68
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p>The request processing has failed because of an unknown error, exception, or failure.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>The request was denied due to request throttling.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link SustainabilityServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from Sustainability service.</p>
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @example GetEstimatedWaterAllocationDimensionValuesSuccess
|
|
84
|
+
* ```javascript
|
|
85
|
+
* //
|
|
86
|
+
* const input = {
|
|
87
|
+
* Dimensions: [
|
|
88
|
+
* "REGION",
|
|
89
|
+
* "SERVICE",
|
|
90
|
+
* "USAGE_ACCOUNT_ID"
|
|
91
|
+
* ],
|
|
92
|
+
* TimePeriod: {
|
|
93
|
+
* End: "2026-01-01T00:00:00.00Z",
|
|
94
|
+
* Start: "2025-01-01T00:00:00.00Z"
|
|
95
|
+
* }
|
|
96
|
+
* };
|
|
97
|
+
* const command = new GetEstimatedWaterAllocationDimensionValuesCommand(input);
|
|
98
|
+
* const response = await client.send(command);
|
|
99
|
+
* /* response is
|
|
100
|
+
* {
|
|
101
|
+
* Results: [
|
|
102
|
+
* {
|
|
103
|
+
* Dimension: "SERVICE",
|
|
104
|
+
* Value: "AmazonEC2"
|
|
105
|
+
* },
|
|
106
|
+
* {
|
|
107
|
+
* Dimension: "SERVICE",
|
|
108
|
+
* Value: "AmazonS3"
|
|
109
|
+
* },
|
|
110
|
+
* {
|
|
111
|
+
* Dimension: "SERVICE",
|
|
112
|
+
* Value: "AmazonCloudFront"
|
|
113
|
+
* },
|
|
114
|
+
* {
|
|
115
|
+
* Dimension: "REGION",
|
|
116
|
+
* Value: "global"
|
|
117
|
+
* },
|
|
118
|
+
* {
|
|
119
|
+
* Dimension: "REGION",
|
|
120
|
+
* Value: "us-east-1"
|
|
121
|
+
* },
|
|
122
|
+
* {
|
|
123
|
+
* Dimension: "REGION",
|
|
124
|
+
* Value: "us-west-2"
|
|
125
|
+
* },
|
|
126
|
+
* {
|
|
127
|
+
* Dimension: "USAGE_ACCOUNT_ID",
|
|
128
|
+
* Value: "111222333444"
|
|
129
|
+
* }
|
|
130
|
+
* ]
|
|
131
|
+
* }
|
|
132
|
+
* *\/
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export declare class GetEstimatedWaterAllocationDimensionValuesCommand extends GetEstimatedWaterAllocationDimensionValuesCommand_base {
|
|
138
|
+
/** @internal type navigation helper, not in runtime. */
|
|
139
|
+
protected static __types: {
|
|
140
|
+
api: {
|
|
141
|
+
input: GetEstimatedWaterAllocationDimensionValuesRequest;
|
|
142
|
+
output: GetEstimatedWaterAllocationDimensionValuesResponse;
|
|
143
|
+
};
|
|
144
|
+
sdk: {
|
|
145
|
+
input: GetEstimatedWaterAllocationDimensionValuesCommandInput;
|
|
146
|
+
output: GetEstimatedWaterAllocationDimensionValuesCommandOutput;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <p>The AWS Sustainability service provides programmatic access to estimated
|
|
2
|
+
* <p>The AWS Sustainability service provides programmatic access to estimated environmental impact data for your Amazon Web Services usage. Use the AWS Sustainability service to retrieve, analyze, and track the environmental impact of your cloud infrastructure over time. </p> <p>With the AWS Sustainability service, you can:</p> <ul> <li> <p>Retrieve estimated carbon emissions and water allocation for your Amazon Web Services usage across different time periods </p> </li> <li> <p>Group environmental impact data by dimensions such as account, region, and service</p> </li> <li> <p>Filter environmental impact data to focus on specific accounts, regions, or services</p> </li> <li> <p>Access multiple carbon emissions calculation methodologies including Location-based Method (LBM) and Market-based Method (MBM) </p> </li> <li> <p>Aggregate environmental impact data at various time granularities including monthly, quarterly, and yearly periods </p> </li> </ul> <p> The API supports pagination for efficient data retrieval and provides dimension values to help you understand the available grouping and filtering options for your account. </p>
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
@@ -50,7 +50,7 @@ export declare const Dimension: {
|
|
|
50
50
|
*/
|
|
51
51
|
readonly SERVICE: "SERVICE";
|
|
52
52
|
/**
|
|
53
|
-
* <p>The account ID whose Amazon Web Services usage
|
|
53
|
+
* <p>The account ID whose Amazon Web Services usage is associated with the estimated environmental impact data.</p>
|
|
54
54
|
*/
|
|
55
55
|
readonly USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID";
|
|
56
56
|
};
|
|
@@ -64,23 +64,23 @@ export type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const TimeGranularity: {
|
|
66
66
|
/**
|
|
67
|
-
* <p>
|
|
67
|
+
* <p>Environmental impact data aggregated by calendar month.</p>
|
|
68
68
|
*/
|
|
69
69
|
readonly MONTHLY: "MONTHLY";
|
|
70
70
|
/**
|
|
71
|
-
* <p>
|
|
71
|
+
* <p>Environmental impact data aggregated over calendar quarter periods (Q1: Jan-Mar, Q2: Apr-Jun, Q3: Jul-Sep, Q4: Oct-Dec).</p>
|
|
72
72
|
*/
|
|
73
73
|
readonly QUARTERLY_CALENDAR: "QUARTERLY_CALENDAR";
|
|
74
74
|
/**
|
|
75
|
-
* <p>
|
|
75
|
+
* <p>Environmental impact data aggregated over fiscal quarter periods based on the fiscal year start month specified in GranularityConfiguration.FiscalYearStartMonth.</p>
|
|
76
76
|
*/
|
|
77
77
|
readonly QUARTERLY_FISCAL: "QUARTERLY_FISCAL";
|
|
78
78
|
/**
|
|
79
|
-
* <p>
|
|
79
|
+
* <p>Environmental impact data aggregated over calendar year periods (January-December).</p>
|
|
80
80
|
*/
|
|
81
81
|
readonly YEARLY_CALENDAR: "YEARLY_CALENDAR";
|
|
82
82
|
/**
|
|
83
|
-
* <p>
|
|
83
|
+
* <p>Environmental impact data aggregated over fiscal year periods starting from the month specified in GranularityConfiguration.FiscalYearStartMonth.</p>
|
|
84
84
|
*/
|
|
85
85
|
readonly YEARLY_FISCAL: "YEARLY_FISCAL";
|
|
86
86
|
};
|
|
@@ -102,3 +102,31 @@ export declare const EmissionsUnit: {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
export type EmissionsUnit = (typeof EmissionsUnit)[keyof typeof EmissionsUnit];
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
* @enum
|
|
108
|
+
*/
|
|
109
|
+
export declare const WaterAllocationType: {
|
|
110
|
+
/**
|
|
111
|
+
* <p>Total water drawn from surface water, groundwater, seawater, or a third party associated with Amazon Web Services account usage.</p>
|
|
112
|
+
*/
|
|
113
|
+
readonly TOTAL_WATER_WITHDRAWALS: "TOTAL_WATER_WITHDRAWALS";
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export type WaterAllocationType = (typeof WaterAllocationType)[keyof typeof WaterAllocationType];
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* @enum
|
|
122
|
+
*/
|
|
123
|
+
export declare const WaterAllocationUnit: {
|
|
124
|
+
/**
|
|
125
|
+
* <p>Cubic meters of water.</p>
|
|
126
|
+
*/
|
|
127
|
+
readonly CUBIC_METERS: "m3";
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
export type WaterAllocationUnit = (typeof WaterAllocationUnit)[keyof typeof WaterAllocationUnit];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Dimension, EmissionsType, EmissionsUnit, TimeGranularity } from "./enums";
|
|
1
|
+
import type { Dimension, EmissionsType, EmissionsUnit, TimeGranularity, WaterAllocationType, WaterAllocationUnit } from "./enums";
|
|
2
2
|
/**
|
|
3
|
-
* <p>Filters
|
|
3
|
+
* <p>Filters environmental impact values by specific dimension values.</p>
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
export interface FilterExpression {
|
|
7
7
|
/**
|
|
8
|
-
* <p>Filters
|
|
8
|
+
* <p>Filters environmental impact values by specific dimension values.</p>
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
Dimensions?: Partial<Record<Dimension, string[]>> | undefined;
|
|
@@ -42,7 +42,7 @@ export interface TimePeriod {
|
|
|
42
42
|
*/
|
|
43
43
|
export interface GetEstimatedCarbonEmissionsRequest {
|
|
44
44
|
/**
|
|
45
|
-
* <p>The date range for fetching estimated carbon emissions
|
|
45
|
+
* <p> The date range for fetching estimated carbon emissions. The range must include the start date of a month for that month's data to be included in the response. </p>
|
|
46
46
|
* @public
|
|
47
47
|
*/
|
|
48
48
|
TimePeriod: TimePeriod | undefined;
|
|
@@ -52,7 +52,7 @@ export interface GetEstimatedCarbonEmissionsRequest {
|
|
|
52
52
|
*/
|
|
53
53
|
GroupBy?: Dimension[] | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* <p>The criteria for filtering estimated carbon emissions
|
|
55
|
+
* <p> The criteria for filtering estimated carbon emissions. To determine which dimensions are available to be filtered by, you can first call <a>GetEstimatedCarbonEmissionsDimensionValues</a> </p>
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
58
|
FilterBy?: FilterExpression | undefined;
|
|
@@ -62,7 +62,7 @@ export interface GetEstimatedCarbonEmissionsRequest {
|
|
|
62
62
|
*/
|
|
63
63
|
EmissionsTypes?: EmissionsType[] | undefined;
|
|
64
64
|
/**
|
|
65
|
-
* <p>The time granularity for the results. If absent, uses <code>MONTHLY</code> time granularity
|
|
65
|
+
* <p> The time granularity for the results. If absent, uses <code>MONTHLY</code> time granularity. The smallest supported granularity for carbon emissions is <code>MONTHLY</code>. </p> <p> If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting <code>2025-04-01T00:00:00Z</code> to <code>2026-04-01T00:00:00Z</code> with <code>YEARLY_CALENDAR</code> granularity will return the last 9 months for 2025 and the first 3 months of 2026. </p>
|
|
66
66
|
* @public
|
|
67
67
|
*/
|
|
68
68
|
Granularity?: TimeGranularity | undefined;
|
|
@@ -72,7 +72,7 @@ export interface GetEstimatedCarbonEmissionsRequest {
|
|
|
72
72
|
*/
|
|
73
73
|
GranularityConfiguration?: GranularityConfiguration | undefined;
|
|
74
74
|
/**
|
|
75
|
-
* <p>The maximum number of results to return in a single call. Default is
|
|
75
|
+
* <p>The maximum number of results to return in a single call. Default is 1000.</p>
|
|
76
76
|
* @public
|
|
77
77
|
*/
|
|
78
78
|
MaxResults?: number | undefined;
|
|
@@ -144,7 +144,7 @@ export interface GetEstimatedCarbonEmissionsResponse {
|
|
|
144
144
|
*/
|
|
145
145
|
export interface GetEstimatedCarbonEmissionsDimensionValuesRequest {
|
|
146
146
|
/**
|
|
147
|
-
* <p>The date range for fetching the dimension values
|
|
147
|
+
* <p> The date range for fetching the dimension values. The range must include the start date of a month for that month's dimensions to be included in the response. </p>
|
|
148
148
|
* @public
|
|
149
149
|
*/
|
|
150
150
|
TimePeriod: TimePeriod | undefined;
|
|
@@ -154,7 +154,7 @@ export interface GetEstimatedCarbonEmissionsDimensionValuesRequest {
|
|
|
154
154
|
*/
|
|
155
155
|
Dimensions: Dimension[] | undefined;
|
|
156
156
|
/**
|
|
157
|
-
* <p>The maximum number of results to return in a single call. Default is
|
|
157
|
+
* <p>The maximum number of results to return in a single call. Default is 1000.</p>
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
MaxResults?: number | undefined;
|
|
@@ -195,3 +195,140 @@ export interface GetEstimatedCarbonEmissionsDimensionValuesResponse {
|
|
|
195
195
|
*/
|
|
196
196
|
NextToken?: string | undefined;
|
|
197
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
export interface GetEstimatedWaterAllocationRequest {
|
|
202
|
+
/**
|
|
203
|
+
* <p> The date range for fetching estimated water allocation. The range must include the start date of a year for that year's data to be included in the response. </p>
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
TimePeriod: TimePeriod | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* <p>The dimensions available for grouping estimated water allocation.</p>
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
GroupBy?: Dimension[] | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* <p> The criteria for filtering estimated water allocation. To determine which dimensions are available to be filtered by, you can first call <a>GetEstimatedWaterAllocationDimensionValues</a> </p>
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
FilterBy?: FilterExpression | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* <p>The allocation types to include in the results. If absent, returns <code>TOTAL_WATER_WITHDRAWALS</code> allocation types. </p>
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
AllocationTypes?: WaterAllocationType[] | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* <p>The time granularity for the results. Only <code>YEARLY_CALENDAR</code> time granularity is currently supported for water allocation. Defaults to <code>YEARLY_CALENDAR</code> if absent.</p> <p> If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting <code>2025-04-01T00:00:00Z</code> to <code>2026-04-01T00:00:00Z</code> with <code>YEARLY_CALENDAR</code> will return all the data for 2026 only. </p>
|
|
224
|
+
* @public
|
|
225
|
+
*/
|
|
226
|
+
Granularity?: TimeGranularity | undefined;
|
|
227
|
+
/**
|
|
228
|
+
* <p>The maximum number of results to return in a single call. Default is 1000.</p>
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
MaxResults?: number | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* <p>The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. </p>
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
NextToken?: string | undefined;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* <p>Represents a water allocation quantity with its value and unit of measurement.</p>
|
|
240
|
+
* @public
|
|
241
|
+
*/
|
|
242
|
+
export interface WaterAllocation {
|
|
243
|
+
/**
|
|
244
|
+
* <p>The numeric value of the allocation quantity.</p>
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
Value: number | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* <p>The unit of measurement for the allocation value.</p>
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
252
|
+
Unit: WaterAllocationUnit | undefined;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* <p>Contains estimated water allocation data for a specific time period and dimension grouping.</p>
|
|
256
|
+
* @public
|
|
257
|
+
*/
|
|
258
|
+
export interface EstimatedWaterAllocation {
|
|
259
|
+
/**
|
|
260
|
+
* <p>The reporting period for water allocation values.</p>
|
|
261
|
+
* @public
|
|
262
|
+
*/
|
|
263
|
+
TimePeriod: TimePeriod | undefined;
|
|
264
|
+
/**
|
|
265
|
+
* <p>The dimensions used to group water allocation values.</p>
|
|
266
|
+
* @public
|
|
267
|
+
*/
|
|
268
|
+
DimensionsValues: Partial<Record<Dimension, string>> | undefined;
|
|
269
|
+
/**
|
|
270
|
+
* <p>The semantic version-formatted string that indicates the methodology version used to calculate the water allocation values. </p> <note> <p> The AWS Sustainability service reflects the most recent model version for every month. You will not see two entries for the same month with different <code>ModelVersion</code> values. </p> </note>
|
|
271
|
+
* @public
|
|
272
|
+
*/
|
|
273
|
+
ModelVersion: string | undefined;
|
|
274
|
+
/**
|
|
275
|
+
* <p>The allocation values for the requested water allocation types.</p>
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
AllocationValues: Partial<Record<WaterAllocationType, WaterAllocation>> | undefined;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* @public
|
|
282
|
+
*/
|
|
283
|
+
export interface GetEstimatedWaterAllocationResponse {
|
|
284
|
+
/**
|
|
285
|
+
* <p>The result of the requested inputs.</p>
|
|
286
|
+
* @public
|
|
287
|
+
*/
|
|
288
|
+
Results: EstimatedWaterAllocation[] | undefined;
|
|
289
|
+
/**
|
|
290
|
+
* <p>The pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. </p>
|
|
291
|
+
* @public
|
|
292
|
+
*/
|
|
293
|
+
NextToken?: string | undefined;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* @public
|
|
297
|
+
*/
|
|
298
|
+
export interface GetEstimatedWaterAllocationDimensionValuesRequest {
|
|
299
|
+
/**
|
|
300
|
+
* <p> The date range for fetching the dimension values. The range must include the start date of a year for that year's data to be included in the response. </p>
|
|
301
|
+
* @public
|
|
302
|
+
*/
|
|
303
|
+
TimePeriod: TimePeriod | undefined;
|
|
304
|
+
/**
|
|
305
|
+
* <p>The dimensions available for grouping estimated water allocation.</p>
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
308
|
+
Dimensions: Dimension[] | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* <p>The maximum number of results to return in a single call. Default is 1000.</p>
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
MaxResults?: number | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* <p>The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. </p>
|
|
316
|
+
* @public
|
|
317
|
+
*/
|
|
318
|
+
NextToken?: string | undefined;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
export interface GetEstimatedWaterAllocationDimensionValuesResponse {
|
|
324
|
+
/**
|
|
325
|
+
* <p>The list of possible dimensions over which the allocation data is aggregated.</p>
|
|
326
|
+
* @public
|
|
327
|
+
*/
|
|
328
|
+
Results: DimensionEntry[] | undefined;
|
|
329
|
+
/**
|
|
330
|
+
* <p>The pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. </p>
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
333
|
+
NextToken?: string | undefined;
|
|
334
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { GetEstimatedWaterAllocationDimensionValuesCommandInput, GetEstimatedWaterAllocationDimensionValuesCommandOutput } from "../commands/GetEstimatedWaterAllocationDimensionValuesCommand";
|
|
3
|
+
import type { SustainabilityPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateGetEstimatedWaterAllocationDimensionValues: (config: SustainabilityPaginationConfiguration, input: GetEstimatedWaterAllocationDimensionValuesCommandInput, ...rest: any[]) => Paginator<GetEstimatedWaterAllocationDimensionValuesCommandOutput>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { GetEstimatedWaterAllocationCommandInput, GetEstimatedWaterAllocationCommandOutput } from "../commands/GetEstimatedWaterAllocationCommand";
|
|
3
|
+
import type { SustainabilityPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateGetEstimatedWaterAllocation: (config: SustainabilityPaginationConfiguration, input: GetEstimatedWaterAllocationCommandInput, ...rest: any[]) => Paginator<GetEstimatedWaterAllocationCommandOutput>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./GetEstimatedCarbonEmissionsPaginator";
|
|
3
3
|
export * from "./GetEstimatedCarbonEmissionsDimensionValuesPaginator";
|
|
4
|
+
export * from "./GetEstimatedWaterAllocationPaginator";
|
|
5
|
+
export * from "./GetEstimatedWaterAllocationDimensionValuesPaginator";
|
|
@@ -14,12 +14,20 @@ export declare const errorTypeRegistries: TypeRegistry[];
|
|
|
14
14
|
export declare var DimensionEntry$: StaticStructureSchema;
|
|
15
15
|
export declare var Emissions$: StaticStructureSchema;
|
|
16
16
|
export declare var EstimatedCarbonEmissions$: StaticStructureSchema;
|
|
17
|
+
export declare var EstimatedWaterAllocation$: StaticStructureSchema;
|
|
17
18
|
export declare var FilterExpression$: StaticStructureSchema;
|
|
18
19
|
export declare var GetEstimatedCarbonEmissionsDimensionValuesRequest$: StaticStructureSchema;
|
|
19
20
|
export declare var GetEstimatedCarbonEmissionsDimensionValuesResponse$: StaticStructureSchema;
|
|
20
21
|
export declare var GetEstimatedCarbonEmissionsRequest$: StaticStructureSchema;
|
|
21
22
|
export declare var GetEstimatedCarbonEmissionsResponse$: StaticStructureSchema;
|
|
23
|
+
export declare var GetEstimatedWaterAllocationDimensionValuesRequest$: StaticStructureSchema;
|
|
24
|
+
export declare var GetEstimatedWaterAllocationDimensionValuesResponse$: StaticStructureSchema;
|
|
25
|
+
export declare var GetEstimatedWaterAllocationRequest$: StaticStructureSchema;
|
|
26
|
+
export declare var GetEstimatedWaterAllocationResponse$: StaticStructureSchema;
|
|
22
27
|
export declare var GranularityConfiguration$: StaticStructureSchema;
|
|
23
28
|
export declare var TimePeriod$: StaticStructureSchema;
|
|
29
|
+
export declare var WaterAllocation$: StaticStructureSchema;
|
|
24
30
|
export declare var GetEstimatedCarbonEmissions$: StaticOperationSchema;
|
|
25
31
|
export declare var GetEstimatedCarbonEmissionsDimensionValues$: StaticOperationSchema;
|
|
32
|
+
export declare var GetEstimatedWaterAllocation$: StaticOperationSchema;
|
|
33
|
+
export declare var GetEstimatedWaterAllocationDimensionValues$: StaticOperationSchema;
|