@aws-sdk/client-snowball 3.987.0 → 3.989.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/dist-cjs/index.js +46 -1209
- package/dist-cjs/models/SnowballServiceException.js +12 -0
- package/dist-cjs/models/errors.js +173 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +895 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +74 -68
- package/dist-types/schemas/schemas_0.d.ts +19 -12
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -12
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SnowballServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class SnowballServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, SnowballServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SnowballServiceException = SnowballServiceException;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidNextTokenException = exports.ReturnShippingLabelAlreadyExistsException = exports.ConflictException = exports.ClusterLimitExceededException = exports.InvalidInputCombinationException = exports.Ec2RequestFailedException = exports.UnsupportedAddressException = exports.InvalidAddressException = exports.KMSRequestFailedException = exports.InvalidResourceException = exports.InvalidJobStateException = void 0;
|
|
4
|
+
const SnowballServiceException_1 = require("./SnowballServiceException");
|
|
5
|
+
class InvalidJobStateException extends SnowballServiceException_1.SnowballServiceException {
|
|
6
|
+
name = "InvalidJobStateException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "InvalidJobStateException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, InvalidJobStateException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.InvalidJobStateException = InvalidJobStateException;
|
|
20
|
+
class InvalidResourceException extends SnowballServiceException_1.SnowballServiceException {
|
|
21
|
+
name = "InvalidResourceException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
Message;
|
|
24
|
+
ResourceType;
|
|
25
|
+
constructor(opts) {
|
|
26
|
+
super({
|
|
27
|
+
name: "InvalidResourceException",
|
|
28
|
+
$fault: "client",
|
|
29
|
+
...opts,
|
|
30
|
+
});
|
|
31
|
+
Object.setPrototypeOf(this, InvalidResourceException.prototype);
|
|
32
|
+
this.Message = opts.Message;
|
|
33
|
+
this.ResourceType = opts.ResourceType;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.InvalidResourceException = InvalidResourceException;
|
|
37
|
+
class KMSRequestFailedException extends SnowballServiceException_1.SnowballServiceException {
|
|
38
|
+
name = "KMSRequestFailedException";
|
|
39
|
+
$fault = "client";
|
|
40
|
+
Message;
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "KMSRequestFailedException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, KMSRequestFailedException.prototype);
|
|
48
|
+
this.Message = opts.Message;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.KMSRequestFailedException = KMSRequestFailedException;
|
|
52
|
+
class InvalidAddressException extends SnowballServiceException_1.SnowballServiceException {
|
|
53
|
+
name = "InvalidAddressException";
|
|
54
|
+
$fault = "client";
|
|
55
|
+
Message;
|
|
56
|
+
constructor(opts) {
|
|
57
|
+
super({
|
|
58
|
+
name: "InvalidAddressException",
|
|
59
|
+
$fault: "client",
|
|
60
|
+
...opts,
|
|
61
|
+
});
|
|
62
|
+
Object.setPrototypeOf(this, InvalidAddressException.prototype);
|
|
63
|
+
this.Message = opts.Message;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.InvalidAddressException = InvalidAddressException;
|
|
67
|
+
class UnsupportedAddressException extends SnowballServiceException_1.SnowballServiceException {
|
|
68
|
+
name = "UnsupportedAddressException";
|
|
69
|
+
$fault = "client";
|
|
70
|
+
Message;
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "UnsupportedAddressException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts,
|
|
76
|
+
});
|
|
77
|
+
Object.setPrototypeOf(this, UnsupportedAddressException.prototype);
|
|
78
|
+
this.Message = opts.Message;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.UnsupportedAddressException = UnsupportedAddressException;
|
|
82
|
+
class Ec2RequestFailedException extends SnowballServiceException_1.SnowballServiceException {
|
|
83
|
+
name = "Ec2RequestFailedException";
|
|
84
|
+
$fault = "client";
|
|
85
|
+
Message;
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "Ec2RequestFailedException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, Ec2RequestFailedException.prototype);
|
|
93
|
+
this.Message = opts.Message;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Ec2RequestFailedException = Ec2RequestFailedException;
|
|
97
|
+
class InvalidInputCombinationException extends SnowballServiceException_1.SnowballServiceException {
|
|
98
|
+
name = "InvalidInputCombinationException";
|
|
99
|
+
$fault = "client";
|
|
100
|
+
Message;
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "InvalidInputCombinationException",
|
|
104
|
+
$fault: "client",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
Object.setPrototypeOf(this, InvalidInputCombinationException.prototype);
|
|
108
|
+
this.Message = opts.Message;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.InvalidInputCombinationException = InvalidInputCombinationException;
|
|
112
|
+
class ClusterLimitExceededException extends SnowballServiceException_1.SnowballServiceException {
|
|
113
|
+
name = "ClusterLimitExceededException";
|
|
114
|
+
$fault = "client";
|
|
115
|
+
Message;
|
|
116
|
+
constructor(opts) {
|
|
117
|
+
super({
|
|
118
|
+
name: "ClusterLimitExceededException",
|
|
119
|
+
$fault: "client",
|
|
120
|
+
...opts,
|
|
121
|
+
});
|
|
122
|
+
Object.setPrototypeOf(this, ClusterLimitExceededException.prototype);
|
|
123
|
+
this.Message = opts.Message;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.ClusterLimitExceededException = ClusterLimitExceededException;
|
|
127
|
+
class ConflictException extends SnowballServiceException_1.SnowballServiceException {
|
|
128
|
+
name = "ConflictException";
|
|
129
|
+
$fault = "client";
|
|
130
|
+
ConflictResource;
|
|
131
|
+
Message;
|
|
132
|
+
constructor(opts) {
|
|
133
|
+
super({
|
|
134
|
+
name: "ConflictException",
|
|
135
|
+
$fault: "client",
|
|
136
|
+
...opts,
|
|
137
|
+
});
|
|
138
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
139
|
+
this.ConflictResource = opts.ConflictResource;
|
|
140
|
+
this.Message = opts.Message;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.ConflictException = ConflictException;
|
|
144
|
+
class ReturnShippingLabelAlreadyExistsException extends SnowballServiceException_1.SnowballServiceException {
|
|
145
|
+
name = "ReturnShippingLabelAlreadyExistsException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
Message;
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "ReturnShippingLabelAlreadyExistsException",
|
|
151
|
+
$fault: "client",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, ReturnShippingLabelAlreadyExistsException.prototype);
|
|
155
|
+
this.Message = opts.Message;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.ReturnShippingLabelAlreadyExistsException = ReturnShippingLabelAlreadyExistsException;
|
|
159
|
+
class InvalidNextTokenException extends SnowballServiceException_1.SnowballServiceException {
|
|
160
|
+
name = "InvalidNextTokenException";
|
|
161
|
+
$fault = "client";
|
|
162
|
+
Message;
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "InvalidNextTokenException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
170
|
+
this.Message = opts.Message;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2016-06-30",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.snowball",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2016-06-30",
|
|
33
35
|
serviceTarget: "AWSIESnowballJobManagementService",
|
|
34
36
|
},
|