AWS SDK for .NET Documentation
AmazonEC2Client Constructor
AmazonAmazon.EC2AmazonEC2ClientAmazonEC2Client()()()() Did this page help you?   Yes   No    Tell us about it...
Members
IconMemberDescription
AmazonEC2Client()()()()
Constructs AmazonEC2Client with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. 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>

AmazonEC2Client(RegionEndpoint)
Constructs AmazonEC2Client with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. 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>

AmazonEC2Client(AmazonEC2Config)
Constructs AmazonEC2Client with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. 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>

AmazonEC2Client(String, String)
Constructs AmazonEC2Client with AWS Access Key ID and AWS Secret Key

AmazonEC2Client(String, String, RegionEndpoint)
Constructs AmazonEC2Client with AWS Access Key ID and AWS Secret Key

AmazonEC2Client(String, String, AmazonEC2Config)
Constructs AmazonEC2Client with AWS Access Key ID, AWS Secret Key and an AmazonEC2 Configuration object. If the config object's UseSecureStringForAwsSecretKey is false, the AWS Secret Key is stored as a clear-text string. Please use this option only if the application environment doesn't allow the use of SecureStrings.

AmazonEC2Client(String, SecureString, AmazonEC2Config)
Constructs an AmazonEC2Client with AWS Access Key ID, AWS Secret Key and an AmazonEC2 Configuration object

AmazonEC2Client(String, SecureString, RegionEndpoint)
Constructs an AmazonEC2Client with AWS Access Key ID, AWS Secret Key and an AmazonEC2 Configuration object

AmazonEC2Client(AWSCredentials)
Constructs an AmazonEC2Client with AWSCredentials

AmazonEC2Client(AWSCredentials, RegionEndpoint)
Constructs an AmazonEC2Client with AWSCredentials

AmazonEC2Client(AWSCredentials, AmazonEC2Config)
Constructs an AmazonEC2Client with AWSCredentials and an AmazonEC2 Configuration object

AmazonEC2Client(String, String, String)
Constructs AmazonEC2Client with AWS Access Key ID and AWS Secret Key

AmazonEC2Client(String, String, String, RegionEndpoint)
Constructs AmazonEC2Client with AWS Access Key ID and AWS Secret Key

AmazonEC2Client(String, String, String, AmazonEC2Config)
Constructs AmazonEC2Client with AWS Access Key ID, AWS Secret Key and an AmazonEC2Config Configuration object. If the config object's UseSecureStringForAwsSecretKey is false, the AWS Secret Key is stored as a clear-text string. Please use this option only if the application environment doesn't allow the use of SecureStrings.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)