
com.pulumi.googlenative.gkehub.v1.kotlin.Membership.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.gkehub.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.AuthorityResponse
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.MembershipEndpointResponse
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.MembershipStateResponse
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.MonitoringConfigResponse
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.AuthorityResponse.Companion.toKotlin as authorityResponseToKotlin
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.MembershipEndpointResponse.Companion.toKotlin as membershipEndpointResponseToKotlin
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.MembershipStateResponse.Companion.toKotlin as membershipStateResponseToKotlin
import com.pulumi.googlenative.gkehub.v1.kotlin.outputs.MonitoringConfigResponse.Companion.toKotlin as monitoringConfigResponseToKotlin
/**
* Builder for [Membership].
*/
@PulumiTagMarker
public class MembershipResourceBuilder internal constructor() {
public var name: String? = null
public var args: MembershipArgs = MembershipArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend MembershipArgsBuilder.() -> Unit) {
val builder = MembershipArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Membership {
val builtJavaResource = com.pulumi.googlenative.gkehub.v1.Membership(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Membership(builtJavaResource)
}
}
/**
* Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
* Auto-naming is currently not supported for this resource.
*/
public class Membership internal constructor(
override val javaResource: com.pulumi.googlenative.gkehub.v1.Membership,
) : KotlinCustomResource(javaResource, MembershipMapper) {
/**
* Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
*/
public val authority: Output
get() = javaResource.authority().applyValue({ args0 ->
args0.let({ args0 ->
authorityResponseToKotlin(args0)
})
})
/**
* When the Membership was created.
*/
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
/**
* When the Membership was deleted.
*/
public val deleteTime: Output
get() = javaResource.deleteTime().applyValue({ args0 -> args0 })
/**
* Description of this membership, limited to 63 characters. Must match the regex: `a-zA-Z0-9*` This field is present for legacy purposes.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* Optional. Endpoint information to reach this member.
*/
public val endpoint: Output
get() = javaResource.endpoint().applyValue({ args0 ->
args0.let({ args0 ->
membershipEndpointResponseToKotlin(args0)
})
})
/**
* Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `a-zA-Z0-9*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.
*/
public val externalId: Output
get() = javaResource.externalId().applyValue({ args0 -> args0 })
/**
* Optional. Labels for this membership.
*/
public val labels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy