com.pulumi.aws.controltower.kotlin.LandingZone.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.controltower.kotlin
import com.pulumi.aws.controltower.kotlin.outputs.LandingZoneDriftStatus
import com.pulumi.aws.controltower.kotlin.outputs.LandingZoneDriftStatus.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
/**
* Builder for [LandingZone].
*/
@PulumiTagMarker
public class LandingZoneResourceBuilder internal constructor() {
public var name: String? = null
public var args: LandingZoneArgs = LandingZoneArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend LandingZoneArgsBuilder.() -> Unit) {
val builder = LandingZoneArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): LandingZone {
val builtJavaResource = com.pulumi.aws.controltower.LandingZone(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return LandingZone(builtJavaResource)
}
}
/**
* Creates a new landing zone using Control Tower. For more information on usage, please see the
* [AWS Control Tower Landing Zone User Guide](https://docs.aws.amazon.com/controltower/latest/userguide/how-control-tower-works.html).
* ## Import
* Using `pulumi import`, import a Control Tower Landing Zone using the `id`. For example:
* ```sh
* $ pulumi import aws:controltower/landingZone:LandingZone example 1A2B3C4D5E6F7G8H
* ```
*/
public class LandingZone internal constructor(
override val javaResource: com.pulumi.aws.controltower.LandingZone,
) : KotlinCustomResource(javaResource, LandingZoneMapper) {
/**
* The ARN of the landing zone.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The drift status summary of the landing zone.
*/
public val driftStatuses: Output>
get() = javaResource.driftStatuses().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
})
/**
* The latest available version of the landing zone.
*/
public val latestAvailableVersion: Output
get() = javaResource.latestAvailableVersion().applyValue({ args0 -> args0 })
/**
* The manifest JSON file is a text file that describes your AWS resources. For examples, review [Launch your landing zone](https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch).
*/
public val manifestJson: Output
get() = javaResource.manifestJson().applyValue({ args0 -> args0 })
/**
* Tags to apply to the landing zone. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy