import * as pulumi from "@pulumi/pulumi"; /** * This data source provides details about a specific Protected Database Fetch Configuration resource in Oracle Cloud Infrastructure Recovery service. * * Downloads the network service configuration file 'tnsnames.ora' for a specified protected database. Applies to user-defined recovery systems only. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProtectedDatabaseFetchConfiguration = oci.recoverymod.getProtectedDatabaseFetchConfiguration({ * protectedDatabaseId: testProtectedDatabase.id, * base64EncodeContent: true, * configurationType: protectedDatabaseFetchConfigurationConfigurationType, * }); * ``` */ export declare function getProtectedDatabaseFetchConfiguration(args: GetProtectedDatabaseFetchConfigurationArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getProtectedDatabaseFetchConfiguration. */ export interface GetProtectedDatabaseFetchConfigurationArgs { /** * Encodes the downloaded config in base64. It is recommended to set this to `true` to avoid corrupting the file in Terraform state. The default value is `true`. */ base64EncodeContent?: boolean; /** * Currently has four config options ALL, TNSNAMES, HOSTS and CABUNDLE. All will return a zipped folder containing the contents of both tnsnames and the certificateChainPem. */ configurationType?: string; /** * The protected database OCID. */ protectedDatabaseId: string; } /** * A collection of values returned by getProtectedDatabaseFetchConfiguration. */ export interface GetProtectedDatabaseFetchConfigurationResult { readonly base64EncodeContent?: boolean; readonly configurationType?: string; /** * content of the downloaded config file for recovery service. It is base64 encoded by default. To store the config in plaintext set `base64EncodeContent` to false. */ readonly content: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly protectedDatabaseId: string; } /** * This data source provides details about a specific Protected Database Fetch Configuration resource in Oracle Cloud Infrastructure Recovery service. * * Downloads the network service configuration file 'tnsnames.ora' for a specified protected database. Applies to user-defined recovery systems only. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProtectedDatabaseFetchConfiguration = oci.recoverymod.getProtectedDatabaseFetchConfiguration({ * protectedDatabaseId: testProtectedDatabase.id, * base64EncodeContent: true, * configurationType: protectedDatabaseFetchConfigurationConfigurationType, * }); * ``` */ export declare function getProtectedDatabaseFetchConfigurationOutput(args: GetProtectedDatabaseFetchConfigurationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getProtectedDatabaseFetchConfiguration. */ export interface GetProtectedDatabaseFetchConfigurationOutputArgs { /** * Encodes the downloaded config in base64. It is recommended to set this to `true` to avoid corrupting the file in Terraform state. The default value is `true`. */ base64EncodeContent?: pulumi.Input; /** * Currently has four config options ALL, TNSNAMES, HOSTS and CABUNDLE. All will return a zipped folder containing the contents of both tnsnames and the certificateChainPem. */ configurationType?: pulumi.Input; /** * The protected database OCID. */ protectedDatabaseId: pulumi.Input; } //# sourceMappingURL=getProtectedDatabaseFetchConfiguration.d.ts.map