Skip to content

Commit e68b3ed

Browse files
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Includes commit(s): 4ed9b713fbd1eb8143b2405b79e5a1c497493daf Co-authored-by: Scott Macdonald <[email protected]>
1 parent e500f5b commit e68b3ed

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
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.7", path = "../../../sdk/aws-config" }
10+
aws-sdk-bedrockruntime = { version = "1.51.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.7", 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.7", path = "../../../sdk/aws-config" }
15-
aws-sdk-bedrockruntime= { version = "1.51.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.7", 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.49.0", path = "../../../sdk/ssm" }
16-
aws-smithy-async= { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
15+
aws-sdk-ssm = { version = "1.49.0", path = "../../../sdk/ssm" }
16+
aws-smithy-async = { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
1717
aws-config= { version = "1.5.7", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
1818
aws-sdk-ec2= { version = "1.75.0", path = "../../../sdk/ec2" }
1919
aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" }

examples/examples/iam/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `rustv
3434
- [Hello IAM](src/bin/hello.rs#L3) (`ListPolicies`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](src/bin/iam-getting-started.rs)
42+
43+
3744
### Single actions
3845

3946
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.
6370
- [ListSAMLProviders](src/iam-service-lib.rs#L486)
6471
- [ListUsers](src/iam-service-lib.rs#L123)
6572

66-
### Scenarios
67-
68-
Code examples that show you how to accomplish a specific task by calling multiple
69-
functions within the same service.
70-
71-
- [Create a user and assume a role](src/bin/iam-getting-started.rs)
72-
7373

7474
<!--custom.examples.start-->
7575
<!--custom.examples.end-->
@@ -87,8 +87,7 @@ functions within the same service.
8787
This example shows you how to get started using IAM.
8888

8989

90-
91-
#### Create a user and assume a role
90+
#### Learn the basics
9291

9392
This example shows you how to create a user and assume a role.
9493

@@ -97,12 +96,13 @@ This example shows you how to create a user and assume a role.
9796
- Add a policy to let the user assume the role.
9897
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
9998

100-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
101-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
99+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
100+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
101+
102102

103+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
104+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
103105

104-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
105-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
106106

107107
### Tests
108108

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

44
[manual_interventions]
55
crates_to_remove = []

0 commit comments

Comments
 (0)