BackupPolicyKubernetesClusterArgs

data class BackupPolicyKubernetesClusterArgs(val backupRepeatingTimeIntervals: Output<List<String>>? = null, val defaultRetentionRule: Output<BackupPolicyKubernetesClusterDefaultRetentionRuleArgs>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val retentionRules: Output<List<BackupPolicyKubernetesClusterRetentionRuleArgs>>? = null, val timeZone: Output<String>? = null, val vaultName: Output<String>? = null) : ConvertibleToJava<BackupPolicyKubernetesClusterArgs>

Manages a Backup Policy to back up Kubernetes Cluster.

Example Usage

resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleBackupVault:
type: azure:dataprotection:BackupVault
name: example
properties:
name: example-backup-vault
resourceGroupName: ${example.name}
location: ${example.location}
datastoreType: VaultStore
redundancy: LocallyRedundant
exampleBackupPolicyKubernetesCluster:
type: azure:dataprotection:BackupPolicyKubernetesCluster
name: example
properties:
name: example-backup-policy
resourceGroupName: ${example.name}
vaultName: ${exampleBackupVault.name}
backupRepeatingTimeIntervals:
- R/2021-05-23T02:30:00+00:00/P1W
timeZone: India Standard Time
defaultRetentionDuration: P4M
retentionRules:
- name: Daily
priority: 25
lifeCycles:
- duration: P84D
dataStoreType: OperationalStore
criteria:
absoluteCriteria: FirstOfDay
defaultRetentionRule:
lifeCycles:
- duration: P7D
dataStoreType: OperationalStore

API Providers

This resource uses the following Azure API Providers:

  • Microsoft.DataProtection: 2024-04-01

Import

Backup Policy Kubernetes Cluster's can be imported using the resource id, e.g.

$ pulumi import azure:dataprotection/backupPolicyKubernetesCluster:BackupPolicyKubernetesCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupPolicies/backupPolicy1

Constructors

Link copied to clipboard
constructor(backupRepeatingTimeIntervals: Output<List<String>>? = null, defaultRetentionRule: Output<BackupPolicyKubernetesClusterDefaultRetentionRuleArgs>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, retentionRules: Output<List<BackupPolicyKubernetesClusterRetentionRuleArgs>>? = null, timeZone: Output<String>? = null, vaultName: Output<String>? = null)

Properties

Link copied to clipboard

Specifies a list of repeating time interval. It supports weekly back. It should follow ISO 8601 repeating time interval. Changing this forces a new resource to be created.

Link copied to clipboard

A default_retention_rule block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for the Backup Policy Kubernetes Cluster. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Backup Policy Kubernetes Cluster should exist. Changing this forces a new resource to be created.

Link copied to clipboard

One or more retention_rule blocks as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val timeZone: Output<String>? = null

Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new resource to be created.

Link copied to clipboard
val vaultName: Output<String>? = null

The name of the Backup Vault where the Backup Policy Kubernetes Cluster should exist. Changing this forces a new resource to be created.

Functions

Link copied to clipboard
open override fun toJava(): BackupPolicyKubernetesClusterArgs