File tree Expand file tree Collapse file tree 7 files changed +51
-56
lines changed Expand file tree Collapse file tree 7 files changed +51
-56
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
export * from "./client" ;
2
2
export * from "./command" ;
3
- export * from "./document-type" ;
4
- export * from "./exception" ;
5
3
export * from "./extended-encode-uri-component" ;
6
4
export * from "./get-array-if-single-item" ;
7
5
export * from "./get-value-from-text-node" ;
@@ -11,5 +9,3 @@ export * from "./ser-utils";
11
9
export * from "./date-utils" ;
12
10
export * from "./split-every" ;
13
11
export * from "./constants" ;
14
- export * from "./retryable-trait" ;
15
- export * from "./sdk-error" ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export * from "./pagination";
10
10
export * from "./serde" ;
11
11
export * from "./middleware" ;
12
12
export * from "./response" ;
13
+ export * from "./shapes" ;
13
14
export * from "./signature" ;
14
15
export * from "./transfer" ;
15
16
export * from "./util" ;
Original file line number Diff line number Diff line change
1
+ import { MetadataBearer } from "./response" ;
2
+
3
+ /**
4
+ * A document type represents an untyped JSON-like value.
5
+ *
6
+ * Not all protocols support document types, and the serialization format of a
7
+ * document type is protocol specific. All JSON protocols SHOULD support
8
+ * document types and they SHOULD serialize document types inline as normal
9
+ * JSON values.
10
+ */
11
+ export type DocumentType = null | boolean | number | string | DocumentType [ ] | { [ prop : string ] : DocumentType } ;
12
+
13
+ /**
14
+ * A structure shape with the error trait.
15
+ * https://awslabs.github.io/smithy/spec/core.html#retryable-trait
16
+ */
17
+ export interface RetryableTrait {
18
+ /**
19
+ * Indicates that the error is a retryable throttling error.
20
+ */
21
+ readonly throttling ?: boolean ;
22
+ }
23
+
24
+ /**
25
+ * Type that is implemented by all Smithy shapes marked with the
26
+ * error trait.
27
+ */
28
+ export interface SmithyException {
29
+ /**
30
+ * The shape ID name of the exception.
31
+ */
32
+ readonly name : string ;
33
+
34
+ /**
35
+ * Whether the client or server are at fault.
36
+ */
37
+ readonly $fault : "client" | "server" ;
38
+
39
+ /**
40
+ * The service that encountered the exception.
41
+ */
42
+ readonly $service ?: string ;
43
+
44
+ /**
45
+ * Indicates that an error MAY be retried by the client.
46
+ */
47
+ readonly $retryable ?: RetryableTrait ;
48
+ }
49
+
50
+ export type SdkError = Error & Partial < SmithyException > & Partial < MetadataBearer > ;
You can’t perform that action at this time.
0 commit comments