Search in sources :

Example 1 with AwsEncryptionV1Parameters

use of com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters in project cloudbreak by hortonworks.

the class InstanceTemplateParameterConverterTest method encryption.

private AwsEncryptionV1Parameters encryption(EncryptionType type, String key) {
    AwsEncryptionV1Parameters encryption = new AwsEncryptionV1Parameters();
    encryption.setType(type);
    encryption.setKey(key);
    return encryption;
}
Also used : AwsEncryptionV1Parameters(com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters)

Example 2 with AwsEncryptionV1Parameters

use of com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters in project cloudbreak by hortonworks.

the class AwsCloudProvider method setInstanceTemplateV1Parameters.

@Override
public void setInstanceTemplateV1Parameters(InstanceTemplateV1Request instanceTemplateV1Request) {
    AwsInstanceTemplateV1Parameters awsInstanceTemplateV1Parameters = new AwsInstanceTemplateV1Parameters();
    AwsEncryptionV1Parameters awsEncryptionV1Parameters = new AwsEncryptionV1Parameters();
    awsEncryptionV1Parameters.setType(EncryptionType.DEFAULT);
    awsInstanceTemplateV1Parameters.setEncryption(awsEncryptionV1Parameters);
    awsInstanceTemplateV1Parameters.setSpot(getAwsInstanceTemplateV1SpotParameters());
    instanceTemplateV1Request.setAws(awsInstanceTemplateV1Parameters);
}
Also used : AwsInstanceTemplateV1Parameters(com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsInstanceTemplateV1Parameters) AwsEncryptionV1Parameters(com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters)

Example 3 with AwsEncryptionV1Parameters

use of com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters in project cloudbreak by hortonworks.

the class InstanceTemplateParameterConverter method convert.

private AwsEncryptionV1Parameters convert(AwsEncryptionV4Parameters source, DetailedEnvironmentResponse environment) {
    AwsEncryptionV1Parameters response = new AwsEncryptionV1Parameters();
    response.setKey(source.getKey());
    response.setType(source.getType());
    return response;
}
Also used : AwsEncryptionV1Parameters(com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters)

Aggregations

AwsEncryptionV1Parameters (com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsEncryptionV1Parameters)3 AwsInstanceTemplateV1Parameters (com.sequenceiq.distrox.api.v1.distrox.model.instancegroup.template.AwsInstanceTemplateV1Parameters)1