You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"oci_apigateway_deployment""this" {
# compartment_id - (required) is a type of stringcompartment_id=var.compartment_id# defined_tags - (optional) is a type of map of stringdefined_tags=var.defined_tags# display_name - (optional) is a type of stringdisplay_name=var.display_name# freeform_tags - (optional) is a type of map of stringfreeform_tags=var.freeform_tags# gateway_id - (required) is a type of stringgateway_id=var.gateway_id# path_prefix - (required) is a type of stringpath_prefix=var.path_prefixdynamic"specification" {
for_each=var.specificationcontent {
dynamic"logging_policies" {
for_each=specification.value.logging_policiescontent {
dynamic"access_log" {
for_each=logging_policies.value.access_logcontent {
# is_enabled - (optional) is a type of boolis_enabled=access_log.value["is_enabled"]
}
}
dynamic"execution_log" {
for_each=logging_policies.value.execution_logcontent {
# is_enabled - (optional) is a type of boolis_enabled=execution_log.value["is_enabled"]
# log_level - (optional) is a type of stringlog_level=execution_log.value["log_level"]
}
}
}
}
dynamic"request_policies" {
for_each=specification.value.request_policiescontent {
dynamic"authentication" {
for_each=request_policies.value.authenticationcontent {
# audiences - (optional) is a type of list of stringaudiences=authentication.value["audiences"]
# function_id - (optional) is a type of stringfunction_id=authentication.value["function_id"]
# is_anonymous_access_allowed - (optional) is a type of boolis_anonymous_access_allowed=authentication.value["is_anonymous_access_allowed"]
# issuers - (optional) is a type of list of stringissuers=authentication.value["issuers"]
# max_clock_skew_in_seconds - (optional) is a type of numbermax_clock_skew_in_seconds=authentication.value["max_clock_skew_in_seconds"]
# token_auth_scheme - (optional) is a type of stringtoken_auth_scheme=authentication.value["token_auth_scheme"]
# token_header - (optional) is a type of stringtoken_header=authentication.value["token_header"]
# token_query_param - (optional) is a type of stringtoken_query_param=authentication.value["token_query_param"]
# type - (required) is a type of stringtype=authentication.value["type"]
dynamic"public_keys" {
for_each=authentication.value.public_keyscontent {
# is_ssl_verify_disabled - (optional) is a type of boolis_ssl_verify_disabled=public_keys.value["is_ssl_verify_disabled"]
# max_cache_duration_in_hours - (optional) is a type of numbermax_cache_duration_in_hours=public_keys.value["max_cache_duration_in_hours"]
# type - (required) is a type of stringtype=public_keys.value["type"]
# uri - (optional) is a type of stringuri=public_keys.value["uri"]
dynamic"keys" {
for_each=public_keys.value.keyscontent {
# alg - (optional) is a type of stringalg=keys.value["alg"]
# e - (optional) is a type of stringe=keys.value["e"]
# format - (required) is a type of stringformat=keys.value["format"]
# key - (optional) is a type of stringkey=keys.value["key"]
# key_ops - (optional) is a type of list of stringkey_ops=keys.value["key_ops"]
# kid - (optional) is a type of stringkid=keys.value["kid"]
# kty - (optional) is a type of stringkty=keys.value["kty"]
# n - (optional) is a type of stringn=keys.value["n"]
# use - (optional) is a type of stringuse=keys.value["use"]
}
}
}
}
dynamic"verify_claims" {
for_each=authentication.value.verify_claimscontent {
# is_required - (optional) is a type of boolis_required=verify_claims.value["is_required"]
# key - (optional) is a type of stringkey=verify_claims.value["key"]
# values - (optional) is a type of list of stringvalues=verify_claims.value["values"]
}
}
}
}
dynamic"cors" {
for_each=request_policies.value.corscontent {
# allowed_headers - (optional) is a type of list of stringallowed_headers=cors.value["allowed_headers"]
# allowed_methods - (optional) is a type of list of stringallowed_methods=cors.value["allowed_methods"]
# allowed_origins - (required) is a type of list of stringallowed_origins=cors.value["allowed_origins"]
# exposed_headers - (optional) is a type of list of stringexposed_headers=cors.value["exposed_headers"]
# is_allow_credentials_enabled - (optional) is a type of boolis_allow_credentials_enabled=cors.value["is_allow_credentials_enabled"]
# max_age_in_seconds - (optional) is a type of numbermax_age_in_seconds=cors.value["max_age_in_seconds"]
}
}
dynamic"rate_limiting" {
for_each=request_policies.value.rate_limitingcontent {
# rate_in_requests_per_second - (required) is a type of numberrate_in_requests_per_second=rate_limiting.value["rate_in_requests_per_second"]
# rate_key - (required) is a type of stringrate_key=rate_limiting.value["rate_key"]
}
}
}
}
dynamic"routes" {
for_each=specification.value.routescontent {
# methods - (optional) is a type of list of stringmethods=routes.value["methods"]
# path - (required) is a type of stringpath=routes.value["path"]
dynamic"backend" {
for_each=routes.value.backendcontent {
# body - (optional) is a type of stringbody=backend.value["body"]
# connect_timeout_in_seconds - (optional) is a type of numberconnect_timeout_in_seconds=backend.value["connect_timeout_in_seconds"]
# function_id - (optional) is a type of stringfunction_id=backend.value["function_id"]
# is_ssl_verify_disabled - (optional) is a type of boolis_ssl_verify_disabled=backend.value["is_ssl_verify_disabled"]
# read_timeout_in_seconds - (optional) is a type of numberread_timeout_in_seconds=backend.value["read_timeout_in_seconds"]
# send_timeout_in_seconds - (optional) is a type of numbersend_timeout_in_seconds=backend.value["send_timeout_in_seconds"]
# status - (optional) is a type of numberstatus=backend.value["status"]
# type - (required) is a type of stringtype=backend.value["type"]
# url - (optional) is a type of stringurl=backend.value["url"]
dynamic"headers" {
for_each=backend.value.headerscontent {
# name - (optional) is a type of stringname=headers.value["name"]
# value - (optional) is a type of stringvalue=headers.value["value"]
}
}
}
}
dynamic"logging_policies" {
for_each=routes.value.logging_policiescontent {
dynamic"access_log" {
for_each=logging_policies.value.access_logcontent {
# is_enabled - (optional) is a type of boolis_enabled=access_log.value["is_enabled"]
}
}
dynamic"execution_log" {
for_each=logging_policies.value.execution_logcontent {
# is_enabled - (optional) is a type of boolis_enabled=execution_log.value["is_enabled"]
# log_level - (optional) is a type of stringlog_level=execution_log.value["log_level"]
}
}
}
}
dynamic"request_policies" {
for_each=routes.value.request_policiescontent {
dynamic"authorization" {
for_each=request_policies.value.authorizationcontent {
# allowed_scope - (optional) is a type of list of stringallowed_scope=authorization.value["allowed_scope"]
# type - (optional) is a type of stringtype=authorization.value["type"]
}
}
dynamic"cors" {
for_each=request_policies.value.corscontent {
# allowed_headers - (optional) is a type of list of stringallowed_headers=cors.value["allowed_headers"]
# allowed_methods - (optional) is a type of list of stringallowed_methods=cors.value["allowed_methods"]
# allowed_origins - (required) is a type of list of stringallowed_origins=cors.value["allowed_origins"]
# exposed_headers - (optional) is a type of list of stringexposed_headers=cors.value["exposed_headers"]
# is_allow_credentials_enabled - (optional) is a type of boolis_allow_credentials_enabled=cors.value["is_allow_credentials_enabled"]
# max_age_in_seconds - (optional) is a type of numbermax_age_in_seconds=cors.value["max_age_in_seconds"]
}
}
dynamic"header_transformations" {
for_each=request_policies.value.header_transformationscontent {
dynamic"filter_headers" {
for_each=header_transformations.value.filter_headerscontent {
# type - (required) is a type of stringtype=filter_headers.value["type"]
dynamic"items" {
for_each=filter_headers.value.itemscontent {
# name - (required) is a type of stringname=items.value["name"]
}
}
}
}
dynamic"rename_headers" {
for_each=header_transformations.value.rename_headerscontent {
dynamic"items" {
for_each=rename_headers.value.itemscontent {
# from - (required) is a type of stringfrom=items.value["from"]
# to - (required) is a type of stringto=items.value["to"]
}
}
}
}
dynamic"set_headers" {
for_each=header_transformations.value.set_headerscontent {
dynamic"items" {
for_each=set_headers.value.itemscontent {
# if_exists - (optional) is a type of stringif_exists=items.value["if_exists"]
# name - (required) is a type of stringname=items.value["name"]
# values - (required) is a type of list of stringvalues=items.value["values"]
}
}
}
}
}
}
dynamic"query_parameter_transformations" {
for_each=request_policies.value.query_parameter_transformationscontent {
dynamic"filter_query_parameters" {
for_each=query_parameter_transformations.value.filter_query_parameterscontent {
# type - (required) is a type of stringtype=filter_query_parameters.value["type"]
dynamic"items" {
for_each=filter_query_parameters.value.itemscontent {
# name - (required) is a type of stringname=items.value["name"]
}
}
}
}
dynamic"rename_query_parameters" {
for_each=query_parameter_transformations.value.rename_query_parameterscontent {
dynamic"items" {
for_each=rename_query_parameters.value.itemscontent {
# from - (required) is a type of stringfrom=items.value["from"]
# to - (required) is a type of stringto=items.value["to"]
}
}
}
}
dynamic"set_query_parameters" {
for_each=query_parameter_transformations.value.set_query_parameterscontent {
dynamic"items" {
for_each=set_query_parameters.value.itemscontent {
# if_exists - (optional) is a type of stringif_exists=items.value["if_exists"]
# name - (required) is a type of stringname=items.value["name"]
# values - (required) is a type of list of stringvalues=items.value["values"]
}
}
}
}
}
}
}
}
dynamic"response_policies" {
for_each=routes.value.response_policiescontent {
dynamic"header_transformations" {
for_each=response_policies.value.header_transformationscontent {
dynamic"filter_headers" {
for_each=header_transformations.value.filter_headerscontent {
# type - (required) is a type of stringtype=filter_headers.value["type"]
dynamic"items" {
for_each=filter_headers.value.itemscontent {
# name - (required) is a type of stringname=items.value["name"]
}
}
}
}
dynamic"rename_headers" {
for_each=header_transformations.value.rename_headerscontent {
dynamic"items" {
for_each=rename_headers.value.itemscontent {
# from - (required) is a type of stringfrom=items.value["from"]
# to - (required) is a type of stringto=items.value["to"]
}
}
}
}
dynamic"set_headers" {
for_each=header_transformations.value.set_headerscontent {
dynamic"items" {
for_each=set_headers.value.itemscontent {
# if_exists - (optional) is a type of stringif_exists=items.value["if_exists"]
# name - (required) is a type of stringname=items.value["name"]
# values - (required) is a type of list of stringvalues=items.value["values"]
}
}
}
}
}
}
}
}
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}