@aws-sdk/client-savingsplans 3.51.0 → 3.54.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.
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateSavingsPlanCommandInput, CreateSavingsPlanCommandOutput } from "./commands/CreateSavingsPlanCommand";
10
10
  import { DeleteQueuedSavingsPlanCommandInput, DeleteQueuedSavingsPlanCommandOutput } from "./commands/DeleteQueuedSavingsPlanCommand";
11
11
  import { DescribeSavingsPlanRatesCommandInput, DescribeSavingsPlanRatesCommandOutput } from "./commands/DescribeSavingsPlanRatesCommand";
@@ -37,7 +37,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
37
37
  * A function that can calculate the length of a request body.
38
38
  * @internal
39
39
  */
40
- bodyLengthChecker?: (body: any) => number | undefined;
40
+ bodyLengthChecker?: __BodyLengthCalculator;
41
41
  /**
42
42
  * A function that converts a stream into an array of bytes.
43
43
  * @internal
@@ -2,3 +2,4 @@ export * from "./Savingsplans";
2
2
  export * from "./SavingsplansClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { SavingsplansServiceException } from "./models/SavingsplansServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Savingsplans service.
4
+ */
5
+ export declare class SavingsplansServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
2
3
  export interface CreateSavingsPlanRequest {
3
4
  /**
4
5
  * <p>The ID of the offering.</p>
@@ -50,34 +51,46 @@ export declare namespace CreateSavingsPlanResponse {
50
51
  /**
51
52
  * <p>An unexpected error occurred.</p>
52
53
  */
53
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
54
- name: "InternalServerException";
55
- $fault: "server";
56
- message: string | undefined;
54
+ export declare class InternalServerException extends __BaseException {
55
+ readonly name: "InternalServerException";
56
+ readonly $fault: "server";
57
+ /**
58
+ * @internal
59
+ */
60
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
57
61
  }
58
62
  /**
59
63
  * <p>The specified resource was not found.</p>
60
64
  */
61
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
62
- name: "ResourceNotFoundException";
63
- $fault: "client";
64
- message: string | undefined;
65
+ export declare class ResourceNotFoundException extends __BaseException {
66
+ readonly name: "ResourceNotFoundException";
67
+ readonly $fault: "client";
68
+ /**
69
+ * @internal
70
+ */
71
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
65
72
  }
66
73
  /**
67
74
  * <p>A service quota has been exceeded.</p>
68
75
  */
69
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
70
- name: "ServiceQuotaExceededException";
71
- $fault: "client";
72
- message: string | undefined;
76
+ export declare class ServiceQuotaExceededException extends __BaseException {
77
+ readonly name: "ServiceQuotaExceededException";
78
+ readonly $fault: "client";
79
+ /**
80
+ * @internal
81
+ */
82
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
73
83
  }
74
84
  /**
75
85
  * <p>One of the input parameters is not valid.</p>
76
86
  */
77
- export interface ValidationException extends __SmithyException, $MetadataBearer {
78
- name: "ValidationException";
79
- $fault: "client";
80
- message: string | undefined;
87
+ export declare class ValidationException extends __BaseException {
88
+ readonly name: "ValidationException";
89
+ readonly $fault: "client";
90
+ /**
91
+ * @internal
92
+ */
93
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
81
94
  }
82
95
  export interface DeleteQueuedSavingsPlanRequest {
83
96
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateSavingsPlanCommandInput, CreateSavingsPlanCommandOutput } from "./commands/CreateSavingsPlanCommand";
10
10
  import { DeleteQueuedSavingsPlanCommandInput, DeleteQueuedSavingsPlanCommandOutput } from "./commands/DeleteQueuedSavingsPlanCommand";
11
11
  import { DescribeSavingsPlanRatesCommandInput, DescribeSavingsPlanRatesCommandOutput } from "./commands/DescribeSavingsPlanRatesCommand";
@@ -25,7 +25,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
25
25
 
26
26
  urlParser?: __UrlParser;
27
27
 
28
- bodyLengthChecker?: (body: any) => number | undefined;
28
+ bodyLengthChecker?: __BodyLengthCalculator;
29
29
 
30
30
  streamCollector?: __StreamCollector;
31
31
 
@@ -2,3 +2,4 @@ export * from "./Savingsplans";
2
2
  export * from "./SavingsplansClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { SavingsplansServiceException } from "./models/SavingsplansServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class SavingsplansServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
2
3
  export interface CreateSavingsPlanRequest {
3
4
 
4
5
  savingsPlanOfferingId: string | undefined;
@@ -28,28 +29,32 @@ export declare namespace CreateSavingsPlanResponse {
28
29
  const filterSensitiveLog: (obj: CreateSavingsPlanResponse) => any;
29
30
  }
30
31
 
31
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
32
- name: "InternalServerException";
33
- $fault: "server";
34
- message: string | undefined;
32
+ export declare class InternalServerException extends __BaseException {
33
+ readonly name: "InternalServerException";
34
+ readonly $fault: "server";
35
+
36
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
35
37
  }
36
38
 
37
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
38
- name: "ResourceNotFoundException";
39
- $fault: "client";
40
- message: string | undefined;
39
+ export declare class ResourceNotFoundException extends __BaseException {
40
+ readonly name: "ResourceNotFoundException";
41
+ readonly $fault: "client";
42
+
43
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
41
44
  }
42
45
 
43
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
44
- name: "ServiceQuotaExceededException";
45
- $fault: "client";
46
- message: string | undefined;
46
+ export declare class ServiceQuotaExceededException extends __BaseException {
47
+ readonly name: "ServiceQuotaExceededException";
48
+ readonly $fault: "client";
49
+
50
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
47
51
  }
48
52
 
49
- export interface ValidationException extends __SmithyException, $MetadataBearer {
50
- name: "ValidationException";
51
- $fault: "client";
52
- message: string | undefined;
53
+ export declare class ValidationException extends __BaseException {
54
+ readonly name: "ValidationException";
55
+ readonly $fault: "client";
56
+
57
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
53
58
  }
54
59
  export interface DeleteQueuedSavingsPlanRequest {
55
60
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-savingsplans",
3
3
  "description": "AWS SDK for JavaScript Savingsplans Client for Node.js, Browser and React Native",
4
- "version": "3.51.0",
4
+ "version": "3.54.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,7 @@
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-*"
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "types": "./dist-types/index.d.ts",
@@ -18,41 +18,41 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.51.0",
22
- "@aws-sdk/config-resolver": "3.51.0",
23
- "@aws-sdk/credential-provider-node": "3.51.0",
24
- "@aws-sdk/fetch-http-handler": "3.50.0",
25
- "@aws-sdk/hash-node": "3.50.0",
26
- "@aws-sdk/invalid-dependency": "3.50.0",
27
- "@aws-sdk/middleware-content-length": "3.50.0",
28
- "@aws-sdk/middleware-host-header": "3.50.0",
29
- "@aws-sdk/middleware-logger": "3.50.0",
30
- "@aws-sdk/middleware-retry": "3.51.0",
31
- "@aws-sdk/middleware-serde": "3.50.0",
32
- "@aws-sdk/middleware-signing": "3.50.0",
33
- "@aws-sdk/middleware-stack": "3.50.0",
34
- "@aws-sdk/middleware-user-agent": "3.50.0",
35
- "@aws-sdk/node-config-provider": "3.51.0",
36
- "@aws-sdk/node-http-handler": "3.50.0",
37
- "@aws-sdk/protocol-http": "3.50.0",
38
- "@aws-sdk/smithy-client": "3.50.0",
39
- "@aws-sdk/types": "3.50.0",
40
- "@aws-sdk/url-parser": "3.50.0",
41
- "@aws-sdk/util-base64-browser": "3.49.0",
42
- "@aws-sdk/util-base64-node": "3.49.0",
43
- "@aws-sdk/util-body-length-browser": "3.49.0",
44
- "@aws-sdk/util-body-length-node": "3.49.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
- "@aws-sdk/util-user-agent-browser": "3.50.0",
48
- "@aws-sdk/util-user-agent-node": "3.51.0",
49
- "@aws-sdk/util-utf8-browser": "3.49.0",
50
- "@aws-sdk/util-utf8-node": "3.49.0",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
41
+ "@aws-sdk/util-base64-browser": "3.52.0",
42
+ "@aws-sdk/util-base64-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
49
+ "@aws-sdk/util-utf8-browser": "3.52.0",
50
+ "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",
52
52
  "uuid": "^8.3.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.49.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
56
56
  "@tsconfig/recommended": "1.0.1",
57
57
  "@types/node": "^12.7.5",
58
58
  "@types/uuid": "^8.3.0",