import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Autonomous Container Database Dataguard Association resource in Oracle Cloud Infrastructure Database service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/AutonomousContainerDatabaseDataguardAssociation * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database * * **Deprecated.** Use the [AddStandbyAutonomousContainerDatabase](https://docs.cloud.oracle.com/iaas/api/#/en/database/latest/AutonomousContainerDatabase/AddStandbyAutonomousContainerDatabase) operation to create a new Autonomous Data Guard association. An Autonomous Data Guard association represents the replication relationship between the * specified Autonomous Container database and a peer Autonomous Container database. For more information, see [Using Oracle Data Guard](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbau/#articletitle.html). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAutonomousContainerDatabaseDataguardAssociation = new oci.database.AutonomousContainerDatabaseDataguardAssociation("test_autonomous_container_database_dataguard_association", { * autonomousContainerDatabaseId: testAutonomousContainerDatabase.id, * peerAutonomousContainerDatabaseDisplayName: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseDisplayName, * protectionMode: autonomousContainerDatabaseDataguardAssociationProtectionMode, * fastStartFailOverLagLimitInSeconds: Number(autonomousContainerDatabaseDataguardAssociationFastStartFailOverLagLimitInSeconds), * isAutomaticFailoverEnabled: autonomousContainerDatabaseDataguardAssociationIsAutomaticFailoverEnabled === "true", * peerAutonomousContainerDatabaseBackupConfig: { * backupDestinationDetails: [{ * type: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsType, * backupRetentionPolicyOnTerminate: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsBackupRetentionPolicyOnTerminate, * dbrsPolicyId: testPolicy.id, * id: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsId, * internetProxy: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsInternetProxy, * isRemote: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsIsRemote === "true", * isRetentionLockEnabled: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsIsRetentionLockEnabled === "true", * remoteRegion: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsRemoteRegion, * vpcPassword: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsVpcPassword, * vpcUser: autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsVpcUser, * }], * recoveryWindowInDays: Number(autonomousContainerDatabaseDataguardAssociationPeerAutonomousContainerDatabaseBackupConfigRecoveryWindowInDays), * }, * peerAutonomousContainerDatabaseCompartmentId: testCompartment.id, * peerAutonomousVmClusterId: testAutonomousVmCluster.id, * peerCloudAutonomousVmClusterId: testCloudAutonomousVmCluster.id, * peerDbUniqueName: autonomousContainerDatabaseDataguardAssociationPeerDbUniqueName, * standbyMaintenanceBufferInDays: Number(autonomousContainerDatabaseDataguardAssociationStandbyMaintenanceBufferInDays), * }); * ``` * * ## Import * * AutonomousContainerDatabaseDataguardAssociations can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Database/autonomousContainerDatabaseDataguardAssociation:AutonomousContainerDatabaseDataguardAssociation test_autonomous_container_database_dataguard_association "autonomousContainerDatabases/{autonomousContainerDatabaseId}/autonomousContainerDatabaseDataguardAssociations/{autonomousContainerDatabaseDataguardAssociationId}" * ``` */ export declare class AutonomousContainerDatabaseDataguardAssociation extends pulumi.CustomResource { /** * Get an existing AutonomousContainerDatabaseDataguardAssociation 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?: AutonomousContainerDatabaseDataguardAssociationState, opts?: pulumi.CustomResourceOptions): AutonomousContainerDatabaseDataguardAssociation; /** * Returns true if the given object is an instance of AutonomousContainerDatabaseDataguardAssociation. 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 AutonomousContainerDatabaseDataguardAssociation; /** * The lag time between updates to the primary Autonomous Container Database and application of the redo data on the standby Autonomous Container Database, as computed by the reporting database. Example: `9 seconds` */ readonly applyLag: pulumi.Output; /** * The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: `180 Mb per second` */ readonly applyRate: pulumi.Output; readonly autonomousContainerDatabaseDataguardAssociationId: pulumi.Output; /** * The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly autonomousContainerDatabaseId: pulumi.Output; /** * (Updatable) The lag time for my preference based on data loss tolerance in seconds. */ readonly fastStartFailOverLagLimitInSeconds: pulumi.Output; /** * (Updatable) Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Input DataType: boolean. Example : `isAutomaticFailoverEnabled = true`. * * ** 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 isAutomaticFailoverEnabled: pulumi.Output; /** * Additional information about the current lifecycleState, if available. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) An optional property when incremented triggers Migrate. Could be set to any integer value. */ readonly migrateTrigger: pulumi.Output; /** * Backup options for the standby Autonomous Container Database. */ readonly peerAutonomousContainerDatabaseBackupConfig: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the standby Autonomous Container Database will be created. */ readonly peerAutonomousContainerDatabaseCompartmentId: pulumi.Output; /** * The OCID of the peer Autonomous Container Database-Autonomous Data Guard association. */ readonly peerAutonomousContainerDatabaseDataguardAssociationId: pulumi.Output; /** * The display name for the peer Autonomous Container Database. */ readonly peerAutonomousContainerDatabaseDisplayName: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer Autonomous Container Database. */ readonly peerAutonomousContainerDatabaseId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer Autonomous Exadata VM Cluster. */ readonly peerAutonomousVmClusterId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer cloud Autonomous Exadata VM Cluster. */ readonly peerCloudAutonomousVmClusterId: pulumi.Output; /** * Specifies the `DB_UNIQUE_NAME` of the peer database to be created. */ readonly peerDbUniqueName: pulumi.Output; /** * The current state of the Autonomous Container Database. */ readonly peerLifecycleState: pulumi.Output; /** * The Data Guard role of the Autonomous Container Database or Autonomous AI Database, if Autonomous Data Guard is enabled. */ readonly peerRole: pulumi.Output; /** * (Updatable) The protection mode of this Autonomous Data Guard association. For more information, see [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) in the Oracle Data Guard documentation. */ readonly protectionMode: pulumi.Output; /** * The Data Guard role of the Autonomous Container Database or Autonomous AI Database, if Autonomous Data Guard is enabled. */ readonly role: pulumi.Output; /** * The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. This value represents the number of days before scheduled maintenance of the primary database. */ readonly standbyMaintenanceBufferInDays: pulumi.Output; /** * The current state of Autonomous Data Guard. */ readonly state: pulumi.Output; /** * The date and time the Autonomous DataGuard association was created. */ readonly timeCreated: pulumi.Output; /** * The date and time when the last role change action happened. */ readonly timeLastRoleChanged: pulumi.Output; /** * The date and time of the last update to the apply lag, apply rate, and transport lag values. */ readonly timeLastSynced: pulumi.Output; /** * The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: `7 seconds` */ readonly transportLag: pulumi.Output; /** * Create a AutonomousContainerDatabaseDataguardAssociation 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: AutonomousContainerDatabaseDataguardAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AutonomousContainerDatabaseDataguardAssociation resources. */ export interface AutonomousContainerDatabaseDataguardAssociationState { /** * The lag time between updates to the primary Autonomous Container Database and application of the redo data on the standby Autonomous Container Database, as computed by the reporting database. Example: `9 seconds` */ applyLag?: pulumi.Input; /** * The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: `180 Mb per second` */ applyRate?: pulumi.Input; autonomousContainerDatabaseDataguardAssociationId?: pulumi.Input; /** * The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ autonomousContainerDatabaseId?: pulumi.Input; /** * (Updatable) The lag time for my preference based on data loss tolerance in seconds. */ fastStartFailOverLagLimitInSeconds?: pulumi.Input; /** * (Updatable) Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Input DataType: boolean. Example : `isAutomaticFailoverEnabled = true`. * * ** 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 */ isAutomaticFailoverEnabled?: pulumi.Input; /** * Additional information about the current lifecycleState, if available. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Migrate. Could be set to any integer value. */ migrateTrigger?: pulumi.Input; /** * Backup options for the standby Autonomous Container Database. */ peerAutonomousContainerDatabaseBackupConfig?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the standby Autonomous Container Database will be created. */ peerAutonomousContainerDatabaseCompartmentId?: pulumi.Input; /** * The OCID of the peer Autonomous Container Database-Autonomous Data Guard association. */ peerAutonomousContainerDatabaseDataguardAssociationId?: pulumi.Input; /** * The display name for the peer Autonomous Container Database. */ peerAutonomousContainerDatabaseDisplayName?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer Autonomous Container Database. */ peerAutonomousContainerDatabaseId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer Autonomous Exadata VM Cluster. */ peerAutonomousVmClusterId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer cloud Autonomous Exadata VM Cluster. */ peerCloudAutonomousVmClusterId?: pulumi.Input; /** * Specifies the `DB_UNIQUE_NAME` of the peer database to be created. */ peerDbUniqueName?: pulumi.Input; /** * The current state of the Autonomous Container Database. */ peerLifecycleState?: pulumi.Input; /** * The Data Guard role of the Autonomous Container Database or Autonomous AI Database, if Autonomous Data Guard is enabled. */ peerRole?: pulumi.Input; /** * (Updatable) The protection mode of this Autonomous Data Guard association. For more information, see [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) in the Oracle Data Guard documentation. */ protectionMode?: pulumi.Input; /** * The Data Guard role of the Autonomous Container Database or Autonomous AI Database, if Autonomous Data Guard is enabled. */ role?: pulumi.Input; /** * The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. This value represents the number of days before scheduled maintenance of the primary database. */ standbyMaintenanceBufferInDays?: pulumi.Input; /** * The current state of Autonomous Data Guard. */ state?: pulumi.Input; /** * The date and time the Autonomous DataGuard association was created. */ timeCreated?: pulumi.Input; /** * The date and time when the last role change action happened. */ timeLastRoleChanged?: pulumi.Input; /** * The date and time of the last update to the apply lag, apply rate, and transport lag values. */ timeLastSynced?: pulumi.Input; /** * The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: `7 seconds` */ transportLag?: pulumi.Input; } /** * The set of arguments for constructing a AutonomousContainerDatabaseDataguardAssociation resource. */ export interface AutonomousContainerDatabaseDataguardAssociationArgs { autonomousContainerDatabaseDataguardAssociationId?: pulumi.Input; /** * The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ autonomousContainerDatabaseId: pulumi.Input; /** * (Updatable) The lag time for my preference based on data loss tolerance in seconds. */ fastStartFailOverLagLimitInSeconds?: pulumi.Input; /** * (Updatable) Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Input DataType: boolean. Example : `isAutomaticFailoverEnabled = true`. * * ** 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 */ isAutomaticFailoverEnabled?: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Migrate. Could be set to any integer value. */ migrateTrigger?: pulumi.Input; /** * Backup options for the standby Autonomous Container Database. */ peerAutonomousContainerDatabaseBackupConfig?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the standby Autonomous Container Database will be created. */ peerAutonomousContainerDatabaseCompartmentId?: pulumi.Input; /** * The display name for the peer Autonomous Container Database. */ peerAutonomousContainerDatabaseDisplayName: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer Autonomous Exadata VM Cluster. */ peerAutonomousVmClusterId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peer cloud Autonomous Exadata VM Cluster. */ peerCloudAutonomousVmClusterId?: pulumi.Input; /** * Specifies the `DB_UNIQUE_NAME` of the peer database to be created. */ peerDbUniqueName?: pulumi.Input; /** * (Updatable) The protection mode of this Autonomous Data Guard association. For more information, see [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) in the Oracle Data Guard documentation. */ protectionMode: pulumi.Input; /** * The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. This value represents the number of days before scheduled maintenance of the primary database. */ standbyMaintenanceBufferInDays?: pulumi.Input; } //# sourceMappingURL=autonomousContainerDatabaseDataguardAssociation.d.ts.map