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

com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentActionParameters.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.Map

/**
 *
 * @property anchor The HTML anchor link to the location to open. Specify this value for a navigation action.
 * @property fields A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model. Use when the action performs an operation on an Amplify DataStore model.
 * @property global Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.
 * @property id The unique ID of the component that the `ActionParameters` apply to.
 * @property model The name of the data model. Use when the action performs an operation on an Amplify DataStore model.
 * @property state A key-value pair that specifies the state property name and its initial value.
 * @property target The element within the same component to modify when the action occurs.
 * @property type The type of navigation action. Valid values are `url` and `anchor` . This value is required for a navigation action.
 * @property url The URL to the location to open. Specify this value for a navigation action.
 */
public data class ComponentActionParameters(
    public val anchor: ComponentProperty? = null,
    public val fields: Map? = null,
    public val global: ComponentProperty? = null,
    public val id: ComponentProperty? = null,
    public val model: String? = null,
    public val state: ComponentMutationActionSetStateParameter? = null,
    public val target: ComponentProperty? = null,
    public val type: ComponentProperty? = null,
    public val url: ComponentProperty? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.ComponentActionParameters): ComponentActionParameters = ComponentActionParameters(
            anchor = javaType.anchor().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
            fields = javaType.fields().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            global = javaType.global().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
            id = javaType.id().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
            model = javaType.model().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentMutationActionSetStateParameter.Companion.toKotlin(args0)
                })
            }).orElse(null),
            target = javaType.target().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
            type = javaType.type().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
            url = javaType.url().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentProperty.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy