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

com.pulumi.awsnative.imagebuilder.kotlin.outputs.InfrastructureConfigurationInstanceMetadataOptions.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: 0.122.0.0
Show newest version
@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),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy