
src.cloudkms.v1.CryptoKey.scala Maven / Gradle / Ivy
package besom.api.googlenative.cloudkms.v1
final case class CryptoKey private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
createTime: besom.types.Output[String],
cryptoKeyBackend: besom.types.Output[String],
cryptoKeyId: besom.types.Output[String],
destroyScheduledDuration: besom.types.Output[String],
importOnly: besom.types.Output[Boolean],
keyRingId: besom.types.Output[String],
labels: besom.types.Output[scala.Predef.Map[String, String]],
location: besom.types.Output[String],
name: besom.types.Output[String],
nextRotationTime: besom.types.Output[String],
primary: besom.types.Output[besom.api.googlenative.cloudkms.v1.outputs.CryptoKeyVersionResponse],
project: besom.types.Output[String],
purpose: besom.types.Output[String],
rotationPeriod: besom.types.Output[String],
skipInitialVersionCreation: besom.types.Output[scala.Option[Boolean]],
versionTemplate: besom.types.Output[besom.api.googlenative.cloudkms.v1.outputs.CryptoKeyVersionTemplateResponse]
) extends besom.CustomResource
object CryptoKey extends besom.ResourceCompanion[CryptoKey]:
/** Resource constructor for CryptoKey.
*
* @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
* NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
* issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
* string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
*
* @param args [[CryptoKeyArgs]] The configuration to use to create this resource.
*
* @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource.
* Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
*
* {{{
* val res = CryptoKey(
* "my-resource",
* CryptoKeyArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: CryptoKeyArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[CryptoKey] =
ctx.readOrRegisterResource[CryptoKey, CryptoKeyArgs]("google-native:cloudkms/v1:CryptoKey", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:cloudkms/v1:CryptoKey"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[CryptoKey] =
besom.internal.ResourceDecoder.derived[CryptoKey]
given decoder(using besom.types.Context): besom.types.Decoder[CryptoKey] =
besom.internal.Decoder.customResourceDecoder[CryptoKey]
given outputOps: {} with
extension(output: besom.types.Output[CryptoKey])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
def cryptoKeyBackend : besom.types.Output[String] = output.flatMap(_.cryptoKeyBackend)
def cryptoKeyId : besom.types.Output[String] = output.flatMap(_.cryptoKeyId)
def destroyScheduledDuration : besom.types.Output[String] = output.flatMap(_.destroyScheduledDuration)
def importOnly : besom.types.Output[Boolean] = output.flatMap(_.importOnly)
def keyRingId : besom.types.Output[String] = output.flatMap(_.keyRingId)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def location : besom.types.Output[String] = output.flatMap(_.location)
def name : besom.types.Output[String] = output.flatMap(_.name)
def nextRotationTime : besom.types.Output[String] = output.flatMap(_.nextRotationTime)
def primary : besom.types.Output[besom.api.googlenative.cloudkms.v1.outputs.CryptoKeyVersionResponse] = output.flatMap(_.primary)
def project : besom.types.Output[String] = output.flatMap(_.project)
def purpose : besom.types.Output[String] = output.flatMap(_.purpose)
def rotationPeriod : besom.types.Output[String] = output.flatMap(_.rotationPeriod)
def skipInitialVersionCreation : besom.types.Output[scala.Option[Boolean]] = output.flatMap(_.skipInitialVersionCreation)
def versionTemplate : besom.types.Output[besom.api.googlenative.cloudkms.v1.outputs.CryptoKeyVersionTemplateResponse] = output.flatMap(_.versionTemplate)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy