public AmazonWebServicesProvider(string credentialsProfileName) { if (string.IsNullOrWhiteSpace(credentialsProfileName)) { throw new ArgumentNullException(AmazonWebServicesProvider.ArgumentNameCredentialsProfileName); } this.anchoringBehaviorValue = new AnchoringByIdentifierBehavior(); AuthenticationOptions authenticationOptions = new NoAuthentication(); this.Initialize(credentialsProfileName, this.anchoringBehaviorValue, authenticationOptions); }
public AmazonWebServicesProvider( string credentialsProfileName, IAmazonWebServicesIdentityAnchoringBehavior anchoringBehavior) { if (string.IsNullOrWhiteSpace(credentialsProfileName)) { throw new ArgumentNullException(AmazonWebServicesProvider.ArgumentNameCredentialsProfileName); } if (null == anchoringBehavior) { throw new ArgumentNullException(AmazonWebServicesProvider.ArgumentNameAnchoringBehavior); } AuthenticationOptions authenticationOptions = new NoAuthentication(); this.Initialize(credentialsProfileName, anchoringBehavior, authenticationOptions); }