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

com.pulumi.awsnative.ec2.kotlin.inputs.LaunchTemplateIpv4PrefixSpecificationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.LaunchTemplateIpv4PrefixSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies an IPv4 prefix for a network interface.
 *   ``Ipv4PrefixSpecification`` is a property of [AWS::EC2::LaunchTemplate NetworkInterface](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html).
 * @property ipv4Prefix The IPv4 prefix. For information, see [Assigning prefixes to network interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the *Amazon EC2 User Guide*.
 */
public data class LaunchTemplateIpv4PrefixSpecificationArgs(
    public val ipv4Prefix: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.LaunchTemplateIpv4PrefixSpecificationArgs =
        com.pulumi.awsnative.ec2.inputs.LaunchTemplateIpv4PrefixSpecificationArgs.builder()
            .ipv4Prefix(ipv4Prefix?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LaunchTemplateIpv4PrefixSpecificationArgs].
 */
@PulumiTagMarker
public class LaunchTemplateIpv4PrefixSpecificationArgsBuilder internal constructor() {
    private var ipv4Prefix: Output? = null

    /**
     * @param value The IPv4 prefix. For information, see [Assigning prefixes to network interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the *Amazon EC2 User Guide*.
     */
    @JvmName("stmjcjfaaqqwvqdm")
    public suspend fun ipv4Prefix(`value`: Output) {
        this.ipv4Prefix = value
    }

    /**
     * @param value The IPv4 prefix. For information, see [Assigning prefixes to network interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the *Amazon EC2 User Guide*.
     */
    @JvmName("wmoayfsbqtvdvakg")
    public suspend fun ipv4Prefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv4Prefix = mapped
    }

    internal fun build(): LaunchTemplateIpv4PrefixSpecificationArgs =
        LaunchTemplateIpv4PrefixSpecificationArgs(
            ipv4Prefix = ipv4Prefix,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy