@Override protected AbstractCanaryAccount buildAccount(Canary canary, String accountName) { AwsCanaryAccount account = (AwsCanaryAccount)new AwsCanaryAccount().setName(accountName); account.setBucket(bucket); account.setRegion(region); account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder()); account.setProfileName(profileName); account.setEndpoint(endpoint); account.setAccessKeyId(accessKeyId); account.setSecretAccessKey(secretAccessKey); AwsCanaryServiceIntegration awsCanaryServiceIntegration = (AwsCanaryServiceIntegration)CanaryUtils.getServiceIntegrationByClass(canary, AwsCanaryServiceIntegration.class); if (awsCanaryServiceIntegration.isS3Enabled()) { account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE); account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE); } return account; }
@Override protected AbstractCanaryAccount buildAccount(Canary canary, String accountName) { AwsCanaryAccount account = (AwsCanaryAccount)new AwsCanaryAccount().setName(accountName); account.setBucket(bucket); account.setRegion(region); account.setRootFolder(isSet(rootFolder) ? rootFolder : account.getRootFolder()); account.setProfileName(profileName); account.setEndpoint(endpoint); account.setAccessKeyId(accessKeyId); account.setSecretAccessKey(secretAccessKey); AwsCanaryServiceIntegration awsCanaryServiceIntegration = (AwsCanaryServiceIntegration)CanaryUtils.getServiceIntegrationByClass(canary, AwsCanaryServiceIntegration.class); if (awsCanaryServiceIntegration.isS3Enabled()) { account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.CONFIGURATION_STORE); account.getSupportedTypes().add(AbstractCanaryServiceIntegration.SupportedTypes.OBJECT_STORE); } return account; }