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

com.pulumi.awsnative.pinpoint.kotlin.outputs.GetInAppTemplateResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pinpoint.kotlin.outputs

import com.pulumi.awsnative.pinpoint.kotlin.enums.InAppTemplateLayout
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn The Amazon Resource Name (ARN) of the message template.
 * @property content An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
 * @property customConfig Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
 * @property layout A string that determines the appearance of the in-app message. You can specify one of the following:
 * - `BOTTOM_BANNER` – a message that appears as a banner at the bottom of the page.
 * - `TOP_BANNER` – a message that appears as a banner at the top of the page.
 * - `OVERLAYS` – a message that covers entire screen.
 * - `MOBILE_FEED` – a message that appears in a window in front of the page.
 * - `MIDDLE_BANNER` – a message that appears as a banner in the middle of the page.
 * - `CAROUSEL` – a scrollable layout of up to five unique messages.
 * @property tags An array of key-value pairs to apply to this resource.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Pinpoint::InAppTemplate` for more information about the expected schema for this property.
 * @property templateDescription An optional description of the in-app template.
 */
public data class GetInAppTemplateResult(
    public val arn: String? = null,
    public val content: List? = null,
    public val customConfig: Any? = null,
    public val layout: InAppTemplateLayout? = null,
    public val tags: Any? = null,
    public val templateDescription: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pinpoint.outputs.GetInAppTemplateResult): GetInAppTemplateResult = GetInAppTemplateResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            content = javaType.content().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.outputs.InAppTemplateInAppMessageContent.Companion.toKotlin(args0)
                })
            }),
            customConfig = javaType.customConfig().map({ args0 -> args0 }).orElse(null),
            layout = javaType.layout().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pinpoint.kotlin.enums.InAppTemplateLayout.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0 }).orElse(null),
            templateDescription = javaType.templateDescription().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy