public AWSCloudSearchHelper(RegionEndpoint regionEndpoint, string AWSAcessKey, string AWSSecretKey)
        {
            // Set configuration info
            AmazonCloudSearchDomainConfig config = new AmazonCloudSearchDomainConfig();

            config.Timeout          = new TimeSpan(1, 0, 0);
            config.ReadWriteTimeout = new TimeSpan(1, 0, 0);
            config.RegionEndpoint   = regionEndpoint;
            config.ServiceURL       = Gadgets.LoadConfigurationSetting("AWS_CloudSearch_DomainEndpoint", "");

            // Create CloudSearch client
            CloudSearchClient = new AmazonCloudSearchDomainClient(
                AWSAcessKey,
                AWSSecretKey,
                config);
        }
Exemplo n.º 2
0
        public AWSS3Helper(RegionEndpoint regionendpoint, String AWSAccessKey, String AWSSecretKey)
        {
            // Set configuration info
            AmazonS3Config config = new AmazonS3Config();

            config.Timeout          = new TimeSpan(1, 0, 0);
            config.ReadWriteTimeout = new TimeSpan(1, 0, 0);
            config.RegionEndpoint   = regionendpoint;

            // Create S3 client
            S3client = Amazon.AWSClientFactory.CreateAmazonS3Client
                           (Gadgets.LoadConfigurationSetting("AWSAccessKey", AWSAccessKey),
                           Gadgets.LoadConfigurationSetting("AWSSecretKey", AWSSecretKey),
                           config);

            // Create the file transfer utility class
            fileTransferUtility = new TransferUtility(S3client);
        }
Exemplo n.º 3
0
 public AWSEC2Helper(RegionEndpoint regionEndpoint)
 {
     Initialize(regionEndpoint,
                Gadgets.LoadConfigurationSetting("AWSAccessKey", ""),
                Gadgets.LoadConfigurationSetting("AWSSecretKey", ""));
 }