
com.pulumi.awsnative.imagebuilder.kotlin.outputs.GetInfrastructureConfigurationResult.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property arn The Amazon Resource Name (ARN) of the infrastructure configuration.
* @property description The description of the infrastructure configuration.
* @property instanceMetadataOptions The instance metadata option settings for the infrastructure configuration.
* @property instanceProfileName The instance profile of the infrastructure configuration.
* @property instanceTypes The instance types of the infrastructure configuration.
* @property keyPair The EC2 key pair of the infrastructure configuration..
* @property logging The logging configuration of the infrastructure configuration.
* @property resourceTags The tags attached to the resource created by Image Builder.
* @property securityGroupIds The security group IDs of the infrastructure configuration.
* @property snsTopicArn The SNS Topic Amazon Resource Name (ARN) of the infrastructure configuration.
* @property subnetId The subnet ID of the infrastructure configuration.
* @property tags The tags associated with the component.
* @property terminateInstanceOnFailure The terminate instance on failure configuration of the infrastructure configuration.
*/
public data class GetInfrastructureConfigurationResult(
public val arn: String? = null,
public val description: String? = null,
public val instanceMetadataOptions: InfrastructureConfigurationInstanceMetadataOptions? = null,
public val instanceProfileName: String? = null,
public val instanceTypes: List? = null,
public val keyPair: String? = null,
public val logging: InfrastructureConfigurationLogging? = null,
public val resourceTags: Map? = null,
public val securityGroupIds: List? = null,
public val snsTopicArn: String? = null,
public val subnetId: String? = null,
public val tags: Map? = null,
public val terminateInstanceOnFailure: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.imagebuilder.outputs.GetInfrastructureConfigurationResult): GetInfrastructureConfigurationResult = GetInfrastructureConfigurationResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
instanceMetadataOptions = javaType.instanceMetadataOptions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.imagebuilder.kotlin.outputs.InfrastructureConfigurationInstanceMetadataOptions.Companion.toKotlin(args0)
})
}).orElse(null),
instanceProfileName = javaType.instanceProfileName().map({ args0 -> args0 }).orElse(null),
instanceTypes = javaType.instanceTypes().map({ args0 -> args0 }),
keyPair = javaType.keyPair().map({ args0 -> args0 }).orElse(null),
logging = javaType.logging().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.imagebuilder.kotlin.outputs.InfrastructureConfigurationLogging.Companion.toKotlin(args0)
})
}).orElse(null),
resourceTags = javaType.resourceTags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
securityGroupIds = javaType.securityGroupIds().map({ args0 -> args0 }),
snsTopicArn = javaType.snsTopicArn().map({ args0 -> args0 }).orElse(null),
subnetId = javaType.subnetId().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
terminateInstanceOnFailure = javaType.terminateInstanceOnFailure().map({ args0 ->
args0
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy