import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Autonomous Database Backup resource in Oracle Cloud Infrastructure Database service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/AutonomousDatabaseBackup * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database * * Creates a new Autonomous AI Database backup for the specified database based on the provided request parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAutonomousDatabaseBackup = new oci.database.AutonomousDatabaseBackup("test_autonomous_database_backup", { * autonomousDatabaseId: testAutonomousDatabase.id, * backupDestinationDetails: { * type: autonomousDatabaseBackupBackupDestinationDetailsType, * backupRetentionPolicyOnTerminate: autonomousDatabaseBackupBackupDestinationDetailsBackupRetentionPolicyOnTerminate, * dbrsPolicyId: testPolicy.id, * id: autonomousDatabaseBackupBackupDestinationDetailsId, * internetProxy: autonomousDatabaseBackupBackupDestinationDetailsInternetProxy, * isRemote: autonomousDatabaseBackupBackupDestinationDetailsIsRemote === "true", * isRetentionLockEnabled: autonomousDatabaseBackupBackupDestinationDetailsIsRetentionLockEnabled === "true", * remoteRegion: autonomousDatabaseBackupBackupDestinationDetailsRemoteRegion, * vpcPassword: autonomousDatabaseBackupBackupDestinationDetailsVpcPassword, * vpcUser: autonomousDatabaseBackupBackupDestinationDetailsVpcUser, * }, * displayName: autonomousDatabaseBackupDisplayName, * isLongTermBackup: autonomousDatabaseBackupIsLongTermBackup === "true", * retentionPeriodInDays: Number(autonomousDatabaseBackupRetentionPeriodInDays), * }); * ``` * * ## Import * * AutonomousDatabaseBackups can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Database/autonomousDatabaseBackup:AutonomousDatabaseBackup test_autonomous_database_backup "id" * ``` */ export declare class AutonomousDatabaseBackup extends pulumi.CustomResource { /** * Get an existing AutonomousDatabaseBackup 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?: AutonomousDatabaseBackupState, opts?: pulumi.CustomResourceOptions): AutonomousDatabaseBackup; /** * Returns true if the given object is an instance of AutonomousDatabaseBackup. 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 AutonomousDatabaseBackup; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database backup. */ readonly autonomousDatabaseId: pulumi.Output; /** * Backup destination details */ readonly backupDestinationDetails: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId: pulumi.Output; /** * The size of the database in terabytes at the time the backup was taken. */ readonly databaseSizeInTbs: pulumi.Output; /** * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. When you specify 26ai for dbversion, the system will provision and display a 26ai database as expected. For new databases, it is recommended to use either 19c or 26ai. */ readonly dbVersion: pulumi.Output; /** * The user-friendly name for the backup. The name does not have to be unique. */ readonly displayName: pulumi.Output; /** * The infrastructure type this resource belongs to. */ readonly infrastructureType: pulumi.Output; /** * Indicates whether the backup is user-initiated or automatic. */ readonly isAutomatic: pulumi.Output; /** * Indicates whether the backup is long-term */ readonly isLongTermBackup: pulumi.Output; /** * Indicates whether the backup can be used to restore the associated Autonomous AI Database. */ readonly isRestorable: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key store of Oracle Vault. */ readonly keyStoreId: pulumi.Output; /** * The wallet name for Oracle Key Vault. */ readonly keyStoreWalletName: pulumi.Output; /** * The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. */ readonly kmsKeyId: pulumi.Output; /** * The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances. */ readonly kmsKeyVersionId: pulumi.Output; /** * Additional information about the current lifecycle state. */ readonly lifecycleDetails: pulumi.Output; /** * Name of the region in which backup is taken in. */ readonly region: pulumi.Output; /** * (Updatable) Retention period, in days, for long-term backups * * ** 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 retentionPeriodInDays: pulumi.Output; /** * The backup size in terrabytes (TB). */ readonly sizeInTbs: pulumi.Output; /** * Source Autonomous Database details. */ readonly sourceDatabaseDetails: pulumi.Output; /** * The current state of the backup. */ readonly state: pulumi.Output; /** * Timestamp until when the backup will be available */ readonly timeAvailableTill: pulumi.Output; /** * The date and time the backup completed. */ readonly timeEnded: pulumi.Output; /** * The date and time the backup started. */ readonly timeStarted: pulumi.Output; /** * The type of backup. */ readonly type: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. */ readonly vaultId: pulumi.Output; /** * Create a AutonomousDatabaseBackup 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: AutonomousDatabaseBackupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AutonomousDatabaseBackup resources. */ export interface AutonomousDatabaseBackupState { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database backup. */ autonomousDatabaseId?: pulumi.Input; /** * Backup destination details */ backupDestinationDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: pulumi.Input; /** * The size of the database in terabytes at the time the backup was taken. */ databaseSizeInTbs?: pulumi.Input; /** * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. When you specify 26ai for dbversion, the system will provision and display a 26ai database as expected. For new databases, it is recommended to use either 19c or 26ai. */ dbVersion?: pulumi.Input; /** * The user-friendly name for the backup. The name does not have to be unique. */ displayName?: pulumi.Input; /** * The infrastructure type this resource belongs to. */ infrastructureType?: pulumi.Input; /** * Indicates whether the backup is user-initiated or automatic. */ isAutomatic?: pulumi.Input; /** * Indicates whether the backup is long-term */ isLongTermBackup?: pulumi.Input; /** * Indicates whether the backup can be used to restore the associated Autonomous AI Database. */ isRestorable?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key store of Oracle Vault. */ keyStoreId?: pulumi.Input; /** * The wallet name for Oracle Key Vault. */ keyStoreWalletName?: pulumi.Input; /** * The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. */ kmsKeyId?: pulumi.Input; /** * The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances. */ kmsKeyVersionId?: pulumi.Input; /** * Additional information about the current lifecycle state. */ lifecycleDetails?: pulumi.Input; /** * Name of the region in which backup is taken in. */ region?: pulumi.Input; /** * (Updatable) Retention period, in days, for long-term backups * * ** 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 */ retentionPeriodInDays?: pulumi.Input; /** * The backup size in terrabytes (TB). */ sizeInTbs?: pulumi.Input; /** * Source Autonomous Database details. */ sourceDatabaseDetails?: pulumi.Input[] | undefined>; /** * The current state of the backup. */ state?: pulumi.Input; /** * Timestamp until when the backup will be available */ timeAvailableTill?: pulumi.Input; /** * The date and time the backup completed. */ timeEnded?: pulumi.Input; /** * The date and time the backup started. */ timeStarted?: pulumi.Input; /** * The type of backup. */ type?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and `secretId` are required for Customer Managed Keys. */ vaultId?: pulumi.Input; } /** * The set of arguments for constructing a AutonomousDatabaseBackup resource. */ export interface AutonomousDatabaseBackupArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database backup. */ autonomousDatabaseId: pulumi.Input; /** * Backup destination details */ backupDestinationDetails?: pulumi.Input; /** * The user-friendly name for the backup. The name does not have to be unique. */ displayName?: pulumi.Input; /** * Indicates whether the backup is long-term */ isLongTermBackup?: pulumi.Input; /** * (Updatable) Retention period, in days, for long-term backups * * ** 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 */ retentionPeriodInDays?: pulumi.Input; } //# sourceMappingURL=autonomousDatabaseBackup.d.ts.map