com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretsSecret.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.secretmanager.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property annotations Custom metadata about the secret.
* @property createTime The time at which the Secret was created.
* @property effectiveAnnotations
* @property effectiveLabels
* @property expireTime Timestamp in UTC when the Secret is scheduled to expire.
* @property labels The labels assigned to this Secret.
* @property name The resource name of the Pub/Sub topic that will be published to.
* @property project The ID of the project.
* @property pulumiLabels The combination of labels configured directly on the resource
* and default labels configured on the provider.
* @property replications The replication policy of the secret data attached to the Secret.
* Structure is documented below.
* @property rotations The rotation time and period for a Secret.
* Structure is documented below.
* @property secretId This must be unique within the project.
* @property topics A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
* Structure is documented below.
* @property ttl The TTL for the Secret.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
* Only one of 'ttl' or 'expire_time' can be provided.
* @property versionAliases Mapping from version alias to version name.
* @property versionDestroyTtl Secret Version TTL after destruction request.
* This is a part of the delayed delete feature on Secret Version.
* For secret with versionDestroyTtl>0, version destruction doesn't happen immediately
* on calling destroy instead the version goes to a disabled state and
* the actual destruction happens after this TTL expires.
*/
public data class GetSecretsSecret(
public val annotations: Map,
public val createTime: String,
public val effectiveAnnotations: Map,
public val effectiveLabels: Map,
public val expireTime: String,
public val labels: Map,
public val name: String,
public val project: String,
public val pulumiLabels: Map,
public val replications: List,
public val rotations: List,
public val secretId: String,
public val topics: List,
public val ttl: String,
public val versionAliases: Map,
public val versionDestroyTtl: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.secretmanager.outputs.GetSecretsSecret): GetSecretsSecret = GetSecretsSecret(
annotations = javaType.annotations().map({ args0 -> args0.key.to(args0.value) }).toMap(),
createTime = javaType.createTime(),
effectiveAnnotations = javaType.effectiveAnnotations().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
expireTime = javaType.expireTime(),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
name = javaType.name(),
project = javaType.project(),
pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
replications = javaType.replications().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretsSecretReplication.Companion.toKotlin(args0)
})
}),
rotations = javaType.rotations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretsSecretRotation.Companion.toKotlin(args0)
})
}),
secretId = javaType.secretId(),
topics = javaType.topics().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.secretmanager.kotlin.outputs.GetSecretsSecretTopic.Companion.toKotlin(args0)
})
}),
ttl = javaType.ttl(),
versionAliases = javaType.versionAliases().map({ args0 -> args0.key.to(args0.value) }).toMap(),
versionDestroyTtl = javaType.versionDestroyTtl(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy