import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the Target Database resource in Oracle Cloud Infrastructure Data Safe service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/TargetDatabase
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe
 *
 * Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testTargetDatabase = new oci.datasafe.TargetDatabase("test_target_database", {
 *     compartmentId: compartmentId,
 *     databaseDetails: {
 *         databaseType: targetDatabaseDatabaseDetailsDatabaseType,
 *         infrastructureType: targetDatabaseDatabaseDetailsInfrastructureType,
 *         autonomousDatabaseId: testAutonomousDatabase.id,
 *         dbSystemId: testDbSystem.id,
 *         instanceId: testInstance.id,
 *         ipAddresses: targetDatabaseDatabaseDetailsIpAddresses,
 *         listenerPort: Number(targetDatabaseDatabaseDetailsListenerPort),
 *         pluggableDatabaseId: testPluggableDatabase.id,
 *         serviceName: testService.name,
 *         vmClusterId: testVmCluster.id,
 *     },
 *     connectionOption: {
 *         connectionType: targetDatabaseConnectionOptionConnectionType,
 *         datasafePrivateEndpointId: testPrivateEndpoint.id,
 *         onPremConnectorId: testOnPremConnector.id,
 *     },
 *     credentials: {
 *         password: targetDatabaseCredentialsPassword,
 *         userName: testUser.name,
 *     },
 *     definedTags: {
 *         "Operations.CostCenter": "42",
 *     },
 *     description: targetDatabaseDescription,
 *     displayName: targetDatabaseDisplayName,
 *     freeformTags: {
 *         Department: "Finance",
 *     },
 *     peerTargetDatabaseDetails: [{
 *         databaseDetails: {
 *             databaseType: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType,
 *             infrastructureType: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType,
 *             autonomousDatabaseId: testAutonomousDatabase.id,
 *             dbSystemId: testDbSystem.id,
 *             instanceId: testInstance.id,
 *             ipAddresses: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses,
 *             listenerPort: Number(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort),
 *             pluggableDatabaseId: testPluggableDatabase.id,
 *             serviceName: testService.name,
 *             vmClusterId: testVmCluster.id,
 *         },
 *         dataguardAssociationId: testAssociation.id,
 *         description: targetDatabasePeerTargetDatabaseDetailsDescription,
 *         displayName: targetDatabasePeerTargetDatabaseDetailsDisplayName,
 *         tlsConfig: {
 *             status: targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus,
 *             certificateStoreType: targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType,
 *             keyStoreContent: targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent,
 *             storePassword: targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword,
 *             trustStoreContent: targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent,
 *         },
 *     }],
 *     tlsConfig: {
 *         status: targetDatabaseTlsConfigStatus,
 *         certificateStoreType: targetDatabaseTlsConfigCertificateStoreType,
 *         keyStoreContent: targetDatabaseTlsConfigKeyStoreContent,
 *         storePassword: targetDatabaseTlsConfigStorePassword,
 *         trustStoreContent: targetDatabaseTlsConfigTrustStoreContent,
 *     },
 * });
 * ```
 *
 * ## Import
 *
 * TargetDatabases can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:DataSafe/targetDatabase:TargetDatabase test_target_database "id"
 * ```
 */
export declare class TargetDatabase extends pulumi.CustomResource {
    /**
     * Get an existing TargetDatabase 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?: TargetDatabaseState, opts?: pulumi.CustomResourceOptions): TargetDatabase;
    /**
     * Returns true if the given object is an instance of TargetDatabase.  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 TargetDatabase;
    /**
     * The OCIDs of associated resources like database, Data Safe private endpoint etc.
     */
    readonly associatedResourceIds: pulumi.Output<string[]>;
    /**
     * (Updatable) The OCID of the compartment in which to create the Data Safe target database.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * (Updatable) Types of connection supported by Data Safe.
     */
    readonly connectionOption: pulumi.Output<outputs.DataSafe.TargetDatabaseConnectionOption>;
    /**
     * (Updatable) The database credentials required for Data Safe to connect to the database.
     */
    readonly credentials: pulumi.Output<outputs.DataSafe.TargetDatabaseCredentials>;
    /**
     * (Updatable) Details of the database for the registration in Data Safe.
     */
    readonly databaseDetails: pulumi.Output<outputs.DataSafe.TargetDatabaseDatabaseDetails>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}`
     */
    readonly definedTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * (Updatable) The description of the target database in Data Safe.
     */
    readonly description: pulumi.Output<string>;
    /**
     * (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
     */
    readonly displayName: pulumi.Output<string>;
    /**
     * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)  Example: `{"Department": "Finance"}`
     */
    readonly freeformTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * Details about the current state of the peer target database in Data Safe.
     */
    readonly lifecycleDetails: pulumi.Output<string>;
    /**
     * The details of the database to be registered as a peer target database.
     */
    readonly peerTargetDatabaseDetails: pulumi.Output<outputs.DataSafe.TargetDatabasePeerTargetDatabaseDetail[]>;
    /**
     * The OCIDs of associated resources like Database, Data Safe private endpoint etc.
     */
    readonly peerTargetDatabases: pulumi.Output<outputs.DataSafe.TargetDatabasePeerTargetDatabase[]>;
    /**
     * The current state of the target database in Data Safe.
     */
    readonly state: pulumi.Output<string>;
    /**
     * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    readonly systemTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * The date and time the database was registered in Data Safe and created as a target database in Data Safe.
     */
    readonly timeCreated: pulumi.Output<string>;
    /**
     * The date and time of the target database update in Data Safe.
     */
    readonly timeUpdated: pulumi.Output<string>;
    /**
     * (Updatable) The details required to establish a TLS enabled connection.
     */
    readonly tlsConfig: pulumi.Output<outputs.DataSafe.TargetDatabaseTlsConfig>;
    /**
     * Create a TargetDatabase 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: TargetDatabaseArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering TargetDatabase resources.
 */
export interface TargetDatabaseState {
    /**
     * The OCIDs of associated resources like database, Data Safe private endpoint etc.
     */
    associatedResourceIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * (Updatable) The OCID of the compartment in which to create the Data Safe target database.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Types of connection supported by Data Safe.
     */
    connectionOption?: pulumi.Input<inputs.DataSafe.TargetDatabaseConnectionOption | undefined>;
    /**
     * (Updatable) The database credentials required for Data Safe to connect to the database.
     */
    credentials?: pulumi.Input<inputs.DataSafe.TargetDatabaseCredentials | undefined>;
    /**
     * (Updatable) Details of the database for the registration in Data Safe.
     */
    databaseDetails?: pulumi.Input<inputs.DataSafe.TargetDatabaseDatabaseDetails | undefined>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) The description of the target database in Data Safe.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)  Example: `{"Department": "Finance"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Details about the current state of the peer target database in Data Safe.
     */
    lifecycleDetails?: pulumi.Input<string | undefined>;
    /**
     * The details of the database to be registered as a peer target database.
     */
    peerTargetDatabaseDetails?: pulumi.Input<pulumi.Input<inputs.DataSafe.TargetDatabasePeerTargetDatabaseDetail>[] | undefined>;
    /**
     * The OCIDs of associated resources like Database, Data Safe private endpoint etc.
     */
    peerTargetDatabases?: pulumi.Input<pulumi.Input<inputs.DataSafe.TargetDatabasePeerTargetDatabase>[] | undefined>;
    /**
     * The current state of the target database in Data Safe.
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    systemTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The date and time the database was registered in Data Safe and created as a target database in Data Safe.
     */
    timeCreated?: pulumi.Input<string | undefined>;
    /**
     * The date and time of the target database update in Data Safe.
     */
    timeUpdated?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The details required to establish a TLS enabled connection.
     */
    tlsConfig?: pulumi.Input<inputs.DataSafe.TargetDatabaseTlsConfig | undefined>;
}
/**
 * The set of arguments for constructing a TargetDatabase resource.
 */
export interface TargetDatabaseArgs {
    /**
     * (Updatable) The OCID of the compartment in which to create the Data Safe target database.
     */
    compartmentId: pulumi.Input<string>;
    /**
     * (Updatable) Types of connection supported by Data Safe.
     */
    connectionOption?: pulumi.Input<inputs.DataSafe.TargetDatabaseConnectionOption | undefined>;
    /**
     * (Updatable) The database credentials required for Data Safe to connect to the database.
     */
    credentials?: pulumi.Input<inputs.DataSafe.TargetDatabaseCredentials | undefined>;
    /**
     * (Updatable) Details of the database for the registration in Data Safe.
     */
    databaseDetails: pulumi.Input<inputs.DataSafe.TargetDatabaseDatabaseDetails>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) The description of the target database in Data Safe.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)  Example: `{"Department": "Finance"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The details of the database to be registered as a peer target database.
     */
    peerTargetDatabaseDetails?: pulumi.Input<pulumi.Input<inputs.DataSafe.TargetDatabasePeerTargetDatabaseDetail>[] | undefined>;
    /**
     * (Updatable) The details required to establish a TLS enabled connection.
     */
    tlsConfig?: pulumi.Input<inputs.DataSafe.TargetDatabaseTlsConfig | undefined>;
}
//# sourceMappingURL=targetDatabase.d.ts.map