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):
  4ed9b713fbd1eb8143b2405b79e5a1c497493daf

Co-authored-by: Scott Macdonald <[email protected]>
  • Loading branch information
aws-sdk-rust-ci and scmacdon committed Sep 27, 2024
1 parent e500f5b commit e68b3ed
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 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.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"
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.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" }
Expand Down
26 changes: 13 additions & 13 deletions examples/examples/iam/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)


<!--custom.examples.start-->
<!--custom.examples.end-->
Expand All @@ -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.

Expand All @@ -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.

<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->


<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->

<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->

### Tests

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.7", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
aws-sdk-sesv2= { version = "1.47.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 = '59597c2a29a7da1ebae8d68d247e88752ef76c37'
aws_doc_sdk_examples_revision = '6eb03e5476ee55df5872b8a8de90b235a3503145'
aws_doc_sdk_examples_revision = '4ed9b713fbd1eb8143b2405b79e5a1c497493daf'

[manual_interventions]
crates_to_remove = []
Expand Down

0 comments on commit e68b3ed

Please sign in to comment.