com.pulumi.awsnative.lightsail.kotlin.outputs.GetDiskResult.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.lightsail.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property addOns An array of objects representing the add-ons to enable for the new instance.
* @property attachedTo Name of the attached Lightsail Instance
* @property attachmentState Attachment State of the Lightsail disk
* @property diskArn The Amazon Resource Name (ARN) of the disk.
* @property iops Iops of the Lightsail disk
* @property isAttached Check is Disk is attached state
* @property location The AWS Region and Availability Zone where the disk is located.
* @property path Path of the attached Disk
* @property resourceType Resource type of Lightsail instance.
* @property state State of the Lightsail disk
* @property supportCode Support code to help identify any issues
* @property tags An array of key-value pairs to apply to this resource.
*/
public data class GetDiskResult(
public val addOns: List? = null,
public val attachedTo: String? = null,
public val attachmentState: String? = null,
public val diskArn: String? = null,
public val iops: Int? = null,
public val isAttached: Boolean? = null,
public val location: DiskLocation? = null,
public val path: String? = null,
public val resourceType: String? = null,
public val state: String? = null,
public val supportCode: String? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lightsail.outputs.GetDiskResult): GetDiskResult = GetDiskResult(
addOns = javaType.addOns().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lightsail.kotlin.outputs.DiskAddOn.Companion.toKotlin(args0)
})
}),
attachedTo = javaType.attachedTo().map({ args0 -> args0 }).orElse(null),
attachmentState = javaType.attachmentState().map({ args0 -> args0 }).orElse(null),
diskArn = javaType.diskArn().map({ args0 -> args0 }).orElse(null),
iops = javaType.iops().map({ args0 -> args0 }).orElse(null),
isAttached = javaType.isAttached().map({ args0 -> args0 }).orElse(null),
location = javaType.location().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lightsail.kotlin.outputs.DiskLocation.Companion.toKotlin(args0)
})
}).orElse(null),
path = javaType.path().map({ args0 -> args0 }).orElse(null),
resourceType = javaType.resourceType().map({ args0 -> args0 }).orElse(null),
state = javaType.state().map({ args0 -> args0 }).orElse(null),
supportCode = javaType.supportCode().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}