Skip to content

Commit b16d642

Browse files
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Includes commit(s): 57182851d05524aeb4750e7245f8c5a541e6e02c Co-authored-by: Scott Macdonald <[email protected]>
1 parent 8832074 commit b16d642

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.8", path = "../../../sdk/aws-config" }
10+
aws-sdk-bedrockruntime = { version = "1.56.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.8", path = "../../../sdk/aws-config" }
15-
aws-sdk-bedrockruntime= { version = "1.56.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.51.0", path = "../../../sdk/ssm" }
16-
aws-smithy-async= { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
15+
aws-sdk-ssm = { version = "1.51.0", path = "../../../sdk/ssm" }
16+
aws-smithy-async = { version = "1.2.1", path = "../../../sdk/aws-smithy-async" }
1717
aws-config= { version = "1.5.8", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
1818
aws-sdk-ec2= { version = "1.82.0", path = "../../../sdk/ec2" }
1919
aws-types= { version = "1.3.3", path = "../../../sdk/aws-types" }

examples/examples/lambda/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ Additionally, to compile Lambda functions written in the Rust programming langua
3333

3434
<!--custom.prerequisites.end-->
3535

36+
### Basics
37+
38+
Code examples that show you how to perform the essential operations within a service.
39+
40+
- [Learn the basics](Cargo.toml)
41+
42+
3643
### Single actions
3744

3845
Code excerpts that show you how to call individual service functions.
@@ -45,13 +52,6 @@ Code excerpts that show you how to call individual service functions.
4552
- [UpdateFunctionCode](src/actions.rs#L200)
4653
- [UpdateFunctionConfiguration](src/actions.rs#L449)
4754

48-
### Scenarios
49-
50-
Code examples that show you how to accomplish a specific task by calling multiple
51-
functions within the same service.
52-
53-
- [Get started with functions](Cargo.toml)
54-
5555

5656
<!--custom.examples.start-->
5757
<!--custom.examples.end-->
@@ -82,8 +82,7 @@ Other single action examples write directly to stdout, and can be executed with
8282
<!--custom.instructions.end-->
8383

8484

85-
86-
#### Get started with functions
85+
#### Learn the basics
8786

8887
This example shows you how to do the following:
8988

@@ -93,12 +92,13 @@ This example shows you how to do the following:
9392
- Invoke the function with new parameters and get results. Display the returned execution log.
9493
- List the functions for your account, then clean up resources.
9594

96-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
97-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
95+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
96+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
97+
9898

99+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
100+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
99101

100-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
101-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
102102

103103
### Tests
104104

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.8", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] }
1717
aws-sdk-sesv2= { version = "1.51.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 = '1a438ca7c75f0d36de1a908d60dbc4b8b24f6883'
2-
aws_doc_sdk_examples_revision = 'a370cb2bb182ab57f55a6086175273dc863ee9e3'
2+
aws_doc_sdk_examples_revision = '57182851d05524aeb4750e7245f8c5a541e6e02c'
33

44
[manual_interventions]
55
crates_to_remove = []

0 commit comments

Comments
 (0)