
com.pulumi.googlenative.metastore.v1.kotlin.Service.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.metastore.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.EncryptionConfigResponse
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.HiveMetastoreConfigResponse
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.MaintenanceWindowResponse
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.MetadataManagementActivityResponse
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.NetworkConfigResponse
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.ScalingConfigResponse
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.TelemetryConfigResponse
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.EncryptionConfigResponse.Companion.toKotlin as encryptionConfigResponseToKotlin
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.HiveMetastoreConfigResponse.Companion.toKotlin as hiveMetastoreConfigResponseToKotlin
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.MaintenanceWindowResponse.Companion.toKotlin as maintenanceWindowResponseToKotlin
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.MetadataManagementActivityResponse.Companion.toKotlin as metadataManagementActivityResponseToKotlin
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.NetworkConfigResponse.Companion.toKotlin as networkConfigResponseToKotlin
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.ScalingConfigResponse.Companion.toKotlin as scalingConfigResponseToKotlin
import com.pulumi.googlenative.metastore.v1.kotlin.outputs.TelemetryConfigResponse.Companion.toKotlin as telemetryConfigResponseToKotlin
/**
* Builder for [Service].
*/
@PulumiTagMarker
public class ServiceResourceBuilder internal constructor() {
public var name: String? = null
public var args: ServiceArgs = ServiceArgs()
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 ServiceArgsBuilder.() -> Unit) {
val builder = ServiceArgsBuilder()
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(): Service {
val builtJavaResource = com.pulumi.googlenative.metastore.v1.Service(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Service(builtJavaResource)
}
}
/**
* Creates a metastore service in a project and location.
*/
public class Service internal constructor(
override val javaResource: com.pulumi.googlenative.metastore.v1.Service,
) : KotlinCustomResource(javaResource, ServiceMapper) {
/**
* A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.
*/
public val artifactGcsUri: Output
get() = javaResource.artifactGcsUri().applyValue({ args0 -> args0 })
/**
* The time when the metastore service was created.
*/
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
/**
* Immutable. The database type that the Metastore service stores its data.
*/
public val databaseType: Output
get() = javaResource.databaseType().applyValue({ args0 -> args0 })
/**
* Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.
*/
public val encryptionConfig: Output
get() = javaResource.encryptionConfig().applyValue({ args0 ->
args0.let({ args0 ->
encryptionConfigResponseToKotlin(args0)
})
})
/**
* The URI of the endpoint used to access the metastore service.
*/
public val endpointUri: Output
get() = javaResource.endpointUri().applyValue({ args0 -> args0 })
/**
* Configuration information specific to running Hive metastore software as the metastore service.
*/
public val hiveMetastoreConfig: Output
get() = javaResource.hiveMetastoreConfig().applyValue({ args0 ->
args0.let({ args0 ->
hiveMetastoreConfigResponseToKotlin(args0)
})
})
/**
* User-defined labels for the metastore service.
*/
public val labels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy