com.pulumi.awsnative.lightsail.kotlin.outputs.GetContainerResult.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 containerArn The Amazon Resource Name (ARN) of the container.
* @property containerServiceDeployment Describes a container deployment configuration of an Amazon Lightsail container service.
* @property isDisabled A Boolean value to indicate whether the container service is disabled.
* @property power The power specification for the container service.
* @property principalArn The principal ARN of the container service.
* @property privateRegistryAccess A Boolean value to indicate whether the container service has access to private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
* @property publicDomainNames The public domain names to use with the container service, such as example.com and www.example.com.
* @property scale The scale specification for the container service.
* @property tags An array of key-value pairs to apply to this resource.
* @property url The publicly accessible URL of the container service.
*/
public data class GetContainerResult(
public val containerArn: String? = null,
public val containerServiceDeployment: ContainerServiceDeployment? = null,
public val isDisabled: Boolean? = null,
public val power: String? = null,
public val principalArn: String? = null,
public val privateRegistryAccess: ContainerPrivateRegistryAccess? = null,
public val publicDomainNames: List? = null,
public val scale: Int? = null,
public val tags: List? = null,
public val url: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lightsail.outputs.GetContainerResult): GetContainerResult = GetContainerResult(
containerArn = javaType.containerArn().map({ args0 -> args0 }).orElse(null),
containerServiceDeployment = javaType.containerServiceDeployment().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lightsail.kotlin.outputs.ContainerServiceDeployment.Companion.toKotlin(args0)
})
}).orElse(null),
isDisabled = javaType.isDisabled().map({ args0 -> args0 }).orElse(null),
power = javaType.power().map({ args0 -> args0 }).orElse(null),
principalArn = javaType.principalArn().map({ args0 -> args0 }).orElse(null),
privateRegistryAccess = javaType.privateRegistryAccess().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lightsail.kotlin.outputs.ContainerPrivateRegistryAccess.Companion.toKotlin(args0)
})
}).orElse(null),
publicDomainNames = javaType.publicDomainNames().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lightsail.kotlin.outputs.ContainerPublicDomainName.Companion.toKotlin(args0)
})
}),
scale = javaType.scale().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
url = javaType.url().map({ args0 -> args0 }).orElse(null),
)
}
}