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); }
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); }
public AWSEC2Helper(RegionEndpoint regionEndpoint) { Initialize(regionEndpoint, Gadgets.LoadConfigurationSetting("AWSAccessKey", ""), Gadgets.LoadConfigurationSetting("AWSSecretKey", "")); }