com.pulumi.awsnative.proton.kotlin.ServiceTemplateArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.proton.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.proton.ServiceTemplateArgs.builder
import com.pulumi.awsnative.proton.kotlin.enums.ServiceTemplateProvisioning
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Definition of AWS::Proton::ServiceTemplate Resource Type
* @property description A description of the service template.
* @property displayName The name of the service template as displayed in the developer interface.
* @property encryptionKey A customer provided encryption key that's used to encrypt data.
* @property name The name of the service template.
* @property pipelineProvisioning If `pipelineProvisioning` is `true` , a service pipeline is included in the service template. Otherwise, a service pipeline *isn't* included in the service template.
* @property tags An optional list of metadata items that you can associate with the Proton service template. A tag is a key-value pair.
* For more information, see Proton resources and tagging in the
* Proton User Guide.
*/
public data class ServiceTemplateArgs(
public val description: Output? = null,
public val displayName: Output? = null,
public val encryptionKey: Output? = null,
public val name: Output? = null,
public val pipelineProvisioning: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.proton.ServiceTemplateArgs =
com.pulumi.awsnative.proton.ServiceTemplateArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.encryptionKey(encryptionKey?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.pipelineProvisioning(
pipelineProvisioning?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ServiceTemplateArgs].
*/
@PulumiTagMarker
public class ServiceTemplateArgsBuilder internal constructor() {
private var description: Output? = null
private var displayName: Output? = null
private var encryptionKey: Output? = null
private var name: Output? = null
private var pipelineProvisioning: Output? = null
private var tags: Output>? = null
/**
* @param value A description of the service template.
*/
@JvmName("ncqmaiojvlkbaoms")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the service template as displayed in the developer interface.
*/
@JvmName("ecdobkwhndjgfojc")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value A customer provided encryption key that's used to encrypt data.
*/
@JvmName("mdknwtpnneclxhfd")
public suspend fun encryptionKey(`value`: Output) {
this.encryptionKey = value
}
/**
* @param value The name of the service template.
*/
@JvmName("crmvfrkmcrjsywcl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value If `pipelineProvisioning` is `true` , a service pipeline is included in the service template. Otherwise, a service pipeline *isn't* included in the service template.
*/
@JvmName("qyybjwwaiewmhsfi")
public suspend fun pipelineProvisioning(`value`: Output) {
this.pipelineProvisioning = value
}
/**
* @param value An optional list of metadata items that you can associate with the Proton service template. A tag is a key-value pair.
* For more information, see Proton resources and tagging in the
* Proton User Guide.
*/
@JvmName("uyerpxpqqorakfsy")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("wmjykyyidcexypew")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values An optional list of metadata items that you can associate with the Proton service template. A tag is a key-value pair.
* For more information, see Proton resources and tagging in the
* Proton User Guide.
*/
@JvmName("vvdmxsnbrovuifgh")
public suspend fun tags(values: List