import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Target Database resource in Oracle Cloud Infrastructure Data Safe service. * * Returns the details of the specified Data Safe target database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTargetDatabase = oci.datasafe.getTargetDatabase({ * targetDatabaseId: testTargetDatabaseOciDataSafeTargetDatabase.id, * }); * ``` */ export declare function getTargetDatabase(args: GetTargetDatabaseArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTargetDatabase. */ export interface GetTargetDatabaseArgs { /** * The OCID of the Data Safe target database. */ targetDatabaseId: string; } /** * A collection of values returned by getTargetDatabase. */ export interface GetTargetDatabaseResult { /** * The OCIDs of associated resources like database, Data Safe private endpoint etc. */ readonly associatedResourceIds: string[]; /** * The OCID of the compartment which contains the Data Safe target database. */ readonly compartmentId: string; /** * Types of connection supported by Data Safe. */ readonly connectionOptions: outputs.DataSafe.GetTargetDatabaseConnectionOption[]; /** * The database credentials required for Data Safe to connect to the database. */ readonly credentials: outputs.DataSafe.GetTargetDatabaseCredential[]; /** * Details of the database for the registration in Data Safe. */ readonly databaseDetails: outputs.DataSafe.GetTargetDatabaseDatabaseDetail[]; /** * 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: { [key: string]: string; }; /** * The description of the peer target database in Data Safe. */ readonly description: string; /** * The display name of the peer target database in Data Safe. */ readonly displayName: string; /** * 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: { [key: string]: string; }; /** * The OCID of the Data Safe target database. */ readonly id: string; /** * Details about the current state of the peer target database in Data Safe. */ readonly lifecycleDetails: string; readonly peerTargetDatabaseDetails: outputs.DataSafe.GetTargetDatabasePeerTargetDatabaseDetail[]; /** * The OCIDs of associated resources like Database, Data Safe private endpoint etc. */ readonly peerTargetDatabases: outputs.DataSafe.GetTargetDatabasePeerTargetDatabase[]; /** * The current state of the target database in Data Safe. */ readonly state: 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: { [key: string]: string; }; readonly targetDatabaseId: string; /** * The date and time the database was registered in Data Safe and created as a target database in Data Safe. */ readonly timeCreated: string; /** * The date and time of the target database update in Data Safe. */ readonly timeUpdated: string; /** * The details required to establish a TLS enabled connection. */ readonly tlsConfigs: outputs.DataSafe.GetTargetDatabaseTlsConfig[]; } /** * This data source provides details about a specific Target Database resource in Oracle Cloud Infrastructure Data Safe service. * * Returns the details of the specified Data Safe target database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTargetDatabase = oci.datasafe.getTargetDatabase({ * targetDatabaseId: testTargetDatabaseOciDataSafeTargetDatabase.id, * }); * ``` */ export declare function getTargetDatabaseOutput(args: GetTargetDatabaseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTargetDatabase. */ export interface GetTargetDatabaseOutputArgs { /** * The OCID of the Data Safe target database. */ targetDatabaseId: pulumi.Input; } //# sourceMappingURL=getTargetDatabase.d.ts.map