Skip to content

Commit 5274f20

Browse files
aws-sdk-rust-ciasher-ghcpyle0819DavidSouthertimClicks
committed
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Includes commit(s): e2c45abb87418b0b2ac5d0a406d76430890b40aa a0301b30413a47d3038d37b00e569136fa0d520f bae5f37495faec53572438b17cd8843de33986c8 b945b30db7d36c62a33f3dfa42a51e2268aa6041 6bd066d7d79b2d5273618fcf43f17ea340ced472 f4fc46139c2ea0784e31cadd19b430fcd2bbc21a Co-authored-by: Asher <74317567+asher-gh@users.noreply.github.com> Co-authored-by: Corey Pyle <corepyle@amazon.com> Co-authored-by: David Souther <davidsouther+github@gmail.com> Co-authored-by: Tim McNamara <code@timmcnamara.co.nz>
1 parent cded719 commit 5274f20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+4703
-110
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ exclude = [
4949
"examples/qldb",
5050
"examples/textract",
5151
"examples/stepfunction",
52+
"examples/webassembly",
5253
"examples/cloudformation",
5354
"examples/localstack",
5455
"examples/ssm",

examples/applicationautoscaling/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1111
aws-sdk-applicationautoscaling= { version = "0.27.0", path = "../../sdk/applicationautoscaling" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ features = ["derive"]
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/autoscaling/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1111
aws-sdk-autoscaling= { version = "0.27.0", path = "../../sdk/autoscaling" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ features = ["derive"]
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/autoscalingplans/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ aws-sdk-autoscalingplans= { version = "0.27.0", path = "../../sdk/autoscalingpla
1111
aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1212
aws-types= { version = "0.55.2", path = "../../sdk/aws-types" }
1313

14+
[workspace]
15+
1416
[dependencies.tokio]
1517
version = "1.20.1"
1618
features = ["full"]
@@ -22,5 +24,3 @@ features = ["derive"]
2224
[dependencies.tracing-subscriber]
2325
version = "0.3.15"
2426
features = ["env-filter"]
25-
26-
[workspace]

examples/batch/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1111
aws-sdk-batch= { version = "0.27.0", path = "../../sdk/batch" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ features = ["derive"]
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/cloudformation/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1111
aws-sdk-cloudformation= { version = "0.27.0", path = "../../sdk/cloudformation" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ features = ["derive"]
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/cloudwatch/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1111
aws-sdk-cloudwatch= { version = "0.27.0", path = "../../sdk/cloudwatch" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ features = ["derive"]
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/cloudwatchlogs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1111
aws-sdk-cloudwatchlogs= { version = "0.27.0", path = "../../sdk/cloudwatchlogs" }
1212
aws-types= { version = "0.55.2", path = "../../sdk/aws-types" }
1313

14+
[workspace]
15+
1416
[dependencies.tokio]
1517
version = "1.20.1"
1618
features = ["full"]
@@ -22,5 +24,3 @@ features = ["derive"]
2224
[dependencies.tracing-subscriber]
2325
version = "0.3.15"
2426
features = ["env-filter"]
25-
26-
[workspace]

examples/config/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ publish = false
1010
aws-config= { version = "0.55.2", path = "../../sdk/aws-config" }
1111
aws-sdk-config= { version = "0.27.0", path = "../../sdk/config" }
1212

13+
[workspace]
14+
1315
[dependencies.tokio]
1416
version = "1.20.1"
1517
features = ["full"]
@@ -21,5 +23,3 @@ features = ["derive"]
2123
[dependencies.tracing-subscriber]
2224
version = "0.3.15"
2325
features = ["env-filter"]
24-
25-
[workspace]

examples/config/src/bin/config-helloworld.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ async fn get_history(client: &Client, id: &str, res: ResourceType) -> Result<(),
5454
/// NOTE: AWS Config must be enabled to discover resources
5555
/// # Arguments
5656
///
57-
/// * `-resource_id RESOURCE-ID` - The ID of the resource.
58-
/// * `-resource_type RESOURCE-TYPE` - The type of resource, such as **AWS::EC2::SecurityGroup**.
57+
/// * `[--resource_id RESOURCE-ID]` - The ID of the resource.
58+
/// * `[--resource_type RESOURCE-TYPE]` - The type of resource, such as **AWS::EC2::SecurityGroup**.
5959
/// * `[-r REGION]` - The AWS Region in which the client is created.
6060
/// If not supplied, uses the value of the **AWS_REGION** environment variable.
6161
/// If the environment variable is not set, defaults to **us-west-2**.

0 commit comments

Comments
 (0)