diff --git a/examples/examples/bedrock-runtime/Cargo.toml b/examples/examples/bedrock-runtime/Cargo.toml index aeec6f8971d5..54ae6f0d41f0 100644 --- a/examples/examples/bedrock-runtime/Cargo.toml +++ b/examples/examples/bedrock-runtime/Cargo.toml @@ -6,15 +6,15 @@ edition = "2021" publish = false [dependencies] +aws-config = { version = "1.5.7", path = "../../../sdk/aws-config" } +aws-sdk-bedrockruntime = { version = "1.51.0", path = "../../../sdk/bedrockruntime" } +aws-smithy-runtime-api = { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" } +aws-smithy-types = { version = "1.2.7", 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.7", path = "../../../sdk/aws-config" } -aws-sdk-bedrockruntime= { version = "1.51.0", path = "../../../sdk/bedrockruntime" } -aws-smithy-runtime-api= { version = "1.7.2", path = "../../../sdk/aws-smithy-runtime-api" } -aws-smithy-types= { version = "1.2.7", path = "../../../sdk/aws-smithy-types" } [dependencies.tokio] version = "1.38.1" diff --git a/examples/examples/cloudwatchlogs/Cargo.toml b/examples/examples/cloudwatchlogs/Cargo.toml index 1daf23bc92a4..c56ae006bed4 100644 --- a/examples/examples/cloudwatchlogs/Cargo.toml +++ b/examples/examples/cloudwatchlogs/Cargo.toml @@ -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" } diff --git a/examples/examples/ec2/Cargo.toml b/examples/examples/ec2/Cargo.toml index c7dc6f174768..05b6a47135e4 100644 --- a/examples/examples/ec2/Cargo.toml +++ b/examples/examples/ec2/Cargo.toml @@ -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.49.0", path = "../../../sdk/ssm" } -aws-smithy-async= { version = "1.2.1", path = "../../../sdk/aws-smithy-async" } +aws-sdk-ssm = { version = "1.49.0", path = "../../../sdk/ssm" } +aws-smithy-async = { version = "1.2.1", path = "../../../sdk/aws-smithy-async" } aws-config= { version = "1.5.7", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] } aws-sdk-ec2= { version = "1.75.0", path = "../../../sdk/ec2" } aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" } diff --git a/examples/examples/iam/README.md b/examples/examples/iam/README.md index b1d1c19ba36e..5bb01e435afa 100644 --- a/examples/examples/iam/README.md +++ b/examples/examples/iam/README.md @@ -34,6 +34,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `rustv - [Hello IAM](src/bin/hello.rs#L3) (`ListPolicies`) +### Basics + +Code examples that show you how to perform the essential operations within a service. + +- [Learn the basics](src/bin/iam-getting-started.rs) + + ### Single actions Code excerpts that show you how to call individual service functions. @@ -63,13 +70,6 @@ Code excerpts that show you how to call individual service functions. - [ListSAMLProviders](src/iam-service-lib.rs#L486) - [ListUsers](src/iam-service-lib.rs#L123) -### Scenarios - -Code examples that show you how to accomplish a specific task by calling multiple -functions within the same service. - -- [Create a user and assume a role](src/bin/iam-getting-started.rs) - @@ -87,8 +87,7 @@ functions within the same service. This example shows you how to get started using IAM. - -#### Create a user and assume a role +#### Learn the basics This example shows you how to create a user and assume a role. @@ -97,12 +96,13 @@ This example shows you how to create a user and assume a role. - Add a policy to let the user assume the role. - Assume the role and list S3 buckets using temporary credentials, then clean up resources. - - + + + + + - - ### Tests diff --git a/examples/examples/ses/Cargo.toml b/examples/examples/ses/Cargo.toml index 309f429c731f..44a7c76a3f6e 100644 --- a/examples/examples/ses/Cargo.toml +++ b/examples/examples/ses/Cargo.toml @@ -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.7", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] } aws-sdk-sesv2= { version = "1.47.0", path = "../../../sdk/sesv2", features = ["test-util"] } diff --git a/versions.toml b/versions.toml index 4619badcaf38..6124cd65a973 100644 --- a/versions.toml +++ b/versions.toml @@ -1,5 +1,5 @@ smithy_rs_revision = '59597c2a29a7da1ebae8d68d247e88752ef76c37' -aws_doc_sdk_examples_revision = '6eb03e5476ee55df5872b8a8de90b235a3503145' +aws_doc_sdk_examples_revision = '4ed9b713fbd1eb8143b2405b79e5a1c497493daf' [manual_interventions] crates_to_remove = []