@aws-sdk/client-snowball 3.927.0 → 3.929.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 +1020 -1230
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/SnowballClient.js +2 -0
- package/dist-es/commands/CancelClusterCommand.js +3 -9
- package/dist-es/commands/CancelJobCommand.js +3 -9
- package/dist-es/commands/CreateAddressCommand.js +3 -9
- package/dist-es/commands/CreateClusterCommand.js +3 -9
- package/dist-es/commands/CreateJobCommand.js +3 -10
- package/dist-es/commands/CreateLongTermPricingCommand.js +3 -9
- package/dist-es/commands/CreateReturnShippingLabelCommand.js +3 -9
- package/dist-es/commands/DescribeAddressCommand.js +3 -9
- package/dist-es/commands/DescribeAddressesCommand.js +3 -9
- package/dist-es/commands/DescribeClusterCommand.js +3 -9
- package/dist-es/commands/DescribeJobCommand.js +3 -10
- package/dist-es/commands/DescribeReturnShippingLabelCommand.js +3 -9
- package/dist-es/commands/GetJobManifestCommand.js +3 -9
- package/dist-es/commands/GetJobUnlockCodeCommand.js +3 -9
- package/dist-es/commands/GetSnowballUsageCommand.js +3 -9
- package/dist-es/commands/GetSoftwareUpdatesCommand.js +3 -9
- package/dist-es/commands/ListClusterJobsCommand.js +3 -9
- package/dist-es/commands/ListClustersCommand.js +3 -9
- package/dist-es/commands/ListCompatibleImagesCommand.js +3 -9
- package/dist-es/commands/ListJobsCommand.js +3 -9
- package/dist-es/commands/ListLongTermPricingCommand.js +3 -9
- package/dist-es/commands/ListPickupLocationsCommand.js +3 -9
- package/dist-es/commands/ListServiceVersionsCommand.js +3 -9
- package/dist-es/commands/UpdateClusterCommand.js +3 -9
- package/dist-es/commands/UpdateJobCommand.js +3 -10
- package/dist-es/commands/UpdateJobShipmentStateCommand.js +3 -9
- package/dist-es/commands/UpdateLongTermPricingCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -23
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +935 -0
- package/dist-types/SnowballClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -20
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +145 -0
- package/dist-types/ts3.4/SnowballClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -13
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +151 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -985
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -245
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -329
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListServiceVersions } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListServiceVersionsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSIESnowballJobManagementService", "ListServiceVersions", {})
|
|
17
13
|
.n("SnowballClient", "ListServiceVersionsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListServiceVersionsCommand)
|
|
20
|
-
.de(de_ListServiceVersionsCommand)
|
|
14
|
+
.sc(ListServiceVersions)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateCluster } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateClusterCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSIESnowballJobManagementService", "UpdateCluster", {})
|
|
17
13
|
.n("SnowballClient", "UpdateClusterCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateClusterCommand)
|
|
20
|
-
.de(de_UpdateClusterCommand)
|
|
14
|
+
.sc(UpdateCluster)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_UpdateJobCommand, se_UpdateJobCommand } from "../protocols/Aws_json1_1";
|
|
4
|
+
import { UpdateJob } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class UpdateJobCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSIESnowballJobManagementService", "UpdateJob", {})
|
|
18
13
|
.n("SnowballClient", "UpdateJobCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_UpdateJobCommand)
|
|
21
|
-
.de(de_UpdateJobCommand)
|
|
14
|
+
.sc(UpdateJob)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateJobShipmentState } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateJobShipmentStateCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSIESnowballJobManagementService", "UpdateJobShipmentState", {})
|
|
17
13
|
.n("SnowballClient", "UpdateJobShipmentStateCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateJobShipmentStateCommand)
|
|
20
|
-
.de(de_UpdateJobShipmentStateCommand)
|
|
14
|
+
.sc(UpdateJobShipmentState)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateLongTermPricing } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateLongTermPricingCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSIESnowballJobManagementService", "UpdateLongTermPricing", {})
|
|
17
13
|
.n("SnowballClient", "UpdateLongTermPricingCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateLongTermPricingCommand)
|
|
20
|
-
.de(de_UpdateLongTermPricingCommand)
|
|
14
|
+
.sc(UpdateLongTermPricing)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { SnowballServiceException as __BaseException } from "./SnowballServiceException";
|
|
3
2
|
export const AddressType = {
|
|
4
3
|
AWS_SHIP: "AWS_SHIP",
|
|
@@ -263,25 +262,3 @@ export const ShipmentState = {
|
|
|
263
262
|
RECEIVED: "RECEIVED",
|
|
264
263
|
RETURNED: "RETURNED",
|
|
265
264
|
};
|
|
266
|
-
export const PickupDetailsFilterSensitiveLog = (obj) => ({
|
|
267
|
-
...obj,
|
|
268
|
-
...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
|
|
269
|
-
...(obj.Email && { Email: SENSITIVE_STRING }),
|
|
270
|
-
});
|
|
271
|
-
export const CreateJobRequestFilterSensitiveLog = (obj) => ({
|
|
272
|
-
...obj,
|
|
273
|
-
...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
|
|
274
|
-
});
|
|
275
|
-
export const JobMetadataFilterSensitiveLog = (obj) => ({
|
|
276
|
-
...obj,
|
|
277
|
-
...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
|
|
278
|
-
});
|
|
279
|
-
export const DescribeJobResultFilterSensitiveLog = (obj) => ({
|
|
280
|
-
...obj,
|
|
281
|
-
...(obj.JobMetadata && { JobMetadata: JobMetadataFilterSensitiveLog(obj.JobMetadata) }),
|
|
282
|
-
...(obj.SubJobMetadata && { SubJobMetadata: obj.SubJobMetadata.map((item) => JobMetadataFilterSensitiveLog(item)) }),
|
|
283
|
-
});
|
|
284
|
-
export const UpdateJobRequestFilterSensitiveLog = (obj) => ({
|
|
285
|
-
...obj,
|
|
286
|
-
...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
|
|
287
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.snowball",
|
|
29
|
+
serviceTarget: "AWSIESnowballJobManagementService",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "Snowball",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|