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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 * Specifies the placement of an instance.
 *   ``Placement`` is a property of [AWS::EC2::LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html).
 * @property affinity The affinity setting for an instance on a Dedicated Host.
 * @property availabilityZone The Availability Zone for the instance.
 * @property groupId The Group Id of a placement group. You must specify the Placement Group *Group Id* to launch an instance in a shared placement group.
 * @property groupName The name of the placement group for the instance.
 * @property hostId The ID of the Dedicated Host for the instance.
 * @property hostResourceGroupArn The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the *Tenancy* parameter or set it to ``host``.
 * @property partitionNumber The number of the partition the instance should launch in. Valid only if the placement group strategy is set to ``partition``.
 * @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.
 */
public data class LaunchTemplatePlacement(
    public val affinity: String? = null,
    public val availabilityZone: String? = null,
    public val groupId: 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.LaunchTemplatePlacement): LaunchTemplatePlacement = LaunchTemplatePlacement(
            affinity = javaType.affinity().map({ args0 -> args0 }).orElse(null),
            availabilityZone = javaType.availabilityZone().map({ args0 -> args0 }).orElse(null),
            groupId = javaType.groupId().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 - 2025 Weber Informatics LLC | Privacy Policy