import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the External My Sql Database Connector resource in Oracle Cloud Infrastructure Database Management service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-management/latest/ExternalMySqlDatabaseConnector
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/databasemanagement
 *
 * Creates an external MySQL connector resource.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testExternalMySqlDatabaseConnector = new oci.databasemanagement.ExternalMySqlDatabaseConnector("test_external_my_sql_database_connector", {
 *     compartmentId: compartmentId,
 *     connectorDetails: {
 *         credentialType: externalMySqlDatabaseConnectorConnectorDetailsCredentialType,
 *         displayName: externalMySqlDatabaseConnectorConnectorDetailsDisplayName,
 *         externalDatabaseId: testExternalDatabase.id,
 *         hostName: externalMySqlDatabaseConnectorConnectorDetailsHostName,
 *         macsAgentId: testAgent.id,
 *         networkProtocol: externalMySqlDatabaseConnectorConnectorDetailsNetworkProtocol,
 *         port: Number(externalMySqlDatabaseConnectorConnectorDetailsPort),
 *         sslSecretId: testSecret.id,
 *     },
 *     isTestConnectionParam: externalMySqlDatabaseConnectorIsTestConnectionParam === "true",
 * });
 * ```
 *
 * ## Import
 *
 * ExternalMySqlDatabaseConnectors can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:DatabaseManagement/externalMySqlDatabaseConnector:ExternalMySqlDatabaseConnector test_external_my_sql_database_connector "id"
 * ```
 */
export declare class ExternalMySqlDatabaseConnector extends pulumi.CustomResource {
    /**
     * Get an existing ExternalMySqlDatabaseConnector 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?: ExternalMySqlDatabaseConnectorState, opts?: pulumi.CustomResourceOptions): ExternalMySqlDatabaseConnector;
    /**
     * Returns true if the given object is an instance of ExternalMySqlDatabaseConnector.  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 ExternalMySqlDatabaseConnector;
    /**
     * Oracle Cloud Infrastructure Services associated with this connector.
     */
    readonly associatedServices: pulumi.Output<string>;
    /**
     * (Updatable) An optional property when incremented triggers Check Connection Status. Could be set to any integer value.
     *
     *
     * ** 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 checkConnectionStatusTrigger: pulumi.Output<number | undefined>;
    /**
     * (Updatable) OCID of compartment for the External MySQL Database.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * Connection Status
     */
    readonly connectionStatus: pulumi.Output<string>;
    /**
     * (Updatable) Create Details of external database connector.
     */
    readonly connectorDetails: pulumi.Output<outputs.DatabaseManagement.ExternalMySqlDatabaseConnectorConnectorDetails>;
    /**
     * Connector Type.
     */
    readonly connectorType: pulumi.Output<string>;
    /**
     * Credential type used to connect to database.
     */
    readonly credentialType: pulumi.Output<string>;
    /**
     * OCID of MySQL Database resource
     */
    readonly externalDatabaseId: pulumi.Output<string>;
    /**
     * Host name for Connector.
     */
    readonly hostName: pulumi.Output<string>;
    /**
     * Parameter indicating whether database connection needs to be tested.
     */
    readonly isTestConnectionParam: pulumi.Output<boolean>;
    /**
     * Agent Id of the MACS agent.
     */
    readonly macsAgentId: pulumi.Output<string>;
    /**
     * External MySQL Database Connector Name.
     */
    readonly name: pulumi.Output<string>;
    /**
     * Network Protocol.
     */
    readonly networkProtocol: pulumi.Output<string>;
    /**
     * Connector port.
     */
    readonly port: pulumi.Output<number>;
    /**
     * Name of MySQL Database.
     */
    readonly sourceDatabase: pulumi.Output<string>;
    /**
     * Type of MySQL Database.
     */
    readonly sourceDatabaseType: pulumi.Output<string>;
    /**
     * OCID of the SSL secret, if TCPS with SSL is used to connect to database.
     */
    readonly sslSecretId: pulumi.Output<string>;
    /**
     * Name of the SSL secret, if TCPS with SSL is used to connect to database.
     */
    readonly sslSecretName: pulumi.Output<string>;
    /**
     * Indicates lifecycle  state of the resource.
     */
    readonly state: pulumi.Output<string>;
    /**
     * Time when connection status was last updated.
     */
    readonly timeConnectionStatusUpdated: pulumi.Output<string>;
    /**
     * Connector creation time.
     */
    readonly timeCreated: pulumi.Output<string>;
    /**
     * Connector update time.
     */
    readonly timeUpdated: pulumi.Output<string>;
    /**
     * Create a ExternalMySqlDatabaseConnector 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: ExternalMySqlDatabaseConnectorArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ExternalMySqlDatabaseConnector resources.
 */
export interface ExternalMySqlDatabaseConnectorState {
    /**
     * Oracle Cloud Infrastructure Services associated with this connector.
     */
    associatedServices?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) An optional property when incremented triggers Check Connection Status. Could be set to any integer value.
     *
     *
     * ** 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
     */
    checkConnectionStatusTrigger?: pulumi.Input<number | undefined>;
    /**
     * (Updatable) OCID of compartment for the External MySQL Database.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * Connection Status
     */
    connectionStatus?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Create Details of external database connector.
     */
    connectorDetails?: pulumi.Input<inputs.DatabaseManagement.ExternalMySqlDatabaseConnectorConnectorDetails | undefined>;
    /**
     * Connector Type.
     */
    connectorType?: pulumi.Input<string | undefined>;
    /**
     * Credential type used to connect to database.
     */
    credentialType?: pulumi.Input<string | undefined>;
    /**
     * OCID of MySQL Database resource
     */
    externalDatabaseId?: pulumi.Input<string | undefined>;
    /**
     * Host name for Connector.
     */
    hostName?: pulumi.Input<string | undefined>;
    /**
     * Parameter indicating whether database connection needs to be tested.
     */
    isTestConnectionParam?: pulumi.Input<boolean | undefined>;
    /**
     * Agent Id of the MACS agent.
     */
    macsAgentId?: pulumi.Input<string | undefined>;
    /**
     * External MySQL Database Connector Name.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * Network Protocol.
     */
    networkProtocol?: pulumi.Input<string | undefined>;
    /**
     * Connector port.
     */
    port?: pulumi.Input<number | undefined>;
    /**
     * Name of MySQL Database.
     */
    sourceDatabase?: pulumi.Input<string | undefined>;
    /**
     * Type of MySQL Database.
     */
    sourceDatabaseType?: pulumi.Input<string | undefined>;
    /**
     * OCID of the SSL secret, if TCPS with SSL is used to connect to database.
     */
    sslSecretId?: pulumi.Input<string | undefined>;
    /**
     * Name of the SSL secret, if TCPS with SSL is used to connect to database.
     */
    sslSecretName?: pulumi.Input<string | undefined>;
    /**
     * Indicates lifecycle  state of the resource.
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * Time when connection status was last updated.
     */
    timeConnectionStatusUpdated?: pulumi.Input<string | undefined>;
    /**
     * Connector creation time.
     */
    timeCreated?: pulumi.Input<string | undefined>;
    /**
     * Connector update time.
     */
    timeUpdated?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a ExternalMySqlDatabaseConnector resource.
 */
export interface ExternalMySqlDatabaseConnectorArgs {
    /**
     * (Updatable) An optional property when incremented triggers Check Connection Status. Could be set to any integer value.
     *
     *
     * ** 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
     */
    checkConnectionStatusTrigger?: pulumi.Input<number | undefined>;
    /**
     * (Updatable) OCID of compartment for the External MySQL Database.
     */
    compartmentId: pulumi.Input<string>;
    /**
     * (Updatable) Create Details of external database connector.
     */
    connectorDetails: pulumi.Input<inputs.DatabaseManagement.ExternalMySqlDatabaseConnectorConnectorDetails>;
    /**
     * Parameter indicating whether database connection needs to be tested.
     */
    isTestConnectionParam: pulumi.Input<boolean>;
}
//# sourceMappingURL=externalMySqlDatabaseConnector.d.ts.map