import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Volume Backup Policy Assignment resource in Oracle Cloud Infrastructure Core service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/iaas/latest/VolumeBackupPolicyAssignment * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/ * * Assigns a volume backup policy to the specified volume or volume group. Note that a given volume or volume group can * only have one backup policy assigned to it. If this operation is used for a volume or volume group that already * has a different backup policy assigned, the prior backup policy will be silently unassigned. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVolumeBackupPolicyAssignment = new oci.core.VolumeBackupPolicyAssignment("test_volume_backup_policy_assignment", { * assetId: testVolume.id, * policyId: testVolumeBackupPolicy.id, * xrcKmsKeyId: testKey.id, * }); * ``` * * ## Import * * VolumeBackupPolicyAssignments can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Core/volumeBackupPolicyAssignment:VolumeBackupPolicyAssignment test_volume_backup_policy_assignment "id" * ``` */ export declare class VolumeBackupPolicyAssignment extends pulumi.CustomResource { /** * Get an existing VolumeBackupPolicyAssignment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: VolumeBackupPolicyAssignmentState, opts?: pulumi.CustomResourceOptions): VolumeBackupPolicyAssignment; /** * Returns true if the given object is an instance of VolumeBackupPolicyAssignment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is VolumeBackupPolicyAssignment; /** * The OCID of the volume or volume group to assign the policy to. */ readonly assetId: pulumi.Output; /** * The OCID of the volume backup policy to assign to the volume. */ readonly policyId: pulumi.Output; /** * The date and time the volume backup policy was assigned to the volume. The format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. For more information about the Vault service and encryption keys, see [Overview of Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and [Using Keys](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly xrcKmsKeyId: pulumi.Output; /** * Create a VolumeBackupPolicyAssignment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: VolumeBackupPolicyAssignmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VolumeBackupPolicyAssignment resources. */ export interface VolumeBackupPolicyAssignmentState { /** * The OCID of the volume or volume group to assign the policy to. */ assetId?: pulumi.Input; /** * The OCID of the volume backup policy to assign to the volume. */ policyId?: pulumi.Input; /** * The date and time the volume backup policy was assigned to the volume. The format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeCreated?: pulumi.Input; /** * The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. For more information about the Vault service and encryption keys, see [Overview of Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and [Using Keys](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ xrcKmsKeyId?: pulumi.Input; } /** * The set of arguments for constructing a VolumeBackupPolicyAssignment resource. */ export interface VolumeBackupPolicyAssignmentArgs { /** * The OCID of the volume or volume group to assign the policy to. */ assetId: pulumi.Input; /** * The OCID of the volume backup policy to assign to the volume. */ policyId: pulumi.Input; /** * The OCID of the Vault service key which is the master encryption key for the block / boot volume cross region backups, which will be used in the destination region to encrypt the backup's encryption keys. For more information about the Vault service and encryption keys, see [Overview of Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and [Using Keys](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ xrcKmsKeyId?: pulumi.Input; } //# sourceMappingURL=volumeBackupPolicyAssignment.d.ts.map