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(
	AmazonEC2Config config
)
Public Shared Function CreateAmazonEC2Client ( _
	config As AmazonEC2Config _
) As AmazonEC2
public:
static AmazonEC2^ CreateAmazonEC2Client(
	AmazonEC2Config^ config
)

Parameters

config
AmazonEC2Config
Configuration options for the service like HTTP Proxy, # of connections, etc

Return Value

An Amazon EC2 client

See Also