com.pulumi.awsnative.imagebuilder.kotlin.inputs.InfrastructureConfigurationInstanceMetadataOptionsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.imagebuilder.kotlin.inputs
import com.pulumi.awsnative.imagebuilder.inputs.InfrastructureConfigurationInstanceMetadataOptionsArgs.builder
import com.pulumi.awsnative.imagebuilder.kotlin.enums.InfrastructureConfigurationInstanceMetadataOptionsHttpTokens
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The instance metadata option settings for the infrastructure configuration.
* @property httpPutResponseHopLimit Limit the number of hops that an instance metadata request can traverse to reach its destination.
* @property httpTokens Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
*/
public data class InfrastructureConfigurationInstanceMetadataOptionsArgs(
public val httpPutResponseHopLimit: Output? = null,
public val httpTokens: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.InfrastructureConfigurationInstanceMetadataOptionsArgs =
com.pulumi.awsnative.imagebuilder.inputs.InfrastructureConfigurationInstanceMetadataOptionsArgs.builder()
.httpPutResponseHopLimit(httpPutResponseHopLimit?.applyValue({ args0 -> args0 }))
.httpTokens(httpTokens?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [InfrastructureConfigurationInstanceMetadataOptionsArgs].
*/
@PulumiTagMarker
public class InfrastructureConfigurationInstanceMetadataOptionsArgsBuilder internal constructor() {
private var httpPutResponseHopLimit: Output? = null
private var httpTokens: Output? =
null
/**
* @param value Limit the number of hops that an instance metadata request can traverse to reach its destination.
*/
@JvmName("omljndajtdhgmtnb")
public suspend fun httpPutResponseHopLimit(`value`: Output) {
this.httpPutResponseHopLimit = value
}
/**
* @param value Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
*/
@JvmName("nposmyukbrxaujfe")
public suspend fun httpTokens(`value`: Output) {
this.httpTokens = value
}
/**
* @param value Limit the number of hops that an instance metadata request can traverse to reach its destination.
*/
@JvmName("pkvcyekjnalioynq")
public suspend fun httpPutResponseHopLimit(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpPutResponseHopLimit = mapped
}
/**
* @param value Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
*/
@JvmName("yppkraapyklwfbnv")
public suspend fun httpTokens(`value`: InfrastructureConfigurationInstanceMetadataOptionsHttpTokens?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpTokens = mapped
}
internal fun build(): InfrastructureConfigurationInstanceMetadataOptionsArgs =
InfrastructureConfigurationInstanceMetadataOptionsArgs(
httpPutResponseHopLimit = httpPutResponseHopLimit,
httpTokens = httpTokens,
)
}