All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.ec2.kotlin.outputs.Ec2FleetPlacement.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property affinity The affinity setting for the instance on the Dedicated Host.
 * This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) or [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html) .
 * @property availabilityZone The Availability Zone of the instance.
 * If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
 * This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) .
 * @property groupName The name of the placement group that the instance is in. If you specify `GroupName` , you can't specify `GroupId` .
 * @property hostId The ID of the Dedicated Host on which the instance resides.
 * This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) or [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html) .
 * @property hostResourceGroupArn The ARN of the host resource group in which to launch the instances.
 * If you specify this parameter, either omit the *Tenancy* parameter or set it to `host` .
 * This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) .
 * @property partitionNumber The number of the partition that the instance is in. Valid only if the placement group strategy is set to `partition` .
 * This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) .
 * @property spreadDomain Reserved for future use.
 * @property tenancy The tenancy of the instance. An instance with a tenancy of `dedicated` runs on single-tenant hardware.
 * This parameter is not supported for [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) . The `host` tenancy is not supported for [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html) or for T3 instances that are configured for the `unlimited` CPU credit option.
 */
public data class Ec2FleetPlacement(
    public val affinity: String? = null,
    public val availabilityZone: String? = null,
    public val groupName: String? = null,
    public val hostId: String? = null,
    public val hostResourceGroupArn: String? = null,
    public val partitionNumber: Int? = null,
    public val spreadDomain: String? = null,
    public val tenancy: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.Ec2FleetPlacement): Ec2FleetPlacement = Ec2FleetPlacement(
            affinity = javaType.affinity().map({ args0 -> args0 }).orElse(null),
            availabilityZone = javaType.availabilityZone().map({ args0 -> args0 }).orElse(null),
            groupName = javaType.groupName().map({ args0 -> args0 }).orElse(null),
            hostId = javaType.hostId().map({ args0 -> args0 }).orElse(null),
            hostResourceGroupArn = javaType.hostResourceGroupArn().map({ args0 -> args0 }).orElse(null),
            partitionNumber = javaType.partitionNumber().map({ args0 -> args0 }).orElse(null),
            spreadDomain = javaType.spreadDomain().map({ args0 -> args0 }).orElse(null),
            tenancy = javaType.tenancy().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy