com.pulumi.gcp.secretmanager.kotlin.SecretVersionArgs.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
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.secretmanager.SecretVersionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A secret version resource.
* ## Example Usage
* ### Secret Version Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const secret_basic = new gcp.secretmanager.Secret("secret-basic", {
* secretId: "secret-version",
* labels: {
* label: "my-label",
* },
* replication: {
* auto: {},
* },
* });
* const secret_version_basic = new gcp.secretmanager.SecretVersion("secret-version-basic", {
* secret: secret_basic.id,
* secretData: "secret-data",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* secret_basic = gcp.secretmanager.Secret("secret-basic",
* secret_id="secret-version",
* labels={
* "label": "my-label",
* },
* replication=gcp.secretmanager.SecretReplicationArgs(
* auto=gcp.secretmanager.SecretReplicationAutoArgs(),
* ))
* secret_version_basic = gcp.secretmanager.SecretVersion("secret-version-basic",
* secret=secret_basic.id,
* secret_data="secret-data")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var secret_basic = new Gcp.SecretManager.Secret("secret-basic", new()
* {
* SecretId = "secret-version",
* Labels =
* {
* { "label", "my-label" },
* },
* Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
* {
* Auto = null,
* },
* });
* var secret_version_basic = new Gcp.SecretManager.SecretVersion("secret-version-basic", new()
* {
* Secret = secret_basic.Id,
* SecretData = "secret-data",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := secretmanager.NewSecret(ctx, "secret-basic", &secretmanager.SecretArgs{
* SecretId: pulumi.String("secret-version"),
* Labels: pulumi.StringMap{
* "label": pulumi.String("my-label"),
* },
* Replication: &secretmanager.SecretReplicationArgs{
* Auto: nil,
* },
* })
* if err != nil {
* return err
* }
* _, err = secretmanager.NewSecretVersion(ctx, "secret-version-basic", &secretmanager.SecretVersionArgs{
* Secret: secret_basic.ID(),
* SecretData: pulumi.String("secret-data"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.secretmanager.Secret;
* import com.pulumi.gcp.secretmanager.SecretArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
* import com.pulumi.gcp.secretmanager.SecretVersion;
* import com.pulumi.gcp.secretmanager.SecretVersionArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var secret_basic = new Secret("secret-basic", SecretArgs.builder()
* .secretId("secret-version")
* .labels(Map.of("label", "my-label"))
* .replication(SecretReplicationArgs.builder()
* .auto()
* .build())
* .build());
* var secret_version_basic = new SecretVersion("secret-version-basic", SecretVersionArgs.builder()
* .secret(secret_basic.id())
* .secretData("secret-data")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* secret-basic:
* type: gcp:secretmanager:Secret
* properties:
* secretId: secret-version
* labels:
* label: my-label
* replication:
* auto: {}
* secret-version-basic:
* type: gcp:secretmanager:SecretVersion
* properties:
* secret: ${["secret-basic"].id}
* secretData: secret-data
* ```
*
* ### Secret Version Deletion Policy Abandon
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const secret_basic = new gcp.secretmanager.Secret("secret-basic", {
* secretId: "secret-version",
* replication: {
* userManaged: {
* replicas: [{
* location: "us-central1",
* }],
* },
* },
* });
* const secret_version_deletion_policy = new gcp.secretmanager.SecretVersion("secret-version-deletion-policy", {
* secret: secret_basic.id,
* secretData: "secret-data",
* deletionPolicy: "ABANDON",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* secret_basic = gcp.secretmanager.Secret("secret-basic",
* secret_id="secret-version",
* replication=gcp.secretmanager.SecretReplicationArgs(
* user_managed=gcp.secretmanager.SecretReplicationUserManagedArgs(
* replicas=[gcp.secretmanager.SecretReplicationUserManagedReplicaArgs(
* location="us-central1",
* )],
* ),
* ))
* secret_version_deletion_policy = gcp.secretmanager.SecretVersion("secret-version-deletion-policy",
* secret=secret_basic.id,
* secret_data="secret-data",
* deletion_policy="ABANDON")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var secret_basic = new Gcp.SecretManager.Secret("secret-basic", new()
* {
* SecretId = "secret-version",
* Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
* {
* UserManaged = new Gcp.SecretManager.Inputs.SecretReplicationUserManagedArgs
* {
* Replicas = new[]
* {
* new Gcp.SecretManager.Inputs.SecretReplicationUserManagedReplicaArgs
* {
* Location = "us-central1",
* },
* },
* },
* },
* });
* var secret_version_deletion_policy = new Gcp.SecretManager.SecretVersion("secret-version-deletion-policy", new()
* {
* Secret = secret_basic.Id,
* SecretData = "secret-data",
* DeletionPolicy = "ABANDON",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := secretmanager.NewSecret(ctx, "secret-basic", &secretmanager.SecretArgs{
* SecretId: pulumi.String("secret-version"),
* Replication: &secretmanager.SecretReplicationArgs{
* UserManaged: &secretmanager.SecretReplicationUserManagedArgs{
* Replicas: secretmanager.SecretReplicationUserManagedReplicaArray{
* &secretmanager.SecretReplicationUserManagedReplicaArgs{
* Location: pulumi.String("us-central1"),
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* _, err = secretmanager.NewSecretVersion(ctx, "secret-version-deletion-policy", &secretmanager.SecretVersionArgs{
* Secret: secret_basic.ID(),
* SecretData: pulumi.String("secret-data"),
* DeletionPolicy: pulumi.String("ABANDON"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.secretmanager.Secret;
* import com.pulumi.gcp.secretmanager.SecretArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationUserManagedArgs;
* import com.pulumi.gcp.secretmanager.SecretVersion;
* import com.pulumi.gcp.secretmanager.SecretVersionArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var secret_basic = new Secret("secret-basic", SecretArgs.builder()
* .secretId("secret-version")
* .replication(SecretReplicationArgs.builder()
* .userManaged(SecretReplicationUserManagedArgs.builder()
* .replicas(SecretReplicationUserManagedReplicaArgs.builder()
* .location("us-central1")
* .build())
* .build())
* .build())
* .build());
* var secret_version_deletion_policy = new SecretVersion("secret-version-deletion-policy", SecretVersionArgs.builder()
* .secret(secret_basic.id())
* .secretData("secret-data")
* .deletionPolicy("ABANDON")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* secret-basic:
* type: gcp:secretmanager:Secret
* properties:
* secretId: secret-version
* replication:
* userManaged:
* replicas:
* - location: us-central1
* secret-version-deletion-policy:
* type: gcp:secretmanager:SecretVersion
* properties:
* secret: ${["secret-basic"].id}
* secretData: secret-data
* deletionPolicy: ABANDON
* ```
*
* ### Secret Version Deletion Policy Disable
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const secret_basic = new gcp.secretmanager.Secret("secret-basic", {
* secretId: "secret-version",
* replication: {
* userManaged: {
* replicas: [{
* location: "us-central1",
* }],
* },
* },
* });
* const secret_version_deletion_policy = new gcp.secretmanager.SecretVersion("secret-version-deletion-policy", {
* secret: secret_basic.id,
* secretData: "secret-data",
* deletionPolicy: "DISABLE",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* secret_basic = gcp.secretmanager.Secret("secret-basic",
* secret_id="secret-version",
* replication=gcp.secretmanager.SecretReplicationArgs(
* user_managed=gcp.secretmanager.SecretReplicationUserManagedArgs(
* replicas=[gcp.secretmanager.SecretReplicationUserManagedReplicaArgs(
* location="us-central1",
* )],
* ),
* ))
* secret_version_deletion_policy = gcp.secretmanager.SecretVersion("secret-version-deletion-policy",
* secret=secret_basic.id,
* secret_data="secret-data",
* deletion_policy="DISABLE")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var secret_basic = new Gcp.SecretManager.Secret("secret-basic", new()
* {
* SecretId = "secret-version",
* Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
* {
* UserManaged = new Gcp.SecretManager.Inputs.SecretReplicationUserManagedArgs
* {
* Replicas = new[]
* {
* new Gcp.SecretManager.Inputs.SecretReplicationUserManagedReplicaArgs
* {
* Location = "us-central1",
* },
* },
* },
* },
* });
* var secret_version_deletion_policy = new Gcp.SecretManager.SecretVersion("secret-version-deletion-policy", new()
* {
* Secret = secret_basic.Id,
* SecretData = "secret-data",
* DeletionPolicy = "DISABLE",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := secretmanager.NewSecret(ctx, "secret-basic", &secretmanager.SecretArgs{
* SecretId: pulumi.String("secret-version"),
* Replication: &secretmanager.SecretReplicationArgs{
* UserManaged: &secretmanager.SecretReplicationUserManagedArgs{
* Replicas: secretmanager.SecretReplicationUserManagedReplicaArray{
* &secretmanager.SecretReplicationUserManagedReplicaArgs{
* Location: pulumi.String("us-central1"),
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* _, err = secretmanager.NewSecretVersion(ctx, "secret-version-deletion-policy", &secretmanager.SecretVersionArgs{
* Secret: secret_basic.ID(),
* SecretData: pulumi.String("secret-data"),
* DeletionPolicy: pulumi.String("DISABLE"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.secretmanager.Secret;
* import com.pulumi.gcp.secretmanager.SecretArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationUserManagedArgs;
* import com.pulumi.gcp.secretmanager.SecretVersion;
* import com.pulumi.gcp.secretmanager.SecretVersionArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var secret_basic = new Secret("secret-basic", SecretArgs.builder()
* .secretId("secret-version")
* .replication(SecretReplicationArgs.builder()
* .userManaged(SecretReplicationUserManagedArgs.builder()
* .replicas(SecretReplicationUserManagedReplicaArgs.builder()
* .location("us-central1")
* .build())
* .build())
* .build())
* .build());
* var secret_version_deletion_policy = new SecretVersion("secret-version-deletion-policy", SecretVersionArgs.builder()
* .secret(secret_basic.id())
* .secretData("secret-data")
* .deletionPolicy("DISABLE")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* secret-basic:
* type: gcp:secretmanager:Secret
* properties:
* secretId: secret-version
* replication:
* userManaged:
* replicas:
* - location: us-central1
* secret-version-deletion-policy:
* type: gcp:secretmanager:SecretVersion
* properties:
* secret: ${["secret-basic"].id}
* secretData: secret-data
* deletionPolicy: DISABLE
* ```
*
* ### Secret Version With Base64 String Secret Data
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* import * as std from "@pulumi/std";
* const secret_basic = new gcp.secretmanager.Secret("secret-basic", {
* secretId: "secret-version",
* replication: {
* userManaged: {
* replicas: [{
* location: "us-central1",
* }],
* },
* },
* });
* const secret_version_base64 = new gcp.secretmanager.SecretVersion("secret-version-base64", {
* secret: secret_basic.id,
* isSecretDataBase64: true,
* secretData: std.filebase64({
* input: "secret-data.pfx",
* }).then(invoke => invoke.result),
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* import pulumi_std as std
* secret_basic = gcp.secretmanager.Secret("secret-basic",
* secret_id="secret-version",
* replication=gcp.secretmanager.SecretReplicationArgs(
* user_managed=gcp.secretmanager.SecretReplicationUserManagedArgs(
* replicas=[gcp.secretmanager.SecretReplicationUserManagedReplicaArgs(
* location="us-central1",
* )],
* ),
* ))
* secret_version_base64 = gcp.secretmanager.SecretVersion("secret-version-base64",
* secret=secret_basic.id,
* is_secret_data_base64=True,
* secret_data=std.filebase64(input="secret-data.pfx").result)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* using Std = Pulumi.Std;
* return await Deployment.RunAsync(() =>
* {
* var secret_basic = new Gcp.SecretManager.Secret("secret-basic", new()
* {
* SecretId = "secret-version",
* Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
* {
* UserManaged = new Gcp.SecretManager.Inputs.SecretReplicationUserManagedArgs
* {
* Replicas = new[]
* {
* new Gcp.SecretManager.Inputs.SecretReplicationUserManagedReplicaArgs
* {
* Location = "us-central1",
* },
* },
* },
* },
* });
* var secret_version_base64 = new Gcp.SecretManager.SecretVersion("secret-version-base64", new()
* {
* Secret = secret_basic.Id,
* IsSecretDataBase64 = true,
* SecretData = Std.Filebase64.Invoke(new()
* {
* Input = "secret-data.pfx",
* }).Apply(invoke => invoke.Result),
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager"
* "github.com/pulumi/pulumi-std/sdk/go/std"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := secretmanager.NewSecret(ctx, "secret-basic", &secretmanager.SecretArgs{
* SecretId: pulumi.String("secret-version"),
* Replication: &secretmanager.SecretReplicationArgs{
* UserManaged: &secretmanager.SecretReplicationUserManagedArgs{
* Replicas: secretmanager.SecretReplicationUserManagedReplicaArray{
* &secretmanager.SecretReplicationUserManagedReplicaArgs{
* Location: pulumi.String("us-central1"),
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{
* Input: "secret-data.pfx",
* }, nil)
* if err != nil {
* return err
* }
* _, err = secretmanager.NewSecretVersion(ctx, "secret-version-base64", &secretmanager.SecretVersionArgs{
* Secret: secret_basic.ID(),
* IsSecretDataBase64: pulumi.Bool(true),
* SecretData: invokeFilebase64.Result,
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.secretmanager.Secret;
* import com.pulumi.gcp.secretmanager.SecretArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationUserManagedArgs;
* import com.pulumi.gcp.secretmanager.SecretVersion;
* import com.pulumi.gcp.secretmanager.SecretVersionArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var secret_basic = new Secret("secret-basic", SecretArgs.builder()
* .secretId("secret-version")
* .replication(SecretReplicationArgs.builder()
* .userManaged(SecretReplicationUserManagedArgs.builder()
* .replicas(SecretReplicationUserManagedReplicaArgs.builder()
* .location("us-central1")
* .build())
* .build())
* .build())
* .build());
* var secret_version_base64 = new SecretVersion("secret-version-base64", SecretVersionArgs.builder()
* .secret(secret_basic.id())
* .isSecretDataBase64(true)
* .secretData(StdFunctions.filebase64(Filebase64Args.builder()
* .input("secret-data.pfx")
* .build()).result())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* secret-basic:
* type: gcp:secretmanager:Secret
* properties:
* secretId: secret-version
* replication:
* userManaged:
* replicas:
* - location: us-central1
* secret-version-base64:
* type: gcp:secretmanager:SecretVersion
* properties:
* secret: ${["secret-basic"].id}
* isSecretDataBase64: true
* secretData:
* fn::invoke:
* Function: std:filebase64
* Arguments:
* input: secret-data.pfx
* Return: result
* ```
*
* ## Import
* SecretVersion can be imported using any of these accepted formats:
* * `projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}`
* When using the `pulumi import` command, SecretVersion can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:secretmanager/secretVersion:SecretVersion default projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}
* ```
* @property deletionPolicy The deletion policy for the secret version. Setting `ABANDON` allows the resource
* to be abandoned rather than deleted. Setting `DISABLE` allows the resource to be
* disabled rather than deleted. Default is `DELETE`. Possible values are:
* * DELETE
* * DISABLE
* * ABANDON
* @property enabled The current state of the SecretVersion.
* @property isSecretDataBase64 If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.
* @property secret Secret Manager secret resource
* - - -
* @property secretData The secret data. Must be no larger than 64KiB.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
public data class SecretVersionArgs(
public val deletionPolicy: Output? = null,
public val enabled: Output? = null,
public val isSecretDataBase64: Output? = null,
public val secret: Output? = null,
public val secretData: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.secretmanager.SecretVersionArgs =
com.pulumi.gcp.secretmanager.SecretVersionArgs.builder()
.deletionPolicy(deletionPolicy?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.isSecretDataBase64(isSecretDataBase64?.applyValue({ args0 -> args0 }))
.secret(secret?.applyValue({ args0 -> args0 }))
.secretData(secretData?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SecretVersionArgs].
*/
@PulumiTagMarker
public class SecretVersionArgsBuilder internal constructor() {
private var deletionPolicy: Output? = null
private var enabled: Output? = null
private var isSecretDataBase64: Output? = null
private var secret: Output? = null
private var secretData: Output? = null
/**
* @param value The deletion policy for the secret version. Setting `ABANDON` allows the resource
* to be abandoned rather than deleted. Setting `DISABLE` allows the resource to be
* disabled rather than deleted. Default is `DELETE`. Possible values are:
* * DELETE
* * DISABLE
* * ABANDON
*/
@JvmName("dtxnnmaumqrdywrx")
public suspend fun deletionPolicy(`value`: Output) {
this.deletionPolicy = value
}
/**
* @param value The current state of the SecretVersion.
*/
@JvmName("sqeomsxbnrvymtfb")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.
*/
@JvmName("qlbgobifecmchqmt")
public suspend fun isSecretDataBase64(`value`: Output) {
this.isSecretDataBase64 = value
}
/**
* @param value Secret Manager secret resource
* - - -
*/
@JvmName("hapfvevhjsigpviq")
public suspend fun secret(`value`: Output) {
this.secret = value
}
/**
* @param value The secret data. Must be no larger than 64KiB.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("qyykqnkoybgtnprp")
public suspend fun secretData(`value`: Output) {
this.secretData = value
}
/**
* @param value The deletion policy for the secret version. Setting `ABANDON` allows the resource
* to be abandoned rather than deleted. Setting `DISABLE` allows the resource to be
* disabled rather than deleted. Default is `DELETE`. Possible values are:
* * DELETE
* * DISABLE
* * ABANDON
*/
@JvmName("ktafuomtesmpplqs")
public suspend fun deletionPolicy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deletionPolicy = mapped
}
/**
* @param value The current state of the SecretVersion.
*/
@JvmName("oafovkjiiajvmnab")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.
*/
@JvmName("hxnpvjsehxprgdfn")
public suspend fun isSecretDataBase64(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isSecretDataBase64 = mapped
}
/**
* @param value Secret Manager secret resource
* - - -
*/
@JvmName("uktlabkiqlrhfmff")
public suspend fun secret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secret = mapped
}
/**
* @param value The secret data. Must be no larger than 64KiB.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("lpaboceuxywaapix")
public suspend fun secretData(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secretData = mapped
}
internal fun build(): SecretVersionArgs = SecretVersionArgs(
deletionPolicy = deletionPolicy,
enabled = enabled,
isSecretDataBase64 = isSecretDataBase64,
secret = secret,
secretData = secretData,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy