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):
  6eb03e5476ee55df5872b8a8de90b235a3503145

Co-authored-by: David Souther <davidsouther+github@gmail.com>
  • Loading branch information
aws-sdk-rust-ci and DavidSouther committed Sep 25, 2024
1 parent 97438ee commit 0e3dcae
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
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.6", path = "../../../sdk/aws-config" }
aws-sdk-bedrockruntime = { version = "1.50.0", path = "../../../sdk/bedrockruntime" }
aws-smithy-runtime-api = { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" }
aws-smithy-types = { version = "1.2.6", 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.6", path = "../../../sdk/aws-config" }
aws-sdk-bedrockruntime= { version = "1.50.0", path = "../../../sdk/bedrockruntime" }
aws-smithy-runtime-api= { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" }
aws-smithy-types= { version = "1.2.6", path = "../../../sdk/aws-smithy-types" }

[dependencies.tokio]
version = "1.38.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/cloudwatchlogs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
6 changes: 3 additions & 3 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.2", 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.2", path = "../../../sdk/aws-smithy-runtime-api" }
aws-sdk-ssm= { version = "1.48.0", path = "../../../sdk/ssm" }
aws-smithy-async= { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
aws-sdk-ssm = { version = "1.48.0", path = "../../../sdk/ssm" }
aws-smithy-async = { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
aws-config= { version = "1.5.6", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
aws-sdk-ec2= { version = "1.74.1", path = "../../../sdk/ec2" }
aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" }
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/glue/src/prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl GlueScenario {
Ok(())
}

// 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.
// 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.
// Create a job, pass it the AWS Identity and Access Management (IAM) role and the URL to the uploaded script.
#[instrument(skip(self))]
pub async fn prepare_job(self: &GlueScenario) -> Result<Job, GlueMvpError> {
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/s3/src/bin/s3-getting-started.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async fn main() -> Result<(), S3ExampleError> {
let region = region_provider.region().await.unwrap();
let shared_config = aws_config::from_env().region(region_provider).load().await;
let client = Client::new(&shared_config);
let bucket_name = format!("doc-example-bucket-{}", Uuid::new_v4());
let bucket_name = format!("amzn-s3-demo-bucket-{}", Uuid::new_v4());
let file_name = "s3/testfile.txt".to_string();
let key = "test file key name".to_string();
let target_key = "target_key".to_string();
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/s3/src/bin/s3-multipart-upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async fn run_example() -> Result<(), S3ExampleError> {
let shared_config = aws_config::load_from_env().await;
let client = S3Client::new(&shared_config);

let bucket_name = format!("doc-example-bucket-{}", Uuid::new_v4());
let bucket_name = format!("amzn-s3-demo-bucket-{}", Uuid::new_v4());
let region_provider = RegionProviderChain::first_try(Region::new("us-west-2"));
let region = region_provider.region().await.unwrap();
s3_code_examples::create_bucket(&client, &bucket_name, &region).await?;
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/s3/tests/test-s3-getting-started.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async fn setup() -> (Region, Client, String, String, String, String) {
let shared_config = aws_config::from_env().region(region_provider).load().await;
let client = Client::new(&shared_config);

let bucket_name = format!("{}{}", "doc-example-bucket-", Uuid::new_v4());
let bucket_name = format!("{}{}", "amzn-s3-demo-bucket-", Uuid::new_v4());
let file_name = "../s3/testfile.txt".to_string();
let key = "test file key name".to_string();
let target_key = "target_key".to_string();
Expand Down
4 changes: 2 additions & 2 deletions examples/examples/ses/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ publish = false
anyhow = "1.0.81"
tracing = "0.1.40"
tmpfile = "0.0.2"
aws-smithy-http = { version = "0.60.11", path = "../../../sdk/aws-smithy-http" }
aws-smithy-mocks-experimental = { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
open = "5.1.2"
aws-smithy-http= { version = "0.60.11", path = "../../../sdk/aws-smithy-http" }
aws-smithy-mocks-experimental= { version = "0.2.1", path = "../../../sdk/aws-smithy-mocks-experimental" }
aws-config= { version = "1.5.6", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
aws-sdk-sesv2= { version = "1.46.0", path = "../../../sdk/sesv2", features = ["test-util"] }

Expand Down
2 changes: 1 addition & 1 deletion versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
smithy_rs_revision = 'e96640bd33df40026447b9e3f826144f8e3c7724'
aws_doc_sdk_examples_revision = '6a5af5c0dc35de568020851a01e70b207343cc4a'
aws_doc_sdk_examples_revision = '6eb03e5476ee55df5872b8a8de90b235a3503145'

[manual_interventions]
crates_to_remove = []
Expand Down

0 comments on commit 0e3dcae

Please sign in to comment.