You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADING.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -573,10 +573,10 @@ In v3, the similar utility function is available in [`@aws-sdk/polly-request-pre
573
573
574
574
### Amazon S3
575
575
576
-
Streaming vs. buffered responses: the JSv3 SDK prefers not to buffer potentially large responses. This is commonly encountered in S3's GetObject operation, which returned a `Buffer` in JSv2, but
576
+
Streaming vs. buffered responses: the JSv3 SDK prefers not to buffer potentially large responses. This is commonly encountered in S3's GetObject operation, which returned a `Buffer` in JSv2, but
577
577
returns a `Stream` in JSv3.
578
578
579
-
For Node.js, you must consume the stream or garbage collect the client or its request handler to keep the connections open to new traffic by freeing sockets.
579
+
For Node.js, you must consume the stream or garbage collect the client or its request handler to keep the connections open to new traffic by freeing sockets.
580
580
581
581
```ts
582
582
// v2
@@ -642,7 +642,22 @@ const region = "...";
642
642
643
643
### Amazon SQS
644
644
645
-
When using a custom `QueueUrl` in SQS operations that have this as an input parameter, in JSv2
645
+
#### MD5 Checksum
646
+
647
+
To skip computation of MD5 checksums of message bodies, set `md5=false` on the configuration object.
648
+
Otherwise, by default the SDK will calculate the checksum for sending messages, as well as validating the checksum
649
+
for retrieved messages.
650
+
651
+
```ts
652
+
// Example: skip md5 checksum in SQS.
653
+
import { SQS } from"@aws-sdk/client-sqs";
654
+
655
+
newSQS({
656
+
md5: false, // Note: only available in v3.547.0 and higher.
657
+
});
658
+
```
659
+
660
+
When using a custom `QueueUrl` in SQS operations that have this as an input parameter, in JSv2
646
661
it was possible to supply a custom `QueueUrl` which would override the SQS Client's default endpoint.
647
662
648
663
#### Mutli-region messages
@@ -669,11 +684,11 @@ for (const { region, url } of queues) {
669
684
};
670
685
awaitsqsClients[region].sendMessage(params);
671
686
}
672
-
```
687
+
```
673
688
674
689
#### Custom endpoint
675
690
676
-
In JSv3, when using a custom endpoint, i.e. one that differs from the default public SQS endpoints, you
691
+
In JSv3, when using a custom endpoint, i.e. one that differs from the default public SQS endpoints, you
677
692
should always set the endpoint on the SQS Client as well as the `QueueUrl` field.
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddSqsDependency.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,8 @@ public void addConfigInterfaceFields(
0 commit comments