Skip to content

Commit

Permalink
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Browse files Browse the repository at this point in the history
Includes commit(s):
  b1fc966de7581553bf6b7265b60fcad1b145b9ed

Co-authored-by: David Souther <[email protected]>
  • Loading branch information
aws-sdk-rust-ci and DavidSouther committed Nov 11, 2024
1 parent 3f77a8a commit 1e37b29
Show file tree
Hide file tree
Showing 57 changed files with 84 additions and 77 deletions.
2 changes: 1 addition & 1 deletion examples/examples/apigateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ aws-sdk-apigateway= { version = "1.50.0", path = "../../../sdk/apigateway" }
aws-smithy-types-convert= { version = "0.60.8", path = "../../../sdk/aws-smithy-types-convert", features = ["convert-chrono"] }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/apigatewaymanagement/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/applicationautoscaling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/auto-scaling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/autoscalingplans/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/batch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
8 changes: 4 additions & 4 deletions examples/examples/bedrock-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ edition = "2021"
publish = false

[dependencies]
aws-config = { version = "1.5.10", path = "../../../sdk/aws-config" }
aws-sdk-bedrockruntime = { version = "1.61.0", path = "../../../sdk/bedrockruntime" }
aws-smithy-runtime-api = { version = "1.7.3", path = "../../../sdk/aws-smithy-runtime-api" }
aws-smithy-types = { version = "1.2.9", path = "../../../sdk/aws-smithy-types" }
reqwest = "0.12.5"
serde = "1.0.204"
serde_json = "1.0.120"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
aws-config= { version = "1.5.10", path = "../../../sdk/aws-config" }
aws-sdk-bedrockruntime= { version = "1.61.0", path = "../../../sdk/bedrockruntime" }
aws-smithy-runtime-api= { version = "1.7.3", path = "../../../sdk/aws-smithy-runtime-api" }
aws-smithy-types= { version = "1.2.9", path = "../../../sdk/aws-smithy-types" }

[dependencies.tokio]
version = "1.38.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/cloudformation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/cloudwatch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
4 changes: 2 additions & 2 deletions examples/examples/cloudwatchlogs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand All @@ -32,4 +32,4 @@ path = "../../test-utils"
version = "0.1.0"

[dev-dependencies]
aws-smithy-mocks-experimental= { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
aws-smithy-mocks-experimental = { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
2 changes: 1 addition & 1 deletion examples/examples/cognitoidentity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ aws-sdk-cognitoidentity= { version = "1.50.0", path = "../../../sdk/cognitoident
aws-smithy-types-convert= { version = "0.60.8", path = "../../../sdk/aws-smithy-types-convert", features = ["convert-chrono"] }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/cognitoidentityprovider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ aws-sdk-cognitoidentityprovider= { version = "1.57.0", path = "../../../sdk/cogn
aws-smithy-types-convert= { version = "0.60.8", path = "../../../sdk/aws-smithy-types-convert", features = ["convert-chrono"] }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/cognitosync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ aws-sdk-cognitosync= { version = "1.49.0", path = "../../../sdk/cognitosync" }
aws-smithy-types-convert= { version = "0.60.8", path = "../../../sdk/aws-smithy-types-convert", features = ["convert-chrono"] }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/concurrency/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ futures = "0.3.25"
tracing = "0.1.37"

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/dynamodb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ aws-smithy-runtime= { version = "1.7.3", path = "../../../sdk/aws-smithy-runtime
aws-smithy-types= { version = "1.2.9", path = "../../../sdk/aws-smithy-types" }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.sdk-examples-test-utils]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/ebs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
8 changes: 4 additions & 4 deletions examples/examples/ec2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ publish = false

[dependencies]
tracing = "0.1.40"
aws-smithy-runtime-api = { version = "1.7.3", path = "../../../sdk/aws-smithy-runtime-api" }
mockall = "0.13.0"
inquire = "0.7.5"
reqwest = "0.12.5"
aws-smithy-runtime-api= { version = "1.7.3", path = "../../../sdk/aws-smithy-runtime-api" }
aws-sdk-ssm= { version = "1.54.0", path = "../../../sdk/ssm" }
aws-smithy-async= { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
aws-sdk-ssm = { version = "1.54.0", path = "../../../sdk/ssm" }
aws-smithy-async = { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
aws-config= { version = "1.5.10", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
aws-sdk-ec2= { version = "1.86.0", path = "../../../sdk/ec2" }
aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" }
Expand All @@ -23,7 +23,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/ecr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/ecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/eks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/firehose/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/globalaccelerator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/glue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ version = "0.3.15"
features = ["env-filter"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.uuid]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/greengrassv2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/iam/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/iam/src/bin/iam-getting-started.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async fn run_iam_operations(
let assumed_role = sts_client
.assume_role()
.role_arn(assume_role_role.arn())
.role_session_name(&format!("{}{}", "iam_demo_assumerole_session_", uuid))
.role_session_name(format!("iam_demo_assumerole_session_{uuid}"))
.send()
.await;
println!("Assumed role: {:?}", assumed_role);
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/iot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/kinesis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/kms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/lambda/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ aws-smithy-types= { version = "1.2.9", path = "../../../sdk/aws-smithy-types" }
aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/logging/logger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ aws-config= { version = "1.5.10", path = "../../../../sdk/aws-config", features
aws-sdk-dynamodb= { version = "1.53.0", path = "../../../../sdk/dynamodb" }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/logging/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ aws-config= { version = "1.5.10", path = "../../../../sdk/aws-config", features
aws-sdk-dynamodb= { version = "1.53.0", path = "../../../../sdk/dynamodb" }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/medialive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/mediapackage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/polly/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/qldb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version = "0.1.9"
features = ["default"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/rds/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ aws-smithy-runtime-api= { version = "1.7.3", path = "../../../sdk/aws-smithy-run
aws-sdk-rds= { version = "1.65.0", path = "../../../sdk/rds" }

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.phf]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/rdsdata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/route53/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = "1.20.1"
features = ["full"]

[dependencies.clap]
version = "~4.4"
version = "4.4"
features = ["derive"]

[dependencies.tracing-subscriber]
Expand Down
Loading

0 comments on commit 1e37b29

Please sign in to comment.