Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tuts/001-lightsail-gs/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-lightsail"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-lightsail = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/001-lightsail-gs/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_lightsail::Client::new(&config);
println!("Running Lightsail getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/001-lightsail-gs/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_lightsail::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_lightsail::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/002-vpc-gs/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-ec2"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-ec2 = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/002-vpc-gs/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_ec2::Client::new(&config);
println!("Running Ec2 getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/002-vpc-gs/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_ec2::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/003-s3-gettingstarted/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-s3"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-s3 = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/003-s3-gettingstarted/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_s3::Client::new(&config);
println!("Running S3 getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/003-s3-gettingstarted/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_s3::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_s3::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/004-cloudmap-custom-attributes/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-servicediscovery"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-servicediscovery = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/004-cloudmap-custom-attributes/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_servicediscovery::Client::new(&config);
println!("Running CloudMap getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/004-cloudmap-custom-attributes/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_servicediscovery::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_servicediscovery::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/005-cloudfront-gettingstarted/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-cloudfront"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-cloudfront = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/005-cloudfront-gettingstarted/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_cloudfront::Client::new(&config);
println!("Running CloudFront getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/005-cloudfront-gettingstarted/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_cloudfront::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_cloudfront::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/008-vpc-private-servers-gs/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-ec2"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-ec2 = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/008-vpc-private-servers-gs/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_ec2::Client::new(&config);
println!("Running Ec2 getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/008-vpc-private-servers-gs/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_ec2::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/009-vpc-ipam-gs/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-ec2"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-ec2 = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/009-vpc-ipam-gs/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_ec2::Client::new(&config);
println!("Running Ec2 getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/009-vpc-ipam-gs/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_ec2::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/010-cloudmap-service-discovery/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-servicediscovery"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-servicediscovery = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/010-cloudmap-service-discovery/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_servicediscovery::Client::new(&config);
println!("Running CloudMap getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/010-cloudmap-service-discovery/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_servicediscovery::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_servicediscovery::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/011-getting-started-batch-fargate/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-batch"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-batch = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/011-getting-started-batch-fargate/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_batch::Client::new(&config);
println!("Running Batch getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/011-getting-started-batch-fargate/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_batch::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_batch::Error> {
let _ = client;
Ok(())
}
9 changes: 9 additions & 0 deletions tuts/012-transitgateway-gettingstarted/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "tutorial-ec2"
version = "0.1.0"
edition = "2021"

[dependencies]
aws-config = { version = "1", features = ["behavior-version-latest"] }
aws-sdk-ec2 = "1"
tokio = { version = "1", features = ["full"] }
13 changes: 13 additions & 0 deletions tuts/012-transitgateway-gettingstarted/rust/src/bin/scenario.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await;
let client = aws_sdk_ec2::Client::new(&config);
println!("Running Ec2 getting started scenario...");
// TODO: setup, interact, teardown
let _ = client;
println!("Scenario complete.");
Ok(())
}
11 changes: 11 additions & 0 deletions tuts/012-transitgateway-gettingstarted/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use aws_sdk_ec2::Client;

// TODO: Add wrapper functions matching CLI tutorial actions

pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> {
let _ = client;
Ok(())
}
Loading