diff --git a/CHANGELOG.md b/CHANGELOG.md index d19d844d70..79a0d3a6dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - :bug: Correctly encode HTTP Checksums using base64 instead of hex. Fixes aws-sdk-rust#164. (#615) - (When complete) Add profile file provider for region (#594, #xyz) - Overhaul serialization/deserialization of numeric/boolean types. This resolves issues around serialization of NaN/Infinity and should also reduce the number of allocations required during serialization. (#618) +- Update SQS example to clarify usage of FIFO vs. standard queues (#622, @trevorrobertsjr) ## v0.18.1 (July 27th 2021) * Remove timestreamwrite and timestreamquery from the generated services (#613) diff --git a/aws/sdk/examples/sqs/src/bin/sqs-hello-world.rs b/aws/sdk/examples/sqs/src/bin/sqs-hello-world.rs index 93eb0aa6ee..efbd0e3ccf 100644 --- a/aws/sdk/examples/sqs/src/bin/sqs-hello-world.rs +++ b/aws/sdk/examples/sqs/src/bin/sqs-hello-world.rs @@ -5,7 +5,7 @@ use std::process::exit; -/// Sends a message to and receives the message from a queue. +/// Sends a message to and receives the message from a FIFO queue. #[tokio::main] async fn main() -> Result<(), sqs::Error> { tracing_subscriber::fmt::init(); @@ -29,6 +29,8 @@ async fn main() -> Result<(), sqs::Error> { .send_message() .queue_url(&queue_url) .message_body("hello from my queue") + // message group id required for FIFO Queue + // comment out ".message_group_id("MyGroup")" for standard queues .message_group_id("MyGroup") .send() .await?;