import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * A Backup and DR BackupPlanAssociation.
 *
 * To get more information about BackupPlanAssociation, see:
 *
 * * [API documentation](https://cloud.google.com/backup-disaster-recovery/docs/reference/rest)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/backup-disaster-recovery/docs)
 *
 * ## Example Usage
 *
 * ### Backup Dr Bpa
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const mySA = new gcp.serviceaccount.Account("mySA", {
 *     accountId: "my-custom",
 *     displayName: "Custom SA for VM Instance",
 * });
 * const myinstance = new gcp.compute.Instance("myinstance", {
 *     networkInterfaces: [{
 *         accessConfigs: [{}],
 *         network: "default",
 *     }],
 *     name: "test-instance",
 *     machineType: "n2-standard-2",
 *     zone: "us-central1-a",
 *     bootDisk: {
 *         initializeParams: {
 *             image: "debian-cloud/debian-11",
 *             labels: {
 *                 my_label: "value",
 *             },
 *         },
 *     },
 *     scratchDisks: [{
 *         "interface": "NVME",
 *     }],
 *     serviceAccount: {
 *         email: mySA.email,
 *         scopes: ["cloud-platform"],
 *     },
 * });
 * const bv1 = new gcp.backupdisasterrecovery.BackupVault("bv1", {
 *     location: "us-central1",
 *     backupVaultId: "bv-bpa",
 *     backupMinimumEnforcedRetentionDuration: "100000s",
 *     forceDelete: true,
 * });
 * const bp1 = new gcp.backupdisasterrecovery.BackupPlan("bp1", {
 *     location: "us-central1",
 *     backupPlanId: "bp-bpa-test",
 *     resourceType: "compute.googleapis.com/Instance",
 *     backupVault: bv1.id,
 *     backupRules: [{
 *         ruleId: "rule-1",
 *         backupRetentionDays: 2,
 *         standardSchedule: {
 *             recurrenceType: "HOURLY",
 *             hourlyFrequency: 6,
 *             timeZone: "UTC",
 *             backupWindow: {
 *                 startHourOfDay: 12,
 *                 endHourOfDay: 18,
 *             },
 *         },
 *     }],
 * });
 * const my_backup_plan_association = new gcp.backupdisasterrecovery.BackupPlanAssociation("my-backup-plan-association", {
 *     location: "us-central1",
 *     resourceType: "compute.googleapis.com/Instance",
 *     backupPlanAssociationId: "my-bpa",
 *     resource: myinstance.id,
 *     backupPlan: bp1.name,
 * });
 * ```
 * ### Backup Dr Bpa Filestore
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const myFilestoreInstance = new gcp.filestore.Instance("my_filestore_instance", {
 *     name: "test-instance-bpa",
 *     location: "us-central1",
 *     tier: "ENTERPRISE",
 *     fileShares: {
 *         capacityGb: 1024,
 *         name: "share1",
 *     },
 *     networks: [{
 *         network: "default",
 *         modes: ["MODE_IPV4"],
 *     }],
 * });
 * const myBackupVault = new gcp.backupdisasterrecovery.BackupVault("my_backup_vault", {
 *     location: "us-central1",
 *     backupVaultId: "bv-bpa-filestore",
 *     backupMinimumEnforcedRetentionDuration: "100000s",
 *     forceDelete: true,
 * });
 * const myBackupPlan = new gcp.backupdisasterrecovery.BackupPlan("my_backup_plan", {
 *     location: "us-central1",
 *     backupPlanId: "bp-bpa-filestore",
 *     resourceType: "file.googleapis.com/Instance",
 *     backupVault: myBackupVault.id,
 *     backupRules: [{
 *         ruleId: "rule-1",
 *         backupRetentionDays: 5,
 *         standardSchedule: {
 *             recurrenceType: "HOURLY",
 *             hourlyFrequency: 6,
 *             timeZone: "UTC",
 *             backupWindow: {
 *                 startHourOfDay: 0,
 *                 endHourOfDay: 6,
 *             },
 *         },
 *     }],
 * });
 * const my_backup_plan_association_filestore = new gcp.backupdisasterrecovery.BackupPlanAssociation("my-backup-plan-association-filestore", {
 *     location: "us-central1",
 *     resourceType: "file.googleapis.com/Instance",
 *     backupPlanAssociationId: "my-bpa-filestore",
 *     resource: myFilestoreInstance.id,
 *     backupPlan: myBackupPlan.name,
 * });
 * ```
 *
 * ## Import
 *
 * BackupPlanAssociation can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/locations/{{location}}/backupPlanAssociations/{{backup_plan_association_id}}`
 * * `{{project}}/{{location}}/{{backup_plan_association_id}}`
 * * `{{location}}/{{backup_plan_association_id}}`
 *
 * When using the `pulumi import` command, BackupPlanAssociation can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:backupdisasterrecovery/backupPlanAssociation:BackupPlanAssociation default projects/{{project}}/locations/{{location}}/backupPlanAssociations/{{backup_plan_association_id}}
 * $ pulumi import gcp:backupdisasterrecovery/backupPlanAssociation:BackupPlanAssociation default {{project}}/{{location}}/{{backup_plan_association_id}}
 * $ pulumi import gcp:backupdisasterrecovery/backupPlanAssociation:BackupPlanAssociation default {{location}}/{{backup_plan_association_id}}
 * ```
 */
export declare class BackupPlanAssociation extends pulumi.CustomResource {
    /**
     * Get an existing BackupPlanAssociation 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<pulumi.ID>, state?: BackupPlanAssociationState, opts?: pulumi.CustomResourceOptions): BackupPlanAssociation;
    /**
     * Returns true if the given object is an instance of BackupPlanAssociation.  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 BackupPlanAssociation;
    /**
     * The BP with which resource needs to be created
     * Note:
     * - A Backup Plan configured for 'compute.googleapis.com/Instance', can only protect instance type resources.
     * - A Backup Plan configured for 'compute.googleapis.com/Disk' can be used to protect both standard Disks and Regional Disks resources.
     * - A Backup Plan configured for 'file.googleapis.com/Instance' can only protect Filestore instances.
     */
    readonly backupPlan: pulumi.Output<string>;
    /**
     * The id of backupplan association
     */
    readonly backupPlanAssociationId: pulumi.Output<string>;
    /**
     * The time when the instance was created
     */
    readonly createTime: pulumi.Output<string>;
    /**
     * Resource name of data source which will be used as storage location for backups taken
     */
    readonly dataSource: pulumi.Output<string>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    readonly deletionPolicy: pulumi.Output<string>;
    /**
     * The location for the backupplan association
     */
    readonly location: pulumi.Output<string>;
    /**
     * The name of backup plan association resource created
     */
    readonly name: pulumi.Output<string>;
    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    readonly project: pulumi.Output<string>;
    /**
     * The resource for which BPA needs to be created
     */
    readonly resource: pulumi.Output<string>;
    /**
     * The resource type of workload on which backupplan is applied.
     * Examples include, "compute.googleapis.com/Instance", "compute.googleapis.com/Disk", "compute.googleapis.com/RegionDisk", and "file.googleapis.com/Instance"
     */
    readonly resourceType: pulumi.Output<string>;
    /**
     * Message for rules config info
     * Structure is documented below.
     */
    readonly rulesConfigInfos: pulumi.Output<outputs.backupdisasterrecovery.BackupPlanAssociationRulesConfigInfo[]>;
    /**
     * The time when the instance was updated.
     */
    readonly updateTime: pulumi.Output<string>;
    /**
     * Create a BackupPlanAssociation 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: BackupPlanAssociationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering BackupPlanAssociation resources.
 */
export interface BackupPlanAssociationState {
    /**
     * The BP with which resource needs to be created
     * Note:
     * - A Backup Plan configured for 'compute.googleapis.com/Instance', can only protect instance type resources.
     * - A Backup Plan configured for 'compute.googleapis.com/Disk' can be used to protect both standard Disks and Regional Disks resources.
     * - A Backup Plan configured for 'file.googleapis.com/Instance' can only protect Filestore instances.
     */
    backupPlan?: pulumi.Input<string | undefined>;
    /**
     * The id of backupplan association
     */
    backupPlanAssociationId?: pulumi.Input<string | undefined>;
    /**
     * The time when the instance was created
     */
    createTime?: pulumi.Input<string | undefined>;
    /**
     * Resource name of data source which will be used as storage location for backups taken
     */
    dataSource?: pulumi.Input<string | undefined>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    deletionPolicy?: pulumi.Input<string | undefined>;
    /**
     * The location for the backupplan association
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * The name of backup plan association resource created
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    project?: pulumi.Input<string | undefined>;
    /**
     * The resource for which BPA needs to be created
     */
    resource?: pulumi.Input<string | undefined>;
    /**
     * The resource type of workload on which backupplan is applied.
     * Examples include, "compute.googleapis.com/Instance", "compute.googleapis.com/Disk", "compute.googleapis.com/RegionDisk", and "file.googleapis.com/Instance"
     */
    resourceType?: pulumi.Input<string | undefined>;
    /**
     * Message for rules config info
     * Structure is documented below.
     */
    rulesConfigInfos?: pulumi.Input<pulumi.Input<inputs.backupdisasterrecovery.BackupPlanAssociationRulesConfigInfo>[] | undefined>;
    /**
     * The time when the instance was updated.
     */
    updateTime?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a BackupPlanAssociation resource.
 */
export interface BackupPlanAssociationArgs {
    /**
     * The BP with which resource needs to be created
     * Note:
     * - A Backup Plan configured for 'compute.googleapis.com/Instance', can only protect instance type resources.
     * - A Backup Plan configured for 'compute.googleapis.com/Disk' can be used to protect both standard Disks and Regional Disks resources.
     * - A Backup Plan configured for 'file.googleapis.com/Instance' can only protect Filestore instances.
     */
    backupPlan: pulumi.Input<string>;
    /**
     * The id of backupplan association
     */
    backupPlanAssociationId: pulumi.Input<string>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    deletionPolicy?: pulumi.Input<string | undefined>;
    /**
     * The location for the backupplan association
     */
    location: pulumi.Input<string>;
    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    project?: pulumi.Input<string | undefined>;
    /**
     * The resource for which BPA needs to be created
     */
    resource: pulumi.Input<string>;
    /**
     * The resource type of workload on which backupplan is applied.
     * Examples include, "compute.googleapis.com/Instance", "compute.googleapis.com/Disk", "compute.googleapis.com/RegionDisk", and "file.googleapis.com/Instance"
     */
    resourceType: pulumi.Input<string>;
}
//# sourceMappingURL=backupPlanAssociation.d.ts.map