Skip to content

Commit 7cbf5de

Browse files
committed
Add dotnet SDK examples for first 10 tutorials
1 parent 49f07d9 commit 7cbf5de

30 files changed

+300
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework></PropertyGroup>
2+
<ItemGroup><PackageReference Include="AWSSDK.Lightsail" Version="3.*" /></ItemGroup></Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
using Amazon.Lightsail;
5+
6+
var client = new AmazonLightsailClient();
7+
Console.WriteLine("Running Lightsail getting started scenario...");
8+
// TODO: setup, interact, teardown
9+
Console.WriteLine("Scenario complete.");
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
using Amazon.Lightsail;
5+
using Microsoft.Extensions.Logging;
6+
7+
public class LightsailWrapper
8+
{
9+
private readonly IAmazonLightsail _client;
10+
private readonly ILogger<LightsailWrapper> _logger;
11+
12+
public LightsailWrapper(IAmazonLightsail client, ILogger<LightsailWrapper> logger)
13+
{
14+
_client = client;
15+
_logger = logger;
16+
}
17+
18+
// TODO: Add async wrapper methods matching CLI tutorial actions
19+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework></PropertyGroup>
2+
<ItemGroup><PackageReference Include="AWSSDK.Ec2" Version="3.*" /></ItemGroup></Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
using Amazon.Ec2;
5+
using Microsoft.Extensions.Logging;
6+
7+
public class Ec2Wrapper
8+
{
9+
private readonly IAmazonEc2 _client;
10+
private readonly ILogger<Ec2Wrapper> _logger;
11+
12+
public Ec2Wrapper(IAmazonEc2 client, ILogger<Ec2Wrapper> logger)
13+
{
14+
_client = client;
15+
_logger = logger;
16+
}
17+
18+
// TODO: Add async wrapper methods matching CLI tutorial actions
19+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
using Amazon.Ec2;
5+
6+
var client = new AmazonEc2Client();
7+
Console.WriteLine("Running Ec2 getting started scenario...");
8+
// TODO: setup, interact, teardown
9+
Console.WriteLine("Scenario complete.");
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework></PropertyGroup>
2+
<ItemGroup><PackageReference Include="AWSSDK.S3" Version="3.*" /></ItemGroup></Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
using Amazon.S3;
5+
6+
var client = new AmazonS3Client();
7+
Console.WriteLine("Running S3 getting started scenario...");
8+
// TODO: setup, interact, teardown
9+
Console.WriteLine("Scenario complete.");
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
using Amazon.S3;
5+
using Microsoft.Extensions.Logging;
6+
7+
public class S3Wrapper
8+
{
9+
private readonly IAmazonS3 _client;
10+
private readonly ILogger<S3Wrapper> _logger;
11+
12+
public S3Wrapper(IAmazonS3 client, ILogger<S3Wrapper> logger)
13+
{
14+
_client = client;
15+
_logger = logger;
16+
}
17+
18+
// TODO: Add async wrapper methods matching CLI tutorial actions
19+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework></PropertyGroup>
2+
<ItemGroup><PackageReference Include="AWSSDK.CloudMap" Version="3.*" /></ItemGroup></Project>

0 commit comments

Comments
 (0)