├── .gitignore
├── ConsoleSamples
├── AmazonDynamoDB_Sample
│ ├── .nuget
│ │ ├── NuGet.Config
│ │ └── NuGet.targets
│ ├── AmazonDynamoDB_Sample.sln
│ ├── AmazonDynamoDB_Sample
│ │ ├── AmazonDynamoDB_Sample.csproj
│ │ ├── App.config
│ │ ├── DataModelSample.cs
│ │ ├── DataModelSchema.cs
│ │ ├── DocumentModelSample.cs
│ │ ├── Program.cs
│ │ ├── TableOperations.cs
│ │ ├── assemblyinfo.cs
│ │ └── packages.config
│ └── README.md
├── AmazonGlacierSample
│ ├── .nuget
│ │ ├── NuGet.Config
│ │ └── NuGet.targets
│ ├── AmazonGlacierSample.sln
│ ├── AmazonGlacierSample
│ │ ├── AmazonGlacierSample.csproj
│ │ ├── App.config
│ │ ├── AssemblyInfo.cs
│ │ ├── Program.cs
│ │ └── packages.config
│ └── README.md
├── AmazonS3Sample
│ ├── .nuget
│ │ ├── NuGet.Config
│ │ └── NuGet.targets
│ ├── AmazonS3Sample.sln
│ ├── AmazonS3Sample
│ │ ├── AmazonS3Sample.csproj
│ │ ├── App.config
│ │ ├── S3Sample.cs
│ │ ├── assemblyinfo.cs
│ │ └── packages.config
│ └── README.md
├── AmazonS3TransferUtility_Sample
│ ├── .nuget
│ │ ├── NuGet.Config
│ │ └── NuGet.targets
│ ├── AmazonS3TransferUtility_Sample.sln
│ ├── AmazonS3TransferUtility_Sample
│ │ ├── AmazonS3TransferUtility_Sample.csproj
│ │ ├── App.config
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── S3TransferWindow.xaml
│ │ ├── S3TransferWindow.xaml.cs
│ │ └── packages.config
│ └── README.md
├── AmazonSQS_Sample
│ ├── .nuget
│ │ ├── NuGet.Config
│ │ └── NuGet.targets
│ ├── AmazonSQS_Sample.sln
│ ├── AmazonSQS_Sample
│ │ ├── AmazonSQS_Sample.csproj
│ │ ├── App.config
│ │ ├── Program.cs
│ │ ├── assemblyinfo.cs
│ │ └── packages.config
│ └── README.md
├── AmazonSesSample
│ ├── .nuget
│ │ ├── NuGet.Config
│ │ └── NuGet.targets
│ ├── AmazonSesSample.sln
│ ├── AmazonSesSample
│ │ ├── AmazonSesSample.csproj
│ │ ├── App.config
│ │ ├── AssemblyInfo.cs
│ │ ├── Program.cs
│ │ └── packages.config
│ └── README.md
├── AmazonSesSmtpSample
│ ├── AmazonSesSmtpSample.sln
│ ├── AmazonSesSmtpSample
│ │ ├── AmazonSesSmtpSample.csproj
│ │ ├── App.config
│ │ ├── AssemblyInfo.cs
│ │ └── Program.cs
│ └── README.md
├── Amazon_CloudWatch_Sample
│ ├── .nuget
│ │ ├── NuGet.Config
│ │ └── NuGet.targets
│ ├── Amazon_CloudWatch_Sample.sln
│ ├── Amazon_CloudWatch_Sample
│ │ ├── AmazonCloudWatchSample.cs
│ │ ├── Amazon_CloudWatch_Sample.csproj
│ │ ├── App.config
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.config
│ └── Readme.md
└── S3FileSystem_Sample
│ ├── .nuget
│ ├── NuGet.Config
│ └── NuGet.targets
│ ├── README.md
│ ├── S3FileSystem_Sample.sln
│ └── S3FileSystem_Sample
│ ├── App.config
│ ├── Program.cs
│ ├── Properties
│ └── Assemblyinfo.cs
│ ├── S3FileSystem_Sample.csproj
│ └── packages.config
├── License.txt
├── README.md
└── XamarinSamples
├── CognitoIdentity
├── Assets
│ └── AboutAssets.txt
├── BYOISample.csproj
├── BYOISample.sln
├── CognitoCustomAWSCredentials.cs
├── GettingStarted.Xamarin
├── MainActivity.cs
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
├── Resources
│ ├── AboutResources.txt
│ ├── Resource.Designer.cs
│ ├── drawable
│ │ └── Icon.png
│ ├── layout
│ │ └── Main.axml
│ └── values
│ │ └── Strings.xml
└── packages.config
├── CognitoSync
├── TODOList.Android
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── MainActivity.cs
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.Designer.cs
│ │ ├── drawable
│ │ │ ├── Icon.png
│ │ │ └── ic_menu_refresh.png
│ │ ├── layout
│ │ │ ├── Main.axml
│ │ │ ├── todo_detail_layout.axml
│ │ │ └── todo_layout.axml
│ │ ├── menu
│ │ │ └── home_menu.axml
│ │ └── values
│ │ │ └── Strings.xml
│ ├── TODOList.Android.csproj
│ ├── TodoActivity.cs
│ ├── TodoDetailActivity.cs
│ ├── app.config
│ └── packages.config
├── TODOList.iOS
│ ├── AppDelegate.cs
│ ├── Entitlements.plist
│ ├── Info.plist
│ ├── LoginViewController.cs
│ ├── Main.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ └── Default-568h@2x.png
│ ├── TODOList.iOS.csproj
│ ├── TODOViewController.cs
│ ├── app.config
│ └── packages.config
├── TODOList.sln
├── TODOListPortableLibrary
│ ├── CognitoSyncUtils.cs
│ ├── Constants.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TODOList.PCL.csproj
│ ├── Task.cs
│ └── packages.config
└── readme.md
├── DynamoDB
├── AWSSDK.DynamoDB.Sample.sln
├── ContactManager.Droid
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── ContactManager.Droid.csproj
│ ├── FacebookLoginButtonRenderer.cs
│ ├── MainActivity.cs
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.Designer.cs
│ │ ├── drawable
│ │ │ ├── icon.png
│ │ │ └── plus.png
│ │ └── values
│ │ │ └── Strings.xml
│ ├── app.config
│ └── packages.config
├── ContactManager.iOS
│ ├── AppDelegate.cs
│ ├── ContactManager.iOS.csproj
│ ├── DoneEntryRenderer.cs
│ ├── Entitlements.plist
│ ├── FacebookLoginButtonRenderer.cs
│ ├── Info.plist
│ ├── Main.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── Default-568h@2x.png
│ │ ├── Default-Portrait.png
│ │ ├── Default-Portrait@2x.png
│ │ ├── Default.png
│ │ ├── Default@2x.png
│ │ ├── Icon-60@2x.png
│ │ ├── Icon-60@3x.png
│ │ ├── Icon-76.png
│ │ ├── Icon-76@2x.png
│ │ ├── Icon-Small-40.png
│ │ ├── Icon-Small-40@2x.png
│ │ ├── Icon-Small-40@3x.png
│ │ ├── Icon-Small.png
│ │ ├── Icon-Small@2x.png
│ │ ├── Icon-Small@3x.png
│ │ └── LaunchScreen.storyboard
│ ├── app.config
│ ├── iTunesArtwork
│ ├── iTunesArtwork@2x
│ └── packages.config
├── ContactManager
│ ├── ContactManager.csproj
│ ├── Model
│ │ └── Contact.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Utils
│ │ ├── AmazonUtils.cs
│ │ └── Constants.cs
│ ├── Views
│ │ ├── App.cs
│ │ ├── ContactCell.cs
│ │ ├── ContactListPage.cs
│ │ ├── ContactPage.cs
│ │ ├── DoneEntry.cs
│ │ ├── FacebookLoginButton.cs
│ │ ├── LoginPage.xaml
│ │ └── LoginPage.xaml.cs
│ └── packages.config
└── readme.md
├── MobileAnalytics
├── AWSSDK.MobileAnalytics.Sample.sln
├── Android
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── MainActivity.cs
│ ├── MobileAnalyticsSample.Droid.csproj
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.Designer.cs
│ │ ├── drawable
│ │ │ └── Icon.png
│ │ ├── layout
│ │ │ └── Main.axml
│ │ └── values
│ │ │ └── Strings.xml
│ └── packages.config
├── iOS
│ ├── AppDelegate.cs
│ ├── Entitlements.plist
│ ├── Info.plist
│ ├── Main.cs
│ ├── Main.storyboard
│ ├── MobileAnalyticsSample.iOS.csproj
│ ├── Resources
│ │ ├── Images.xcassets
│ │ │ └── AppIcons.appiconset
│ │ │ │ └── Contents.json
│ │ └── LaunchScreen.xib
│ ├── ViewController.cs
│ ├── ViewController.designer.cs
│ └── packages.config
└── readme.md
├── S3
├── AWSSDK.S3.Sample.sln
├── S3
│ ├── Android
│ │ ├── AndroidSample.csproj
│ │ ├── Assets
│ │ │ └── AboutAssets.txt
│ │ ├── BitmapHelpers.cs
│ │ ├── Constants.cs
│ │ ├── GettingStarted.Xamarin
│ │ ├── MainActivity.cs
│ │ ├── Properties
│ │ │ ├── AndroidManifest.xml
│ │ │ └── AssemblyInfo.cs
│ │ ├── Resources
│ │ │ ├── AboutResources.txt
│ │ │ ├── Resource.Designer.cs
│ │ │ ├── drawable
│ │ │ │ └── Icon.png
│ │ │ ├── layout
│ │ │ │ ├── Main.axml
│ │ │ │ └── ViewUploads.axml
│ │ │ └── values
│ │ │ │ └── Strings.xml
│ │ ├── S3Utils.cs
│ │ ├── ViewUploadsActivity.cs
│ │ └── packages.config
│ └── readme.md
└── readme.md
└── SNS
├── AWSSDK.SNS.Sample.sln
└── SNSPushNotification
├── SNSPushNotification.Droid
├── AndroidUtils.cs
├── Assets
│ └── AboutAssets.txt
├── GCMBroadcastReceiver .cs
├── GCMIntentService.cs
├── MainActivity.cs
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
├── Resources
│ ├── AboutResources.txt
│ ├── Resource.Designer.cs
│ ├── drawable-hdpi
│ │ └── icon.png
│ ├── drawable-xhdpi
│ │ └── icon.png
│ ├── drawable-xxhdpi
│ │ └── icon.png
│ └── drawable
│ │ └── icon.png
├── SNSPushNotification.Droid.csproj
└── packages.config
├── SNSPushNotification.iOS
├── AppDelegate.cs
├── Entitlements.plist
├── Info.plist
├── Main.cs
├── Properties
│ └── AssemblyInfo.cs
├── Resources
│ ├── Default-568h@2x.png
│ ├── Default-Portrait.png
│ ├── Default-Portrait@2x.png
│ ├── Default.png
│ ├── Default@2x.png
│ ├── Icon-60@2x.png
│ ├── Icon-60@3x.png
│ ├── Icon-76.png
│ ├── Icon-76@2x.png
│ ├── Icon-Small-40.png
│ ├── Icon-Small-40@2x.png
│ ├── Icon-Small-40@3x.png
│ ├── Icon-Small.png
│ ├── Icon-Small@2x.png
│ ├── Icon-Small@3x.png
│ └── LaunchScreen.storyboard
├── SNSPushNotification.iOS.csproj
├── iTunesArtwork
├── iTunesArtwork@2x
└── packages.config
├── SNSPushNotification
├── App.cs
├── Constants.cs
├── SNSPushNotification.projitems
├── SNSPushNotification.shproj
└── SNSUtils.cs
└── readme.md
/.gitignore:
--------------------------------------------------------------------------------
1 | ######################################
2 | # Visual Studio per-user settings data
3 | ######################################
4 | *.suo
5 | *.user
6 |
7 | ####################
8 | # Build/Test folders
9 | ####################
10 |
11 | **/bin/
12 | **/obj/
13 | **/TestResults/
14 | **/Temp/
15 | **/NuGet.exe
16 | **/buildlogs/
17 | **/packages
18 |
19 | **/project.lock.json
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonDynamoDB_Sample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonDynamoDB_Sample/AmazonDynamoDB_Sample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | VisualStudioVersion = 12.0.30723.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmazonDynamoDB_Sample", "AmazonDynamoDB_Sample\AmazonDynamoDB_Sample.csproj", "{968B2B99-BECB-4BAB-ACBB-671A3688CD42}"
6 | EndProject
7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{CEAF1E0B-3984-4BFE-9ADB-2BA0B3645689}"
8 | ProjectSection(SolutionItems) = preProject
9 | .nuget\NuGet.Config = .nuget\NuGet.Config
10 | .nuget\NuGet.exe = .nuget\NuGet.exe
11 | .nuget\NuGet.targets = .nuget\NuGet.targets
12 | EndProjectSection
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Release|Any CPU = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {968B2B99-BECB-4BAB-ACBB-671A3688CD42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {968B2B99-BECB-4BAB-ACBB-671A3688CD42}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {968B2B99-BECB-4BAB-ACBB-671A3688CD42}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {968B2B99-BECB-4BAB-ACBB-671A3688CD42}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonDynamoDB_Sample/AmazonDynamoDB_Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonDynamoDB_Sample/AmazonDynamoDB_Sample/Program.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"). You may
5 | * not use this file except in compliance with the License. A copy of the
6 | * License is located at
7 | *
8 | * http://aws.amazon.com/apache2.0/
9 | *
10 | * or in the "license" file accompanying this file. This file is
11 | * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12 | * KIND, either express or implied. See the License for the specific
13 | * language governing permissions and limitations under the License.
14 | *******************************************************************************/
15 |
16 | using System;
17 | using System.Linq;
18 | using System.Xml.Serialization;
19 | using System.Collections.Generic;
20 |
21 | using Amazon;
22 | using Amazon.DynamoDBv2;
23 | using Amazon.DynamoDBv2.Model;
24 | using Amazon.Runtime;
25 |
26 | namespace AmazonDynamoDB_Sample
27 | {
28 | public partial class Program
29 | {
30 | public static IAmazonDynamoDB client;
31 |
32 | public static void Main(string[] args)
33 | {
34 | Console.WriteLine();
35 | Console.WriteLine("Setting up DynamoDB client");
36 | client = new AmazonDynamoDBClient(RegionEndpoint.USWest2);
37 |
38 | Console.WriteLine();
39 | Console.WriteLine("Creating sample tables");
40 | CreateSampleTables();
41 |
42 | Console.WriteLine();
43 | Console.WriteLine("Running DataModel sample");
44 | RunDataModelSample();
45 |
46 | Console.WriteLine();
47 | Console.WriteLine("Running DataModel sample");
48 | RunDocumentModelSample();
49 |
50 | Console.WriteLine();
51 | Console.WriteLine("Removing sample tables");
52 | DeleteSampleTables();
53 |
54 | Console.WriteLine();
55 | Console.WriteLine("Press Enter to continue...");
56 | Console.Read();
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonDynamoDB_Sample/AmazonDynamoDB_Sample/assemblyinfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("AmazonDynamoDB_Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("AmazonDynamoDB_Sample")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | // [assembly: Guid("86f22ef7-eb6d-44aa-bc68-9e9fa9acddf8")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonDynamoDB_Sample/AmazonDynamoDB_Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonDynamoDB_Sample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon DynamoDB Sample
2 | This is a sample that demonstrates how to make basic requests to Amazon DynamoDB using the AWS SDK for .NET.
3 |
4 | ### Running the Sample
5 |
6 | The basic steps for running the Amazon DynamoDB sample are:
7 |
8 | 1. Open the AmazonDynamoDB_Sample.sln file in Visual Studio.
9 | 2. Open the App.config file.
10 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
11 | 4. Run the sample in Debug mode by typing F5.
12 |
13 | See the [Amazon DynamoDB Getting Started Guide](http://docs.amazonwebservices.com/AmazonDynamoDB/latest/GettingStartedGuide/) for step-by-step instructions on running this sample.
14 |
15 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonGlacierSample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonGlacierSample/AmazonGlacierSample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30723.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmazonGlacierSample", "AmazonGlacierSample\AmazonGlacierSample.csproj", "{B3A5BFC9-628F-4291-96F8-E4F2411AC280}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{5EF411FE-3B8A-4489-A2EA-1009A0BC4D89}"
9 | ProjectSection(SolutionItems) = preProject
10 | .nuget\NuGet.Config = .nuget\NuGet.Config
11 | .nuget\NuGet.exe = .nuget\NuGet.exe
12 | .nuget\NuGet.targets = .nuget\NuGet.targets
13 | EndProjectSection
14 | EndProject
15 | Global
16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
17 | Debug|Any CPU = Debug|Any CPU
18 | Release|Any CPU = Release|Any CPU
19 | EndGlobalSection
20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
21 | {B3A5BFC9-628F-4291-96F8-E4F2411AC280}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22 | {B3A5BFC9-628F-4291-96F8-E4F2411AC280}.Debug|Any CPU.Build.0 = Debug|Any CPU
23 | {B3A5BFC9-628F-4291-96F8-E4F2411AC280}.Release|Any CPU.ActiveCfg = Release|Any CPU
24 | {B3A5BFC9-628F-4291-96F8-E4F2411AC280}.Release|Any CPU.Build.0 = Release|Any CPU
25 | EndGlobalSection
26 | GlobalSection(SolutionProperties) = preSolution
27 | HideSolutionNode = FALSE
28 | EndGlobalSection
29 | EndGlobal
30 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonGlacierSample/AmazonGlacierSample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonGlacierSample/AmazonGlacierSample/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Amazon Glacier Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("AWS .NET SDK")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Build and Revision Numbers
30 | // by using the '*' as shown below:
31 | // [assembly: AssemblyVersion("1.0.*")]
32 | [assembly: AssemblyVersion("1.0.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
34 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonGlacierSample/AmazonGlacierSample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonGlacierSample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon Glacier Sample
2 | This is a sample that demonstrates how to use the Amazon Glacier using the high level API provided by ArchiveTransferManager.
3 |
4 | ### Running the Sample
5 | The basic steps for running the Amazon Glacier sample are:
6 |
7 | 1. Open the AmazonGlacierSample.sln file in Visual Studio.
8 | 2. Open the App.config file.
9 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
10 | 4. Set proper values for the variables vaultName, filePath and downloadFilePath. (Please note that download of an archive can take hours to complete.)
11 | 5. Run the sample in Debug mode by typing F5.
12 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3Sample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3Sample/AmazonS3Sample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | VisualStudioVersion = 12.0.30723.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmazonS3Sample", "AmazonS3Sample\AmazonS3Sample.csproj", "{2BDDED7F-A870-4262-9056-E2C6A7AD9005}"
6 | EndProject
7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{01FB5FBA-A3D4-45BE-8211-5F476050C89F}"
8 | ProjectSection(SolutionItems) = preProject
9 | .nuget\NuGet.Config = .nuget\NuGet.Config
10 | .nuget\NuGet.exe = .nuget\NuGet.exe
11 | .nuget\NuGet.targets = .nuget\NuGet.targets
12 | EndProjectSection
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Release|Any CPU = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {2BDDED7F-A870-4262-9056-E2C6A7AD9005}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {2BDDED7F-A870-4262-9056-E2C6A7AD9005}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {2BDDED7F-A870-4262-9056-E2C6A7AD9005}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {2BDDED7F-A870-4262-9056-E2C6A7AD9005}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3Sample/AmazonS3Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3Sample/AmazonS3Sample/assemblyinfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Amazon S3 Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("AWS .NET SDK")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | // [assembly: Guid("ae3c2fe3-dc40-4ec4-b878-c7817015379e")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3Sample/AmazonS3Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3Sample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon S3 Sample
2 | This is a sample that demonstrates how to make basic requests to Amazon S3 using the AWS SDK for .NET.
3 |
4 | ### Running the Sample
5 | The basic steps for running the Amazon S3 sample are:
6 |
7 | 1. Open the AmazonSimpleDB_Sample.sln file in Visual Studio.
8 | 2. Open the App.config file.
9 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
10 | 4. Run the sample in Debug mode by typing F5.
11 |
12 | See the [Amazon S3 Getting Started Guide](http://docs.amazonwebservices.com/AmazonS3/latest/gsg/) for step-by-step instructions on running this sample.
13 |
14 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | VisualStudioVersion = 12.0.30723.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmazonS3TransferUtility_Sample", "AmazonS3TransferUtility_Sample\AmazonS3TransferUtility_Sample.csproj", "{F8EDEA4D-A125-4938-937E-6B4F4C130D1D}"
6 | EndProject
7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{873755E5-0D6D-4691-8BF9-7A8910A8636A}"
8 | ProjectSection(SolutionItems) = preProject
9 | .nuget\NuGet.Config = .nuget\NuGet.Config
10 | .nuget\NuGet.exe = .nuget\NuGet.exe
11 | .nuget\NuGet.targets = .nuget\NuGet.targets
12 | EndProjectSection
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Release|Any CPU = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {F8EDEA4D-A125-4938-937E-6B4F4C130D1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {F8EDEA4D-A125-4938-937E-6B4F4C130D1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {F8EDEA4D-A125-4938-937E-6B4F4C130D1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {F8EDEA4D-A125-4938-937E-6B4F4C130D1D}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample/App.xaml.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"). You may
5 | * not use this file except in compliance with the License. A copy of the
6 | * License is located at
7 | *
8 | * http://aws.amazon.com/apache2.0/
9 | *
10 | * or in the "license" file accompanying this file. This file is
11 | * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12 | * KIND, either express or implied. See the License for the specific
13 | * language governing permissions and limitations under the License.
14 | *******************************************************************************/
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Configuration;
18 | using System.Data;
19 | using System.Linq;
20 | using System.Windows;
21 |
22 | namespace AmazonS3TransferUtility_Sample
23 | {
24 | ///
25 | /// Interaction logic for App.xaml
26 | ///
27 | public partial class App : Application
28 | {
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("AmazonS3TransferUtility_Sample")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyProduct("AmazonS3TransferUtility_Sample")]
14 | [assembly: AssemblyCompany("Amazon.com, Inc")]
15 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17929
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace AmazonS3TransferUtility_Sample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/AmazonS3TransferUtility_Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonS3TransferUtility_Sample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon S3 TransferUtility Sample
2 | This sample demonstrates using the AWS SDK for .NET and Windows Presentation Framework to upload files and directories and track progress via progress bars.
3 | The sample takes advantage of the new TransferUtility object available in the AWS SDK for .NET to simplify uploads as well take advantage of Amazon S3's multipart API for large files.
4 |
5 | ### Running the Sample
6 | To run the Amazon S3 TransferUtility sample:
7 |
8 | 1. Open the AmazonS3TransferUtility_Sample.sln file in Visual Studio.
9 | 2. Open the App.config file.
10 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
11 | 4. Optionally set the Bucket field in the App.config to prefill the text box in the application.
12 | 5. Run the sample in Debug mode by typing F5.
13 | 6. Enter a bucket name in the "Bucket" field if this was not already set in the App.config. This bucket will be created if it does not exist.
14 | 7. To upload a file click the Browse button by the Choose File textbox to select a file and push the Upload button.
15 | 8. To upload a directory click the Browse button by the Choose Directory textbox to select a directory and push the Upload button.
16 |
17 | See the [Amazon S3 Getting Started Guide](http://docs.amazonwebservices.com/AmazonS3/latest/gsg/) for more inforamation about Amazon S3.
18 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSQS_Sample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSQS_Sample/AmazonSQS_Sample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | VisualStudioVersion = 12.0.30723.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmazonSQS_Sample", "AmazonSQS_Sample\AmazonSQS_Sample.csproj", "{B35B77E8-ACB5-4DA2-B78F-C14E1F90BA89}"
6 | EndProject
7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{C381963C-AAE9-4FF9-8BC6-9F651AF81FCE}"
8 | ProjectSection(SolutionItems) = preProject
9 | .nuget\NuGet.Config = .nuget\NuGet.Config
10 | .nuget\NuGet.exe = .nuget\NuGet.exe
11 | .nuget\NuGet.targets = .nuget\NuGet.targets
12 | EndProjectSection
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Release|Any CPU = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {B35B77E8-ACB5-4DA2-B78F-C14E1F90BA89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {B35B77E8-ACB5-4DA2-B78F-C14E1F90BA89}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {B35B77E8-ACB5-4DA2-B78F-C14E1F90BA89}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {B35B77E8-ACB5-4DA2-B78F-C14E1F90BA89}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSQS_Sample/AmazonSQS_Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSQS_Sample/AmazonSQS_Sample/assemblyinfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("AmazonSQS_Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("AmazonSQS_Sample")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | // [assembly: Guid("86f22ef7-eb6d-44aa-bc68-9e9fa9acddf8")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSQS_Sample/AmazonSQS_Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSQS_Sample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon SQS Sample
2 |
3 | This is a sample that demonstrates how to make basic requests to Amazon SQS using the AWS SDK for .NET.
4 |
5 | ### Running the Sample
6 |
7 | The basic steps for running the Amazon SQS sample are:
8 |
9 | 1. Open the AmazonSQS_Sample.sln file in Visual Studio.
10 | 2. Open the App.config file.
11 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
12 | 4. Save the file.
13 | 5. Run the sample in Debug mode by typing F5.
14 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSample/AmazonSesSample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30723.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmazonSesSample", "AmazonSesSample\AmazonSesSample.csproj", "{15167C2D-BCD1-45C7-805F-29FF151083D3}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{D34D7D3C-E040-4122-BD02-20B6D844F0D9}"
9 | ProjectSection(SolutionItems) = preProject
10 | .nuget\NuGet.Config = .nuget\NuGet.Config
11 | .nuget\NuGet.exe = .nuget\NuGet.exe
12 | .nuget\NuGet.targets = .nuget\NuGet.targets
13 | EndProjectSection
14 | EndProject
15 | Global
16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
17 | Debug|Any CPU = Debug|Any CPU
18 | Release|Any CPU = Release|Any CPU
19 | EndGlobalSection
20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
21 | {15167C2D-BCD1-45C7-805F-29FF151083D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22 | {15167C2D-BCD1-45C7-805F-29FF151083D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
23 | {15167C2D-BCD1-45C7-805F-29FF151083D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
24 | {15167C2D-BCD1-45C7-805F-29FF151083D3}.Release|Any CPU.Build.0 = Release|Any CPU
25 | EndGlobalSection
26 | GlobalSection(SolutionProperties) = preSolution
27 | HideSolutionNode = FALSE
28 | EndGlobalSection
29 | EndGlobal
30 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSample/AmazonSesSample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSample/AmazonSesSample/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Amazon SES Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("AWS .NET SDK")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Build and Revision Numbers
30 | // by using the '*' as shown below:
31 | // [assembly: AssemblyVersion("1.0.*")]
32 | [assembly: AssemblyVersion("1.0.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
34 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSample/AmazonSesSample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon SES Sample
2 | This is a sample that demonstrates how to send email using SES.
3 |
4 | ### Running the Sample
5 |
6 | The basic steps for running the Amazon SES sample are:
7 |
8 | 1. Open the AmazonSesSample.sln file in Visual Studio.
9 | 2. Open the App.config file.
10 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
11 | 4. Set proper values for the variables senderAddress and receiverAddress.
12 | 5. Run the sample in Debug mode by typing F5.
13 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSmtpSample/AmazonSesSmtpSample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmazonSesSmtpSample", "AmazonSesSmtpSample\AmazonSesSmtpSample.csproj", "{52B54EE1-DCE8-4E2E-84F4-F7EAE3FA9475}"
4 | EndProject
5 | Global
6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
7 | Debug|Any CPU = Debug|Any CPU
8 | Release|Any CPU = Release|Any CPU
9 | EndGlobalSection
10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
11 | {52B54EE1-DCE8-4E2E-84F4-F7EAE3FA9475}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
12 | {52B54EE1-DCE8-4E2E-84F4-F7EAE3FA9475}.Debug|Any CPU.Build.0 = Debug|Any CPU
13 | {52B54EE1-DCE8-4E2E-84F4-F7EAE3FA9475}.Release|Any CPU.ActiveCfg = Release|Any CPU
14 | {52B54EE1-DCE8-4E2E-84F4-F7EAE3FA9475}.Release|Any CPU.Build.0 = Release|Any CPU
15 | EndGlobalSection
16 | GlobalSection(SolutionProperties) = preSolution
17 | HideSolutionNode = FALSE
18 | EndGlobalSection
19 | EndGlobal
20 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSmtpSample/AmazonSesSmtpSample/AmazonSesSmtpSample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {52B54EE1-DCE8-4E2E-84F4-F7EAE3FA9475}
8 | Exe
9 | Properties
10 | AmazonSesSmtpSample
11 | AmazonSesSmtpSample
12 | v3.5
13 | 512
14 |
15 |
16 |
17 | AnyCPU
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | AnyCPU
28 | pdbonly
29 | true
30 | bin\Release\
31 | TRACE
32 | prompt
33 | 4
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | Designer
51 |
52 |
53 |
54 |
55 |
56 |
57 |
64 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSmtpSample/AmazonSesSmtpSample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSmtpSample/AmazonSesSmtpSample/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Amazon SES SMTP Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("AWS .NET SDK")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Build and Revision Numbers
30 | // by using the '*' as shown below:
31 | // [assembly: AssemblyVersion("1.0.*")]
32 | [assembly: AssemblyVersion("1.0.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
34 |
--------------------------------------------------------------------------------
/ConsoleSamples/AmazonSesSmtpSample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon SES SMTP Sample
2 | This is a sample that demonstrates how to send an email using SES with SMTP protocol.
3 |
4 | ### Running the Sample
5 |
6 | The basic steps for running the Amazon SES SMTP sample are:
7 |
8 | 1. Open the AmazonSesSmtpSample.sln file in Visual Studio.
9 | 2. Open the App.config file.
10 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
11 | 4. Set proper values for the variables senderAddress and receiverAddress.
12 | 5. Run the sample in Debug mode by typing F5.
13 |
--------------------------------------------------------------------------------
/ConsoleSamples/Amazon_CloudWatch_Sample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/Amazon_CloudWatch_Sample/Amazon_CloudWatch_Sample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | VisualStudioVersion = 12.0.30723.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon_CloudWatch_Sample", "Amazon_CloudWatch_Sample\Amazon_CloudWatch_Sample.csproj", "{C34B4882-0280-4EFD-A12A-6E575A93D2B6}"
6 | EndProject
7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{F02C53C6-B0E6-40FB-8B23-D3D343B59B1B}"
8 | ProjectSection(SolutionItems) = preProject
9 | .nuget\NuGet.Config = .nuget\NuGet.Config
10 | .nuget\NuGet.exe = .nuget\NuGet.exe
11 | .nuget\NuGet.targets = .nuget\NuGet.targets
12 | EndProjectSection
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Release|Any CPU = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {C34B4882-0280-4EFD-A12A-6E575A93D2B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {C34B4882-0280-4EFD-A12A-6E575A93D2B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {C34B4882-0280-4EFD-A12A-6E575A93D2B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {C34B4882-0280-4EFD-A12A-6E575A93D2B6}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/ConsoleSamples/Amazon_CloudWatch_Sample/Amazon_CloudWatch_Sample/AmazonCloudWatchSample.cs:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"). You may
5 | * not use this file except in compliance with the License. A copy of the
6 | * License is located at
7 | *
8 | * http://aws.amazon.com/apache2.0/
9 | *
10 | * or in the "license" file accompanying this file. This file is
11 | * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12 | * KIND, either express or implied. See the License for the specific
13 | * language governing permissions and limitations under the License.
14 | *******************************************************************************/
15 |
16 | using System;
17 | using System.Collections.Generic;
18 | using System.Linq;
19 | using System.Text;
20 |
21 | using System.Diagnostics;
22 | using System.Threading;
23 |
24 | using Amazon;
25 | using Amazon.CloudWatch;
26 | using Amazon.CloudWatch.Model;
27 |
28 | namespace GettingStartedGuide
29 | {
30 | class AmazonCloudWatchSample
31 | {
32 | static void Main(string[] args)
33 | {
34 | PerformanceCounter percentPageFile = new PerformanceCounter("Paging File", "% Usage", "_Total");
35 | PerformanceCounter peakPageFile = new PerformanceCounter("Paging File", "% Usage Peak", "_Total");
36 |
37 |
38 | IAmazonCloudWatch client = new AmazonCloudWatchClient(RegionEndpoint.USWest2);
39 |
40 | // Once a minute, send paging file usage statistics to CloudWatch
41 | for (; ; )
42 | {
43 | List data = new List();
44 |
45 | data.Add(new MetricDatum()
46 | {
47 | MetricName = "PagingFilePctUsage",
48 | Timestamp = DateTime.Now,
49 | Unit = StandardUnit.Percent,
50 | Value = percentPageFile.NextValue()
51 | });
52 |
53 | data.Add(new MetricDatum()
54 | {
55 | MetricName = "PagingFilePctUsagePeak",
56 | Timestamp = DateTime.Now,
57 | Unit = StandardUnit.Percent,
58 | Value = peakPageFile.NextValue()
59 | });
60 |
61 |
62 | client.PutMetricData(new PutMetricDataRequest()
63 | {
64 | MetricData = data,
65 | Namespace = "System/Windows"
66 | });
67 |
68 | Thread.Sleep(1000 * 60);
69 | }
70 | }
71 | }
72 |
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/ConsoleSamples/Amazon_CloudWatch_Sample/Amazon_CloudWatch_Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/Amazon_CloudWatch_Sample/Amazon_CloudWatch_Sample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("Amazon_CloudWatch_Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("Amazon_CloudWatch_Sample")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("3501d4c9-4bbe-4046-ba70-215d4b13dbda")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ConsoleSamples/Amazon_CloudWatch_Sample/Amazon_CloudWatch_Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ConsoleSamples/Amazon_CloudWatch_Sample/Readme.md:
--------------------------------------------------------------------------------
1 | # Amazon CloudWatch PutMetricData Sample
2 |
3 | This sample demonstrates using the AWS SDK for .NET to sample windows performance counters and use them as custom metrics in CloudWatch.
4 |
5 | ### Running the Sample
6 |
7 | To run the Amazon CloudWatch PutMetricData sample:
8 |
9 | 1. Open the Amazon_CloudWatch_Sample.sln file in Visual Studio.
10 | 2. Open the App.config file.
11 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
12 | 4. Run the sample in Debug mode by typing F5.
13 | 5. The sample runs as a console application and updates two CloutWatch custom metrics once every minute, PagingFilePctUsage and PagingFilePctUsagePeak.
14 | 6. It may take 15 minutes for these metrics to appear in the [Amazon Cloudwatch console](https://console.aws.amazon.com/cloudwatch).
15 | 7. Under metrics, in the left hand navigation, select 'EC2' under Metrics.
16 | 8. Select the checkboxes for PagingFilePctUsage and PagingFilePctUsagePeak
17 | 9. Select a time range of 24H, and a period of 5 minutes.
18 |
19 | See the [Amazon Cloudwatch product page](http://aws.amazon.com/cloudwatch/) for more inforamation about Amazon CloudWatch.
20 |
21 |
--------------------------------------------------------------------------------
/ConsoleSamples/S3FileSystem_Sample/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/S3FileSystem_Sample/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon S3 File IO API Sample
2 |
3 | This is a sample that demonstrates how to use the Amazon S3 File IO API found in the Amazon.S3.IO namespace.
4 |
5 | ### Running the Sample
6 |
7 | The basic steps for running the Amazon S3 sample are:
8 |
9 | 1. Open the S3FileSystem_Sample.sln file in Visual Studio.
10 | 2. Open the App.config file.
11 | 3. Configure your AWS credentials. View the [developer guide](http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html) for configuring AWS credentials:
12 | 5. Run the sample in Debug mode by typing F5.
13 |
--------------------------------------------------------------------------------
/ConsoleSamples/S3FileSystem_Sample/S3FileSystem_Sample.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2013
3 | VisualStudioVersion = 12.0.30723.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "S3FileSystem_Sample", "S3FileSystem_Sample\S3FileSystem_Sample.csproj", "{D7100FF3-40D9-4B4D-8C45-96643B7B8156}"
6 | EndProject
7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{B5467022-AED1-492E-B497-44A413237202}"
8 | ProjectSection(SolutionItems) = preProject
9 | .nuget\NuGet.Config = .nuget\NuGet.Config
10 | .nuget\NuGet.exe = .nuget\NuGet.exe
11 | .nuget\NuGet.targets = .nuget\NuGet.targets
12 | EndProjectSection
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Release|Any CPU = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {D7100FF3-40D9-4B4D-8C45-96643B7B8156}.Debug|Any CPU.ActiveCfg = Debug|x86
21 | {D7100FF3-40D9-4B4D-8C45-96643B7B8156}.Release|Any CPU.ActiveCfg = Release|x86
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/ConsoleSamples/S3FileSystem_Sample/S3FileSystem_Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ConsoleSamples/S3FileSystem_Sample/S3FileSystem_Sample/Properties/Assemblyinfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("S3FileSystem Sample")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyProduct("AWS .NET SDK")]
12 | [assembly: AssemblyCompany("Amazon.com, Inc")]
13 | [assembly: AssemblyCopyright("Copyright 2009-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | // [assembly: Guid("ae3c2fe3-dc40-4ec4-b878-c7817015379e")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/ConsoleSamples/S3FileSystem_Sample/S3FileSystem_Sample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/License.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/awslabs/aws-sdk-net-samples/66397a3c5bb5be4c39d162fde681de474da16212/License.txt
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # AWS SDK for .NET Samples
2 |
3 | > **Note**: This repository is not maintained anymore, please refer to https://github.com/awsdocs/aws-doc-sdk-examples for up-do-date code examples.
4 |
5 | This repository has samples that demonstrate how to use the AWS SDK for .NET to access several of the AWS services.
6 | All samples are targeting version 3 of the AWS SDK for .NET.
7 |
8 | Please refer to README file in each folder for more specific instructions.
--------------------------------------------------------------------------------
/XamarinSamples/CognitoIdentity/Assets/AboutAssets.txt:
--------------------------------------------------------------------------------
1 | Any raw assets you want to be deployed with your application can be placed in
2 | this directory (and child directories) and given a Build Action of "AndroidAsset".
3 |
4 | These files will be deployed with you package and will be accessible using Android's
5 | AssetManager, like this:
6 |
7 | public class ReadAsset : Activity
8 | {
9 | protected override void OnCreate (Bundle bundle)
10 | {
11 | base.OnCreate (bundle);
12 |
13 | InputStream input = Assets.Open ("my_asset.txt");
14 | }
15 | }
16 |
17 | Additionally, some Android functions will automatically load asset files:
18 |
19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
--------------------------------------------------------------------------------
/XamarinSamples/CognitoIdentity/BYOISample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BYOISample", "BYOISample.csproj", "{E9D70A20-DA0A-461D-AE55-04E009401810}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {E9D70A20-DA0A-461D-AE55-04E009401810}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {E9D70A20-DA0A-461D-AE55-04E009401810}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {E9D70A20-DA0A-461D-AE55-04E009401810}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17 | {E9D70A20-DA0A-461D-AE55-04E009401810}.Release|Any CPU.ActiveCfg = Release|Any CPU
18 | {E9D70A20-DA0A-461D-AE55-04E009401810}.Release|Any CPU.Build.0 = Release|Any CPU
19 | {E9D70A20-DA0A-461D-AE55-04E009401810}.Release|Any CPU.Deploy.0 = Release|Any CPU
20 | EndGlobalSection
21 | GlobalSection(SolutionProperties) = preSolution
22 | HideSolutionNode = FALSE
23 | EndGlobalSection
24 | EndGlobal
25 |
--------------------------------------------------------------------------------
/XamarinSamples/CognitoIdentity/CognitoCustomAWSCredentials.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | using Android.App;
7 | using Android.Content;
8 | using Android.OS;
9 | using Android.Runtime;
10 | using Android.Views;
11 | using Android.Widget;
12 | using Amazon.CognitoIdentity;
13 | using System.Net.Http;
14 | using ThirdParty.Json.LitJson;
15 | using Amazon;
16 |
17 | namespace AWSSDK.CognitoIdentity.Sample
18 | {
19 | ///
20 | /// Your custom BYOI Credentials
21 | ///
22 | public class CognitoCustomAWSCredentials : CognitoAWSCredentials
23 | {
24 | private const string URL = "http://example.com/?alias={0}";
25 | private const string PROVIDER_NAME = "";
26 | private const string IDENTITY_POOL_ID = "";
27 | private static RegionEndpoint CognitoRegion = RegionEndpoint.USEast1;
28 | private string Username;
29 |
30 | public CognitoCustomAWSCredentials(string username)
31 | : base(IDENTITY_POOL_ID, CognitoRegion)
32 | {
33 | this.Username = username;
34 | }
35 |
36 | public override async System.Threading.Tasks.Task RefreshIdentityAsync()
37 | {
38 | var client = new HttpClient();
39 | var response = await client.GetAsync(string.Format(URL,this.Username));
40 | var content = await response.Content.ReadAsStringAsync();
41 | JsonData json = JsonMapper.ToObject(content);
42 |
43 | //The backend has to send us back an Identity and a OpenID token
44 | string identityId = json["IdentityId"].ToString();
45 | string token = json["Token"].ToString();
46 |
47 | var idState = new IdentityState(identityId, PROVIDER_NAME, token, false);
48 |
49 | response.Dispose();
50 | client.Dispose();
51 |
52 |
53 | return idState;
54 | }
55 | }
56 | }
--------------------------------------------------------------------------------
/XamarinSamples/CognitoIdentity/GettingStarted.Xamarin:
--------------------------------------------------------------------------------
1 |
2 | GS\Android\CS\AndroidApp\GettingStarted.html
3 | false
4 |
--------------------------------------------------------------------------------
/XamarinSamples/CognitoIdentity/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Android.App;
3 | using Android.Content;
4 | using Android.Runtime;
5 | using Android.Views;
6 | using Android.Widget;
7 | using Android.OS;
8 | using Amazon;
9 |
10 | namespace AWSSDK.CognitoIdentity.Sample
11 | {
12 | [Activity(Label = "AWSSDK.CognitoIdentity.Sample", MainLauncher = true, Icon = "@drawable/icon")]
13 | public class MainActivity : Activity
14 | {
15 | int count = 1;
16 |
17 | protected override void OnCreate(Bundle bundle)
18 | {
19 | base.OnCreate(bundle);
20 |
21 | // Set our view from the "main" layout resource
22 | SetContentView(Resource.Layout.Main);
23 |
24 | // Get our button from the layout resource,
25 | // and attach an event to it
26 | Button button = FindViewById