# 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_SENSITIVE"),
        variables=oci.mysql.models.ConfigurationVariables(
            completion_type="CHAIN",
            big_tables=False,
            connection_memory_chunk_size=369128298,
            connection_memory_limit=7805312216053023744,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=4311270923421078016,
            global_connection_memory_tracking=False,
            transaction_isolation="READ-COMMITTED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=True,
            foreign_key_checks=True,
            group_replication_consistency="AFTER",
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=False,
            local_infile=True,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=False,
            sql_warnings=False,
            binlog_expire_logs_seconds=10,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=1573444722130953728,
            innodb_ft_result_cache_limit=3786576920,
            max_binlog_cache_size=19680748690156,
            max_connect_errors=5450208862143433729,
            max_heap_table_size=3520247169490653184,
            max_connections=94252,
            max_prepared_stmt_count=108108,
            connect_timeout=27244234,
            cte_max_recursion_depth=423505643,
            generated_random_password_length=126,
            information_schema_stats_expiry=9465894,
            innodb_buffer_pool_dump_pct=90,
            innodb_buffer_pool_instances=17,
            innodb_ddl_buffer_size=1331397062,
            innodb_ddl_threads=63,
            innodb_ft_max_token_size=67,
            innodb_ft_min_token_size=14,
            innodb_ft_num_word_optimize=656,
            innodb_lock_wait_timeout=5990405,
            innodb_max_purge_lag=2441666746,
            innodb_max_purge_lag_delay=231887,
            interactive_timeout=828657,
            innodb_stats_persistent_sample_pages=4697273079577879553,
            innodb_stats_transient_sample_pages=3369958762213391361,
            max_allowed_packet=702331299,
            max_execution_time=343153406751323136,
            mysqlx_connect_timeout=838256326,
            mysqlx_document_id_unique_prefix=6101,
            mysqlx_idle_worker_thread_timeout=3472,
            mysqlx_interactive_timeout=1053919,
            mysqlx_max_allowed_packet=483920486,
            mysqlx_min_worker_threads=84,
            mysqlx_read_timeout=582696,
            mysqlx_wait_timeout=1915220,
            mysqlx_write_timeout=1008863,
            net_read_timeout=25912668,
            net_write_timeout=22389837,
            parser_max_mem_size=9115891519820413568,
            query_alloc_block_size=4010930482,
            query_prealloc_size=7022820536155645952,
            regexp_time_limit=928855098,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=6096908078955121664,
            mysqlx_deflate_default_compression_level=1,
            mysqlx_deflate_max_client_compression_level=7,
            mysqlx_lz4_max_client_compression_level=2,
            mysqlx_lz4_default_compression_level=9,
            mysqlx_zstd_max_client_compression_level=16,
            mysqlx_zstd_default_compression_level=17,
            mysql_zstd_default_compression_level=12,
            sort_buffer_size=4968846274750909440,
            wait_timeout=773534,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=42998,
            time_zone="EXAMPLE-timeZone-Value"),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_HJLW0': 'EXAMPLE_VALUE_gh4DxTD92Tmq6EKCIvrG'},
        defined_tags={
            'EXAMPLE_KEY_TVaqK': {
                'EXAMPLE_KEY_Czwkl': 'EXAMPLE--Value'}}),
    opc_request_id="N9LXCZBCUBCN6ZHQBFWH<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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