@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.
Files changed (92) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +195 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +212 -0
  7. package/dist-cjs/models/SustainabilityServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +66 -0
  9. package/dist-cjs/runtimeConfig.browser.js +38 -0
  10. package/dist-cjs/runtimeConfig.js +55 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +50 -0
  13. package/dist-cjs/schemas/schemas_0.js +157 -0
  14. package/dist-es/Sustainability.js +17 -0
  15. package/dist-es/SustainabilityClient.js +51 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +122 -0
  18. package/dist-es/commands/GetEstimatedCarbonEmissionsCommand.js +16 -0
  19. package/dist-es/commands/GetEstimatedCarbonEmissionsDimensionValuesCommand.js +16 -0
  20. package/dist-es/commands/index.js +2 -0
  21. package/dist-es/endpoint/EndpointParameters.js +11 -0
  22. package/dist-es/endpoint/endpointResolver.js +14 -0
  23. package/dist-es/endpoint/ruleset.js +4 -0
  24. package/dist-es/extensionConfiguration.js +1 -0
  25. package/dist-es/index.js +9 -0
  26. package/dist-es/models/SustainabilityServiceException.js +8 -0
  27. package/dist-es/models/enums.js +24 -0
  28. package/dist-es/models/errors.js +59 -0
  29. package/dist-es/models/models_0.js +1 -0
  30. package/dist-es/pagination/GetEstimatedCarbonEmissionsDimensionValuesPaginator.js +4 -0
  31. package/dist-es/pagination/GetEstimatedCarbonEmissionsPaginator.js +4 -0
  32. package/dist-es/pagination/Interfaces.js +1 -0
  33. package/dist-es/pagination/index.js +3 -0
  34. package/dist-es/runtimeConfig.browser.js +33 -0
  35. package/dist-es/runtimeConfig.js +50 -0
  36. package/dist-es/runtimeConfig.native.js +11 -0
  37. package/dist-es/runtimeConfig.shared.js +46 -0
  38. package/dist-es/runtimeExtensions.js +9 -0
  39. package/dist-es/schemas/schemas_0.js +154 -0
  40. package/dist-types/Sustainability.d.ts +38 -0
  41. package/dist-types/SustainabilityClient.d.ts +189 -0
  42. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  43. package/dist-types/auth/httpAuthSchemeProvider.d.ts +83 -0
  44. package/dist-types/commands/GetEstimatedCarbonEmissionsCommand.d.ts +198 -0
  45. package/dist-types/commands/GetEstimatedCarbonEmissionsDimensionValuesCommand.d.ts +152 -0
  46. package/dist-types/commands/index.d.ts +2 -0
  47. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  48. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  49. package/dist-types/endpoint/ruleset.d.ts +2 -0
  50. package/dist-types/extensionConfiguration.d.ts +9 -0
  51. package/dist-types/index.d.ts +17 -0
  52. package/dist-types/models/SustainabilityServiceException.d.ts +14 -0
  53. package/dist-types/models/enums.d.ts +104 -0
  54. package/dist-types/models/errors.d.ts +56 -0
  55. package/dist-types/models/models_0.d.ts +197 -0
  56. package/dist-types/pagination/GetEstimatedCarbonEmissionsDimensionValuesPaginator.d.ts +7 -0
  57. package/dist-types/pagination/GetEstimatedCarbonEmissionsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/Interfaces.d.ts +8 -0
  59. package/dist-types/pagination/index.d.ts +3 -0
  60. package/dist-types/runtimeConfig.browser.d.ts +56 -0
  61. package/dist-types/runtimeConfig.d.ts +56 -0
  62. package/dist-types/runtimeConfig.native.d.ts +55 -0
  63. package/dist-types/runtimeConfig.shared.d.ts +29 -0
  64. package/dist-types/runtimeExtensions.d.ts +17 -0
  65. package/dist-types/schemas/schemas_0.d.ts +25 -0
  66. package/dist-types/ts3.4/Sustainability.d.ts +65 -0
  67. package/dist-types/ts3.4/SustainabilityClient.d.ts +131 -0
  68. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  69. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +59 -0
  70. package/dist-types/ts3.4/commands/GetEstimatedCarbonEmissionsCommand.d.ts +51 -0
  71. package/dist-types/ts3.4/commands/GetEstimatedCarbonEmissionsDimensionValuesCommand.d.ts +51 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  73. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  74. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  75. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  76. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  77. package/dist-types/ts3.4/index.d.ts +12 -0
  78. package/dist-types/ts3.4/models/SustainabilityServiceException.d.ts +9 -0
  79. package/dist-types/ts3.4/models/enums.d.ts +29 -0
  80. package/dist-types/ts3.4/models/errors.d.ts +36 -0
  81. package/dist-types/ts3.4/models/models_0.d.ts +54 -0
  82. package/dist-types/ts3.4/pagination/GetEstimatedCarbonEmissionsDimensionValuesPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/GetEstimatedCarbonEmissionsPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  85. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  86. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +106 -0
  87. package/dist-types/ts3.4/runtimeConfig.d.ts +100 -0
  88. package/dist-types/ts3.4/runtimeConfig.native.d.ts +110 -0
  89. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +37 -0
  90. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  91. package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  92. package/package.json +101 -0
@@ -0,0 +1,131 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ } from "@aws-sdk/middleware-host-header";
5
+ import {
6
+ UserAgentInputConfig,
7
+ UserAgentResolvedConfig,
8
+ } from "@aws-sdk/middleware-user-agent";
9
+ import {
10
+ RegionInputConfig,
11
+ RegionResolvedConfig,
12
+ } from "@smithy/config-resolver";
13
+ import {
14
+ EndpointInputConfig,
15
+ EndpointResolvedConfig,
16
+ } from "@smithy/middleware-endpoint";
17
+ import {
18
+ RetryInputConfig,
19
+ RetryResolvedConfig,
20
+ } from "@smithy/middleware-retry";
21
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
22
+ import {
23
+ DefaultsMode as __DefaultsMode,
24
+ SmithyConfiguration as __SmithyConfiguration,
25
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
26
+ Client as __Client,
27
+ } from "@smithy/smithy-client";
28
+ import {
29
+ AwsCredentialIdentityProvider,
30
+ BodyLengthCalculator as __BodyLengthCalculator,
31
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
+ ChecksumConstructor as __ChecksumConstructor,
33
+ Decoder as __Decoder,
34
+ Encoder as __Encoder,
35
+ HashConstructor as __HashConstructor,
36
+ HttpHandlerOptions as __HttpHandlerOptions,
37
+ Logger as __Logger,
38
+ Provider as __Provider,
39
+ StreamCollector as __StreamCollector,
40
+ UrlParser as __UrlParser,
41
+ UserAgent as __UserAgent,
42
+ } from "@smithy/types";
43
+ import {
44
+ HttpAuthSchemeInputConfig,
45
+ HttpAuthSchemeResolvedConfig,
46
+ } from "./auth/httpAuthSchemeProvider";
47
+ import {
48
+ GetEstimatedCarbonEmissionsCommandInput,
49
+ GetEstimatedCarbonEmissionsCommandOutput,
50
+ } from "./commands/GetEstimatedCarbonEmissionsCommand";
51
+ import {
52
+ GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
53
+ GetEstimatedCarbonEmissionsDimensionValuesCommandOutput,
54
+ } from "./commands/GetEstimatedCarbonEmissionsDimensionValuesCommand";
55
+ import {
56
+ ClientInputEndpointParameters,
57
+ ClientResolvedEndpointParameters,
58
+ EndpointParameters,
59
+ } from "./endpoint/EndpointParameters";
60
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
61
+ export { __Client };
62
+ export type ServiceInputTypes =
63
+ | GetEstimatedCarbonEmissionsCommandInput
64
+ | GetEstimatedCarbonEmissionsDimensionValuesCommandInput;
65
+ export type ServiceOutputTypes =
66
+ | GetEstimatedCarbonEmissionsCommandOutput
67
+ | GetEstimatedCarbonEmissionsDimensionValuesCommandOutput;
68
+ export interface ClientDefaults
69
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
70
+ requestHandler?: __HttpHandlerUserInput;
71
+ sha256?: __ChecksumConstructor | __HashConstructor;
72
+ urlParser?: __UrlParser;
73
+ bodyLengthChecker?: __BodyLengthCalculator;
74
+ streamCollector?: __StreamCollector;
75
+ base64Decoder?: __Decoder;
76
+ base64Encoder?: __Encoder;
77
+ utf8Decoder?: __Decoder;
78
+ utf8Encoder?: __Encoder;
79
+ runtime?: string;
80
+ disableHostPrefix?: boolean;
81
+ serviceId?: string;
82
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
83
+ useFipsEndpoint?: boolean | __Provider<boolean>;
84
+ region?: string | __Provider<string>;
85
+ profile?: string;
86
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
87
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
88
+ maxAttempts?: number | __Provider<number>;
89
+ retryMode?: string | __Provider<string>;
90
+ logger?: __Logger;
91
+ extensions?: RuntimeExtension[];
92
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
93
+ }
94
+ export type SustainabilityClientConfigType = Partial<
95
+ __SmithyConfiguration<__HttpHandlerOptions>
96
+ > &
97
+ ClientDefaults &
98
+ UserAgentInputConfig &
99
+ RetryInputConfig &
100
+ RegionInputConfig &
101
+ HostHeaderInputConfig &
102
+ EndpointInputConfig<EndpointParameters> &
103
+ HttpAuthSchemeInputConfig &
104
+ ClientInputEndpointParameters;
105
+ export interface SustainabilityClientConfig
106
+ extends SustainabilityClientConfigType {}
107
+ export type SustainabilityClientResolvedConfigType =
108
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
109
+ Required<ClientDefaults> &
110
+ RuntimeExtensionsConfig &
111
+ UserAgentResolvedConfig &
112
+ RetryResolvedConfig &
113
+ RegionResolvedConfig &
114
+ HostHeaderResolvedConfig &
115
+ EndpointResolvedConfig<EndpointParameters> &
116
+ HttpAuthSchemeResolvedConfig &
117
+ ClientResolvedEndpointParameters;
118
+ export interface SustainabilityClientResolvedConfig
119
+ extends SustainabilityClientResolvedConfigType {}
120
+ export declare class SustainabilityClient extends __Client<
121
+ __HttpHandlerOptions,
122
+ ServiceInputTypes,
123
+ ServiceOutputTypes,
124
+ SustainabilityClientResolvedConfig
125
+ > {
126
+ readonly config: SustainabilityClientResolvedConfig;
127
+ constructor(
128
+ ...[configuration]: __CheckOptionalClientConfig<SustainabilityClientConfig>
129
+ );
130
+ destroy(): void;
131
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { SustainabilityHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: SustainabilityHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): SustainabilityHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: SustainabilityHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,59 @@
1
+ import {
2
+ AwsSdkSigV4AAuthInputConfig,
3
+ AwsSdkSigV4AAuthResolvedConfig,
4
+ AwsSdkSigV4APreviouslyResolved,
5
+ AwsSdkSigV4AuthInputConfig,
6
+ AwsSdkSigV4AuthResolvedConfig,
7
+ AwsSdkSigV4PreviouslyResolved,
8
+ } from "@aws-sdk/core/httpAuthSchemes";
9
+ import {
10
+ HandlerExecutionContext,
11
+ HttpAuthScheme,
12
+ HttpAuthSchemeParameters,
13
+ HttpAuthSchemeParametersProvider,
14
+ HttpAuthSchemeProvider,
15
+ Provider,
16
+ } from "@smithy/types";
17
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
18
+ import { SustainabilityClientResolvedConfig } from "../SustainabilityClient";
19
+ interface _SustainabilityHttpAuthSchemeParameters
20
+ extends HttpAuthSchemeParameters {
21
+ region?: string;
22
+ }
23
+ export interface SustainabilityHttpAuthSchemeParameters
24
+ extends _SustainabilityHttpAuthSchemeParameters,
25
+ EndpointParameters {
26
+ region?: string;
27
+ }
28
+ export interface SustainabilityHttpAuthSchemeParametersProvider
29
+ extends HttpAuthSchemeParametersProvider<
30
+ SustainabilityClientResolvedConfig,
31
+ HandlerExecutionContext,
32
+ SustainabilityHttpAuthSchemeParameters,
33
+ object
34
+ > {}
35
+ export declare const defaultSustainabilityHttpAuthSchemeParametersProvider: SustainabilityHttpAuthSchemeParametersProvider;
36
+ export interface SustainabilityHttpAuthSchemeProvider
37
+ extends HttpAuthSchemeProvider<SustainabilityHttpAuthSchemeParameters> {}
38
+ export declare const defaultSustainabilityHttpAuthSchemeProvider: SustainabilityHttpAuthSchemeProvider;
39
+ export interface HttpAuthSchemeInputConfig
40
+ extends AwsSdkSigV4AuthInputConfig,
41
+ AwsSdkSigV4AAuthInputConfig {
42
+ authSchemePreference?: string[] | Provider<string[]>;
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ httpAuthSchemeProvider?: SustainabilityHttpAuthSchemeProvider;
45
+ }
46
+ export interface HttpAuthSchemeResolvedConfig
47
+ extends AwsSdkSigV4AuthResolvedConfig,
48
+ AwsSdkSigV4AAuthResolvedConfig {
49
+ readonly authSchemePreference: Provider<string[]>;
50
+ readonly httpAuthSchemes: HttpAuthScheme[];
51
+ readonly httpAuthSchemeProvider: SustainabilityHttpAuthSchemeProvider;
52
+ }
53
+ export declare const resolveHttpAuthSchemeConfig: <T>(
54
+ config: T &
55
+ HttpAuthSchemeInputConfig &
56
+ AwsSdkSigV4PreviouslyResolved &
57
+ AwsSdkSigV4APreviouslyResolved
58
+ ) => T & HttpAuthSchemeResolvedConfig;
59
+ export {};
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GetEstimatedCarbonEmissionsRequest,
5
+ GetEstimatedCarbonEmissionsResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SustainabilityClientResolvedConfig,
11
+ } from "../SustainabilityClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetEstimatedCarbonEmissionsCommandInput
15
+ extends GetEstimatedCarbonEmissionsRequest {}
16
+ export interface GetEstimatedCarbonEmissionsCommandOutput
17
+ extends GetEstimatedCarbonEmissionsResponse,
18
+ __MetadataBearer {}
19
+ declare const GetEstimatedCarbonEmissionsCommand_base: {
20
+ new (
21
+ input: GetEstimatedCarbonEmissionsCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ GetEstimatedCarbonEmissionsCommandInput,
24
+ GetEstimatedCarbonEmissionsCommandOutput,
25
+ SustainabilityClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: GetEstimatedCarbonEmissionsCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ GetEstimatedCarbonEmissionsCommandInput,
33
+ GetEstimatedCarbonEmissionsCommandOutput,
34
+ SustainabilityClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class GetEstimatedCarbonEmissionsCommand extends GetEstimatedCarbonEmissionsCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: GetEstimatedCarbonEmissionsRequest;
44
+ output: GetEstimatedCarbonEmissionsResponse;
45
+ };
46
+ sdk: {
47
+ input: GetEstimatedCarbonEmissionsCommandInput;
48
+ output: GetEstimatedCarbonEmissionsCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GetEstimatedCarbonEmissionsDimensionValuesRequest,
5
+ GetEstimatedCarbonEmissionsDimensionValuesResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SustainabilityClientResolvedConfig,
11
+ } from "../SustainabilityClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetEstimatedCarbonEmissionsDimensionValuesCommandInput
15
+ extends GetEstimatedCarbonEmissionsDimensionValuesRequest {}
16
+ export interface GetEstimatedCarbonEmissionsDimensionValuesCommandOutput
17
+ extends GetEstimatedCarbonEmissionsDimensionValuesResponse,
18
+ __MetadataBearer {}
19
+ declare const GetEstimatedCarbonEmissionsDimensionValuesCommand_base: {
20
+ new (
21
+ input: GetEstimatedCarbonEmissionsDimensionValuesCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
24
+ GetEstimatedCarbonEmissionsDimensionValuesCommandOutput,
25
+ SustainabilityClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: GetEstimatedCarbonEmissionsDimensionValuesCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
33
+ GetEstimatedCarbonEmissionsDimensionValuesCommandOutput,
34
+ SustainabilityClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class GetEstimatedCarbonEmissionsDimensionValuesCommand extends GetEstimatedCarbonEmissionsDimensionValuesCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: GetEstimatedCarbonEmissionsDimensionValuesRequest;
44
+ output: GetEstimatedCarbonEmissionsDimensionValuesResponse;
45
+ };
46
+ sdk: {
47
+ input: GetEstimatedCarbonEmissionsDimensionValuesCommandInput;
48
+ output: GetEstimatedCarbonEmissionsDimensionValuesCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./GetEstimatedCarbonEmissionsCommand";
2
+ export * from "./GetEstimatedCarbonEmissionsDimensionValuesCommand";
@@ -0,0 +1,45 @@
1
+ import {
2
+ Endpoint,
3
+ EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
5
+ Provider,
6
+ } from "@smithy/types";
7
+ export interface ClientInputEndpointParameters {
8
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
+ endpoint?:
10
+ | string
11
+ | Provider<string>
12
+ | Endpoint
13
+ | Provider<Endpoint>
14
+ | EndpointV2
15
+ | Provider<EndpointV2>;
16
+ region?: string | undefined | Provider<string | undefined>;
17
+ }
18
+ export type ClientResolvedEndpointParameters = Pick<
19
+ ClientInputEndpointParameters,
20
+ Exclude<keyof ClientInputEndpointParameters, "endpoint">
21
+ > & {
22
+ defaultSigningName: string;
23
+ };
24
+ export declare const resolveClientEndpointParameters: <T>(
25
+ options: T & ClientInputEndpointParameters
26
+ ) => T & ClientResolvedEndpointParameters;
27
+ export declare const commonParams: {
28
+ readonly UseFIPS: {
29
+ readonly type: "builtInParams";
30
+ readonly name: "useFipsEndpoint";
31
+ };
32
+ readonly Endpoint: {
33
+ readonly type: "builtInParams";
34
+ readonly name: "endpoint";
35
+ };
36
+ readonly Region: {
37
+ readonly type: "builtInParams";
38
+ readonly name: "region";
39
+ };
40
+ };
41
+ export interface EndpointParameters extends __EndpointParameters {
42
+ UseFIPS?: boolean | undefined;
43
+ Endpoint?: string | undefined;
44
+ Region?: string | undefined;
45
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,9 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ export interface SustainabilityExtensionConfiguration
6
+ extends HttpHandlerExtensionConfiguration,
7
+ DefaultExtensionConfiguration,
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -0,0 +1,12 @@
1
+ export * from "./SustainabilityClient";
2
+ export * from "./Sustainability";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { SustainabilityExtensionConfiguration } from "./extensionConfiguration";
6
+ export * from "./commands";
7
+ export * from "./schemas/schemas_0";
8
+ export * from "./pagination";
9
+ export * from "./models/enums";
10
+ export * from "./models/errors";
11
+ export * from "./models/models_0";
12
+ export { SustainabilityServiceException } from "./models/SustainabilityServiceException";
@@ -0,0 +1,9 @@
1
+ import {
2
+ ServiceExceptionOptions as __ServiceExceptionOptions,
3
+ ServiceException as __ServiceException,
4
+ } from "@smithy/smithy-client";
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
7
+ export declare class SustainabilityServiceException extends __ServiceException {
8
+ constructor(options: __ServiceExceptionOptions);
9
+ }
@@ -0,0 +1,29 @@
1
+ export declare const EmissionsType: {
2
+ readonly TOTAL_LBM_CARBON_EMISSIONS: "TOTAL_LBM_CARBON_EMISSIONS";
3
+ readonly TOTAL_MBM_CARBON_EMISSIONS: "TOTAL_MBM_CARBON_EMISSIONS";
4
+ readonly TOTAL_SCOPE_1_CARBON_EMISSIONS: "TOTAL_SCOPE_1_CARBON_EMISSIONS";
5
+ readonly TOTAL_SCOPE_2_LBM_CARBON_EMISSIONS: "TOTAL_SCOPE_2_LBM_CARBON_EMISSIONS";
6
+ readonly TOTAL_SCOPE_2_MBM_CARBON_EMISSIONS: "TOTAL_SCOPE_2_MBM_CARBON_EMISSIONS";
7
+ readonly TOTAL_SCOPE_3_LBM_CARBON_EMISSIONS: "TOTAL_SCOPE_3_LBM_CARBON_EMISSIONS";
8
+ readonly TOTAL_SCOPE_3_MBM_CARBON_EMISSIONS: "TOTAL_SCOPE_3_MBM_CARBON_EMISSIONS";
9
+ };
10
+ export type EmissionsType = (typeof EmissionsType)[keyof typeof EmissionsType];
11
+ export declare const Dimension: {
12
+ readonly REGION: "REGION";
13
+ readonly SERVICE: "SERVICE";
14
+ readonly USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID";
15
+ };
16
+ export type Dimension = (typeof Dimension)[keyof typeof Dimension];
17
+ export declare const TimeGranularity: {
18
+ readonly MONTHLY: "MONTHLY";
19
+ readonly QUARTERLY_CALENDAR: "QUARTERLY_CALENDAR";
20
+ readonly QUARTERLY_FISCAL: "QUARTERLY_FISCAL";
21
+ readonly YEARLY_CALENDAR: "YEARLY_CALENDAR";
22
+ readonly YEARLY_FISCAL: "YEARLY_FISCAL";
23
+ };
24
+ export type TimeGranularity =
25
+ (typeof TimeGranularity)[keyof typeof TimeGranularity];
26
+ export declare const EmissionsUnit: {
27
+ readonly MT_CO2E: "MTCO2e";
28
+ };
29
+ export type EmissionsUnit = (typeof EmissionsUnit)[keyof typeof EmissionsUnit];
@@ -0,0 +1,36 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SustainabilityServiceException as __BaseException } from "./SustainabilityServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
11
+ export declare class InternalServerException extends __BaseException {
12
+ readonly name: "InternalServerException";
13
+ readonly $fault: "server";
14
+ $retryable: {};
15
+ Message: string | undefined;
16
+ constructor(
17
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
18
+ );
19
+ }
20
+ export declare class ThrottlingException extends __BaseException {
21
+ readonly name: "ThrottlingException";
22
+ readonly $fault: "client";
23
+ $retryable: {};
24
+ Message: string | undefined;
25
+ constructor(
26
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
27
+ );
28
+ }
29
+ export declare class ValidationException extends __BaseException {
30
+ readonly name: "ValidationException";
31
+ readonly $fault: "client";
32
+ Message: string | undefined;
33
+ constructor(
34
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
35
+ );
36
+ }
@@ -0,0 +1,54 @@
1
+ import {
2
+ Dimension,
3
+ EmissionsType,
4
+ EmissionsUnit,
5
+ TimeGranularity,
6
+ } from "./enums";
7
+ export interface FilterExpression {
8
+ Dimensions?: Partial<Record<Dimension, string[]>> | undefined;
9
+ }
10
+ export interface GranularityConfiguration {
11
+ FiscalYearStartMonth?: number | undefined;
12
+ }
13
+ export interface TimePeriod {
14
+ Start: Date | undefined;
15
+ End: Date | undefined;
16
+ }
17
+ export interface GetEstimatedCarbonEmissionsRequest {
18
+ TimePeriod: TimePeriod | undefined;
19
+ GroupBy?: Dimension[] | undefined;
20
+ FilterBy?: FilterExpression | undefined;
21
+ EmissionsTypes?: EmissionsType[] | undefined;
22
+ Granularity?: TimeGranularity | undefined;
23
+ GranularityConfiguration?: GranularityConfiguration | undefined;
24
+ MaxResults?: number | undefined;
25
+ NextToken?: string | undefined;
26
+ }
27
+ export interface Emissions {
28
+ Value: number | undefined;
29
+ Unit: EmissionsUnit | undefined;
30
+ }
31
+ export interface EstimatedCarbonEmissions {
32
+ TimePeriod: TimePeriod | undefined;
33
+ DimensionsValues: Partial<Record<Dimension, string>> | undefined;
34
+ ModelVersion: string | undefined;
35
+ EmissionsValues: Partial<Record<EmissionsType, Emissions>> | undefined;
36
+ }
37
+ export interface GetEstimatedCarbonEmissionsResponse {
38
+ Results: EstimatedCarbonEmissions[] | undefined;
39
+ NextToken?: string | undefined;
40
+ }
41
+ export interface GetEstimatedCarbonEmissionsDimensionValuesRequest {
42
+ TimePeriod: TimePeriod | undefined;
43
+ Dimensions: Dimension[] | undefined;
44
+ MaxResults?: number | undefined;
45
+ NextToken?: string | undefined;
46
+ }
47
+ export interface DimensionEntry {
48
+ Dimension: Dimension | undefined;
49
+ Value: string | undefined;
50
+ }
51
+ export interface GetEstimatedCarbonEmissionsDimensionValuesResponse {
52
+ Results?: DimensionEntry[] | undefined;
53
+ NextToken?: string | undefined;
54
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
4
+ GetEstimatedCarbonEmissionsDimensionValuesCommandOutput,
5
+ } from "../commands/GetEstimatedCarbonEmissionsDimensionValuesCommand";
6
+ import { SustainabilityPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateGetEstimatedCarbonEmissionsDimensionValues: (
8
+ config: SustainabilityPaginationConfiguration,
9
+ input: GetEstimatedCarbonEmissionsDimensionValuesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<GetEstimatedCarbonEmissionsDimensionValuesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ GetEstimatedCarbonEmissionsCommandInput,
4
+ GetEstimatedCarbonEmissionsCommandOutput,
5
+ } from "../commands/GetEstimatedCarbonEmissionsCommand";
6
+ import { SustainabilityPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateGetEstimatedCarbonEmissions: (
8
+ config: SustainabilityPaginationConfiguration,
9
+ input: GetEstimatedCarbonEmissionsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<GetEstimatedCarbonEmissionsCommandOutput>;
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { SustainabilityClient } from "../SustainabilityClient";
3
+ export interface SustainabilityPaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: SustainabilityClient;
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./GetEstimatedCarbonEmissionsPaginator";
3
+ export * from "./GetEstimatedCarbonEmissionsDimensionValuesPaginator";