# 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",
        variables=oci.mysql.models.ConfigurationVariables(
            completion_type="CHAIN",
            default_authentication_plugin="mysql_native_password",
            transaction_isolation="READ-COMMITTED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=False,
            group_replication_consistency="BEFORE_AND_AFTER",
            innodb_ft_enable_stopword=False,
            local_infile=True,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=False,
            sql_warnings=True,
            binlog_expire_logs_seconds=162,
            innodb_buffer_pool_size=552,
            innodb_ft_result_cache_limit=729,
            max_connections=604,
            max_prepared_stmt_count=135,
            connect_timeout=754,
            cte_max_recursion_depth=965,
            generated_random_password_length=384,
            information_schema_stats_expiry=481,
            innodb_buffer_pool_instances=836,
            innodb_ft_max_token_size=754,
            innodb_ft_min_token_size=910,
            innodb_ft_num_word_optimize=868,
            innodb_lock_wait_timeout=190,
            innodb_max_purge_lag=47,
            innodb_max_purge_lag_delay=780,
            max_execution_time=44,
            mysqlx_connect_timeout=147,
            mysqlx_document_id_unique_prefix=934,
            mysqlx_idle_worker_thread_timeout=825,
            mysqlx_interactive_timeout=538,
            mysqlx_max_allowed_packet=769,
            mysqlx_min_worker_threads=532,
            mysqlx_read_timeout=311,
            mysqlx_wait_timeout=564,
            mysqlx_write_timeout=64,
            parser_max_mem_size=242,
            query_alloc_block_size=619,
            query_prealloc_size=695,
            sql_mode="EXAMPLE-sqlMode-Value",
            mysqlx_deflate_default_compression_level=285,
            mysqlx_deflate_max_client_compression_level=732,
            mysqlx_lz4_max_client_compression_level=241,
            mysqlx_lz4_default_compression_level=349,
            mysqlx_zstd_max_client_compression_level=320,
            mysqlx_zstd_default_compression_level=942,
            mysql_zstd_default_compression_level=136),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_Z03W2': 'EXAMPLE_VALUE_an53jw3wUhr0SyQoa5rK'},
        defined_tags={
            'EXAMPLE_KEY_aEieA': {
                'EXAMPLE_KEY_g1Vtt': 'EXAMPLE--Value'}}),
    opc_request_id="EXRK9K29CMH8HGX9DK8D<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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