![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentChild.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property children The list of `ComponentChild` instances for this component.
* @property componentType The type of the child component.
* @property events Describes the events that can be raised on the child component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
* @property name The name of the child component.
* @property properties Describes the properties of the child component. You can't specify `tags` as a valid property for `properties` .
* @property sourceId The unique ID of the child component in its original source system, such as Figma.
*/
public data class ComponentChild(
public val children: List? = null,
public val componentType: String,
public val events: Map? = null,
public val name: String,
public val properties: Map,
public val sourceId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.ComponentChild): ComponentChild = ComponentChild(
children = javaType.children().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentChild.Companion.toKotlin(args0)
})
}),
componentType = javaType.componentType(),
events = javaType.events().map({ args0 ->
args0.key.to(
args0.value.let({ args0 ->
com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentEvent.Companion.toKotlin(args0)
}),
)
}).toMap(),
name = javaType.name(),
properties = javaType.properties().map({ args0 ->
args0.key.to(
args0.value.let({ args0 ->
com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
}),
)
}).toMap(),
sourceId = javaType.sourceId().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy