AWS SDK for .NET Documentation
AmazonEC2Client Constructor (awsAccessKeyId, awsSecretAccessKey, region)
Amazon ► Amazon.EC2 ► AmazonEC2Client ► AmazonEC2Client(String, SecureString, RegionEndpoint)
Did this page help you? Yes No Tell us about it...
Constructs an AmazonEC2Client with AWS Access Key ID, AWS Secret Key and an AmazonEC2 Configuration object
Declaration Syntax

C#

    public AmazonEC2Client(
    	string awsAccessKeyId,
    	SecureString awsSecretAccessKey,
    	RegionEndpoint region
    )

Parameters

awsAccessKeyId (String)
  AWS Access Key ID

awsSecretAccessKey (SecureString)
  AWS Secret Access Key as a SecureString

region (RegionEndpoint)
  The region to connect to.

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