com.pulumi.awsnative.amplifyuibuilder.kotlin.Component.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.amplifyuibuilder.kotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentBindingPropertiesValue
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentChild
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentDataConfiguration
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentEvent
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentVariant
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.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentBindingPropertiesValue.Companion.toKotlin as componentBindingPropertiesValueToKotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentChild.Companion.toKotlin as componentChildToKotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentDataConfiguration.Companion.toKotlin as componentDataConfigurationToKotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentEvent.Companion.toKotlin as componentEventToKotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin as componentPropertyToKotlin
import com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentVariant.Companion.toKotlin as componentVariantToKotlin
/**
* Builder for [Component].
*/
@PulumiTagMarker
public class ComponentResourceBuilder internal constructor() {
public var name: String? = null
public var args: ComponentArgs = ComponentArgs()
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 ComponentArgsBuilder.() -> Unit) {
val builder = ComponentArgsBuilder()
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(): Component {
val builtJavaResource = com.pulumi.awsnative.amplifyuibuilder.Component(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Component(builtJavaResource)
}
}
/**
* Definition of AWS::AmplifyUIBuilder::Component Resource Type
*/
public class Component internal constructor(
override val javaResource: com.pulumi.awsnative.amplifyuibuilder.Component,
) : KotlinCustomResource(javaResource, ComponentMapper) {
/**
* The unique ID of the Amplify app associated with the component.
*/
public val appId: Output?
get() = javaResource.appId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The unique ID of the component.
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* The information to connect a component's properties to data at runtime. You can't specify `tags` as a valid property for `bindingProperties` .
*/
public val bindingProperties: Output