Create a client for the Amazon EC2 Service with the credentials defined in the App.config. Example App.config with credentials set.
CopyC#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSAccessKey" value="********************"/>
        <add key="AWSSecretKey" value="****************************************"/>
    </appSettings>
</configuration>

Namespace: Amazon
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.2.0 (1.4.2.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static AmazonEC2 CreateAmazonEC2Client()
Public Shared Function CreateAmazonEC2Client As AmazonEC2
public:
static AmazonEC2^ CreateAmazonEC2Client()

Return Value

An Amazon EC2 client

Remarks

See Also