Ejemplo n.º 1
0
        public static AmazonServiceCreator WithCredentialProfile(RegionEndpoint region, string location, string name = "default")
        {
            AmazonServiceCreator _c = new AmazonServiceCreator()
            {
                AWSRegion = region,

                Credentials = GetAWSCredentialsFromProfile(location, name),
            };

            return(_c);
        }
Ejemplo n.º 2
0
        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);
        }