com.pulumi.awsnative.imagebuilder.kotlin.outputs.InfrastructureConfigurationInstanceMetadataOptions.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.outputs
import com.pulumi.awsnative.imagebuilder.kotlin.enums.InfrastructureConfigurationInstanceMetadataOptionsHttpTokens
import kotlin.Int
import kotlin.Suppress
/**
* 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 InfrastructureConfigurationInstanceMetadataOptions(
public val httpPutResponseHopLimit: Int? = null,
public val httpTokens: InfrastructureConfigurationInstanceMetadataOptionsHttpTokens? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.imagebuilder.outputs.InfrastructureConfigurationInstanceMetadataOptions): InfrastructureConfigurationInstanceMetadataOptions =
InfrastructureConfigurationInstanceMetadataOptions(
httpPutResponseHopLimit = javaType.httpPutResponseHopLimit().map({ args0 -> args0 }).orElse(null),
httpTokens = javaType.httpTokens().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.imagebuilder.kotlin.enums.InfrastructureConfigurationInstanceMetadataOptionsHttpTokens.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}