
com.pulumi.googlenative.servicemanagement.v1.kotlin.ServiceArgs.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.servicemanagement.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.servicemanagement.v1.ServiceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Creates a new managed service. A managed service is immutable, and is subject to mandatory 30-day data retention. You cannot move a service or recreate it within 30 days after deletion. One producer project can own no more than 500 services. For security and reliability purposes, a production service should be hosted in a dedicated producer project. Operation
* Auto-naming is currently not supported for this resource.
* @property producerProjectId ID of the project that produces and owns this service.
* @property serviceName The name of the service. See the [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements.
*/
public data class ServiceArgs(
public val producerProjectId: Output? = null,
public val serviceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.servicemanagement.v1.ServiceArgs =
com.pulumi.googlenative.servicemanagement.v1.ServiceArgs.builder()
.producerProjectId(producerProjectId?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceArgs].
*/
@PulumiTagMarker
public class ServiceArgsBuilder internal constructor() {
private var producerProjectId: Output? = null
private var serviceName: Output? = null
/**
* @param value ID of the project that produces and owns this service.
*/
@JvmName("stnnnykurxlajjtr")
public suspend fun producerProjectId(`value`: Output) {
this.producerProjectId = value
}
/**
* @param value The name of the service. See the [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements.
*/
@JvmName("dyeinbjrrlkavdhc")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value ID of the project that produces and owns this service.
*/
@JvmName("wgxnofkungvjvyvi")
public suspend fun producerProjectId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.producerProjectId = mapped
}
/**
* @param value The name of the service. See the [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements.
*/
@JvmName("gfqfnhbrrygutomo")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
internal fun build(): ServiceArgs = ServiceArgs(
producerProjectId = producerProjectId,
serviceName = serviceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy