com.pulumi.gcp.apigee.kotlin.EnvReferencesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.apigee.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.apigee.EnvReferencesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* An `Environment Reference` in Apigee.
* To get more information about EnvReferences, see:
* * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.references/create)
* * How-to Guides
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
* ## Import
* EnvReferences can be imported using any of these accepted formats:
* * `{{env_id}}/references/{{name}}`
* * `{{env_id}}/{{name}}`
* When using the `pulumi import` command, EnvReferences can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:apigee/envReferences:EnvReferences default {{env_id}}/references/{{name}}
* ```
* ```sh
* $ pulumi import gcp:apigee/envReferences:EnvReferences default {{env_id}}/{{name}}
* ```
* @property description Optional. A human-readable description of this reference.
* @property envId The Apigee environment group associated with the Apigee environment,
* in the format `organizations/{{org_name}}/environments/{{env_name}}`.
* - - -
* @property name Required. The resource id of this reference. Values must match the regular expression [\w\s-.]+.
* @property refers Required. The id of the resource to which this reference refers. Must be the id of a resource that exists in the parent environment and is of the given resourceType.
* @property resourceType The type of resource referred to by this reference. Valid values are 'KeyStore' or 'TrustStore'.
*/
public data class EnvReferencesArgs(
public val description: Output? = null,
public val envId: Output? = null,
public val name: Output? = null,
public val refers: Output? = null,
public val resourceType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.apigee.EnvReferencesArgs =
com.pulumi.gcp.apigee.EnvReferencesArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.envId(envId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.refers(refers?.applyValue({ args0 -> args0 }))
.resourceType(resourceType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EnvReferencesArgs].
*/
@PulumiTagMarker
public class EnvReferencesArgsBuilder internal constructor() {
private var description: Output? = null
private var envId: Output? = null
private var name: Output? = null
private var refers: Output? = null
private var resourceType: Output? = null
/**
* @param value Optional. A human-readable description of this reference.
*/
@JvmName("nybrymqfyguakjps")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The Apigee environment group associated with the Apigee environment,
* in the format `organizations/{{org_name}}/environments/{{env_name}}`.
* - - -
*/
@JvmName("smvdrbkwiegbwnum")
public suspend fun envId(`value`: Output) {
this.envId = value
}
/**
* @param value Required. The resource id of this reference. Values must match the regular expression [\w\s-.]+.
*/
@JvmName("wiaoaxccsfmtkhcg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Required. The id of the resource to which this reference refers. Must be the id of a resource that exists in the parent environment and is of the given resourceType.
*/
@JvmName("hlkbmrvbamvvnihy")
public suspend fun refers(`value`: Output) {
this.refers = value
}
/**
* @param value The type of resource referred to by this reference. Valid values are 'KeyStore' or 'TrustStore'.
*/
@JvmName("ttfkwyokrwngsxjj")
public suspend fun resourceType(`value`: Output) {
this.resourceType = value
}
/**
* @param value Optional. A human-readable description of this reference.
*/
@JvmName("ovrpnmamllgofqlq")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The Apigee environment group associated with the Apigee environment,
* in the format `organizations/{{org_name}}/environments/{{env_name}}`.
* - - -
*/
@JvmName("ouohcyldciodqkhb")
public suspend fun envId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.envId = mapped
}
/**
* @param value Required. The resource id of this reference. Values must match the regular expression [\w\s-.]+.
*/
@JvmName("xetqwaaewpgupgqg")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Required. The id of the resource to which this reference refers. Must be the id of a resource that exists in the parent environment and is of the given resourceType.
*/
@JvmName("qnedwpwjwbdqreqi")
public suspend fun refers(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.refers = mapped
}
/**
* @param value The type of resource referred to by this reference. Valid values are 'KeyStore' or 'TrustStore'.
*/
@JvmName("ufwbcvvfhglabmit")
public suspend fun resourceType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceType = mapped
}
internal fun build(): EnvReferencesArgs = EnvReferencesArgs(
description = description,
envId = envId,
name = name,
refers = refers,
resourceType = resourceType,
)
}