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

com.pulumi.aws.pinpoint.kotlin.GcmChannelArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.pinpoint.kotlin

import com.pulumi.aws.pinpoint.GcmChannelArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides a Pinpoint GCM Channel resource.
 * > **Note:** Credentials (Service Account JSON and API Key) will be stored in the raw state as plain-text.
 * ## Import
 * Using `pulumi import`, import Pinpoint GCM Channel using the `application-id`. For example:
 * ```sh
 * $ pulumi import aws:pinpoint/gcmChannel:GcmChannel gcm application-id
 * ```
 * @property apiKey Platform credential API key from Google.
 * @property applicationId The application ID.
 * @property defaultAuthenticationMethod
 * @property enabled Whether the channel is enabled or disabled. Defaults to `true`.
 * @property serviceJson
 */
public data class GcmChannelArgs(
    public val apiKey: Output? = null,
    public val applicationId: Output? = null,
    public val defaultAuthenticationMethod: Output? = null,
    public val enabled: Output? = null,
    public val serviceJson: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.pinpoint.GcmChannelArgs =
        com.pulumi.aws.pinpoint.GcmChannelArgs.builder()
            .apiKey(apiKey?.applyValue({ args0 -> args0 }))
            .applicationId(applicationId?.applyValue({ args0 -> args0 }))
            .defaultAuthenticationMethod(defaultAuthenticationMethod?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .serviceJson(serviceJson?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GcmChannelArgs].
 */
@PulumiTagMarker
public class GcmChannelArgsBuilder internal constructor() {
    private var apiKey: Output? = null

    private var applicationId: Output? = null

    private var defaultAuthenticationMethod: Output? = null

    private var enabled: Output? = null

    private var serviceJson: Output? = null

    /**
     * @param value Platform credential API key from Google.
     */
    @JvmName("toxpaibhjoehsbww")
    public suspend fun apiKey(`value`: Output) {
        this.apiKey = value
    }

    /**
     * @param value The application ID.
     */
    @JvmName("xgbwohrdkpnwojkl")
    public suspend fun applicationId(`value`: Output) {
        this.applicationId = value
    }

    /**
     * @param value
     */
    @JvmName("gxdgnophhngtmsrs")
    public suspend fun defaultAuthenticationMethod(`value`: Output) {
        this.defaultAuthenticationMethod = value
    }

    /**
     * @param value Whether the channel is enabled or disabled. Defaults to `true`.
     */
    @JvmName("bburnlnjkujbbogl")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value
     */
    @JvmName("bklookplbnnlflrv")
    public suspend fun serviceJson(`value`: Output) {
        this.serviceJson = value
    }

    /**
     * @param value Platform credential API key from Google.
     */
    @JvmName("gvkjfafsrujhocls")
    public suspend fun apiKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiKey = mapped
    }

    /**
     * @param value The application ID.
     */
    @JvmName("gkriumsrdbuyjjww")
    public suspend fun applicationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationId = mapped
    }

    /**
     * @param value
     */
    @JvmName("tcfrurukirrpbjlf")
    public suspend fun defaultAuthenticationMethod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultAuthenticationMethod = mapped
    }

    /**
     * @param value Whether the channel is enabled or disabled. Defaults to `true`.
     */
    @JvmName("ocntxbxjqdxcjsjr")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value
     */
    @JvmName("nxiwbvchtqipyfut")
    public suspend fun serviceJson(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceJson = mapped
    }

    internal fun build(): GcmChannelArgs = GcmChannelArgs(
        apiKey = apiKey,
        applicationId = applicationId,
        defaultAuthenticationMethod = defaultAuthenticationMethod,
        enabled = enabled,
        serviceJson = serviceJson,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy