private void createAmazonAPIClients() { cfnClient = AmazonCloudFormationClientBuilder.defaultClient(); ec2Client = AmazonEC2ClientBuilder.defaultClient(); snsClient = AmazonSNSClientBuilder.defaultClient(); sqsClient = AmazonSQSClientBuilder.defaultClient(); elbClient = AmazonElasticLoadBalancingClientBuilder.defaultClient(); s3Client = AmazonS3ClientBuilder.defaultClient(); rdsClient = AmazonRDSClientBuilder.defaultClient(); iamClient = AmazonIdentityManagementClientBuilder.defaultClient(); }
public static AmazonRDS createRDSClient() { return AmazonRDSClientBuilder.defaultClient(); }
public RDSHostMonitorLookup( Set<String> contactGroups ) throws CandlestackPropertiesException { this.contactGroups = contactGroups; dbInstancePrefix = GlobalAWSProperties.getRDSDBInstancePrefix(); dbInstanceRegex = GlobalAWSProperties.getRDSDBInstanceRegex(); newResourceMonitorDelayMillis = TimeUnit.MINUTES.toMillis( GlobalAWSProperties.getRDSNewResourceMonitorDelay() ); cloudWatchMetrics = GlobalAWSProperties.getRDSCloudwatchMetricsToMonitor(); rdsClient = AmazonRDSClientBuilder.standard().withRegion( GlobalAWSProperties.getRegion() ).build(); }
public RDSMetricsFetcher() throws CandlestackException { super( RDSUtil.TYPE_NAME, GlobalAWSProperties.getRDSMetricsFetcherSleep() ); dbInstancePrefix = GlobalAWSProperties.getRDSDBInstancePrefix(); dbInstanceRegex = GlobalAWSProperties.getRDSDBInstanceRegex(); cloudWatchMetrics = GlobalAWSProperties.getRDSCloudwatchMetricsToFetch(); rdsClient = AmazonRDSClientBuilder.standard().withRegion( GlobalAWSProperties.getRegion() ).build(); cloudWatchAccessor = CloudWatchAccessor.getInstance(); }