com.pulumi.gcp.pubsub.kotlin.inputs.GetSubscriptionIamPolicyPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.pubsub.kotlin.inputs
import com.pulumi.gcp.pubsub.inputs.GetSubscriptionIamPolicyPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getSubscriptionIamPolicy.
* @property project The project in which the resource belongs. If it
* is not provided, the provider project is used.
* @property subscription The subscription name or id to bind to attach IAM policy to.
*/
public data class GetSubscriptionIamPolicyPlainArgs(
public val project: String? = null,
public val subscription: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.pubsub.inputs.GetSubscriptionIamPolicyPlainArgs =
com.pulumi.gcp.pubsub.inputs.GetSubscriptionIamPolicyPlainArgs.builder()
.project(project?.let({ args0 -> args0 }))
.subscription(subscription.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSubscriptionIamPolicyPlainArgs].
*/
@PulumiTagMarker
public class GetSubscriptionIamPolicyPlainArgsBuilder internal constructor() {
private var project: String? = null
private var subscription: String? = null
/**
* @param value The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
@JvmName("ramjpfnkpkmwmytr")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value The subscription name or id to bind to attach IAM policy to.
*/
@JvmName("kocwkaqnocwoyvju")
public suspend fun subscription(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.subscription = mapped
}
internal fun build(): GetSubscriptionIamPolicyPlainArgs = GetSubscriptionIamPolicyPlainArgs(
project = project,
subscription = subscription ?: throw PulumiNullFieldException("subscription"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy