import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Backup resource in Oracle Cloud Infrastructure Psql service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/postgresql/latest/Backup * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/psql * * Creates a new backup. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBackup = new oci.psql.Backup("test_backup", { * compartmentId: compartmentId, * dbSystemId: testDbSystem.id, * displayName: backupDisplayName, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: backupDescription, * freeformTags: { * "bar-key": "value", * }, * retentionPeriod: Number(backupRetentionPeriod), * }); * ``` * * ## Import * * Backups can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Psql/backup:Backup test_backup "id" * ``` */ export declare class Backup extends pulumi.CustomResource { /** * Get an existing Backup 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?: BackupState, opts?: pulumi.CustomResourceOptions): Backup; /** * Returns true if the given object is an instance of Backup. 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 Backup; /** * The size of the backup, in gigabytes. */ readonly backupSize: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the backup. */ readonly compartmentId: pulumi.Output; /** * List of status for Backup Copy */ readonly copyStatuses: pulumi.Output; /** * Information about the database system associated with a backup. */ readonly dbSystemDetails: pulumi.Output; /** * The ID of the database system. */ readonly dbSystemId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A description for the backup. */ readonly description: pulumi.Output; /** * (Updatable) A user-friendly display name for the backup. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * lastAcceptedRequestToken from MP. */ readonly lastAcceptedRequestToken: pulumi.Output; /** * lastCompletedRequestToken from MP. */ readonly lastCompletedRequestToken: pulumi.Output; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) Backup retention period in days. * * ** 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 retentionPeriod: pulumi.Output; /** * Information about the Source Backup associated with a backup. */ readonly sourceBackupDetails: pulumi.Output; /** * Specifies whether the backup was created manually, taken on schedule defined in the a backup policy, or copied from the remote location. */ readonly sourceType: pulumi.Output; /** * The current state of the backup. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time the backup request was received, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * The date and time the backup was created. This is the time the actual point-in-time data snapshot was taken, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreatedPrecise: pulumi.Output; /** * The date and time the backup was updated, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ readonly timeUpdated: pulumi.Output; /** * Create a Backup 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: BackupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Backup resources. */ export interface BackupState { /** * The size of the backup, in gigabytes. */ backupSize?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the backup. */ compartmentId?: pulumi.Input; /** * List of status for Backup Copy */ copyStatuses?: pulumi.Input[] | undefined>; /** * Information about the database system associated with a backup. */ dbSystemDetails?: pulumi.Input[] | undefined>; /** * The ID of the database system. */ dbSystemId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A description for the backup. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the backup. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * lastAcceptedRequestToken from MP. */ lastAcceptedRequestToken?: pulumi.Input; /** * lastCompletedRequestToken from MP. */ lastCompletedRequestToken?: pulumi.Input; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) Backup retention period in days. * * ** 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 */ retentionPeriod?: pulumi.Input; /** * Information about the Source Backup associated with a backup. */ sourceBackupDetails?: pulumi.Input; /** * Specifies whether the backup was created manually, taken on schedule defined in the a backup policy, or copied from the remote location. */ sourceType?: pulumi.Input; /** * The current state of the backup. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time the backup request was received, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * The date and time the backup was created. This is the time the actual point-in-time data snapshot was taken, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ timeCreatedPrecise?: pulumi.Input; /** * The date and time the backup was updated, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a Backup resource. */ export interface BackupArgs { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the backup. */ compartmentId: pulumi.Input; /** * The ID of the database system. */ dbSystemId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A description for the backup. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the backup. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Backup retention period in days. * * ** 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 */ retentionPeriod?: pulumi.Input; /** * Information about the Source Backup associated with a backup. */ sourceBackupDetails?: pulumi.Input; } //# sourceMappingURL=backup.d.ts.map