HanaBackupPlanArgs

data class HanaBackupPlanArgs(val backupPrefix: Output<String>? = null, val backupType: Output<String>? = null, val clusterId: Output<String>? = null, val databaseName: Output<String>? = null, val planName: Output<String>? = null, val resourceGroupId: Output<String>? = null, val schedule: Output<String>? = null, val status: Output<String>? = null, val vaultId: Output<String>? = null) : ConvertibleToJava<HanaBackupPlanArgs>

Provides a Hybrid Backup Recovery (HBR) Hana Backup Plan resource. For information about Hybrid Backup Recovery (HBR) Hana Backup Plan and how to use it, see What is Hana Backup Plan.

NOTE: Available in v1.179.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.hbr.Vault;
import com.pulumi.alicloud.hbr.VaultArgs;
import com.pulumi.alicloud.hbr.HanaInstance;
import com.pulumi.alicloud.hbr.HanaInstanceArgs;
import com.pulumi.alicloud.hbr.HanaBackupPlan;
import com.pulumi.alicloud.hbr.HanaBackupPlanArgs;
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) {
final var exampleResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
var exampleVault = new Vault("exampleVault", VaultArgs.builder()
.vaultName("terraform-example")
.build());
var exampleHanaInstance = new HanaInstance("exampleHanaInstance", HanaInstanceArgs.builder()
.alertSetting("INHERITED")
.hanaName("terraform-example")
.host("1.1.1.1")
.instanceNumber(1)
.password("YouPassword123")
.resourceGroupId(exampleResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.sid("HXE")
.useSsl(false)
.userName("admin")
.validateCertificate(false)
.vaultId(exampleVault.id())
.build());
var exampleHanaBackupPlan = new HanaBackupPlan("exampleHanaBackupPlan", HanaBackupPlanArgs.builder()
.backupPrefix("DIFF_DATA_BACKUP")
.backupType("COMPLETE")
.clusterId(exampleHanaInstance.hanaInstanceId())
.databaseName("SYSTEMDB")
.planName("terraform-example")
.resourceGroupId(exampleResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.schedule("I|1602673264|P1D")
.vaultId(exampleHanaInstance.vaultId())
.build());
}
}

Import

Hybrid Backup Recovery (HBR) Hana Backup Plan can be imported using the id, e.g.

$ pulumi import alicloud:hbr/hanaBackupPlan:HanaBackupPlan example <plan_id>:<vault_id>:<cluster_id>

Constructors

Link copied to clipboard
fun HanaBackupPlanArgs(backupPrefix: Output<String>? = null, backupType: Output<String>? = null, clusterId: Output<String>? = null, databaseName: Output<String>? = null, planName: Output<String>? = null, resourceGroupId: Output<String>? = null, schedule: Output<String>? = null, status: Output<String>? = null, vaultId: Output<String>? = null)

Functions

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

Properties

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

The backup prefix.

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

The backup type. Valid values:

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

The ID of the SAP HANA instance.

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

The name of the database.

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

The name of the backup plan.

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

The resource attribute field that represents the resource group ID.

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

The backup policy. Format: I|{startTime}|{interval}. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.

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

The status of the resource. Valid values: Enabled, Disabled.

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

The ID of the backup vault.