"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MysqlConfiguration = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Mysql Configuration resource in Oracle Cloud Infrastructure MySQL Database service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/mysql/latest/MysqlConfiguration
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/mysql
 *
 * Creates a new Configuration.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testMysqlConfiguration = new oci.mysql.MysqlConfiguration("test_mysql_configuration", {
 *     compartmentId: compartmentId,
 *     shapeName: testShape.name,
 *     definedTags: {
 *         "foo-namespace.bar-key": "value",
 *     },
 *     description: mysqlConfigurationDescription,
 *     displayName: mysqlConfigurationDisplayName,
 *     freeformTags: {
 *         "bar-key": "value",
 *     },
 *     initVariables: {
 *         lowerCaseTableNames: mysqlConfigurationInitVariablesLowerCaseTableNames,
 *     },
 *     options: [{
 *         name: mysqlConfigurationOptionsName,
 *         value: mysqlConfigurationOptionsValue,
 *     }],
 *     parentConfigurationId: testConfiguration.id,
 *     variables: {
 *         autoIncrementIncrement: Number(mysqlConfigurationVariablesAutoIncrementIncrement),
 *         autoIncrementOffset: Number(mysqlConfigurationVariablesAutoIncrementOffset),
 *         autocommit: mysqlConfigurationVariablesAutocommit === "true",
 *         bigTables: mysqlConfigurationVariablesBigTables === "true",
 *         binlogExpireLogsSeconds: Number(mysqlConfigurationVariablesBinlogExpireLogsSeconds),
 *         binlogGroupCommitSyncDelay: Number(mysqlConfigurationVariablesBinlogGroupCommitSyncDelay),
 *         binlogGroupCommitSyncNoDelayCount: Number(mysqlConfigurationVariablesBinlogGroupCommitSyncNoDelayCount),
 *         binlogRowMetadata: mysqlConfigurationVariablesBinlogRowMetadata,
 *         binlogRowValueOptions: mysqlConfigurationVariablesBinlogRowValueOptions,
 *         binlogTransactionCompression: mysqlConfigurationVariablesBinlogTransactionCompression === "true",
 *         blockEncryptionMode: mysqlConfigurationVariablesBlockEncryptionMode,
 *         characterSetServer: mysqlConfigurationVariablesCharacterSetServer,
 *         collationServer: mysqlConfigurationVariablesCollationServer,
 *         completionType: mysqlConfigurationVariablesCompletionType,
 *         connectTimeout: Number(mysqlConfigurationVariablesConnectTimeout),
 *         connectionMemoryChunkSize: Number(mysqlConfigurationVariablesConnectionMemoryChunkSize),
 *         connectionMemoryLimit: mysqlConfigurationVariablesConnectionMemoryLimit,
 *         cteMaxRecursionDepth: mysqlConfigurationVariablesCteMaxRecursionDepth,
 *         defaultAuthenticationPlugin: mysqlConfigurationVariablesDefaultAuthenticationPlugin,
 *         explainFormat: mysqlConfigurationVariablesExplainFormat,
 *         explicitDefaultsForTimestamp: mysqlConfigurationVariablesExplicitDefaultsForTimestamp === "true",
 *         foreignKeyChecks: mysqlConfigurationVariablesForeignKeyChecks === "true",
 *         generatedRandomPasswordLength: Number(mysqlConfigurationVariablesGeneratedRandomPasswordLength),
 *         globalConnectionMemoryLimit: mysqlConfigurationVariablesGlobalConnectionMemoryLimit,
 *         globalConnectionMemoryTracking: mysqlConfigurationVariablesGlobalConnectionMemoryTracking === "true",
 *         groupConcatMaxLen: mysqlConfigurationVariablesGroupConcatMaxLen,
 *         groupReplicationConsistency: mysqlConfigurationVariablesGroupReplicationConsistency,
 *         informationSchemaStatsExpiry: Number(mysqlConfigurationVariablesInformationSchemaStatsExpiry),
 *         innodbAdaptiveHashIndex: mysqlConfigurationVariablesInnodbAdaptiveHashIndex === "true",
 *         innodbAutoincLockMode: Number(mysqlConfigurationVariablesInnodbAutoincLockMode),
 *         innodbBufferPoolDumpPct: Number(mysqlConfigurationVariablesInnodbBufferPoolDumpPct),
 *         innodbBufferPoolInstances: Number(mysqlConfigurationVariablesInnodbBufferPoolInstances),
 *         innodbBufferPoolSize: mysqlConfigurationVariablesInnodbBufferPoolSize,
 *         innodbChangeBuffering: mysqlConfigurationVariablesInnodbChangeBuffering,
 *         innodbDdlBufferSize: mysqlConfigurationVariablesInnodbDdlBufferSize,
 *         innodbDdlThreads: Number(mysqlConfigurationVariablesInnodbDdlThreads),
 *         innodbFtEnableStopword: mysqlConfigurationVariablesInnodbFtEnableStopword === "true",
 *         innodbFtMaxTokenSize: Number(mysqlConfigurationVariablesInnodbFtMaxTokenSize),
 *         innodbFtMinTokenSize: Number(mysqlConfigurationVariablesInnodbFtMinTokenSize),
 *         innodbFtNumWordOptimize: Number(mysqlConfigurationVariablesInnodbFtNumWordOptimize),
 *         innodbFtResultCacheLimit: mysqlConfigurationVariablesInnodbFtResultCacheLimit,
 *         innodbFtServerStopwordTable: mysqlConfigurationVariablesInnodbFtServerStopwordTable,
 *         innodbLockWaitTimeout: Number(mysqlConfigurationVariablesInnodbLockWaitTimeout),
 *         innodbLogWriterThreads: mysqlConfigurationVariablesInnodbLogWriterThreads === "true",
 *         innodbMaxPurgeLag: mysqlConfigurationVariablesInnodbMaxPurgeLag,
 *         innodbMaxPurgeLagDelay: Number(mysqlConfigurationVariablesInnodbMaxPurgeLagDelay),
 *         innodbNumaInterleave: mysqlConfigurationVariablesInnodbNumaInterleave === "true",
 *         innodbOnlineAlterLogMaxSize: mysqlConfigurationVariablesInnodbOnlineAlterLogMaxSize,
 *         innodbRedoLogCapacity: mysqlConfigurationVariablesInnodbRedoLogCapacity,
 *         innodbRollbackOnTimeout: mysqlConfigurationVariablesInnodbRollbackOnTimeout === "true",
 *         innodbSortBufferSize: Number(mysqlConfigurationVariablesInnodbSortBufferSize),
 *         innodbStatsPersistentSamplePages: mysqlConfigurationVariablesInnodbStatsPersistentSamplePages,
 *         innodbStatsTransientSamplePages: mysqlConfigurationVariablesInnodbStatsTransientSamplePages,
 *         innodbStrictMode: mysqlConfigurationVariablesInnodbStrictMode === "true",
 *         innodbUndoLogTruncate: mysqlConfigurationVariablesInnodbUndoLogTruncate === "true",
 *         interactiveTimeout: Number(mysqlConfigurationVariablesInteractiveTimeout),
 *         joinBufferSize: mysqlConfigurationVariablesJoinBufferSize,
 *         localInfile: mysqlConfigurationVariablesLocalInfile === "true",
 *         longQueryTime: Number(mysqlConfigurationVariablesLongQueryTime),
 *         mandatoryRoles: mysqlConfigurationVariablesMandatoryRoles,
 *         maxAllowedPacket: Number(mysqlConfigurationVariablesMaxAllowedPacket),
 *         maxBinlogCacheSize: mysqlConfigurationVariablesMaxBinlogCacheSize,
 *         maxConnectErrors: mysqlConfigurationVariablesMaxConnectErrors,
 *         maxConnections: Number(mysqlConfigurationVariablesMaxConnections),
 *         maxExecutionTime: mysqlConfigurationVariablesMaxExecutionTime,
 *         maxHeapTableSize: mysqlConfigurationVariablesMaxHeapTableSize,
 *         maxPreparedStmtCount: Number(mysqlConfigurationVariablesMaxPreparedStmtCount),
 *         maxSeeksForKey: mysqlConfigurationVariablesMaxSeeksForKey,
 *         maxUserConnections: mysqlConfigurationVariablesMaxUserConnections,
 *         mysqlFirewallMode: mysqlConfigurationVariablesMysqlFirewallMode === "true",
 *         mysqlZstdDefaultCompressionLevel: Number(mysqlConfigurationVariablesMysqlZstdDefaultCompressionLevel),
 *         mysqlxConnectTimeout: Number(mysqlConfigurationVariablesMysqlxConnectTimeout),
 *         mysqlxDeflateDefaultCompressionLevel: Number(mysqlConfigurationVariablesMysqlxDeflateDefaultCompressionLevel),
 *         mysqlxDeflateMaxClientCompressionLevel: Number(mysqlConfigurationVariablesMysqlxDeflateMaxClientCompressionLevel),
 *         mysqlxDocumentIdUniquePrefix: Number(mysqlConfigurationVariablesMysqlxDocumentIdUniquePrefix),
 *         mysqlxEnableHelloNotice: mysqlConfigurationVariablesMysqlxEnableHelloNotice === "true",
 *         mysqlxIdleWorkerThreadTimeout: Number(mysqlConfigurationVariablesMysqlxIdleWorkerThreadTimeout),
 *         mysqlxInteractiveTimeout: Number(mysqlConfigurationVariablesMysqlxInteractiveTimeout),
 *         mysqlxLz4defaultCompressionLevel: Number(mysqlConfigurationVariablesMysqlxLz4defaultCompressionLevel),
 *         mysqlxLz4maxClientCompressionLevel: Number(mysqlConfigurationVariablesMysqlxLz4maxClientCompressionLevel),
 *         mysqlxMaxAllowedPacket: Number(mysqlConfigurationVariablesMysqlxMaxAllowedPacket),
 *         mysqlxMinWorkerThreads: Number(mysqlConfigurationVariablesMysqlxMinWorkerThreads),
 *         mysqlxReadTimeout: Number(mysqlConfigurationVariablesMysqlxReadTimeout),
 *         mysqlxWaitTimeout: Number(mysqlConfigurationVariablesMysqlxWaitTimeout),
 *         mysqlxWriteTimeout: Number(mysqlConfigurationVariablesMysqlxWriteTimeout),
 *         mysqlxZstdDefaultCompressionLevel: Number(mysqlConfigurationVariablesMysqlxZstdDefaultCompressionLevel),
 *         mysqlxZstdMaxClientCompressionLevel: Number(mysqlConfigurationVariablesMysqlxZstdMaxClientCompressionLevel),
 *         netReadTimeout: Number(mysqlConfigurationVariablesNetReadTimeout),
 *         netWriteTimeout: Number(mysqlConfigurationVariablesNetWriteTimeout),
 *         optimizerSwitch: mysqlConfigurationVariablesOptimizerSwitch,
 *         parserMaxMemSize: mysqlConfigurationVariablesParserMaxMemSize,
 *         queryAllocBlockSize: mysqlConfigurationVariablesQueryAllocBlockSize,
 *         queryPreallocSize: mysqlConfigurationVariablesQueryPreallocSize,
 *         rangeOptimizerMaxMemSize: mysqlConfigurationVariablesRangeOptimizerMaxMemSize,
 *         regexpTimeLimit: Number(mysqlConfigurationVariablesRegexpTimeLimit),
 *         relayLogSpaceLimit: mysqlConfigurationVariablesRelayLogSpaceLimit,
 *         replicaNetTimeout: Number(mysqlConfigurationVariablesReplicaNetTimeout),
 *         replicaParallelWorkers: Number(mysqlConfigurationVariablesReplicaParallelWorkers),
 *         replicaTypeConversions: mysqlConfigurationVariablesReplicaTypeConversions,
 *         requireSecureTransport: mysqlConfigurationVariablesRequireSecureTransport === "true",
 *         skipNameResolve: mysqlConfigurationVariablesSkipNameResolve === "true",
 *         sortBufferSize: mysqlConfigurationVariablesSortBufferSize,
 *         sqlGenerateInvisiblePrimaryKey: mysqlConfigurationVariablesSqlGenerateInvisiblePrimaryKey === "true",
 *         sqlMode: mysqlConfigurationVariablesSqlMode,
 *         sqlRequirePrimaryKey: mysqlConfigurationVariablesSqlRequirePrimaryKey === "true",
 *         sqlWarnings: mysqlConfigurationVariablesSqlWarnings === "true",
 *         tableDefinitionCache: Number(mysqlConfigurationVariablesTableDefinitionCache),
 *         tableOpenCache: Number(mysqlConfigurationVariablesTableOpenCache),
 *         temptableMaxRam: mysqlConfigurationVariablesTemptableMaxRam,
 *         threadPoolDedicatedListeners: mysqlConfigurationVariablesThreadPoolDedicatedListeners === "true",
 *         threadPoolMaxTransactionsLimit: Number(mysqlConfigurationVariablesThreadPoolMaxTransactionsLimit),
 *         threadPoolQueryThreadsPerGroup: Number(mysqlConfigurationVariablesThreadPoolQueryThreadsPerGroup),
 *         threadPoolSize: Number(mysqlConfigurationVariablesThreadPoolSize),
 *         threadPoolTransactionDelay: Number(mysqlConfigurationVariablesThreadPoolTransactionDelay),
 *         timeZone: mysqlConfigurationVariablesTimeZone,
 *         tmpTableSize: mysqlConfigurationVariablesTmpTableSize,
 *         transactionIsolation: mysqlConfigurationVariablesTransactionIsolation,
 *         waitTimeout: Number(mysqlConfigurationVariablesWaitTimeout),
 *     },
 * });
 * ```
 *
 * ## Import
 *
 * MysqlConfigurations can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:Mysql/mysqlConfiguration:MysqlConfiguration test_mysql_configuration "configurations/{configurationId}"
 * ```
 */
class MysqlConfiguration extends pulumi.CustomResource {
    /**
     * Get an existing MysqlConfiguration 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, id, state, opts) {
        return new MysqlConfiguration(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:Mysql/mysqlConfiguration:MysqlConfiguration';
    /**
     * Returns true if the given object is an instance of MysqlConfiguration.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === MysqlConfiguration.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["description"] = state?.description;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["initVariables"] = state?.initVariables;
            resourceInputs["options"] = state?.options;
            resourceInputs["parentConfigurationId"] = state?.parentConfigurationId;
            resourceInputs["shapeName"] = state?.shapeName;
            resourceInputs["state"] = state?.state;
            resourceInputs["systemTags"] = state?.systemTags;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["timeUpdated"] = state?.timeUpdated;
            resourceInputs["type"] = state?.type;
            resourceInputs["variables"] = state?.variables;
        }
        else {
            const args = argsOrState;
            if (args?.compartmentId === undefined && !opts.urn) {
                throw new Error("Missing required property 'compartmentId'");
            }
            if (args?.shapeName === undefined && !opts.urn) {
                throw new Error("Missing required property 'shapeName'");
            }
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["description"] = args?.description;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["initVariables"] = args?.initVariables;
            resourceInputs["options"] = args?.options;
            resourceInputs["parentConfigurationId"] = args?.parentConfigurationId;
            resourceInputs["shapeName"] = args?.shapeName;
            resourceInputs["variables"] = args?.variables;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["systemTags"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["timeUpdated"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(MysqlConfiguration.__pulumiType, name, resourceInputs, opts);
    }
}
exports.MysqlConfiguration = MysqlConfiguration;
//# sourceMappingURL=mysqlConfiguration.js.map