cloudshift.awscdk.dsl.services.rds.ProcessorFeaturesDsl.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.rds
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import software.amazon.awscdk.services.rds.ProcessorFeatures
/**
* The processor features.
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.services.rds.*;
* ProcessorFeatures processorFeatures = ProcessorFeatures.builder()
* .coreCount(123)
* .threadsPerCore(123)
* .build();
* ```
*/
@CdkDslMarker
public class ProcessorFeaturesDsl {
private val cdkBuilder: ProcessorFeatures.Builder = ProcessorFeatures.builder()
/**
* @param coreCount The number of CPU core.
*/
public fun coreCount(coreCount: Number) {
cdkBuilder.coreCount(coreCount)
}
/**
* @param threadsPerCore The number of threads per core.
*/
public fun threadsPerCore(threadsPerCore: Number) {
cdkBuilder.threadsPerCore(threadsPerCore)
}
public fun build(): ProcessorFeatures = cdkBuilder.build()
}