# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).

import oci

# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()


# Initialize service client with default config file
mysql_client = oci.mysql.MysqlaasClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
create_configuration_response = mysql_client.create_configuration(
    create_configuration_details=oci.mysql.models.CreateConfigurationDetails(
        compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
        shape_name="EXAMPLE-shapeName-Value",
        description="EXAMPLE-description-Value",
        display_name="EXAMPLE-displayName-Value",
        init_variables=oci.mysql.models.InitializationVariables(
            lower_case_table_names="CASE_INSENSITIVE_LOWERCASE"),
        variables=oci.mysql.models.ConfigurationVariables(
            completion_type="RELEASE",
            big_tables=False,
            character_set_server="KOI8U",
            collation_server="UCS2_CROATIAN_CI",
            connection_memory_chunk_size=192927682,
            connection_memory_limit=3834928129022500352,
            default_authentication_plugin="sha256_password",
            global_connection_memory_limit=1274507406713602048,
            global_connection_memory_tracking=True,
            transaction_isolation="READ-COMMITED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=True,
            foreign_key_checks=True,
            group_replication_consistency="BEFORE_AND_AFTER",
            group_concat_max_len=1256925138084925444,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=False,
            local_infile=False,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=False,
            sql_warnings=False,
            binlog_expire_logs_seconds=914,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=9108458715439586304,
            innodb_ft_result_cache_limit=324622693,
            max_binlog_cache_size=26554438194117,
            max_connect_errors=7493340565905219585,
            max_heap_table_size=8605309624583040000,
            max_connections=8524,
            max_prepared_stmt_count=1795874,
            connect_timeout=26874847,
            cte_max_recursion_depth=3053140759,
            generated_random_password_length=24,
            information_schema_stats_expiry=23401354,
            innodb_buffer_pool_dump_pct=65,
            innodb_buffer_pool_instances=23,
            innodb_ddl_buffer_size=1918027521,
            innodb_ddl_threads=46,
            innodb_ft_max_token_size=33,
            innodb_ft_min_token_size=12,
            innodb_ft_num_word_optimize=547,
            innodb_lock_wait_timeout=225668927,
            innodb_max_purge_lag=1122758422,
            innodb_max_purge_lag_delay=221885,
            interactive_timeout=18964658,
            innodb_stats_persistent_sample_pages=8791944985731747841,
            innodb_stats_transient_sample_pages=8516516716995364865,
            innodb_strict_mode=True,
            max_allowed_packet=310759071,
            max_execution_time=4670222945982518272,
            mysqlx_connect_timeout=500290376,
            mysqlx_document_id_unique_prefix=19897,
            mysqlx_idle_worker_thread_timeout=385,
            mysqlx_interactive_timeout=2022028,
            mysqlx_max_allowed_packet=322103832,
            mysqlx_min_worker_threads=24,
            mysqlx_read_timeout=1044214,
            mysqlx_wait_timeout=182181,
            mysqlx_write_timeout=1967189,
            net_read_timeout=27178733,
            net_write_timeout=24688054,
            parser_max_mem_size=7080087793118543488,
            query_alloc_block_size=2045019183,
            query_prealloc_size=2357752156821787648,
            regexp_time_limit=738632144,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=3413399474143773184,
            mysqlx_deflate_default_compression_level=5,
            mysqlx_deflate_max_client_compression_level=4,
            mysqlx_lz4_max_client_compression_level=8,
            mysqlx_lz4_default_compression_level=13,
            mysqlx_zstd_max_client_compression_level=17,
            mysqlx_zstd_default_compression_level=13,
            mysql_zstd_default_compression_level=4,
            sort_buffer_size=1045836083207482752,
            wait_timeout=1905421,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=7443,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=39003,
            binlog_group_commit_sync_no_delay_count=64710,
            replica_net_timeout=3317325,
            require_secure_transport=True,
            innodb_redo_log_capacity=14577570825,
            thread_pool_transaction_delay=96745,
            thread_pool_query_threads_per_group=2466,
            explain_format="TRADITIONAL",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=4973003394375117824,
            innodb_change_buffering="INSERTS",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=False,
            table_definition_cache=192099,
            table_open_cache=27749,
            relay_log_space_limit=2125986105223474176,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=133,
            skip_name_resolve=False,
            max_user_connections=4100890988,
            join_buffer_size=6132403214944400512,
            max_seeks_for_key=7682420465313274881,
            range_optimizer_max_mem_size=434232806223625216,
            auto_increment_increment=32614,
            auto_increment_offset=62317,
            innodb_autoinc_lock_mode=716,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=8369465958761122816,
            innodb_sort_buffer_size=19504078,
            innodb_numa_interleave=False,
            thread_pool_size=174,
            long_query_time=145984),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_8Kiyb': 'EXAMPLE_VALUE_lfJYsBV796MxRjLQAxxB'},
        defined_tags={
            'EXAMPLE_KEY_AlCVH': {
                'EXAMPLE_KEY_ULiFE': 'EXAMPLE--Value'}}),
    opc_request_id="X6IZGTICGD0AK2KTTHIW<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

# Get the data from response
print(create_configuration_response.data)