public static AmazonServiceCreator WithCredentialProfile(RegionEndpoint region, string location, string name = "default") { AmazonServiceCreator _c = new AmazonServiceCreator() { AWSRegion = region, Credentials = GetAWSCredentialsFromProfile(location, name), }; return(_c); }
public static AmazonServiceCreator WithAWSKeys(RegionEndpoint region, string accesSKey, string secretKey) { AmazonServiceCreator _c = new AmazonServiceCreator() { AccessKey = accesSKey, SecretKey = secretKey, AWSRegion = region, Credentials = new BasicAWSCredentials(accessKey: accesSKey, secretKey: secretKey) }; return(_c); }