com.pulumi.aws.pinpoint.kotlin.GcmChannelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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("kytlqsdrtrqrpmvb")
public suspend fun apiKey(`value`: Output) {
this.apiKey = value
}
/**
* @param value The application ID.
*/
@JvmName("covnfxufysnhhtcw")
public suspend fun applicationId(`value`: Output) {
this.applicationId = value
}
/**
* @param value
*/
@JvmName("omqobdajhjnyxlwn")
public suspend fun defaultAuthenticationMethod(`value`: Output) {
this.defaultAuthenticationMethod = value
}
/**
* @param value Whether the channel is enabled or disabled. Defaults to `true`.
*/
@JvmName("lutjkmsyjjjlcyjj")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value
*/
@JvmName("ylxmwlahrcjldewq")
public suspend fun serviceJson(`value`: Output) {
this.serviceJson = value
}
/**
* @param value Platform credential API key from Google.
*/
@JvmName("vlxrnkkpujtcbkee")
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("mbmscttweryarjhu")
public suspend fun applicationId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.applicationId = mapped
}
/**
* @param value
*/
@JvmName("kqmxujtuwbabrwmd")
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("wngeyssnaifngiij")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value
*/
@JvmName("vatkdklekjtdcsqy")
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,
)
}