
com.pulumi.awsnative.route53recoveryreadiness.kotlin.Cell.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.route53recoveryreadiness.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [Cell].
*/
@PulumiTagMarker
public class CellResourceBuilder internal constructor() {
public var name: String? = null
public var args: CellArgs = CellArgs()
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 CellArgsBuilder.() -> Unit) {
val builder = CellArgsBuilder()
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(): Cell {
val builtJavaResource =
com.pulumi.awsnative.route53recoveryreadiness.Cell(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Cell(builtJavaResource)
}
}
/**
* The API Schema for AWS Route53 Recovery Readiness Cells.
*/
public class Cell internal constructor(
override val javaResource: com.pulumi.awsnative.route53recoveryreadiness.Cell,
) : KotlinCustomResource(javaResource, CellMapper) {
/**
* The Amazon Resource Name (ARN) of the cell.
*/
public val cellArn: Output
get() = javaResource.cellArn().applyValue({ args0 -> args0 })
/**
* The name of the cell to create.
*/
public val cellName: Output?
get() = javaResource.cellName().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Regions.
*/
public val cells: Output>?
get() = javaResource.cells().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* The readiness scope for the cell, which can be a cell Amazon Resource Name (ARN) or a recovery group ARN. This is a list but currently can have only one element.
*/
public val parentReadinessScopes: Output>
get() = javaResource.parentReadinessScopes().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* A collection of tags associated with a resource
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(null)
})
}
public object CellMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.route53recoveryreadiness.Cell::class == javaResource::class
override fun map(javaResource: Resource): Cell = Cell(
javaResource as
com.pulumi.awsnative.route53recoveryreadiness.Cell,
)
}
/**
* @see [Cell].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Cell].
*/
public suspend fun cell(name: String, block: suspend CellResourceBuilder.() -> Unit): Cell {
val builder = CellResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Cell].
* @param name The _unique_ name of the resulting resource.
*/
public fun cell(name: String): Cell {
val builder = CellResourceBuilder()
builder.name(name)
return builder.build()
}
|
© 2015 - 2025 Weber Informatics LLC | Privacy Policy