Skip to content

Commit 02f1621

Browse files
committed
chore(codegen): update S3 client
1 parent 02e73bb commit 02f1621

File tree

115 files changed

+770
-772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+770
-772
lines changed

clients/client-s3/package.json

+26-25
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,60 @@
2626
"@aws-crypto/sha256-browser": "3.0.0",
2727
"@aws-crypto/sha256-js": "3.0.0",
2828
"@aws-sdk/client-sts": "*",
29-
"@aws-sdk/config-resolver": "*",
3029
"@aws-sdk/credential-provider-node": "*",
31-
"@aws-sdk/eventstream-serde-browser": "*",
32-
"@aws-sdk/eventstream-serde-config-resolver": "*",
33-
"@aws-sdk/eventstream-serde-node": "*",
34-
"@aws-sdk/fetch-http-handler": "*",
3530
"@aws-sdk/hash-blob-browser": "*",
36-
"@aws-sdk/hash-node": "*",
3731
"@aws-sdk/hash-stream-node": "*",
38-
"@aws-sdk/invalid-dependency": "*",
3932
"@aws-sdk/md5-js": "*",
4033
"@aws-sdk/middleware-bucket-endpoint": "*",
41-
"@aws-sdk/middleware-content-length": "*",
42-
"@aws-sdk/middleware-endpoint": "*",
4334
"@aws-sdk/middleware-expect-continue": "*",
4435
"@aws-sdk/middleware-flexible-checksums": "*",
4536
"@aws-sdk/middleware-host-header": "*",
4637
"@aws-sdk/middleware-location-constraint": "*",
4738
"@aws-sdk/middleware-logger": "*",
4839
"@aws-sdk/middleware-recursion-detection": "*",
49-
"@aws-sdk/middleware-retry": "*",
5040
"@aws-sdk/middleware-sdk-s3": "*",
51-
"@aws-sdk/middleware-serde": "*",
5241
"@aws-sdk/middleware-signing": "*",
5342
"@aws-sdk/middleware-ssec": "*",
54-
"@aws-sdk/middleware-stack": "*",
5543
"@aws-sdk/middleware-user-agent": "*",
56-
"@aws-sdk/node-config-provider": "*",
57-
"@aws-sdk/node-http-handler": "*",
5844
"@aws-sdk/signature-v4-multi-region": "*",
59-
"@aws-sdk/smithy-client": "*",
6045
"@aws-sdk/types": "*",
61-
"@aws-sdk/url-parser": "*",
62-
"@aws-sdk/util-base64": "*",
63-
"@aws-sdk/util-body-length-browser": "*",
64-
"@aws-sdk/util-body-length-node": "*",
65-
"@aws-sdk/util-defaults-mode-browser": "*",
66-
"@aws-sdk/util-defaults-mode-node": "*",
6746
"@aws-sdk/util-endpoints": "*",
68-
"@aws-sdk/util-retry": "*",
69-
"@aws-sdk/util-stream": "*",
7047
"@aws-sdk/util-user-agent-browser": "*",
7148
"@aws-sdk/util-user-agent-node": "*",
72-
"@aws-sdk/util-utf8": "*",
73-
"@aws-sdk/util-waiter": "*",
7449
"@aws-sdk/xml-builder": "*",
50+
"@smithy/config-resolver": "^1.0.1",
51+
"@smithy/eventstream-serde-browser": "^1.0.1",
52+
"@smithy/eventstream-serde-config-resolver": "^1.0.1",
53+
"@smithy/eventstream-serde-node": "^1.0.1",
54+
"@smithy/fetch-http-handler": "^1.0.1",
55+
"@smithy/hash-node": "^1.0.1",
56+
"@smithy/invalid-dependency": "^1.0.1",
57+
"@smithy/middleware-content-length": "^1.0.1",
58+
"@smithy/middleware-endpoint": "^1.0.1",
59+
"@smithy/middleware-retry": "^1.0.2",
60+
"@smithy/middleware-serde": "^1.0.1",
61+
"@smithy/middleware-stack": "^1.0.1",
62+
"@smithy/node-config-provider": "^1.0.1",
63+
"@smithy/node-http-handler": "^1.0.2",
7564
"@smithy/protocol-http": "^1.0.1",
65+
"@smithy/smithy-client": "^1.0.3",
7666
"@smithy/types": "^1.0.0",
67+
"@smithy/url-parser": "^1.0.1",
68+
"@smithy/util-base64": "^1.0.1",
69+
"@smithy/util-body-length-browser": "^1.0.1",
70+
"@smithy/util-body-length-node": "^1.0.1",
71+
"@smithy/util-defaults-mode-browser": "^1.0.1",
72+
"@smithy/util-defaults-mode-node": "^1.0.1",
73+
"@smithy/util-retry": "^1.0.2",
74+
"@smithy/util-stream": "^1.0.1",
75+
"@smithy/util-utf8": "^1.0.1",
76+
"@smithy/util-waiter": "^1.0.1",
7777
"fast-xml-parser": "4.2.5",
7878
"tslib": "^2.5.0"
7979
},
8080
"devDependencies": {
8181
"@aws-sdk/service-client-documentation-generator": "*",
82+
"@smithy/service-client-documentation-generator": "^1.0.1",
8283
"@tsconfig/node14": "1.0.3",
8384
"@types/chai": "^4.2.11",
8485
"@types/mocha": "^8.0.4",

clients/client-s3/src/S3.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// smithy-typescript generated code
2-
import { createAggregatedClient } from "@aws-sdk/smithy-client";
3-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2+
import { createAggregatedClient } from "@smithy/smithy-client";
3+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

55
import {
66
AbortMultipartUploadCommand,

clients/client-s3/src/S3Client.ts

+18-21
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
// smithy-typescript generated code
2-
import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@aws-sdk/config-resolver";
3-
import {
4-
EventStreamSerdeInputConfig,
5-
EventStreamSerdeResolvedConfig,
6-
resolveEventStreamSerdeConfig,
7-
} from "@aws-sdk/eventstream-serde-config-resolver";
8-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
9-
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
102
import { getAddExpectContinuePlugin } from "@aws-sdk/middleware-expect-continue";
113
import {
124
getHostHeaderPlugin,
@@ -16,7 +8,6 @@ import {
168
} from "@aws-sdk/middleware-host-header";
179
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
1810
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
19-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
2011
import {
2112
getValidateBucketNamePlugin,
2213
resolveS3Config,
@@ -35,36 +26,42 @@ import {
3526
UserAgentInputConfig,
3627
UserAgentResolvedConfig,
3728
} from "@aws-sdk/middleware-user-agent";
29+
import { Credentials as __Credentials, GetAwsChunkedEncodingStream } from "@aws-sdk/types";
30+
import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@smithy/config-resolver";
31+
import {
32+
EventStreamSerdeInputConfig,
33+
EventStreamSerdeResolvedConfig,
34+
resolveEventStreamSerdeConfig,
35+
} from "@smithy/eventstream-serde-config-resolver";
36+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
37+
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
38+
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
39+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
3840
import {
3941
Client as __Client,
4042
DefaultsMode as __DefaultsMode,
4143
SmithyConfiguration as __SmithyConfiguration,
4244
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
43-
} from "@aws-sdk/smithy-client";
45+
} from "@smithy/smithy-client";
4446
import {
4547
BodyLengthCalculator as __BodyLengthCalculator,
4648
Checksum as __Checksum,
4749
ChecksumConstructor as __ChecksumConstructor,
48-
Credentials as __Credentials,
50+
Decoder as __Decoder,
51+
Encoder as __Encoder,
4952
EndpointV2 as __EndpointV2,
5053
EventStreamSerdeProvider as __EventStreamSerdeProvider,
51-
GetAwsChunkedEncodingStream,
5254
Hash as __Hash,
5355
HashConstructor as __HashConstructor,
5456
HttpHandlerOptions as __HttpHandlerOptions,
5557
Logger as __Logger,
58+
Provider as __Provider,
5659
Provider,
5760
SdkStreamMixinInjector as __SdkStreamMixinInjector,
61+
StreamCollector as __StreamCollector,
5862
StreamHasher as __StreamHasher,
5963
UrlParser as __UrlParser,
6064
UserAgent as __UserAgent,
61-
} from "@aws-sdk/types";
62-
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
63-
import {
64-
Decoder as __Decoder,
65-
Encoder as __Encoder,
66-
Provider as __Provider,
67-
StreamCollector as __StreamCollector,
6865
} from "@smithy/types";
6966
import { Readable } from "stream";
7067

@@ -533,7 +530,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
533530
requestHandler?: __HttpHandler;
534531

535532
/**
536-
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
533+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
537534
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
538535
* @internal
539536
*/
@@ -683,7 +680,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
683680
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
684681

685682
/**
686-
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
683+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
687684
*/
688685
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
689686

clients/client-s3/src/commands/AbortMultipartUploadCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
3-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4-
import { Command as $Command } from "@aws-sdk/smithy-client";
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5+
import { Command as $Command } from "@smithy/smithy-client";
56
import {
67
FinalizeHandlerArguments,
78
Handler,
89
HandlerExecutionContext,
910
HttpHandlerOptions as __HttpHandlerOptions,
1011
MetadataBearer as __MetadataBearer,
1112
MiddlewareStack,
12-
} from "@aws-sdk/types";
13-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
14-
import { SerdeContext as __SerdeContext } from "@smithy/types";
13+
SerdeContext as __SerdeContext,
14+
} from "@smithy/types";
1515

1616
import { AbortMultipartUploadOutput, AbortMultipartUploadRequest } from "../models/models_0";
1717
import { de_AbortMultipartUploadCommand, se_AbortMultipartUploadCommand } from "../protocols/Aws_restXml";

clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
32
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
4-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
53
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
6-
import { Command as $Command } from "@aws-sdk/smithy-client";
4+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
5+
import { getSerdePlugin } from "@smithy/middleware-serde";
6+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
7+
import { Command as $Command } from "@smithy/smithy-client";
78
import {
89
FinalizeHandlerArguments,
910
Handler,
1011
HandlerExecutionContext,
1112
HttpHandlerOptions as __HttpHandlerOptions,
1213
MetadataBearer as __MetadataBearer,
1314
MiddlewareStack,
14-
} from "@aws-sdk/types";
15-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
16-
import { SerdeContext as __SerdeContext } from "@smithy/types";
15+
SerdeContext as __SerdeContext,
16+
} from "@smithy/types";
1717

1818
import {
1919
CompleteMultipartUploadOutput,

clients/client-s3/src/commands/CopyObjectCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
32
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
4-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
53
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
6-
import { Command as $Command } from "@aws-sdk/smithy-client";
4+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
5+
import { getSerdePlugin } from "@smithy/middleware-serde";
6+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
7+
import { Command as $Command } from "@smithy/smithy-client";
78
import {
89
FinalizeHandlerArguments,
910
Handler,
1011
HandlerExecutionContext,
1112
HttpHandlerOptions as __HttpHandlerOptions,
1213
MetadataBearer as __MetadataBearer,
1314
MiddlewareStack,
14-
} from "@aws-sdk/types";
15-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
16-
import { SerdeContext as __SerdeContext } from "@smithy/types";
15+
SerdeContext as __SerdeContext,
16+
} from "@smithy/types";
1717

1818
import {
1919
CopyObjectOutput,

clients/client-s3/src/commands/CreateBucketCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
32
import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint";
4-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5-
import { Command as $Command } from "@aws-sdk/smithy-client";
3+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
4+
import { getSerdePlugin } from "@smithy/middleware-serde";
5+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
6+
import { Command as $Command } from "@smithy/smithy-client";
67
import {
78
FinalizeHandlerArguments,
89
Handler,
910
HandlerExecutionContext,
1011
HttpHandlerOptions as __HttpHandlerOptions,
1112
MetadataBearer as __MetadataBearer,
1213
MiddlewareStack,
13-
} from "@aws-sdk/types";
14-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
15-
import { SerdeContext as __SerdeContext } from "@smithy/types";
14+
SerdeContext as __SerdeContext,
15+
} from "@smithy/types";
1616

1717
import { CreateBucketOutput, CreateBucketRequest } from "../models/models_0";
1818
import { de_CreateBucketCommand, se_CreateBucketCommand } from "../protocols/Aws_restXml";

clients/client-s3/src/commands/CreateMultipartUploadCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
3-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
42
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
5-
import { Command as $Command } from "@aws-sdk/smithy-client";
3+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
4+
import { getSerdePlugin } from "@smithy/middleware-serde";
5+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
6+
import { Command as $Command } from "@smithy/smithy-client";
67
import {
78
FinalizeHandlerArguments,
89
Handler,
910
HandlerExecutionContext,
1011
HttpHandlerOptions as __HttpHandlerOptions,
1112
MetadataBearer as __MetadataBearer,
1213
MiddlewareStack,
13-
} from "@aws-sdk/types";
14-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
15-
import { SerdeContext as __SerdeContext } from "@smithy/types";
14+
SerdeContext as __SerdeContext,
15+
} from "@smithy/types";
1616

1717
import {
1818
CreateMultipartUploadOutput,

clients/client-s3/src/commands/DeleteBucketAnalyticsConfigurationCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
3-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4-
import { Command as $Command } from "@aws-sdk/smithy-client";
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5+
import { Command as $Command } from "@smithy/smithy-client";
56
import {
67
FinalizeHandlerArguments,
78
Handler,
89
HandlerExecutionContext,
910
HttpHandlerOptions as __HttpHandlerOptions,
1011
MetadataBearer as __MetadataBearer,
1112
MiddlewareStack,
12-
} from "@aws-sdk/types";
13-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
14-
import { SerdeContext as __SerdeContext } from "@smithy/types";
13+
SerdeContext as __SerdeContext,
14+
} from "@smithy/types";
1515

1616
import { DeleteBucketAnalyticsConfigurationRequest } from "../models/models_0";
1717
import {

clients/client-s3/src/commands/DeleteBucketCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
3-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4-
import { Command as $Command } from "@aws-sdk/smithy-client";
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5+
import { Command as $Command } from "@smithy/smithy-client";
56
import {
67
FinalizeHandlerArguments,
78
Handler,
89
HandlerExecutionContext,
910
HttpHandlerOptions as __HttpHandlerOptions,
1011
MetadataBearer as __MetadataBearer,
1112
MiddlewareStack,
12-
} from "@aws-sdk/types";
13-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
14-
import { SerdeContext as __SerdeContext } from "@smithy/types";
13+
SerdeContext as __SerdeContext,
14+
} from "@smithy/types";
1515

1616
import { DeleteBucketRequest } from "../models/models_0";
1717
import { de_DeleteBucketCommand, se_DeleteBucketCommand } from "../protocols/Aws_restXml";

clients/client-s3/src/commands/DeleteBucketCorsCommand.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// smithy-typescript generated code
2-
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
3-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4-
import { Command as $Command } from "@aws-sdk/smithy-client";
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5+
import { Command as $Command } from "@smithy/smithy-client";
56
import {
67
FinalizeHandlerArguments,
78
Handler,
89
HandlerExecutionContext,
910
HttpHandlerOptions as __HttpHandlerOptions,
1011
MetadataBearer as __MetadataBearer,
1112
MiddlewareStack,
12-
} from "@aws-sdk/types";
13-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
14-
import { SerdeContext as __SerdeContext } from "@smithy/types";
13+
SerdeContext as __SerdeContext,
14+
} from "@smithy/types";
1515

1616
import { DeleteBucketCorsRequest } from "../models/models_0";
1717
import { de_DeleteBucketCorsCommand, se_DeleteBucketCorsCommand } from "../protocols/Aws_restXml";

0 commit comments

Comments
 (0)