All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.backupdisasterrecovery.kotlin.BackupVaultArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.20.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.backupdisasterrecovery.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.backupdisasterrecovery.BackupVaultArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Container to store and organize immutable and indelible backups.
 * ## Example Usage
 * ### Backup Dr Backup Vault Full
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const backup_vault_test = new gcp.backupdisasterrecovery.BackupVault("backup-vault-test", {
 *     location: "us-central1",
 *     backupVaultId: "backup-vault-test",
 *     description: "This is a second backup vault built by Terraform.",
 *     backupMinimumEnforcedRetentionDuration: "100000s",
 *     annotations: {
 *         annotations1: "bar1",
 *         annotations2: "baz1",
 *     },
 *     labels: {
 *         foo: "bar1",
 *         bar: "baz1",
 *     },
 *     forceUpdate: true,
 *     accessRestriction: "WITHIN_ORGANIZATION",
 *     ignoreInactiveDatasources: true,
 *     ignoreBackupPlanReferences: true,
 *     allowMissing: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * backup_vault_test = gcp.backupdisasterrecovery.BackupVault("backup-vault-test",
 *     location="us-central1",
 *     backup_vault_id="backup-vault-test",
 *     description="This is a second backup vault built by Terraform.",
 *     backup_minimum_enforced_retention_duration="100000s",
 *     annotations={
 *         "annotations1": "bar1",
 *         "annotations2": "baz1",
 *     },
 *     labels={
 *         "foo": "bar1",
 *         "bar": "baz1",
 *     },
 *     force_update=True,
 *     access_restriction="WITHIN_ORGANIZATION",
 *     ignore_inactive_datasources=True,
 *     ignore_backup_plan_references=True,
 *     allow_missing=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var backup_vault_test = new Gcp.BackupDisasterRecovery.BackupVault("backup-vault-test", new()
 *     {
 *         Location = "us-central1",
 *         BackupVaultId = "backup-vault-test",
 *         Description = "This is a second backup vault built by Terraform.",
 *         BackupMinimumEnforcedRetentionDuration = "100000s",
 *         Annotations =
 *         {
 *             { "annotations1", "bar1" },
 *             { "annotations2", "baz1" },
 *         },
 *         Labels =
 *         {
 *             { "foo", "bar1" },
 *             { "bar", "baz1" },
 *         },
 *         ForceUpdate = true,
 *         AccessRestriction = "WITHIN_ORGANIZATION",
 *         IgnoreInactiveDatasources = true,
 *         IgnoreBackupPlanReferences = true,
 *         AllowMissing = true,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/backupdisasterrecovery"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := backupdisasterrecovery.NewBackupVault(ctx, "backup-vault-test", &backupdisasterrecovery.BackupVaultArgs{
 * 			Location:                               pulumi.String("us-central1"),
 * 			BackupVaultId:                          pulumi.String("backup-vault-test"),
 * 			Description:                            pulumi.String("This is a second backup vault built by Terraform."),
 * 			BackupMinimumEnforcedRetentionDuration: pulumi.String("100000s"),
 * 			Annotations: pulumi.StringMap{
 * 				"annotations1": pulumi.String("bar1"),
 * 				"annotations2": pulumi.String("baz1"),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"foo": pulumi.String("bar1"),
 * 				"bar": pulumi.String("baz1"),
 * 			},
 * 			ForceUpdate:                pulumi.Bool(true),
 * 			AccessRestriction:          pulumi.String("WITHIN_ORGANIZATION"),
 * 			IgnoreInactiveDatasources:  pulumi.Bool(true),
 * 			IgnoreBackupPlanReferences: pulumi.Bool(true),
 * 			AllowMissing:               pulumi.Bool(true),
 * 		})
 * 		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.backupdisasterrecovery.BackupVault;
 * import com.pulumi.gcp.backupdisasterrecovery.BackupVaultArgs;
 * 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 backup_vault_test = new BackupVault("backup-vault-test", BackupVaultArgs.builder()
 *             .location("us-central1")
 *             .backupVaultId("backup-vault-test")
 *             .description("This is a second backup vault built by Terraform.")
 *             .backupMinimumEnforcedRetentionDuration("100000s")
 *             .annotations(Map.ofEntries(
 *                 Map.entry("annotations1", "bar1"),
 *                 Map.entry("annotations2", "baz1")
 *             ))
 *             .labels(Map.ofEntries(
 *                 Map.entry("foo", "bar1"),
 *                 Map.entry("bar", "baz1")
 *             ))
 *             .forceUpdate("true")
 *             .accessRestriction("WITHIN_ORGANIZATION")
 *             .ignoreInactiveDatasources("true")
 *             .ignoreBackupPlanReferences("true")
 *             .allowMissing("true")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   backup-vault-test:
 *     type: gcp:backupdisasterrecovery:BackupVault
 *     properties:
 *       location: us-central1
 *       backupVaultId: backup-vault-test
 *       description: This is a second backup vault built by Terraform.
 *       backupMinimumEnforcedRetentionDuration: 100000s
 *       annotations:
 *         annotations1: bar1
 *         annotations2: baz1
 *       labels:
 *         foo: bar1
 *         bar: baz1
 *       forceUpdate: 'true'
 *       accessRestriction: WITHIN_ORGANIZATION
 *       ignoreInactiveDatasources: 'true'
 *       ignoreBackupPlanReferences: 'true'
 *       allowMissing: 'true'
 * ```
 * 
 * ## Import
 * BackupVault can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/backupVaults/{{backup_vault_id}}`
 * * `{{project}}/{{location}}/{{backup_vault_id}}`
 * * `{{location}}/{{backup_vault_id}}`
 * When using the `pulumi import` command, BackupVault can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:backupdisasterrecovery/backupVault:BackupVault default projects/{{project}}/locations/{{location}}/backupVaults/{{backup_vault_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:backupdisasterrecovery/backupVault:BackupVault default {{project}}/{{location}}/{{backup_vault_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:backupdisasterrecovery/backupVault:BackupVault default {{location}}/{{backup_vault_id}}
 * ```
 * @property accessRestriction Access restriction for the backup vault. Default value is `WITHIN_ORGANIZATION` if not provided during creation.
 * Default value is `WITHIN_ORGANIZATION`.
 * Possible values are: `ACCESS_RESTRICTION_UNSPECIFIED`, `WITHIN_PROJECT`, `WITHIN_ORGANIZATION`, `UNRESTRICTED`, `WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA`.
 * @property allowMissing Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
 * @property annotations Optional. User annotations. See https://google.aip.dev/128#annotations
 * Stores small amounts of arbitrary data.
 * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
 * Please refer to the field `effective_annotations` for all of the annotations present on the resource.
 * @property backupMinimumEnforcedRetentionDuration Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
 * @property backupVaultId Required. ID of the requesting object.
 * - - -
 * @property description Optional. The description of the BackupVault instance (2048 characters or less).
 * @property effectiveTime Optional. Time after which the BackupVault resource is locked.
 * @property forceDelete (Optional, Deprecated)
 * If set, the following restrictions against deletion of the backup vault instance can be overridden:
 * * deletion of a backup vault instance containing no backups, but still containing empty datasources.
 * * deletion of a backup vault instance that is being referenced by an active backup plan.
 * > **Warning:** `force_delete` is deprecated and will be removed in a future major release. Use `ignore_inactive_datasources` instead.
 * @property forceUpdate If set, allow update to extend the minimum enforced retention for backup vault. This overrides
 * the restriction against conflicting retention periods. This conflict may occur when the
 * expiration schedule defined by the associated backup plan is shorter than the minimum
 * retention set by the backup vault.
 * @property ignoreBackupPlanReferences If set, the following restrictions against deletion of the backup vault instance can be overridden:
 * * deletion of a backup vault instance that is being referenced by an active backup plan.
 * @property ignoreInactiveDatasources If set, the following restrictions against deletion of the backup vault instance can be overridden:
 * * deletion of a backup vault instance containing no backups, but still containing empty datasources.
 * @property labels Optional. Resource labels to represent user provided metadata.
 * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
 * Please refer to the field `effective_labels` for all of the labels present on the resource.
 * @property location The GCP location for the backup vault.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 */
public data class BackupVaultArgs(
    public val accessRestriction: Output? = null,
    public val allowMissing: Output? = null,
    public val annotations: Output>? = null,
    public val backupMinimumEnforcedRetentionDuration: Output? = null,
    public val backupVaultId: Output? = null,
    public val description: Output? = null,
    public val effectiveTime: Output? = null,
    @Deprecated(
        message = """
  `force_delete` is deprecated and will be removed in a future major release. Use
      `ignore_inactive_datasources` instead.
  """,
    )
    public val forceDelete: Output? = null,
    public val forceUpdate: Output? = null,
    public val ignoreBackupPlanReferences: Output? = null,
    public val ignoreInactiveDatasources: Output? = null,
    public val labels: Output>? = null,
    public val location: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.backupdisasterrecovery.BackupVaultArgs =
        com.pulumi.gcp.backupdisasterrecovery.BackupVaultArgs.builder()
            .accessRestriction(accessRestriction?.applyValue({ args0 -> args0 }))
            .allowMissing(allowMissing?.applyValue({ args0 -> args0 }))
            .annotations(
                annotations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .backupMinimumEnforcedRetentionDuration(
                backupMinimumEnforcedRetentionDuration?.applyValue({ args0 ->
                    args0
                }),
            )
            .backupVaultId(backupVaultId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .effectiveTime(effectiveTime?.applyValue({ args0 -> args0 }))
            .forceDelete(forceDelete?.applyValue({ args0 -> args0 }))
            .forceUpdate(forceUpdate?.applyValue({ args0 -> args0 }))
            .ignoreBackupPlanReferences(ignoreBackupPlanReferences?.applyValue({ args0 -> args0 }))
            .ignoreInactiveDatasources(ignoreInactiveDatasources?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .location(location?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackupVaultArgs].
 */
@PulumiTagMarker
public class BackupVaultArgsBuilder internal constructor() {
    private var accessRestriction: Output? = null

    private var allowMissing: Output? = null

    private var annotations: Output>? = null

    private var backupMinimumEnforcedRetentionDuration: Output? = null

    private var backupVaultId: Output? = null

    private var description: Output? = null

    private var effectiveTime: Output? = null

    private var forceDelete: Output? = null

    private var forceUpdate: Output? = null

    private var ignoreBackupPlanReferences: Output? = null

    private var ignoreInactiveDatasources: Output? = null

    private var labels: Output>? = null

    private var location: Output? = null

    private var project: Output? = null

    /**
     * @param value Access restriction for the backup vault. Default value is `WITHIN_ORGANIZATION` if not provided during creation.
     * Default value is `WITHIN_ORGANIZATION`.
     * Possible values are: `ACCESS_RESTRICTION_UNSPECIFIED`, `WITHIN_PROJECT`, `WITHIN_ORGANIZATION`, `UNRESTRICTED`, `WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA`.
     */
    @JvmName("prvwboptsbacxsev")
    public suspend fun accessRestriction(`value`: Output) {
        this.accessRestriction = value
    }

    /**
     * @param value Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
     */
    @JvmName("ekbtubkcvoxsketl")
    public suspend fun allowMissing(`value`: Output) {
        this.allowMissing = value
    }

    /**
     * @param value Optional. User annotations. See https://google.aip.dev/128#annotations
     * Stores small amounts of arbitrary data.
     * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
     * Please refer to the field `effective_annotations` for all of the annotations present on the resource.
     */
    @JvmName("mksmmbfamjlaqkmh")
    public suspend fun annotations(`value`: Output>) {
        this.annotations = value
    }

    /**
     * @param value Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
     */
    @JvmName("txpbbhwvaomfamoi")
    public suspend fun backupMinimumEnforcedRetentionDuration(`value`: Output) {
        this.backupMinimumEnforcedRetentionDuration = value
    }

    /**
     * @param value Required. ID of the requesting object.
     * - - -
     */
    @JvmName("moadwjjjmrrtdxap")
    public suspend fun backupVaultId(`value`: Output) {
        this.backupVaultId = value
    }

    /**
     * @param value Optional. The description of the BackupVault instance (2048 characters or less).
     */
    @JvmName("hecmnjqsgwilwcqc")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Optional. Time after which the BackupVault resource is locked.
     */
    @JvmName("hafkscegdsraikor")
    public suspend fun effectiveTime(`value`: Output) {
        this.effectiveTime = value
    }

    /**
     * @param value (Optional, Deprecated)
     * If set, the following restrictions against deletion of the backup vault instance can be overridden:
     * * deletion of a backup vault instance containing no backups, but still containing empty datasources.
     * * deletion of a backup vault instance that is being referenced by an active backup plan.
     * > **Warning:** `force_delete` is deprecated and will be removed in a future major release. Use `ignore_inactive_datasources` instead.
     */
    @Deprecated(
        message = """
  `force_delete` is deprecated and will be removed in a future major release. Use
      `ignore_inactive_datasources` instead.
  """,
    )
    @JvmName("nfwlfxqvegkpkbse")
    public suspend fun forceDelete(`value`: Output) {
        this.forceDelete = value
    }

    /**
     * @param value If set, allow update to extend the minimum enforced retention for backup vault. This overrides
     * the restriction against conflicting retention periods. This conflict may occur when the
     * expiration schedule defined by the associated backup plan is shorter than the minimum
     * retention set by the backup vault.
     */
    @JvmName("ammnwxafmkojjjym")
    public suspend fun forceUpdate(`value`: Output) {
        this.forceUpdate = value
    }

    /**
     * @param value If set, the following restrictions against deletion of the backup vault instance can be overridden:
     * * deletion of a backup vault instance that is being referenced by an active backup plan.
     */
    @JvmName("bmwegrjegviclkud")
    public suspend fun ignoreBackupPlanReferences(`value`: Output) {
        this.ignoreBackupPlanReferences = value
    }

    /**
     * @param value If set, the following restrictions against deletion of the backup vault instance can be overridden:
     * * deletion of a backup vault instance containing no backups, but still containing empty datasources.
     */
    @JvmName("vgmbwrwccpjhitye")
    public suspend fun ignoreInactiveDatasources(`value`: Output) {
        this.ignoreInactiveDatasources = value
    }

    /**
     * @param value Optional. Resource labels to represent user provided metadata.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("qewnvvoosumgwbsc")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The GCP location for the backup vault.
     */
    @JvmName("opucthicjljnhiwo")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("lpaxsmumylbkiule")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Access restriction for the backup vault. Default value is `WITHIN_ORGANIZATION` if not provided during creation.
     * Default value is `WITHIN_ORGANIZATION`.
     * Possible values are: `ACCESS_RESTRICTION_UNSPECIFIED`, `WITHIN_PROJECT`, `WITHIN_ORGANIZATION`, `UNRESTRICTED`, `WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA`.
     */
    @JvmName("lmbcbaivchwowvrt")
    public suspend fun accessRestriction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessRestriction = mapped
    }

    /**
     * @param value Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
     */
    @JvmName("etclbkcoceomrnob")
    public suspend fun allowMissing(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowMissing = mapped
    }

    /**
     * @param value Optional. User annotations. See https://google.aip.dev/128#annotations
     * Stores small amounts of arbitrary data.
     * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
     * Please refer to the field `effective_annotations` for all of the annotations present on the resource.
     */
    @JvmName("qrrfilvltpnhhtkk")
    public suspend fun annotations(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param values Optional. User annotations. See https://google.aip.dev/128#annotations
     * Stores small amounts of arbitrary data.
     * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
     * Please refer to the field `effective_annotations` for all of the annotations present on the resource.
     */
    @JvmName("yyulevayudxglkcn")
    public fun annotations(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param value Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
     */
    @JvmName("godqqpypantjehod")
    public suspend fun backupMinimumEnforcedRetentionDuration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupMinimumEnforcedRetentionDuration = mapped
    }

    /**
     * @param value Required. ID of the requesting object.
     * - - -
     */
    @JvmName("msglrhdffvrtjhbd")
    public suspend fun backupVaultId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupVaultId = mapped
    }

    /**
     * @param value Optional. The description of the BackupVault instance (2048 characters or less).
     */
    @JvmName("xfeklbqhphwdowdp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Optional. Time after which the BackupVault resource is locked.
     */
    @JvmName("mlmnayfkeqhkpvnp")
    public suspend fun effectiveTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.effectiveTime = mapped
    }

    /**
     * @param value (Optional, Deprecated)
     * If set, the following restrictions against deletion of the backup vault instance can be overridden:
     * * deletion of a backup vault instance containing no backups, but still containing empty datasources.
     * * deletion of a backup vault instance that is being referenced by an active backup plan.
     * > **Warning:** `force_delete` is deprecated and will be removed in a future major release. Use `ignore_inactive_datasources` instead.
     */
    @Deprecated(
        message = """
  `force_delete` is deprecated and will be removed in a future major release. Use
      `ignore_inactive_datasources` instead.
  """,
    )
    @JvmName("rmkmgbimolgqclak")
    public suspend fun forceDelete(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceDelete = mapped
    }

    /**
     * @param value If set, allow update to extend the minimum enforced retention for backup vault. This overrides
     * the restriction against conflicting retention periods. This conflict may occur when the
     * expiration schedule defined by the associated backup plan is shorter than the minimum
     * retention set by the backup vault.
     */
    @JvmName("nbdnetsgsruulfvi")
    public suspend fun forceUpdate(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceUpdate = mapped
    }

    /**
     * @param value If set, the following restrictions against deletion of the backup vault instance can be overridden:
     * * deletion of a backup vault instance that is being referenced by an active backup plan.
     */
    @JvmName("qwffgscekgwvtfni")
    public suspend fun ignoreBackupPlanReferences(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignoreBackupPlanReferences = mapped
    }

    /**
     * @param value If set, the following restrictions against deletion of the backup vault instance can be overridden:
     * * deletion of a backup vault instance containing no backups, but still containing empty datasources.
     */
    @JvmName("ifemsrjvbfmadmyc")
    public suspend fun ignoreInactiveDatasources(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignoreInactiveDatasources = mapped
    }

    /**
     * @param value Optional. Resource labels to represent user provided metadata.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("dbspphkrmyhplxli")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Optional. Resource labels to represent user provided metadata.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("exmidicnvoffejwx")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The GCP location for the backup vault.
     */
    @JvmName("lccxejhuagwttmsf")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("ageabkcraoqqnujv")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    internal fun build(): BackupVaultArgs = BackupVaultArgs(
        accessRestriction = accessRestriction,
        allowMissing = allowMissing,
        annotations = annotations,
        backupMinimumEnforcedRetentionDuration = backupMinimumEnforcedRetentionDuration,
        backupVaultId = backupVaultId,
        description = description,
        effectiveTime = effectiveTime,
        forceDelete = forceDelete,
        forceUpdate = forceUpdate,
        ignoreBackupPlanReferences = ignoreBackupPlanReferences,
        ignoreInactiveDatasources = ignoreInactiveDatasources,
        labels = labels,
        location = location,
        project = project,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy