All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.GetComponentResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs

import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property bindingProperties The information to connect a component's properties to data at runtime. You can't specify `tags` as a valid property for `bindingProperties` .
 * @property children A list of the component's `ComponentChild` instances.
 * @property collectionProperties The data binding configuration for the component's properties. Use this for a collection component. You can't specify `tags` as a valid property for `collectionProperties` .
 * @property componentType The type of the component. This can be an Amplify custom UI component or another custom component.
 * @property createdAt The time that the component was created.
 * @property events Describes the events that can be raised on the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
 * @property id The unique ID of the component.
 * @property modifiedAt The time that the component was modified.
 * @property name The name of the component.
 * @property overrides Describes the component's properties that can be overriden in a customized instance of the component. You can't specify `tags` as a valid property for `overrides` .
 * @property properties Describes the component's properties. You can't specify `tags` as a valid property for `properties` .
 * @property schemaVersion The schema version of the component when it was imported.
 * @property sourceId The unique ID of the component in its original source system, such as Figma.
 * @property tags One or more key-value pairs to use when tagging the component.
 * @property variants A list of the component's variants. A variant is a unique style configuration of a main component.
 */
public data class GetComponentResult(
    public val bindingProperties: Map? = null,
    public val children: List? = null,
    public val collectionProperties: Map? = null,
    public val componentType: String? = null,
    public val createdAt: String? = null,
    public val events: Map? = null,
    public val id: String? = null,
    public val modifiedAt: String? = null,
    public val name: String? = null,
    public val overrides: Map? = null,
    public val properties: Map? = null,
    public val schemaVersion: String? = null,
    public val sourceId: String? = null,
    public val tags: Map? = null,
    public val variants: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.GetComponentResult): GetComponentResult = GetComponentResult(
            bindingProperties = javaType.bindingProperties().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentBindingPropertiesValue.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            children = javaType.children().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentChild.Companion.toKotlin(args0)
                })
            }),
            collectionProperties = javaType.collectionProperties().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentDataConfiguration.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            componentType = javaType.componentType().map({ args0 -> args0 }).orElse(null),
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            events = javaType.events().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentEvent.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            modifiedAt = javaType.modifiedAt().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            overrides = javaType.overrides().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            properties = javaType.properties().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            schemaVersion = javaType.schemaVersion().map({ args0 -> args0 }).orElse(null),
            sourceId = javaType.sourceId().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            variants = javaType.variants().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentVariant.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy