use of com.sequenceiq.environment.api.v1.credential.model.parameters.aws.AwsCredentialParameters in project cloudbreak by hortonworks.
the class AwsCloudProvider method credential.
@Override
public CredentialTestDto credential(CredentialTestDto credential) {
String credentialType = awsProperties.getCredential().getType();
AwsCredentialParameters parameters;
if (KEY_BASED_CREDENTIAL.equalsIgnoreCase(credentialType)) {
parameters = awsCredentialDetailsKey();
} else {
parameters = awsCredentialDetailsArn();
}
return credential.withDescription(commonCloudProperties().getDefaultCredentialDescription()).withCloudPlatform(CloudPlatform.AWS.name()).withAwsParameters(parameters);
}
Aggregations