Skip to content

Commit 0e3dcae

Browse files
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Includes commit(s): 6eb03e5476ee55df5872b8a8de90b235a3503145 Co-authored-by: David Souther <[email protected]>
1 parent 97438ee commit 0e3dcae

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

examples/examples/bedrock-runtime/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ edition = "2021"
66
publish = false
77

88
[dependencies]
9+
aws-config = { version = "1.5.6", path = "../../../sdk/aws-config" }
10+
aws-sdk-bedrockruntime = { version = "1.50.0", path = "../../../sdk/bedrockruntime" }
11+
aws-smithy-runtime-api = { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" }
12+
aws-smithy-types = { version = "1.2.6", path = "../../../sdk/aws-smithy-types" }
913
reqwest = "0.12.5"
1014
serde = "1.0.204"
1115
serde_json = "1.0.120"
1216
tracing = "0.1.40"
1317
tracing-subscriber = "0.3.18"
14-
aws-config= { version = "1.5.6", path = "../../../sdk/aws-config" }
15-
aws-sdk-bedrockruntime= { version = "1.50.0", path = "../../../sdk/bedrockruntime" }
16-
aws-smithy-runtime-api= { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" }
17-
aws-smithy-types= { version = "1.2.6", path = "../../../sdk/aws-smithy-types" }
1818

1919
[dependencies.tokio]
2020
version = "1.38.1"

examples/examples/cloudwatchlogs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ path = "../../test-utils"
3232
version = "0.1.0"
3333

3434
[dev-dependencies]
35-
aws-smithy-mocks-experimental= { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
35+
aws-smithy-mocks-experimental = { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }

examples/examples/ec2/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ publish = false
88

99
[dependencies]
1010
tracing = "0.1.40"
11+
aws-smithy-runtime-api = { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" }
1112
mockall = "0.13.0"
1213
inquire = "0.7.5"
1314
reqwest = "0.12.5"
14-
aws-smithy-runtime-api= { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" }
15-
aws-sdk-ssm= { version = "1.48.0", path = "../../../sdk/ssm" }
16-
aws-smithy-async= { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
15+
aws-sdk-ssm = { version = "1.48.0", path = "../../../sdk/ssm" }
16+
aws-smithy-async = { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
1717
aws-config= { version = "1.5.6", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
1818
aws-sdk-ec2= { version = "1.74.1", path = "../../../sdk/ec2" }
1919
aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" }

examples/examples/glue/src/prepare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl GlueScenario {
243243
Ok(())
244244
}
245245

246-
// Upload Python ETL script to the user's Amazon Simple Storage Service (Amazon S3) bucket. It looks something like this: s3://doc-example-bucket-123456/flight_etl_job_script.py.
246+
// Upload Python ETL script to the user's Amazon Simple Storage Service (Amazon S3) bucket. It looks something like this: s3://amzn-s3-demo-bucket-123456/flight_etl_job_script.py.
247247
// Create a job, pass it the AWS Identity and Access Management (IAM) role and the URL to the uploaded script.
248248
#[instrument(skip(self))]
249249
pub async fn prepare_job(self: &GlueScenario) -> Result<Job, GlueMvpError> {

examples/examples/s3/src/bin/s3-getting-started.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async fn main() -> Result<(), S3ExampleError> {
2323
let region = region_provider.region().await.unwrap();
2424
let shared_config = aws_config::from_env().region(region_provider).load().await;
2525
let client = Client::new(&shared_config);
26-
let bucket_name = format!("doc-example-bucket-{}", Uuid::new_v4());
26+
let bucket_name = format!("amzn-s3-demo-bucket-{}", Uuid::new_v4());
2727
let file_name = "s3/testfile.txt".to_string();
2828
let key = "test file key name".to_string();
2929
let target_key = "target_key".to_string();

examples/examples/s3/src/bin/s3-multipart-upload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async fn run_example() -> Result<(), S3ExampleError> {
3939
let shared_config = aws_config::load_from_env().await;
4040
let client = S3Client::new(&shared_config);
4141

42-
let bucket_name = format!("doc-example-bucket-{}", Uuid::new_v4());
42+
let bucket_name = format!("amzn-s3-demo-bucket-{}", Uuid::new_v4());
4343
let region_provider = RegionProviderChain::first_try(Region::new("us-west-2"));
4444
let region = region_provider.region().await.unwrap();
4545
s3_code_examples::create_bucket(&client, &bucket_name, &region).await?;

examples/examples/s3/tests/test-s3-getting-started.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async fn setup() -> (Region, Client, String, String, String, String) {
4040
let shared_config = aws_config::from_env().region(region_provider).load().await;
4141
let client = Client::new(&shared_config);
4242

43-
let bucket_name = format!("{}{}", "doc-example-bucket-", Uuid::new_v4());
43+
let bucket_name = format!("{}{}", "amzn-s3-demo-bucket-", Uuid::new_v4());
4444
let file_name = "../s3/testfile.txt".to_string();
4545
let key = "test file key name".to_string();
4646
let target_key = "target_key".to_string();

examples/examples/ses/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ publish = false
1010
anyhow = "1.0.81"
1111
tracing = "0.1.40"
1212
tmpfile = "0.0.2"
13+
aws-smithy-http = { version = "0.60.11", path = "../../../sdk/aws-smithy-http" }
14+
aws-smithy-mocks-experimental = { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
1315
open = "5.1.2"
14-
aws-smithy-http= { version = "0.60.11", path = "../../../sdk/aws-smithy-http" }
15-
aws-smithy-mocks-experimental= { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
1616
aws-config= { version = "1.5.6", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
1717
aws-sdk-sesv2= { version = "1.46.0", path = "../../../sdk/sesv2", features = ["test-util"] }
1818

versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
smithy_rs_revision = 'e96640bd33df40026447b9e3f826144f8e3c7724'
2-
aws_doc_sdk_examples_revision = '6a5af5c0dc35de568020851a01e70b207343cc4a'
2+
aws_doc_sdk_examples_revision = '6eb03e5476ee55df5872b8a8de90b235a3503145'
33

44
[manual_interventions]
55
crates_to_remove = []

0 commit comments

Comments
 (0)