@aws-sdk/client-sustainability 3.1021.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/LICENSE +201 -0
- package/README.md +195 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +212 -0
- package/dist-cjs/models/SustainabilityServiceException.js +12 -0
- package/dist-cjs/models/errors.js +66 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +55 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +50 -0
- package/dist-cjs/schemas/schemas_0.js +157 -0
- package/dist-es/Sustainability.js +17 -0
- package/dist-es/SustainabilityClient.js +51 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +122 -0
- package/dist-es/commands/GetEstimatedCarbonEmissionsCommand.js +16 -0
- package/dist-es/commands/GetEstimatedCarbonEmissionsDimensionValuesCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/SustainabilityServiceException.js +8 -0
- package/dist-es/models/enums.js +24 -0
- package/dist-es/models/errors.js +59 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/GetEstimatedCarbonEmissionsDimensionValuesPaginator.js +4 -0
- package/dist-es/pagination/GetEstimatedCarbonEmissionsPaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +50 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +46 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +154 -0
- package/dist-types/Sustainability.d.ts +38 -0
- package/dist-types/SustainabilityClient.d.ts +189 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +83 -0
- package/dist-types/commands/GetEstimatedCarbonEmissionsCommand.d.ts +198 -0
- package/dist-types/commands/GetEstimatedCarbonEmissionsDimensionValuesCommand.d.ts +152 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/SustainabilityServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +104 -0
- package/dist-types/models/errors.d.ts +56 -0
- package/dist-types/models/models_0.d.ts +197 -0
- package/dist-types/pagination/GetEstimatedCarbonEmissionsDimensionValuesPaginator.d.ts +7 -0
- package/dist-types/pagination/GetEstimatedCarbonEmissionsPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +56 -0
- package/dist-types/runtimeConfig.d.ts +56 -0
- package/dist-types/runtimeConfig.native.d.ts +55 -0
- package/dist-types/runtimeConfig.shared.d.ts +29 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +25 -0
- package/dist-types/ts3.4/Sustainability.d.ts +65 -0
- package/dist-types/ts3.4/SustainabilityClient.d.ts +131 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +59 -0
- package/dist-types/ts3.4/commands/GetEstimatedCarbonEmissionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEstimatedCarbonEmissionsDimensionValuesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/SustainabilityServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +29 -0
- package/dist-types/ts3.4/models/errors.d.ts +36 -0
- package/dist-types/ts3.4/models/models_0.d.ts +54 -0
- package/dist-types/ts3.4/pagination/GetEstimatedCarbonEmissionsDimensionValuesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetEstimatedCarbonEmissionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +106 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +110 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +37 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
- package/package.json +101 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { Dimension, EmissionsType, EmissionsUnit, TimeGranularity } from "./enums";
|
|
2
|
+
/**
|
|
3
|
+
* <p>Filters emission values by specific dimension values.</p>
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface FilterExpression {
|
|
7
|
+
/**
|
|
8
|
+
* <p>Filters emission values by specific dimension values.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
Dimensions?: Partial<Record<Dimension, string[]>> | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* <p> Contains configuration for the fiscal year granularities (e.g., <code>YEARLY_FISCAL</code>, <code>QUARTERLY_FISCAL</code>. </p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export interface GranularityConfiguration {
|
|
18
|
+
/**
|
|
19
|
+
* <p> The month (1-12) when the fiscal year begins. Used for <code>YEARLY_FISCAL</code> and <code>QUARTERLY_FISCAL</code> granularity. Defaults to 1 (January). </p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
FiscalYearStartMonth?: number | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* <p>Represents a duration of time defined by start and end timestamps.</p>
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export interface TimePeriod {
|
|
29
|
+
/**
|
|
30
|
+
* <p>The start (inclusive) of the time period. ISO-8601 formatted timestamp, for example: <code>YYYY-MM-DDThh:mm:ss.sssZ</code> </p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
Start: Date | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* <p>The end (exclusive) of the time period. ISO-8601 formatted timestamp, for example: <code>YYYY-MM-DDThh:mm:ss.sssZ</code> </p>
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
End: Date | undefined;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export interface GetEstimatedCarbonEmissionsRequest {
|
|
44
|
+
/**
|
|
45
|
+
* <p>The date range for fetching estimated carbon emissions.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
TimePeriod: TimePeriod | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* <p>The dimensions available for grouping estimated carbon emissions.</p>
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
GroupBy?: Dimension[] | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* <p>The criteria for filtering estimated carbon emissions.</p>
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
FilterBy?: FilterExpression | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* <p>The emission types to include in the results. If absent, returns <code>TOTAL_LBM_CARBON_EMISSIONS</code> and <code>TOTAL_MBM_CARBON_EMISSIONS</code> emissions types. </p>
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
EmissionsTypes?: EmissionsType[] | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* <p>The time granularity for the results. If absent, uses <code>MONTHLY</code> time granularity.</p>
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
Granularity?: TimeGranularity | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* <p>Configuration for fiscal year calculations when using <code>YEARLY_FISCAL</code> or <code>QUARTERLY_FISCAL</code> granularity. </p>
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
GranularityConfiguration?: GranularityConfiguration | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* <p>The maximum number of results to return in a single call. Default is 40.</p>
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
MaxResults?: number | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* <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>
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
NextToken?: string | undefined;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* <p>Represents a carbon emissions quantity with its value and unit of measurement.</p>
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export interface Emissions {
|
|
90
|
+
/**
|
|
91
|
+
* <p>The numeric value of the emissions quantity.</p>
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
Value: number | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* <p>The unit of measurement for the emissions value.</p>
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
Unit: EmissionsUnit | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* <p>Contains estimated carbon emissions data for a specific time period and dimension grouping.</p>
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export interface EstimatedCarbonEmissions {
|
|
106
|
+
/**
|
|
107
|
+
* <p>The reporting period for emission values.</p>
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
TimePeriod: TimePeriod | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* <p>The dimensions used to group emissions values.</p>
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
DimensionsValues: Partial<Record<Dimension, string>> | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* <p>The semantic version-formatted string that indicates the methodology version used to calculate the emission 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. To track the evolution of the methodology and compare emission values from previous versions, we recommend creating a <a href="https://docs.aws.amazon.com/cur/latest/userguide/what-is-data-exports.html">Data Export</a>. </p> </note>
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
ModelVersion: string | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* <p>The emissions values for the requested emissions types.</p>
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
EmissionsValues: Partial<Record<EmissionsType, Emissions>> | undefined;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
export interface GetEstimatedCarbonEmissionsResponse {
|
|
131
|
+
/**
|
|
132
|
+
* <p>The result of the requested inputs.</p>
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
Results: EstimatedCarbonEmissions[] | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* <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>
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
NextToken?: string | undefined;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
export interface GetEstimatedCarbonEmissionsDimensionValuesRequest {
|
|
146
|
+
/**
|
|
147
|
+
* <p>The date range for fetching the dimension values.</p>
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
TimePeriod: TimePeriod | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* <p>The dimensions available for grouping estimated carbon emissions.</p>
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
Dimensions: Dimension[] | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* <p>The maximum number of results to return in a single call. Default is 40.</p>
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
MaxResults?: number | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* <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>
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
NextToken?: string | undefined;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* <p>Represents a dimension and its corresponding value.</p>
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
export interface DimensionEntry {
|
|
172
|
+
/**
|
|
173
|
+
* <p>The dimension type that categorizes this entry.</p>
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
Dimension: Dimension | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* <p> The value for the specified dimension. Valid values vary based on the dimension type (e.g., <code>us-east-1</code> for the <code>REGION</code> dimension, <code>AmazonEC2</code> for the <code>SERVICE</code> dimension). </p>
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
Value: string | undefined;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
export interface GetEstimatedCarbonEmissionsDimensionValuesResponse {
|
|
187
|
+
/**
|
|
188
|
+
* <p>The list of possible dimensions over which the emissions data is aggregated.</p>
|
|
189
|
+
* @public
|
|
190
|
+
*/
|
|
191
|
+
Results?: DimensionEntry[] | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* <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>
|
|
194
|
+
* @public
|
|
195
|
+
*/
|
|
196
|
+
NextToken?: string | undefined;
|
|
197
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { GetEstimatedCarbonEmissionsDimensionValuesCommandInput, GetEstimatedCarbonEmissionsDimensionValuesCommandOutput } from "../commands/GetEstimatedCarbonEmissionsDimensionValuesCommand";
|
|
3
|
+
import type { SustainabilityPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateGetEstimatedCarbonEmissionsDimensionValues: (config: SustainabilityPaginationConfiguration, input: GetEstimatedCarbonEmissionsDimensionValuesCommandInput, ...rest: any[]) => Paginator<GetEstimatedCarbonEmissionsDimensionValuesCommandOutput>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { GetEstimatedCarbonEmissionsCommandInput, GetEstimatedCarbonEmissionsCommandOutput } from "../commands/GetEstimatedCarbonEmissionsCommand";
|
|
3
|
+
import type { SustainabilityPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateGetEstimatedCarbonEmissions: (config: SustainabilityPaginationConfiguration, input: GetEstimatedCarbonEmissionsCommandInput, ...rest: any[]) => Paginator<GetEstimatedCarbonEmissionsCommandOutput>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PaginationConfiguration } from "@smithy/types";
|
|
2
|
+
import { SustainabilityClient } from "../SustainabilityClient";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface SustainabilityPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
+
client: SustainabilityClient;
|
|
8
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import type { SustainabilityClientConfig } from "./SustainabilityClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: SustainabilityClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
12
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
14
|
+
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
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
|
+
cacheMiddleware?: boolean | undefined;
|
|
21
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
22
|
+
protocolSettings: {
|
|
23
|
+
defaultNamespace?: string;
|
|
24
|
+
[setting: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
apiVersion: string;
|
|
27
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
28
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
29
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
30
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
31
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
32
|
+
disableHostPrefix: boolean;
|
|
33
|
+
serviceId: string;
|
|
34
|
+
profile?: string;
|
|
35
|
+
logger: import("@smithy/types").Logger;
|
|
36
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
37
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
38
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
39
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
40
|
+
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;
|
|
41
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
42
|
+
logger?: import("@smithy/types").Logger;
|
|
43
|
+
}) => import("@smithy/types").EndpointV2;
|
|
44
|
+
tls?: boolean;
|
|
45
|
+
serviceConfiguredEndpoint?: never;
|
|
46
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
47
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
48
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SustainabilityHttpAuthSchemeProvider;
|
|
49
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
50
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
51
|
+
signingEscapePath?: boolean;
|
|
52
|
+
systemClockOffset?: number;
|
|
53
|
+
signingRegion?: string;
|
|
54
|
+
signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
|
|
55
|
+
sigv4aSigningRegionSet?: string[] | undefined | import("@smithy/types").Provider<string[] | undefined>;
|
|
56
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import type { SustainabilityClientConfig } from "./SustainabilityClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: SustainabilityClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
10
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
|
|
12
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
13
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
14
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
15
|
+
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
16
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
+
sigv4aSigningRegionSet: string[] | import("@smithy/types").Provider<string[] | undefined>;
|
|
19
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
20
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
23
|
+
cacheMiddleware?: boolean | undefined;
|
|
24
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
25
|
+
protocolSettings: {
|
|
26
|
+
defaultNamespace?: string;
|
|
27
|
+
[setting: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
apiVersion: string;
|
|
30
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
31
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
32
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
33
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
34
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
35
|
+
disableHostPrefix: boolean;
|
|
36
|
+
serviceId: string;
|
|
37
|
+
profile?: string;
|
|
38
|
+
logger: import("@smithy/types").Logger;
|
|
39
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
41
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
42
|
+
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;
|
|
43
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
44
|
+
logger?: import("@smithy/types").Logger;
|
|
45
|
+
}) => import("@smithy/types").EndpointV2;
|
|
46
|
+
tls?: boolean;
|
|
47
|
+
serviceConfiguredEndpoint?: never;
|
|
48
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
49
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SustainabilityHttpAuthSchemeProvider;
|
|
50
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
51
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
52
|
+
signingEscapePath?: boolean;
|
|
53
|
+
systemClockOffset?: number;
|
|
54
|
+
signingRegion?: string;
|
|
55
|
+
signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
|
|
56
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { SustainabilityClientConfig } from "./SustainabilityClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: SustainabilityClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
+
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
cacheMiddleware?: boolean;
|
|
10
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
11
|
+
protocolSettings: {
|
|
12
|
+
defaultNamespace?: string;
|
|
13
|
+
[setting: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
apiVersion: string;
|
|
16
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
17
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
19
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
20
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
22
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
serviceId: string;
|
|
25
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
26
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
28
|
+
profile?: string;
|
|
29
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
30
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
31
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
32
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
33
|
+
logger: import("@smithy/types").Logger;
|
|
34
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
36
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
37
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
38
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
39
|
+
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;
|
|
40
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
41
|
+
logger?: import("@smithy/types").Logger;
|
|
42
|
+
}) => import("@smithy/types").EndpointV2;
|
|
43
|
+
tls?: boolean;
|
|
44
|
+
serviceConfiguredEndpoint?: never;
|
|
45
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
46
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
47
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SustainabilityHttpAuthSchemeProvider;
|
|
48
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
49
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
50
|
+
signingEscapePath?: boolean;
|
|
51
|
+
systemClockOffset?: number;
|
|
52
|
+
signingRegion?: string;
|
|
53
|
+
signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
|
|
54
|
+
sigv4aSigningRegionSet?: string[] | undefined | import("@smithy/types").Provider<string[] | undefined>;
|
|
55
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
|
+
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
|
+
import type { SustainabilityClientConfig } from "./SustainabilityClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const getRuntimeConfig: (config: SustainabilityClientConfig) => {
|
|
8
|
+
apiVersion: string;
|
|
9
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
10
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
11
|
+
disableHostPrefix: boolean;
|
|
12
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
13
|
+
logger?: import("@smithy/types").Logger;
|
|
14
|
+
}) => import("@smithy/types").EndpointV2;
|
|
15
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
16
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SustainabilityHttpAuthSchemeProvider;
|
|
17
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
|
+
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
|
|
20
|
+
protocolSettings: {
|
|
21
|
+
[setting: string]: unknown;
|
|
22
|
+
defaultNamespace?: string;
|
|
23
|
+
};
|
|
24
|
+
serviceId: string;
|
|
25
|
+
signerConstructor: typeof SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
|
|
26
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
27
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
28
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SustainabilityExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: SustainabilityExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var SustainabilityServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
6
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
7
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
8
|
+
/**
|
|
9
|
+
* TypeRegistry instances containing modeled errors.
|
|
10
|
+
* @internal
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
14
|
+
export declare var DimensionEntry$: StaticStructureSchema;
|
|
15
|
+
export declare var Emissions$: StaticStructureSchema;
|
|
16
|
+
export declare var EstimatedCarbonEmissions$: StaticStructureSchema;
|
|
17
|
+
export declare var FilterExpression$: StaticStructureSchema;
|
|
18
|
+
export declare var GetEstimatedCarbonEmissionsDimensionValuesRequest$: StaticStructureSchema;
|
|
19
|
+
export declare var GetEstimatedCarbonEmissionsDimensionValuesResponse$: StaticStructureSchema;
|
|
20
|
+
export declare var GetEstimatedCarbonEmissionsRequest$: StaticStructureSchema;
|
|
21
|
+
export declare var GetEstimatedCarbonEmissionsResponse$: StaticStructureSchema;
|
|
22
|
+
export declare var GranularityConfiguration$: StaticStructureSchema;
|
|
23
|
+
export declare var TimePeriod$: StaticStructureSchema;
|
|
24
|
+
export declare var GetEstimatedCarbonEmissions$: StaticOperationSchema;
|
|
25
|
+
export declare var GetEstimatedCarbonEmissionsDimensionValues$: StaticOperationSchema;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import {
|
|
7
|
+
GetEstimatedCarbonEmissionsCommandInput,
|
|
8
|
+
GetEstimatedCarbonEmissionsCommandOutput,
|
|
9
|
+
} from "./commands/GetEstimatedCarbonEmissionsCommand";
|
|
10
|
+
import {
|
|
11
|
+
GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
12
|
+
GetEstimatedCarbonEmissionsDimensionValuesCommandOutput,
|
|
13
|
+
} from "./commands/GetEstimatedCarbonEmissionsDimensionValuesCommand";
|
|
14
|
+
import { SustainabilityClient } from "./SustainabilityClient";
|
|
15
|
+
export interface Sustainability {
|
|
16
|
+
getEstimatedCarbonEmissions(
|
|
17
|
+
args: GetEstimatedCarbonEmissionsCommandInput,
|
|
18
|
+
options?: __HttpHandlerOptions
|
|
19
|
+
): Promise<GetEstimatedCarbonEmissionsCommandOutput>;
|
|
20
|
+
getEstimatedCarbonEmissions(
|
|
21
|
+
args: GetEstimatedCarbonEmissionsCommandInput,
|
|
22
|
+
cb: (err: any, data?: GetEstimatedCarbonEmissionsCommandOutput) => void
|
|
23
|
+
): void;
|
|
24
|
+
getEstimatedCarbonEmissions(
|
|
25
|
+
args: GetEstimatedCarbonEmissionsCommandInput,
|
|
26
|
+
options: __HttpHandlerOptions,
|
|
27
|
+
cb: (err: any, data?: GetEstimatedCarbonEmissionsCommandOutput) => void
|
|
28
|
+
): void;
|
|
29
|
+
getEstimatedCarbonEmissionsDimensionValues(
|
|
30
|
+
args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
31
|
+
options?: __HttpHandlerOptions
|
|
32
|
+
): Promise<GetEstimatedCarbonEmissionsDimensionValuesCommandOutput>;
|
|
33
|
+
getEstimatedCarbonEmissionsDimensionValues(
|
|
34
|
+
args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
35
|
+
cb: (
|
|
36
|
+
err: any,
|
|
37
|
+
data?: GetEstimatedCarbonEmissionsDimensionValuesCommandOutput
|
|
38
|
+
) => void
|
|
39
|
+
): void;
|
|
40
|
+
getEstimatedCarbonEmissionsDimensionValues(
|
|
41
|
+
args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
42
|
+
options: __HttpHandlerOptions,
|
|
43
|
+
cb: (
|
|
44
|
+
err: any,
|
|
45
|
+
data?: GetEstimatedCarbonEmissionsDimensionValuesCommandOutput
|
|
46
|
+
) => void
|
|
47
|
+
): void;
|
|
48
|
+
paginateGetEstimatedCarbonEmissions(
|
|
49
|
+
args: GetEstimatedCarbonEmissionsCommandInput,
|
|
50
|
+
paginationConfig?: Pick<
|
|
51
|
+
PaginationConfiguration,
|
|
52
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
53
|
+
>
|
|
54
|
+
): Paginator<GetEstimatedCarbonEmissionsCommandOutput>;
|
|
55
|
+
paginateGetEstimatedCarbonEmissionsDimensionValues(
|
|
56
|
+
args: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
|
|
57
|
+
paginationConfig?: Pick<
|
|
58
|
+
PaginationConfiguration,
|
|
59
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
60
|
+
>
|
|
61
|
+
): Paginator<GetEstimatedCarbonEmissionsDimensionValuesCommandOutput>;
|
|
62
|
+
}
|
|
63
|
+
export declare class Sustainability
|
|
64
|
+
extends SustainabilityClient
|
|
65
|
+
implements Sustainability {}
|