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. * MySQL support within Oracle Cloud Infrastructure Database Management service has been deprecated as of January 29, 2026. * * ## 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, 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; /** * (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; /** * (Updatable) OCID of compartment for the External MySQL Database. */ readonly compartmentId: pulumi.Output; /** * Connection Status */ readonly connectionStatus: pulumi.Output; /** * (Updatable) Create Details of external database connector. MySQL support within Oracle Cloud Infrastructure Database Management service has been deprecated as of January 29, 2026. */ readonly connectorDetails: pulumi.Output; /** * Connector Type. */ readonly connectorType: pulumi.Output; /** * Credential type used to connect to database. */ readonly credentialType: pulumi.Output; /** * OCID of MySQL Database resource */ readonly externalDatabaseId: pulumi.Output; /** * Host name for Connector. */ readonly hostName: pulumi.Output; /** * Parameter indicating whether database connection needs to be tested. */ readonly isTestConnectionParam: pulumi.Output; /** * Agent Id of the MACS agent. */ readonly macsAgentId: pulumi.Output; /** * External MySQL Database Connector Name. */ readonly name: pulumi.Output; /** * Network Protocol. */ readonly networkProtocol: pulumi.Output; /** * Connector port. */ readonly port: pulumi.Output; /** * Name of MySQL Database. */ readonly sourceDatabase: pulumi.Output; /** * Type of MySQL Database. */ readonly sourceDatabaseType: pulumi.Output; /** * OCID of the SSL secret, if TCPS with SSL is used to connect to database. */ readonly sslSecretId: pulumi.Output; /** * Name of the SSL secret, if TCPS with SSL is used to connect to database. */ readonly sslSecretName: pulumi.Output; /** * Indicates lifecycle state of the resource. */ readonly state: pulumi.Output; /** * Time when connection status was last updated. */ readonly timeConnectionStatusUpdated: pulumi.Output; /** * Connector creation time. */ readonly timeCreated: pulumi.Output; /** * Connector update time. */ readonly timeUpdated: pulumi.Output; /** * 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; /** * (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; /** * (Updatable) OCID of compartment for the External MySQL Database. */ compartmentId?: pulumi.Input; /** * Connection Status */ connectionStatus?: pulumi.Input; /** * (Updatable) Create Details of external database connector. MySQL support within Oracle Cloud Infrastructure Database Management service has been deprecated as of January 29, 2026. */ connectorDetails?: pulumi.Input; /** * Connector Type. */ connectorType?: pulumi.Input; /** * Credential type used to connect to database. */ credentialType?: pulumi.Input; /** * OCID of MySQL Database resource */ externalDatabaseId?: pulumi.Input; /** * Host name for Connector. */ hostName?: pulumi.Input; /** * Parameter indicating whether database connection needs to be tested. */ isTestConnectionParam?: pulumi.Input; /** * Agent Id of the MACS agent. */ macsAgentId?: pulumi.Input; /** * External MySQL Database Connector Name. */ name?: pulumi.Input; /** * Network Protocol. */ networkProtocol?: pulumi.Input; /** * Connector port. */ port?: pulumi.Input; /** * Name of MySQL Database. */ sourceDatabase?: pulumi.Input; /** * Type of MySQL Database. */ sourceDatabaseType?: pulumi.Input; /** * OCID of the SSL secret, if TCPS with SSL is used to connect to database. */ sslSecretId?: pulumi.Input; /** * Name of the SSL secret, if TCPS with SSL is used to connect to database. */ sslSecretName?: pulumi.Input; /** * Indicates lifecycle state of the resource. */ state?: pulumi.Input; /** * Time when connection status was last updated. */ timeConnectionStatusUpdated?: pulumi.Input; /** * Connector creation time. */ timeCreated?: pulumi.Input; /** * Connector update time. */ timeUpdated?: pulumi.Input; } /** * 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; /** * (Updatable) OCID of compartment for the External MySQL Database. */ compartmentId: pulumi.Input; /** * (Updatable) Create Details of external database connector. MySQL support within Oracle Cloud Infrastructure Database Management service has been deprecated as of January 29, 2026. */ connectorDetails: pulumi.Input; /** * Parameter indicating whether database connection needs to be tested. */ isTestConnectionParam: pulumi.Input; } //# sourceMappingURL=externalMySqlDatabaseConnector.d.ts.map