@aws-sdk/client-outposts 3.52.0 → 3.54.1

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 { CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
10
10
  import { CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
11
11
  import { CreateOutpostCommandInput, CreateOutpostCommandOutput } from "./commands/CreateOutpostCommand";
@@ -51,7 +51,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
51
51
  * A function that can calculate the length of a request body.
52
52
  * @internal
53
53
  */
54
- bodyLengthChecker?: (body: any) => number | undefined;
54
+ bodyLengthChecker?: __BodyLengthCalculator;
55
55
  /**
56
56
  * A function that converts a stream into an array of bytes.
57
57
  * @internal
@@ -3,3 +3,4 @@ export * from "./OutpostsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { OutpostsServiceException } from "./models/OutpostsServiceException";
@@ -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 Outposts service.
4
+ */
5
+ export declare class OutpostsServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,16 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { OutpostsServiceException as __BaseException } from "./OutpostsServiceException";
2
3
  /**
3
4
  * <p>You do not have permission to perform this operation.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
14
  }
10
15
  /**
11
16
  * <p>
@@ -97,9 +102,9 @@ export declare enum ResourceType {
97
102
  /**
98
103
  * <p>Updating or deleting this resource can cause an inconsistent state.</p>
99
104
  */
100
- export interface ConflictException extends __SmithyException, $MetadataBearer {
101
- name: "ConflictException";
102
- $fault: "client";
105
+ export declare class ConflictException extends __BaseException {
106
+ readonly name: "ConflictException";
107
+ readonly $fault: "client";
103
108
  Message?: string;
104
109
  /**
105
110
  * <p>The ID of the resource causing the conflict.</p>
@@ -109,30 +114,46 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
109
114
  * <p>The type of the resource causing the conflict.</p>
110
115
  */
111
116
  ResourceType?: ResourceType | string;
117
+ /**
118
+ * @internal
119
+ */
120
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
112
121
  }
113
122
  /**
114
123
  * <p>An internal error has occurred.</p>
115
124
  */
116
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
117
- name: "InternalServerException";
118
- $fault: "server";
125
+ export declare class InternalServerException extends __BaseException {
126
+ readonly name: "InternalServerException";
127
+ readonly $fault: "server";
119
128
  Message?: string;
129
+ /**
130
+ * @internal
131
+ */
132
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
120
133
  }
121
134
  /**
122
135
  * <p>The specified request is not valid.</p>
123
136
  */
124
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
125
- name: "NotFoundException";
126
- $fault: "client";
137
+ export declare class NotFoundException extends __BaseException {
138
+ readonly name: "NotFoundException";
139
+ readonly $fault: "client";
127
140
  Message?: string;
141
+ /**
142
+ * @internal
143
+ */
144
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
128
145
  }
129
146
  /**
130
147
  * <p>A parameter is not valid.</p>
131
148
  */
132
- export interface ValidationException extends __SmithyException, $MetadataBearer {
133
- name: "ValidationException";
134
- $fault: "client";
149
+ export declare class ValidationException extends __BaseException {
150
+ readonly name: "ValidationException";
151
+ readonly $fault: "client";
135
152
  Message?: string;
153
+ /**
154
+ * @internal
155
+ */
156
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
136
157
  }
137
158
  /**
138
159
  * <p> Information about EC2 capacity. </p>
@@ -415,10 +436,14 @@ export declare namespace CreateOrderOutput {
415
436
  /**
416
437
  * <p>You have exceeded a service quota.</p>
417
438
  */
418
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
419
- name: "ServiceQuotaExceededException";
420
- $fault: "client";
439
+ export declare class ServiceQuotaExceededException extends __BaseException {
440
+ readonly name: "ServiceQuotaExceededException";
441
+ readonly $fault: "client";
421
442
  Message?: string;
443
+ /**
444
+ * @internal
445
+ */
446
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
422
447
  }
423
448
  export declare enum SupportedHardwareType {
424
449
  RACK = "RACK",
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: OutpostsClientConfig) => {
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: OutpostsClientConfig) => {
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: OutpostsClientConfig) => {
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 { CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
10
10
  import { CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
11
11
  import { CreateOutpostCommandInput, CreateOutpostCommandOutput } from "./commands/CreateOutpostCommand";
@@ -39,7 +39,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
39
39
 
40
40
  urlParser?: __UrlParser;
41
41
 
42
- bodyLengthChecker?: (body: any) => number | undefined;
42
+ bodyLengthChecker?: __BodyLengthCalculator;
43
43
 
44
44
  streamCollector?: __StreamCollector;
45
45
 
@@ -3,3 +3,4 @@ export * from "./OutpostsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { OutpostsServiceException } from "./models/OutpostsServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class OutpostsServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { OutpostsServiceException as __BaseException } from "./OutpostsServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
6
7
  Message?: string;
8
+
9
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
10
  }
8
11
 
9
12
  export interface Address {
@@ -57,32 +60,40 @@ export declare enum ResourceType {
57
60
  OUTPOST = "OUTPOST"
58
61
  }
59
62
 
60
- export interface ConflictException extends __SmithyException, $MetadataBearer {
61
- name: "ConflictException";
62
- $fault: "client";
63
+ export declare class ConflictException extends __BaseException {
64
+ readonly name: "ConflictException";
65
+ readonly $fault: "client";
63
66
  Message?: string;
64
67
 
65
68
  ResourceId?: string;
66
69
 
67
70
  ResourceType?: ResourceType | string;
71
+
72
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
68
73
  }
69
74
 
70
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
71
- name: "InternalServerException";
72
- $fault: "server";
75
+ export declare class InternalServerException extends __BaseException {
76
+ readonly name: "InternalServerException";
77
+ readonly $fault: "server";
73
78
  Message?: string;
79
+
80
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
74
81
  }
75
82
 
76
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
77
- name: "NotFoundException";
78
- $fault: "client";
83
+ export declare class NotFoundException extends __BaseException {
84
+ readonly name: "NotFoundException";
85
+ readonly $fault: "client";
79
86
  Message?: string;
87
+
88
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
80
89
  }
81
90
 
82
- export interface ValidationException extends __SmithyException, $MetadataBearer {
83
- name: "ValidationException";
84
- $fault: "client";
91
+ export declare class ValidationException extends __BaseException {
92
+ readonly name: "ValidationException";
93
+ readonly $fault: "client";
85
94
  Message?: string;
95
+
96
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
86
97
  }
87
98
 
88
99
  export interface EC2Capacity {
@@ -230,10 +241,12 @@ export declare namespace CreateOrderOutput {
230
241
  const filterSensitiveLog: (obj: CreateOrderOutput) => any;
231
242
  }
232
243
 
233
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
234
- name: "ServiceQuotaExceededException";
235
- $fault: "client";
244
+ export declare class ServiceQuotaExceededException extends __BaseException {
245
+ readonly name: "ServiceQuotaExceededException";
246
+ readonly $fault: "client";
236
247
  Message?: string;
248
+
249
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
237
250
  }
238
251
  export declare enum SupportedHardwareType {
239
252
  RACK = "RACK",
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: OutpostsClientConfig) => {
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: OutpostsClientConfig) => {
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: OutpostsClientConfig) => {
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-outposts",
3
3
  "description": "AWS SDK for JavaScript Outposts Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.54.1",
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",
@@ -18,34 +18,34 @@
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.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-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.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"