# 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=True,
            character_set_server="CP1256",
            collation_server="LATIN1_BIN",
            connection_memory_chunk_size=380380806,
            connection_memory_limit=4387008475337611264,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=3298510521201713664,
            global_connection_memory_tracking=False,
            transaction_isolation="REPEATABLE-READ",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=False,
            group_replication_consistency="EVENTUAL",
            group_concat_max_len=3590919733670338564,
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=False,
            local_infile=False,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=False,
            sql_warnings=True,
            binlog_expire_logs_seconds=531,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=6366429385001156608,
            innodb_ft_result_cache_limit=4099068069,
            max_binlog_cache_size=60278838642952,
            max_connect_errors=3665642797178460161,
            max_heap_table_size=5579938257857499136,
            max_connections=93267,
            max_prepared_stmt_count=1817543,
            connect_timeout=11919881,
            cte_max_recursion_depth=3118493670,
            generated_random_password_length=130,
            information_schema_stats_expiry=26388713,
            innodb_buffer_pool_dump_pct=41,
            innodb_buffer_pool_instances=61,
            innodb_ddl_buffer_size=3162936006,
            innodb_ddl_threads=23,
            innodb_ft_max_token_size=80,
            innodb_ft_min_token_size=14,
            innodb_ft_num_word_optimize=555,
            innodb_lock_wait_timeout=119328381,
            innodb_max_purge_lag=771709845,
            innodb_max_purge_lag_delay=878094,
            interactive_timeout=2804087,
            innodb_stats_persistent_sample_pages=3659282530383915009,
            innodb_stats_transient_sample_pages=7196408566589107201,
            innodb_strict_mode=True,
            max_allowed_packet=196696249,
            max_execution_time=1994805776495681536,
            mysqlx_connect_timeout=973366251,
            mysqlx_document_id_unique_prefix=62350,
            mysqlx_idle_worker_thread_timeout=3217,
            mysqlx_interactive_timeout=620319,
            mysqlx_max_allowed_packet=982667507,
            mysqlx_min_worker_threads=57,
            mysqlx_read_timeout=274862,
            mysqlx_wait_timeout=1835205,
            mysqlx_write_timeout=1178497,
            net_read_timeout=25708755,
            net_write_timeout=17991603,
            parser_max_mem_size=1991800507156759168,
            query_alloc_block_size=4091108505,
            query_prealloc_size=6809232948892748800,
            regexp_time_limit=244131562,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=6623572353101249536,
            mysqlx_deflate_default_compression_level=4,
            mysqlx_deflate_max_client_compression_level=1,
            mysqlx_lz4_max_client_compression_level=9,
            mysqlx_lz4_default_compression_level=6,
            mysqlx_zstd_max_client_compression_level=5,
            mysqlx_zstd_default_compression_level=5,
            mysql_zstd_default_compression_level=6,
            sort_buffer_size=2094466539454584576,
            wait_timeout=1446323,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=32791,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=783714,
            binlog_group_commit_sync_no_delay_count=42734,
            replica_net_timeout=6690852,
            require_secure_transport=False,
            innodb_redo_log_capacity=17619000907,
            thread_pool_transaction_delay=185744,
            thread_pool_query_threads_per_group=67,
            explain_format="TREE",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=238381257221451840,
            innodb_change_buffering="CHANGES",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=True,
            table_definition_cache=26536,
            table_open_cache=328340,
            relay_log_space_limit=8674122111764927488,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=704,
            skip_name_resolve=True,
            max_user_connections=1248152560,
            join_buffer_size=3360985659902950528,
            max_seeks_for_key=4592445279013950465,
            range_optimizer_max_mem_size=2269425693593030656,
            auto_increment_increment=21668,
            auto_increment_offset=23727,
            innodb_autoinc_lock_mode=901,
            innodb_rollback_on_timeout=True,
            innodb_online_alter_log_max_size=2081573501828304384,
            innodb_sort_buffer_size=20962540,
            innodb_numa_interleave=False,
            thread_pool_size=24,
            long_query_time=11173927),
        options=[
            oci.mysql.models.Option(
                name="EXAMPLE-name-Value",
                value="EXAMPLE-value-Value")],
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_N6ORl': 'EXAMPLE_VALUE_5TUOM0BmGPkuuHmT2UfK'},
        defined_tags={
            'EXAMPLE_KEY_4PQnU': {
                'EXAMPLE_KEY_YFIxe': 'EXAMPLE--Value'}}),
    opc_request_id="4UTHUNVMXOILO1EY0VOW<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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