-module(aws@services@api_gateway). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/aws/services/api_gateway.gleam"). -export([new/1, new_with_auto_region/0, with_credentials_provider/2, with_endpoint_url/2, with_http_send/2, with_streaming_http_send/2, with_http2/1, with_sigv4a_region_set/2, with_sigv4a_path_normalization/2, with_max_attempts/2, with_use_dual_stack/2, with_use_fips/2, config/1, shutdown/1, shutdown_sync/2, encode_stage_key_struct/1, encode_create_api_key_request_struct/1, decode_stage_key_struct/0, decode_create_api_key_request_struct/0, decode_stage_key_struct_params/0, decode_create_api_key_request_struct_params/0, encode_api_key_struct/1, decode_api_key_struct/0, decode_api_key_struct_params/0, encode_bad_request_exception_struct/1, decode_bad_request_exception_struct/0, decode_bad_request_exception_struct_params/0, encode_conflict_exception_struct/1, decode_conflict_exception_struct/0, decode_conflict_exception_struct_params/0, encode_limit_exceeded_exception_struct/1, decode_limit_exceeded_exception_struct/0, decode_limit_exceeded_exception_struct_params/0, encode_not_found_exception_struct/1, decode_not_found_exception_struct/0, decode_not_found_exception_struct_params/0, encode_too_many_requests_exception_struct/1, decode_too_many_requests_exception_struct/0, decode_too_many_requests_exception_struct_params/0, encode_unauthorized_exception_struct/1, decode_unauthorized_exception_struct/0, decode_unauthorized_exception_struct_params/0, encode_authorizer_type_enum/1, encode_create_authorizer_request_struct/1, decode_authorizer_type_enum/0, decode_create_authorizer_request_struct/0, decode_create_authorizer_request_struct_params/0, authorizer_type_from_wire/1, encode_authorizer_struct/1, decode_authorizer_struct/0, decode_authorizer_struct_params/0, encode_create_base_path_mapping_request_struct/1, decode_create_base_path_mapping_request_struct/0, decode_create_base_path_mapping_request_struct_params/0, encode_base_path_mapping_struct/1, decode_base_path_mapping_struct/0, decode_base_path_mapping_struct_params/0, encode_deployment_canary_settings_struct/1, encode_cache_cluster_size_enum/1, encode_create_deployment_request_struct/1, decode_deployment_canary_settings_struct/0, decode_cache_cluster_size_enum/0, decode_create_deployment_request_struct/0, decode_deployment_canary_settings_struct_params/0, decode_create_deployment_request_struct_params/0, cache_cluster_size_from_wire/1, encode_method_snapshot_struct/1, encode_deployment_struct/1, decode_method_snapshot_struct/0, decode_deployment_struct/0, decode_method_snapshot_struct_params/0, decode_deployment_struct_params/0, encode_service_unavailable_exception_struct/1, decode_service_unavailable_exception_struct/0, decode_service_unavailable_exception_struct_params/0, encode_documentation_part_type_enum/1, encode_documentation_part_location_struct/1, encode_create_documentation_part_request_struct/1, decode_documentation_part_type_enum/0, decode_documentation_part_location_struct/0, decode_create_documentation_part_request_struct/0, decode_documentation_part_location_struct_params/0, decode_create_documentation_part_request_struct_params/0, documentation_part_type_from_wire/1, encode_documentation_part_struct/1, decode_documentation_part_struct/0, decode_documentation_part_struct_params/0, encode_create_documentation_version_request_struct/1, decode_create_documentation_version_request_struct/0, decode_create_documentation_version_request_struct_params/0, encode_documentation_version_struct/1, decode_documentation_version_struct/0, decode_documentation_version_struct_params/0, encode_security_policy_enum/1, encode_routing_mode_enum/1, encode_mutual_tls_authentication_input_struct/1, encode_endpoint_type_enum/1, encode_ip_address_type_enum/1, encode_endpoint_configuration_struct/1, encode_endpoint_access_mode_enum/1, encode_create_domain_name_request_struct/1, decode_security_policy_enum/0, decode_routing_mode_enum/0, decode_mutual_tls_authentication_input_struct/0, decode_endpoint_type_enum/0, decode_ip_address_type_enum/0, decode_endpoint_configuration_struct/0, decode_endpoint_access_mode_enum/0, decode_create_domain_name_request_struct/0, decode_mutual_tls_authentication_input_struct_params/0, decode_endpoint_configuration_struct_params/0, decode_create_domain_name_request_struct_params/0, endpoint_access_mode_from_wire/1, ip_address_type_from_wire/1, endpoint_type_from_wire/1, routing_mode_from_wire/1, security_policy_from_wire/1, encode_mutual_tls_authentication_struct/1, encode_domain_name_status_enum/1, encode_domain_name_struct/1, decode_mutual_tls_authentication_struct/0, decode_domain_name_status_enum/0, decode_domain_name_struct/0, decode_mutual_tls_authentication_struct_params/0, decode_domain_name_struct_params/0, domain_name_status_from_wire/1, encode_access_association_source_type_enum/1, encode_create_domain_name_access_association_request_struct/1, decode_access_association_source_type_enum/0, decode_create_domain_name_access_association_request_struct/0, decode_create_domain_name_access_association_request_struct_params/0, access_association_source_type_from_wire/1, encode_domain_name_access_association_struct/1, decode_domain_name_access_association_struct/0, decode_domain_name_access_association_struct_params/0, encode_create_model_request_struct/1, decode_create_model_request_struct/0, decode_create_model_request_struct_params/0, encode_model_struct/1, decode_model_struct/0, decode_model_struct_params/0, encode_create_request_validator_request_struct/1, decode_create_request_validator_request_struct/0, decode_create_request_validator_request_struct_params/0, encode_request_validator_struct/1, decode_request_validator_struct/0, decode_request_validator_struct_params/0, encode_create_resource_request_struct/1, decode_create_resource_request_struct/0, decode_create_resource_request_struct_params/0, encode_method_response_struct/1, encode_integration_type_enum/1, encode_tls_config_struct/1, encode_response_transfer_mode_enum/1, encode_content_handling_strategy_enum/1, encode_integration_response_struct/1, encode_connection_type_enum/1, encode_integration_struct/1, encode_method_struct/1, encode_resource_struct/1, decode_method_response_struct/0, decode_integration_type_enum/0, decode_tls_config_struct/0, decode_response_transfer_mode_enum/0, decode_content_handling_strategy_enum/0, decode_integration_response_struct/0, decode_connection_type_enum/0, decode_integration_struct/0, decode_method_struct/0, decode_resource_struct/0, decode_method_response_struct_params/0, decode_tls_config_struct_params/0, decode_integration_response_struct_params/0, decode_integration_struct_params/0, decode_method_struct_params/0, decode_resource_struct_params/0, connection_type_from_wire/1, content_handling_strategy_from_wire/1, response_transfer_mode_from_wire/1, integration_type_from_wire/1, encode_api_key_source_type_enum/1, encode_create_rest_api_request_struct/1, decode_api_key_source_type_enum/0, decode_create_rest_api_request_struct/0, decode_create_rest_api_request_struct_params/0, api_key_source_type_from_wire/1, encode_api_status_enum/1, encode_rest_api_struct/1, decode_api_status_enum/0, decode_rest_api_struct/0, decode_rest_api_struct_params/0, api_status_from_wire/1, encode_canary_settings_struct/1, encode_create_stage_request_struct/1, decode_canary_settings_struct/0, decode_create_stage_request_struct/0, decode_canary_settings_struct_params/0, decode_create_stage_request_struct_params/0, encode_unauthorized_cache_control_header_strategy_enum/1, encode_method_setting_struct/1, encode_cache_cluster_status_enum/1, encode_access_log_settings_struct/1, encode_stage_struct/1, decode_unauthorized_cache_control_header_strategy_enum/0, decode_method_setting_struct/0, decode_cache_cluster_status_enum/0, decode_access_log_settings_struct/0, decode_stage_struct/0, decode_method_setting_struct_params/0, decode_access_log_settings_struct_params/0, decode_stage_struct_params/0, cache_cluster_status_from_wire/1, unauthorized_cache_control_header_strategy_from_wire/1, encode_throttle_settings_struct/1, encode_quota_period_type_enum/1, encode_quota_settings_struct/1, encode_api_stage_struct/1, encode_create_usage_plan_request_struct/1, decode_throttle_settings_struct/0, decode_quota_period_type_enum/0, decode_quota_settings_struct/0, decode_api_stage_struct/0, decode_create_usage_plan_request_struct/0, decode_throttle_settings_struct_params/0, decode_quota_settings_struct_params/0, decode_api_stage_struct_params/0, decode_create_usage_plan_request_struct_params/0, quota_period_type_from_wire/1, encode_usage_plan_struct/1, decode_usage_plan_struct/0, decode_usage_plan_struct_params/0, encode_create_usage_plan_key_request_struct/1, decode_create_usage_plan_key_request_struct/0, decode_create_usage_plan_key_request_struct_params/0, encode_usage_plan_key_struct/1, decode_usage_plan_key_struct/0, decode_usage_plan_key_struct_params/0, encode_create_vpc_link_request_struct/1, decode_create_vpc_link_request_struct/0, decode_create_vpc_link_request_struct_params/0, encode_vpc_link_status_enum/1, encode_vpc_link_struct/1, decode_vpc_link_status_enum/0, decode_vpc_link_struct/0, decode_vpc_link_struct_params/0, vpc_link_status_from_wire/1, encode_delete_api_key_request_struct/1, decode_delete_api_key_request_struct/0, decode_delete_api_key_request_struct_params/0, encode_delete_authorizer_request_struct/1, decode_delete_authorizer_request_struct/0, decode_delete_authorizer_request_struct_params/0, encode_delete_base_path_mapping_request_struct/1, decode_delete_base_path_mapping_request_struct/0, decode_delete_base_path_mapping_request_struct_params/0, encode_delete_client_certificate_request_struct/1, decode_delete_client_certificate_request_struct/0, decode_delete_client_certificate_request_struct_params/0, encode_delete_deployment_request_struct/1, decode_delete_deployment_request_struct/0, decode_delete_deployment_request_struct_params/0, encode_delete_documentation_part_request_struct/1, decode_delete_documentation_part_request_struct/0, decode_delete_documentation_part_request_struct_params/0, encode_delete_documentation_version_request_struct/1, decode_delete_documentation_version_request_struct/0, decode_delete_documentation_version_request_struct_params/0, encode_delete_domain_name_request_struct/1, decode_delete_domain_name_request_struct/0, decode_delete_domain_name_request_struct_params/0, encode_delete_domain_name_access_association_request_struct/1, decode_delete_domain_name_access_association_request_struct/0, decode_delete_domain_name_access_association_request_struct_params/0, encode_gateway_response_type_enum/1, encode_delete_gateway_response_request_struct/1, decode_gateway_response_type_enum/0, decode_delete_gateway_response_request_struct/0, decode_delete_gateway_response_request_struct_params/0, gateway_response_type_from_wire/1, encode_delete_integration_request_struct/1, decode_delete_integration_request_struct/0, decode_delete_integration_request_struct_params/0, encode_delete_integration_response_request_struct/1, decode_delete_integration_response_request_struct/0, decode_delete_integration_response_request_struct_params/0, encode_delete_method_request_struct/1, decode_delete_method_request_struct/0, decode_delete_method_request_struct_params/0, encode_delete_method_response_request_struct/1, decode_delete_method_response_request_struct/0, decode_delete_method_response_request_struct_params/0, encode_delete_model_request_struct/1, decode_delete_model_request_struct/0, decode_delete_model_request_struct_params/0, encode_delete_request_validator_request_struct/1, decode_delete_request_validator_request_struct/0, decode_delete_request_validator_request_struct_params/0, encode_delete_resource_request_struct/1, decode_delete_resource_request_struct/0, decode_delete_resource_request_struct_params/0, encode_delete_rest_api_request_struct/1, decode_delete_rest_api_request_struct/0, decode_delete_rest_api_request_struct_params/0, encode_delete_stage_request_struct/1, decode_delete_stage_request_struct/0, decode_delete_stage_request_struct_params/0, encode_delete_usage_plan_request_struct/1, decode_delete_usage_plan_request_struct/0, decode_delete_usage_plan_request_struct_params/0, encode_delete_usage_plan_key_request_struct/1, decode_delete_usage_plan_key_request_struct/0, decode_delete_usage_plan_key_request_struct_params/0, encode_delete_vpc_link_request_struct/1, decode_delete_vpc_link_request_struct/0, decode_delete_vpc_link_request_struct_params/0, encode_flush_stage_authorizers_cache_request_struct/1, decode_flush_stage_authorizers_cache_request_struct/0, decode_flush_stage_authorizers_cache_request_struct_params/0, encode_flush_stage_cache_request_struct/1, decode_flush_stage_cache_request_struct/0, decode_flush_stage_cache_request_struct_params/0, encode_generate_client_certificate_request_struct/1, decode_generate_client_certificate_request_struct/0, decode_generate_client_certificate_request_struct_params/0, encode_client_certificate_struct/1, decode_client_certificate_struct/0, decode_client_certificate_struct_params/0, encode_get_account_request_struct/1, decode_get_account_request_struct/0, decode_get_account_request_struct_params/0, encode_account_struct/1, decode_account_struct/0, decode_account_struct_params/0, encode_get_api_key_request_struct/1, decode_get_api_key_request_struct/0, decode_get_api_key_request_struct_params/0, encode_get_api_keys_request_struct/1, decode_get_api_keys_request_struct/0, decode_get_api_keys_request_struct_params/0, encode_api_keys_struct/1, decode_api_keys_struct/0, decode_api_keys_struct_params/0, encode_get_authorizer_request_struct/1, decode_get_authorizer_request_struct/0, decode_get_authorizer_request_struct_params/0, encode_get_authorizers_request_struct/1, decode_get_authorizers_request_struct/0, decode_get_authorizers_request_struct_params/0, encode_authorizers_struct/1, decode_authorizers_struct/0, decode_authorizers_struct_params/0, encode_get_base_path_mapping_request_struct/1, decode_get_base_path_mapping_request_struct/0, decode_get_base_path_mapping_request_struct_params/0, encode_get_base_path_mappings_request_struct/1, decode_get_base_path_mappings_request_struct/0, decode_get_base_path_mappings_request_struct_params/0, encode_base_path_mappings_struct/1, decode_base_path_mappings_struct/0, decode_base_path_mappings_struct_params/0, encode_get_client_certificate_request_struct/1, decode_get_client_certificate_request_struct/0, decode_get_client_certificate_request_struct_params/0, encode_get_client_certificates_request_struct/1, decode_get_client_certificates_request_struct/0, decode_get_client_certificates_request_struct_params/0, encode_client_certificates_struct/1, decode_client_certificates_struct/0, decode_client_certificates_struct_params/0, encode_get_deployment_request_struct/1, decode_get_deployment_request_struct/0, decode_get_deployment_request_struct_params/0, encode_get_deployments_request_struct/1, decode_get_deployments_request_struct/0, decode_get_deployments_request_struct_params/0, encode_deployments_struct/1, decode_deployments_struct/0, decode_deployments_struct_params/0, encode_get_documentation_part_request_struct/1, decode_get_documentation_part_request_struct/0, decode_get_documentation_part_request_struct_params/0, encode_location_status_type_enum/1, encode_get_documentation_parts_request_struct/1, decode_location_status_type_enum/0, decode_get_documentation_parts_request_struct/0, decode_get_documentation_parts_request_struct_params/0, location_status_type_from_wire/1, encode_documentation_parts_struct/1, decode_documentation_parts_struct/0, decode_documentation_parts_struct_params/0, encode_get_documentation_version_request_struct/1, decode_get_documentation_version_request_struct/0, decode_get_documentation_version_request_struct_params/0, encode_get_documentation_versions_request_struct/1, decode_get_documentation_versions_request_struct/0, decode_get_documentation_versions_request_struct_params/0, encode_documentation_versions_struct/1, decode_documentation_versions_struct/0, decode_documentation_versions_struct_params/0, encode_get_domain_name_request_struct/1, decode_get_domain_name_request_struct/0, decode_get_domain_name_request_struct_params/0, encode_resource_owner_enum/1, encode_get_domain_name_access_associations_request_struct/1, decode_resource_owner_enum/0, decode_get_domain_name_access_associations_request_struct/0, decode_get_domain_name_access_associations_request_struct_params/0, resource_owner_from_wire/1, encode_domain_name_access_associations_struct/1, decode_domain_name_access_associations_struct/0, decode_domain_name_access_associations_struct_params/0, encode_get_domain_names_request_struct/1, decode_get_domain_names_request_struct/0, decode_get_domain_names_request_struct_params/0, encode_domain_names_struct/1, decode_domain_names_struct/0, decode_domain_names_struct_params/0, encode_get_export_request_struct/1, decode_get_export_request_struct/0, decode_get_export_request_struct_params/0, encode_export_response_struct/1, decode_export_response_struct/0, decode_export_response_struct_params/0, encode_get_gateway_response_request_struct/1, decode_get_gateway_response_request_struct/0, decode_get_gateway_response_request_struct_params/0, encode_gateway_response_struct/1, decode_gateway_response_struct/0, decode_gateway_response_struct_params/0, encode_get_gateway_responses_request_struct/1, decode_get_gateway_responses_request_struct/0, decode_get_gateway_responses_request_struct_params/0, encode_gateway_responses_struct/1, decode_gateway_responses_struct/0, decode_gateway_responses_struct_params/0, encode_get_integration_request_struct/1, decode_get_integration_request_struct/0, decode_get_integration_request_struct_params/0, encode_get_integration_response_request_struct/1, decode_get_integration_response_request_struct/0, decode_get_integration_response_request_struct_params/0, encode_get_method_request_struct/1, decode_get_method_request_struct/0, decode_get_method_request_struct_params/0, encode_get_method_response_request_struct/1, decode_get_method_response_request_struct/0, decode_get_method_response_request_struct_params/0, encode_get_model_request_struct/1, decode_get_model_request_struct/0, decode_get_model_request_struct_params/0, encode_get_models_request_struct/1, decode_get_models_request_struct/0, decode_get_models_request_struct_params/0, encode_models_struct/1, decode_models_struct/0, decode_models_struct_params/0, encode_get_model_template_request_struct/1, decode_get_model_template_request_struct/0, decode_get_model_template_request_struct_params/0, encode_template_struct/1, decode_template_struct/0, decode_template_struct_params/0, encode_get_request_validator_request_struct/1, decode_get_request_validator_request_struct/0, decode_get_request_validator_request_struct_params/0, encode_get_request_validators_request_struct/1, decode_get_request_validators_request_struct/0, decode_get_request_validators_request_struct_params/0, encode_request_validators_struct/1, decode_request_validators_struct/0, decode_request_validators_struct_params/0, encode_get_resource_request_struct/1, decode_get_resource_request_struct/0, decode_get_resource_request_struct_params/0, encode_get_resources_request_struct/1, decode_get_resources_request_struct/0, decode_get_resources_request_struct_params/0, encode_resources_struct/1, decode_resources_struct/0, decode_resources_struct_params/0, encode_get_rest_api_request_struct/1, decode_get_rest_api_request_struct/0, decode_get_rest_api_request_struct_params/0, encode_get_rest_apis_request_struct/1, decode_get_rest_apis_request_struct/0, decode_get_rest_apis_request_struct_params/0, encode_rest_apis_struct/1, decode_rest_apis_struct/0, decode_rest_apis_struct_params/0, encode_get_sdk_request_struct/1, decode_get_sdk_request_struct/0, decode_get_sdk_request_struct_params/0, encode_sdk_response_struct/1, decode_sdk_response_struct/0, decode_sdk_response_struct_params/0, encode_get_sdk_type_request_struct/1, decode_get_sdk_type_request_struct/0, decode_get_sdk_type_request_struct_params/0, encode_sdk_configuration_property_struct/1, encode_sdk_type_struct/1, decode_sdk_configuration_property_struct/0, decode_sdk_type_struct/0, decode_sdk_configuration_property_struct_params/0, decode_sdk_type_struct_params/0, encode_get_sdk_types_request_struct/1, decode_get_sdk_types_request_struct/0, decode_get_sdk_types_request_struct_params/0, encode_sdk_types_struct/1, decode_sdk_types_struct/0, decode_sdk_types_struct_params/0, encode_get_stage_request_struct/1, decode_get_stage_request_struct/0, decode_get_stage_request_struct_params/0, encode_get_stages_request_struct/1, decode_get_stages_request_struct/0, decode_get_stages_request_struct_params/0, encode_stages_struct/1, decode_stages_struct/0, decode_stages_struct_params/0, encode_get_tags_request_struct/1, decode_get_tags_request_struct/0, decode_get_tags_request_struct_params/0, encode_tags_struct/1, decode_tags_struct/0, decode_tags_struct_params/0, encode_get_usage_request_struct/1, decode_get_usage_request_struct/0, decode_get_usage_request_struct_params/0, encode_usage_struct/1, decode_usage_struct/0, decode_usage_struct_params/0, encode_get_usage_plan_request_struct/1, decode_get_usage_plan_request_struct/0, decode_get_usage_plan_request_struct_params/0, encode_get_usage_plan_key_request_struct/1, decode_get_usage_plan_key_request_struct/0, decode_get_usage_plan_key_request_struct_params/0, encode_get_usage_plan_keys_request_struct/1, decode_get_usage_plan_keys_request_struct/0, decode_get_usage_plan_keys_request_struct_params/0, encode_usage_plan_keys_struct/1, decode_usage_plan_keys_struct/0, decode_usage_plan_keys_struct_params/0, encode_get_usage_plans_request_struct/1, decode_get_usage_plans_request_struct/0, decode_get_usage_plans_request_struct_params/0, encode_usage_plans_struct/1, decode_usage_plans_struct/0, decode_usage_plans_struct_params/0, encode_get_vpc_link_request_struct/1, decode_get_vpc_link_request_struct/0, decode_get_vpc_link_request_struct_params/0, encode_get_vpc_links_request_struct/1, decode_get_vpc_links_request_struct/0, decode_get_vpc_links_request_struct_params/0, encode_vpc_links_struct/1, decode_vpc_links_struct/0, decode_vpc_links_struct_params/0, encode_api_keys_format_enum/1, encode_import_api_keys_request_struct/1, decode_api_keys_format_enum/0, decode_import_api_keys_request_struct/0, decode_import_api_keys_request_struct_params/0, api_keys_format_from_wire/1, encode_api_key_ids_struct/1, decode_api_key_ids_struct/0, decode_api_key_ids_struct_params/0, encode_put_mode_enum/1, encode_import_documentation_parts_request_struct/1, decode_put_mode_enum/0, decode_import_documentation_parts_request_struct/0, decode_import_documentation_parts_request_struct_params/0, put_mode_from_wire/1, encode_documentation_part_ids_struct/1, decode_documentation_part_ids_struct/0, decode_documentation_part_ids_struct_params/0, encode_import_rest_api_request_struct/1, decode_import_rest_api_request_struct/0, decode_import_rest_api_request_struct_params/0, encode_put_gateway_response_request_struct/1, decode_put_gateway_response_request_struct/0, decode_put_gateway_response_request_struct_params/0, encode_put_integration_request_struct/1, decode_put_integration_request_struct/0, decode_put_integration_request_struct_params/0, encode_put_integration_response_request_struct/1, decode_put_integration_response_request_struct/0, decode_put_integration_response_request_struct_params/0, encode_put_method_request_struct/1, decode_put_method_request_struct/0, decode_put_method_request_struct_params/0, encode_put_method_response_request_struct/1, decode_put_method_response_request_struct/0, decode_put_method_response_request_struct_params/0, encode_put_rest_api_request_struct/1, decode_put_rest_api_request_struct/0, decode_put_rest_api_request_struct_params/0, encode_reject_domain_name_access_association_request_struct/1, decode_reject_domain_name_access_association_request_struct/0, decode_reject_domain_name_access_association_request_struct_params/0, encode_tag_resource_request_struct/1, decode_tag_resource_request_struct/0, decode_tag_resource_request_struct_params/0, encode_test_invoke_authorizer_request_struct/1, decode_test_invoke_authorizer_request_struct/0, decode_test_invoke_authorizer_request_struct_params/0, encode_test_invoke_authorizer_response_struct/1, decode_test_invoke_authorizer_response_struct/0, decode_test_invoke_authorizer_response_struct_params/0, encode_test_invoke_method_request_struct/1, decode_test_invoke_method_request_struct/0, decode_test_invoke_method_request_struct_params/0, encode_test_invoke_method_response_struct/1, decode_test_invoke_method_response_struct/0, decode_test_invoke_method_response_struct_params/0, encode_untag_resource_request_struct/1, decode_untag_resource_request_struct/0, decode_untag_resource_request_struct_params/0, encode_op_enum/1, encode_patch_operation_struct/1, encode_update_account_request_struct/1, decode_op_enum/0, decode_patch_operation_struct/0, decode_update_account_request_struct/0, decode_patch_operation_struct_params/0, decode_update_account_request_struct_params/0, op_from_wire/1, encode_update_api_key_request_struct/1, decode_update_api_key_request_struct/0, decode_update_api_key_request_struct_params/0, encode_update_authorizer_request_struct/1, decode_update_authorizer_request_struct/0, decode_update_authorizer_request_struct_params/0, encode_update_base_path_mapping_request_struct/1, decode_update_base_path_mapping_request_struct/0, decode_update_base_path_mapping_request_struct_params/0, encode_update_client_certificate_request_struct/1, decode_update_client_certificate_request_struct/0, decode_update_client_certificate_request_struct_params/0, encode_update_deployment_request_struct/1, decode_update_deployment_request_struct/0, decode_update_deployment_request_struct_params/0, encode_update_documentation_part_request_struct/1, decode_update_documentation_part_request_struct/0, decode_update_documentation_part_request_struct_params/0, encode_update_documentation_version_request_struct/1, decode_update_documentation_version_request_struct/0, decode_update_documentation_version_request_struct_params/0, encode_update_domain_name_request_struct/1, decode_update_domain_name_request_struct/0, decode_update_domain_name_request_struct_params/0, encode_update_gateway_response_request_struct/1, decode_update_gateway_response_request_struct/0, decode_update_gateway_response_request_struct_params/0, encode_update_integration_request_struct/1, decode_update_integration_request_struct/0, decode_update_integration_request_struct_params/0, encode_update_integration_response_request_struct/1, decode_update_integration_response_request_struct/0, decode_update_integration_response_request_struct_params/0, encode_update_method_request_struct/1, decode_update_method_request_struct/0, decode_update_method_request_struct_params/0, encode_update_method_response_request_struct/1, decode_update_method_response_request_struct/0, decode_update_method_response_request_struct_params/0, encode_update_model_request_struct/1, decode_update_model_request_struct/0, decode_update_model_request_struct_params/0, encode_update_request_validator_request_struct/1, decode_update_request_validator_request_struct/0, decode_update_request_validator_request_struct_params/0, encode_update_resource_request_struct/1, decode_update_resource_request_struct/0, decode_update_resource_request_struct_params/0, encode_update_rest_api_request_struct/1, decode_update_rest_api_request_struct/0, decode_update_rest_api_request_struct_params/0, encode_update_stage_request_struct/1, decode_update_stage_request_struct/0, decode_update_stage_request_struct_params/0, encode_update_usage_request_struct/1, decode_update_usage_request_struct/0, decode_update_usage_request_struct_params/0, encode_update_usage_plan_request_struct/1, decode_update_usage_plan_request_struct/0, decode_update_usage_plan_request_struct_params/0, encode_update_vpc_link_request_struct/1, decode_update_vpc_link_request_struct/0, decode_update_vpc_link_request_struct_params/0, encode_create_api_key_input/1, decode_create_api_key_input/1, decode_create_api_key_output/1, encode_create_api_key_body/1, build_create_api_key_request/1, parse_create_api_key_response/3, encode_create_authorizer_input/1, decode_create_authorizer_input/1, decode_create_authorizer_output/1, encode_create_authorizer_body/1, build_create_authorizer_request/1, parse_create_authorizer_response/3, encode_create_base_path_mapping_input/1, decode_create_base_path_mapping_input/1, decode_create_base_path_mapping_output/1, encode_create_base_path_mapping_body/1, build_create_base_path_mapping_request/1, parse_create_base_path_mapping_response/3, encode_create_deployment_input/1, decode_create_deployment_input/1, decode_create_deployment_output/1, encode_create_deployment_body/1, build_create_deployment_request/1, parse_create_deployment_response/3, encode_create_documentation_part_input/1, decode_create_documentation_part_input/1, decode_create_documentation_part_output/1, encode_create_documentation_part_body/1, build_create_documentation_part_request/1, parse_create_documentation_part_response/3, encode_create_documentation_version_input/1, decode_create_documentation_version_input/1, decode_create_documentation_version_output/1, encode_create_documentation_version_body/1, build_create_documentation_version_request/1, parse_create_documentation_version_response/3, encode_create_domain_name_input/1, decode_create_domain_name_input/1, decode_create_domain_name_output/1, encode_create_domain_name_body/1, build_create_domain_name_request/1, parse_create_domain_name_response/3, encode_create_domain_name_access_association_input/1, decode_create_domain_name_access_association_input/1, decode_create_domain_name_access_association_output/1, encode_create_domain_name_access_association_body/1, build_create_domain_name_access_association_request/1, parse_create_domain_name_access_association_response/3, encode_create_model_input/1, decode_create_model_input/1, decode_create_model_output/1, encode_create_model_body/1, build_create_model_request/1, parse_create_model_response/3, encode_create_request_validator_input/1, decode_create_request_validator_input/1, decode_create_request_validator_output/1, encode_create_request_validator_body/1, build_create_request_validator_request/1, parse_create_request_validator_response/3, encode_create_resource_input/1, decode_create_resource_input/1, decode_create_resource_output/1, encode_create_resource_body/1, build_create_resource_request/1, parse_create_resource_response/3, encode_create_rest_api_input/1, decode_create_rest_api_input/1, decode_create_rest_api_output/1, encode_create_rest_api_body/1, build_create_rest_api_request/1, parse_create_rest_api_response/3, encode_create_stage_input/1, decode_create_stage_input/1, decode_create_stage_output/1, encode_create_stage_body/1, build_create_stage_request/1, parse_create_stage_response/3, encode_create_usage_plan_input/1, decode_create_usage_plan_input/1, decode_create_usage_plan_output/1, encode_create_usage_plan_body/1, build_create_usage_plan_request/1, parse_create_usage_plan_response/3, encode_create_usage_plan_key_input/1, decode_create_usage_plan_key_input/1, decode_create_usage_plan_key_output/1, encode_create_usage_plan_key_body/1, build_create_usage_plan_key_request/1, parse_create_usage_plan_key_response/3, encode_create_vpc_link_input/1, decode_create_vpc_link_input/1, decode_create_vpc_link_output/1, encode_create_vpc_link_body/1, build_create_vpc_link_request/1, parse_create_vpc_link_response/3, encode_delete_api_key_output_struct/1, decode_delete_api_key_output_struct/0, encode_delete_api_key_input/1, decode_delete_api_key_input/1, decode_delete_api_key_output/1, encode_delete_api_key_body/1, build_delete_api_key_request/1, parse_delete_api_key_response/3, encode_delete_authorizer_output_struct/1, decode_delete_authorizer_output_struct/0, encode_delete_authorizer_input/1, decode_delete_authorizer_input/1, decode_delete_authorizer_output/1, encode_delete_authorizer_body/1, build_delete_authorizer_request/1, parse_delete_authorizer_response/3, encode_delete_base_path_mapping_output_struct/1, decode_delete_base_path_mapping_output_struct/0, encode_delete_base_path_mapping_input/1, decode_delete_base_path_mapping_input/1, decode_delete_base_path_mapping_output/1, encode_delete_base_path_mapping_body/1, build_delete_base_path_mapping_request/1, parse_delete_base_path_mapping_response/3, encode_delete_client_certificate_output_struct/1, decode_delete_client_certificate_output_struct/0, encode_delete_client_certificate_input/1, decode_delete_client_certificate_input/1, decode_delete_client_certificate_output/1, encode_delete_client_certificate_body/1, build_delete_client_certificate_request/1, parse_delete_client_certificate_response/3, encode_delete_deployment_output_struct/1, decode_delete_deployment_output_struct/0, encode_delete_deployment_input/1, decode_delete_deployment_input/1, decode_delete_deployment_output/1, encode_delete_deployment_body/1, build_delete_deployment_request/1, parse_delete_deployment_response/3, encode_delete_documentation_part_output_struct/1, decode_delete_documentation_part_output_struct/0, encode_delete_documentation_part_input/1, decode_delete_documentation_part_input/1, decode_delete_documentation_part_output/1, encode_delete_documentation_part_body/1, build_delete_documentation_part_request/1, parse_delete_documentation_part_response/3, encode_delete_documentation_version_output_struct/1, decode_delete_documentation_version_output_struct/0, encode_delete_documentation_version_input/1, decode_delete_documentation_version_input/1, decode_delete_documentation_version_output/1, encode_delete_documentation_version_body/1, build_delete_documentation_version_request/1, parse_delete_documentation_version_response/3, encode_delete_domain_name_output_struct/1, decode_delete_domain_name_output_struct/0, encode_delete_domain_name_input/1, decode_delete_domain_name_input/1, decode_delete_domain_name_output/1, encode_delete_domain_name_body/1, build_delete_domain_name_request/1, parse_delete_domain_name_response/3, encode_delete_domain_name_access_association_output_struct/1, decode_delete_domain_name_access_association_output_struct/0, encode_delete_domain_name_access_association_input/1, decode_delete_domain_name_access_association_input/1, decode_delete_domain_name_access_association_output/1, encode_delete_domain_name_access_association_body/1, build_delete_domain_name_access_association_request/1, parse_delete_domain_name_access_association_response/3, encode_delete_gateway_response_output_struct/1, decode_delete_gateway_response_output_struct/0, encode_delete_gateway_response_input/1, decode_delete_gateway_response_input/1, decode_delete_gateway_response_output/1, encode_delete_gateway_response_body/1, build_delete_gateway_response_request/1, parse_delete_gateway_response_response/3, encode_delete_integration_output_struct/1, decode_delete_integration_output_struct/0, encode_delete_integration_input/1, decode_delete_integration_input/1, decode_delete_integration_output/1, encode_delete_integration_body/1, build_delete_integration_request/1, parse_delete_integration_response/3, encode_delete_integration_response_output_struct/1, decode_delete_integration_response_output_struct/0, encode_delete_integration_response_input/1, decode_delete_integration_response_input/1, decode_delete_integration_response_output/1, encode_delete_integration_response_body/1, build_delete_integration_response_request/1, parse_delete_integration_response_response/3, encode_delete_method_output_struct/1, decode_delete_method_output_struct/0, encode_delete_method_input/1, decode_delete_method_input/1, decode_delete_method_output/1, encode_delete_method_body/1, build_delete_method_request/1, parse_delete_method_response/3, encode_delete_method_response_output_struct/1, decode_delete_method_response_output_struct/0, encode_delete_method_response_input/1, decode_delete_method_response_input/1, decode_delete_method_response_output/1, encode_delete_method_response_body/1, build_delete_method_response_request/1, parse_delete_method_response_response/3, encode_delete_model_output_struct/1, decode_delete_model_output_struct/0, encode_delete_model_input/1, decode_delete_model_input/1, decode_delete_model_output/1, encode_delete_model_body/1, build_delete_model_request/1, parse_delete_model_response/3, encode_delete_request_validator_output_struct/1, decode_delete_request_validator_output_struct/0, encode_delete_request_validator_input/1, decode_delete_request_validator_input/1, decode_delete_request_validator_output/1, encode_delete_request_validator_body/1, build_delete_request_validator_request/1, parse_delete_request_validator_response/3, encode_delete_resource_output_struct/1, decode_delete_resource_output_struct/0, encode_delete_resource_input/1, decode_delete_resource_input/1, decode_delete_resource_output/1, encode_delete_resource_body/1, build_delete_resource_request/1, parse_delete_resource_response/3, encode_delete_rest_api_output_struct/1, decode_delete_rest_api_output_struct/0, encode_delete_rest_api_input/1, decode_delete_rest_api_input/1, decode_delete_rest_api_output/1, encode_delete_rest_api_body/1, build_delete_rest_api_request/1, parse_delete_rest_api_response/3, encode_delete_stage_output_struct/1, decode_delete_stage_output_struct/0, encode_delete_stage_input/1, decode_delete_stage_input/1, decode_delete_stage_output/1, encode_delete_stage_body/1, build_delete_stage_request/1, parse_delete_stage_response/3, encode_delete_usage_plan_output_struct/1, decode_delete_usage_plan_output_struct/0, encode_delete_usage_plan_input/1, decode_delete_usage_plan_input/1, decode_delete_usage_plan_output/1, encode_delete_usage_plan_body/1, build_delete_usage_plan_request/1, parse_delete_usage_plan_response/3, encode_delete_usage_plan_key_output_struct/1, decode_delete_usage_plan_key_output_struct/0, encode_delete_usage_plan_key_input/1, decode_delete_usage_plan_key_input/1, decode_delete_usage_plan_key_output/1, encode_delete_usage_plan_key_body/1, build_delete_usage_plan_key_request/1, parse_delete_usage_plan_key_response/3, encode_delete_vpc_link_output_struct/1, decode_delete_vpc_link_output_struct/0, encode_delete_vpc_link_input/1, decode_delete_vpc_link_input/1, decode_delete_vpc_link_output/1, encode_delete_vpc_link_body/1, build_delete_vpc_link_request/1, parse_delete_vpc_link_response/3, encode_flush_stage_authorizers_cache_output_struct/1, decode_flush_stage_authorizers_cache_output_struct/0, encode_flush_stage_authorizers_cache_input/1, decode_flush_stage_authorizers_cache_input/1, decode_flush_stage_authorizers_cache_output/1, encode_flush_stage_authorizers_cache_body/1, build_flush_stage_authorizers_cache_request/1, parse_flush_stage_authorizers_cache_response/3, encode_flush_stage_cache_output_struct/1, decode_flush_stage_cache_output_struct/0, encode_flush_stage_cache_input/1, decode_flush_stage_cache_input/1, decode_flush_stage_cache_output/1, encode_flush_stage_cache_body/1, build_flush_stage_cache_request/1, parse_flush_stage_cache_response/3, encode_generate_client_certificate_input/1, decode_generate_client_certificate_input/1, decode_generate_client_certificate_output/1, encode_generate_client_certificate_body/1, build_generate_client_certificate_request/1, parse_generate_client_certificate_response/3, encode_get_account_input/1, decode_get_account_input/1, decode_get_account_output/1, encode_get_account_body/1, build_get_account_request/1, parse_get_account_response/3, encode_get_api_key_input/1, decode_get_api_key_input/1, decode_get_api_key_output/1, encode_get_api_key_body/1, build_get_api_key_request/1, parse_get_api_key_response/3, encode_get_api_keys_input/1, decode_get_api_keys_input/1, decode_get_api_keys_output/1, encode_get_api_keys_body/1, build_get_api_keys_request/1, parse_get_api_keys_response/3, encode_get_authorizer_input/1, decode_get_authorizer_input/1, decode_get_authorizer_output/1, encode_get_authorizer_body/1, build_get_authorizer_request/1, parse_get_authorizer_response/3, encode_get_authorizers_input/1, decode_get_authorizers_input/1, decode_get_authorizers_output/1, encode_get_authorizers_body/1, build_get_authorizers_request/1, parse_get_authorizers_response/3, encode_get_base_path_mapping_input/1, decode_get_base_path_mapping_input/1, decode_get_base_path_mapping_output/1, encode_get_base_path_mapping_body/1, build_get_base_path_mapping_request/1, parse_get_base_path_mapping_response/3, encode_get_base_path_mappings_input/1, decode_get_base_path_mappings_input/1, decode_get_base_path_mappings_output/1, encode_get_base_path_mappings_body/1, build_get_base_path_mappings_request/1, parse_get_base_path_mappings_response/3, encode_get_client_certificate_input/1, decode_get_client_certificate_input/1, decode_get_client_certificate_output/1, encode_get_client_certificate_body/1, build_get_client_certificate_request/1, parse_get_client_certificate_response/3, encode_get_client_certificates_input/1, decode_get_client_certificates_input/1, decode_get_client_certificates_output/1, encode_get_client_certificates_body/1, build_get_client_certificates_request/1, parse_get_client_certificates_response/3, encode_get_deployment_input/1, decode_get_deployment_input/1, decode_get_deployment_output/1, encode_get_deployment_body/1, build_get_deployment_request/1, parse_get_deployment_response/3, encode_get_deployments_input/1, decode_get_deployments_input/1, decode_get_deployments_output/1, encode_get_deployments_body/1, build_get_deployments_request/1, parse_get_deployments_response/3, encode_get_documentation_part_input/1, decode_get_documentation_part_input/1, decode_get_documentation_part_output/1, encode_get_documentation_part_body/1, build_get_documentation_part_request/1, parse_get_documentation_part_response/3, encode_get_documentation_parts_input/1, decode_get_documentation_parts_input/1, decode_get_documentation_parts_output/1, encode_get_documentation_parts_body/1, build_get_documentation_parts_request/1, parse_get_documentation_parts_response/3, encode_get_documentation_version_input/1, decode_get_documentation_version_input/1, decode_get_documentation_version_output/1, encode_get_documentation_version_body/1, build_get_documentation_version_request/1, parse_get_documentation_version_response/3, encode_get_documentation_versions_input/1, decode_get_documentation_versions_input/1, decode_get_documentation_versions_output/1, encode_get_documentation_versions_body/1, build_get_documentation_versions_request/1, parse_get_documentation_versions_response/3, encode_get_domain_name_input/1, decode_get_domain_name_input/1, decode_get_domain_name_output/1, encode_get_domain_name_body/1, build_get_domain_name_request/1, parse_get_domain_name_response/3, encode_get_domain_name_access_associations_input/1, decode_get_domain_name_access_associations_input/1, decode_get_domain_name_access_associations_output/1, encode_get_domain_name_access_associations_body/1, build_get_domain_name_access_associations_request/1, parse_get_domain_name_access_associations_response/3, encode_get_domain_names_input/1, decode_get_domain_names_input/1, decode_get_domain_names_output/1, encode_get_domain_names_body/1, build_get_domain_names_request/1, parse_get_domain_names_response/3, encode_get_export_input/1, decode_get_export_input/1, decode_get_export_output/1, encode_get_export_body/1, build_get_export_request/1, parse_get_export_response/3, encode_get_gateway_response_input/1, decode_get_gateway_response_input/1, decode_get_gateway_response_output/1, encode_get_gateway_response_body/1, build_get_gateway_response_request/1, parse_get_gateway_response_response/3, encode_get_gateway_responses_input/1, decode_get_gateway_responses_input/1, decode_get_gateway_responses_output/1, encode_get_gateway_responses_body/1, build_get_gateway_responses_request/1, parse_get_gateway_responses_response/3, encode_get_integration_input/1, decode_get_integration_input/1, decode_get_integration_output/1, encode_get_integration_body/1, build_get_integration_request/1, parse_get_integration_response/3, encode_get_integration_response_input/1, decode_get_integration_response_input/1, decode_get_integration_response_output/1, encode_get_integration_response_body/1, build_get_integration_response_request/1, parse_get_integration_response_response/3, encode_get_method_input/1, decode_get_method_input/1, decode_get_method_output/1, encode_get_method_body/1, build_get_method_request/1, parse_get_method_response/3, encode_get_method_response_input/1, decode_get_method_response_input/1, decode_get_method_response_output/1, encode_get_method_response_body/1, build_get_method_response_request/1, parse_get_method_response_response/3, encode_get_model_input/1, decode_get_model_input/1, decode_get_model_output/1, encode_get_model_body/1, build_get_model_request/1, parse_get_model_response/3, encode_get_models_input/1, decode_get_models_input/1, decode_get_models_output/1, encode_get_models_body/1, build_get_models_request/1, parse_get_models_response/3, encode_get_model_template_input/1, decode_get_model_template_input/1, decode_get_model_template_output/1, encode_get_model_template_body/1, build_get_model_template_request/1, parse_get_model_template_response/3, encode_get_request_validator_input/1, decode_get_request_validator_input/1, decode_get_request_validator_output/1, encode_get_request_validator_body/1, build_get_request_validator_request/1, parse_get_request_validator_response/3, encode_get_request_validators_input/1, decode_get_request_validators_input/1, decode_get_request_validators_output/1, encode_get_request_validators_body/1, build_get_request_validators_request/1, parse_get_request_validators_response/3, encode_get_resource_input/1, decode_get_resource_input/1, decode_get_resource_output/1, encode_get_resource_body/1, build_get_resource_request/1, parse_get_resource_response/3, encode_get_resources_input/1, decode_get_resources_input/1, decode_get_resources_output/1, encode_get_resources_body/1, build_get_resources_request/1, parse_get_resources_response/3, encode_get_rest_api_input/1, decode_get_rest_api_input/1, decode_get_rest_api_output/1, encode_get_rest_api_body/1, build_get_rest_api_request/1, parse_get_rest_api_response/3, encode_get_rest_apis_input/1, decode_get_rest_apis_input/1, decode_get_rest_apis_output/1, encode_get_rest_apis_body/1, build_get_rest_apis_request/1, parse_get_rest_apis_response/3, encode_get_sdk_input/1, decode_get_sdk_input/1, decode_get_sdk_output/1, encode_get_sdk_body/1, build_get_sdk_request/1, parse_get_sdk_response/3, encode_get_sdk_type_input/1, decode_get_sdk_type_input/1, decode_get_sdk_type_output/1, encode_get_sdk_type_body/1, build_get_sdk_type_request/1, parse_get_sdk_type_response/3, encode_get_sdk_types_input/1, decode_get_sdk_types_input/1, decode_get_sdk_types_output/1, encode_get_sdk_types_body/1, build_get_sdk_types_request/1, parse_get_sdk_types_response/3, encode_get_stage_input/1, decode_get_stage_input/1, decode_get_stage_output/1, encode_get_stage_body/1, build_get_stage_request/1, parse_get_stage_response/3, encode_get_stages_input/1, decode_get_stages_input/1, decode_get_stages_output/1, encode_get_stages_body/1, build_get_stages_request/1, parse_get_stages_response/3, encode_get_tags_input/1, decode_get_tags_input/1, decode_get_tags_output/1, encode_get_tags_body/1, build_get_tags_request/1, parse_get_tags_response/3, encode_get_usage_input/1, decode_get_usage_input/1, decode_get_usage_output/1, encode_get_usage_body/1, build_get_usage_request/1, parse_get_usage_response/3, encode_get_usage_plan_input/1, decode_get_usage_plan_input/1, decode_get_usage_plan_output/1, encode_get_usage_plan_body/1, build_get_usage_plan_request/1, parse_get_usage_plan_response/3, encode_get_usage_plan_key_input/1, decode_get_usage_plan_key_input/1, decode_get_usage_plan_key_output/1, encode_get_usage_plan_key_body/1, build_get_usage_plan_key_request/1, parse_get_usage_plan_key_response/3, encode_get_usage_plan_keys_input/1, decode_get_usage_plan_keys_input/1, decode_get_usage_plan_keys_output/1, encode_get_usage_plan_keys_body/1, build_get_usage_plan_keys_request/1, parse_get_usage_plan_keys_response/3, encode_get_usage_plans_input/1, decode_get_usage_plans_input/1, decode_get_usage_plans_output/1, encode_get_usage_plans_body/1, build_get_usage_plans_request/1, parse_get_usage_plans_response/3, encode_get_vpc_link_input/1, decode_get_vpc_link_input/1, decode_get_vpc_link_output/1, encode_get_vpc_link_body/1, build_get_vpc_link_request/1, parse_get_vpc_link_response/3, encode_get_vpc_links_input/1, decode_get_vpc_links_input/1, decode_get_vpc_links_output/1, encode_get_vpc_links_body/1, build_get_vpc_links_request/1, parse_get_vpc_links_response/3, encode_import_api_keys_input/1, decode_import_api_keys_input/1, decode_import_api_keys_output/1, encode_import_api_keys_body/1, build_import_api_keys_request/1, parse_import_api_keys_response/3, encode_import_documentation_parts_input/1, decode_import_documentation_parts_input/1, decode_import_documentation_parts_output/1, encode_import_documentation_parts_body/1, build_import_documentation_parts_request/1, parse_import_documentation_parts_response/3, encode_import_rest_api_input/1, decode_import_rest_api_input/1, decode_import_rest_api_output/1, encode_import_rest_api_body/1, build_import_rest_api_request/1, parse_import_rest_api_response/3, encode_put_gateway_response_input/1, decode_put_gateway_response_input/1, decode_put_gateway_response_output/1, encode_put_gateway_response_body/1, build_put_gateway_response_request/1, parse_put_gateway_response_response/3, encode_put_integration_input/1, decode_put_integration_input/1, decode_put_integration_output/1, encode_put_integration_body/1, build_put_integration_request/1, parse_put_integration_response/3, encode_put_integration_response_input/1, decode_put_integration_response_input/1, decode_put_integration_response_output/1, encode_put_integration_response_body/1, build_put_integration_response_request/1, parse_put_integration_response_response/3, encode_put_method_input/1, decode_put_method_input/1, decode_put_method_output/1, encode_put_method_body/1, build_put_method_request/1, parse_put_method_response/3, encode_put_method_response_input/1, decode_put_method_response_input/1, decode_put_method_response_output/1, encode_put_method_response_body/1, build_put_method_response_request/1, parse_put_method_response_response/3, encode_put_rest_api_input/1, decode_put_rest_api_input/1, decode_put_rest_api_output/1, encode_put_rest_api_body/1, build_put_rest_api_request/1, parse_put_rest_api_response/3, encode_reject_domain_name_access_association_output_struct/1, decode_reject_domain_name_access_association_output_struct/0, encode_reject_domain_name_access_association_input/1, decode_reject_domain_name_access_association_input/1, decode_reject_domain_name_access_association_output/1, encode_reject_domain_name_access_association_body/1, build_reject_domain_name_access_association_request/1, parse_reject_domain_name_access_association_response/3, encode_tag_resource_output_struct/1, decode_tag_resource_output_struct/0, encode_tag_resource_input/1, decode_tag_resource_input/1, decode_tag_resource_output/1, encode_tag_resource_body/1, build_tag_resource_request/1, parse_tag_resource_response/3, encode_test_invoke_authorizer_input/1, decode_test_invoke_authorizer_input/1, decode_test_invoke_authorizer_output/1, encode_test_invoke_authorizer_body/1, build_test_invoke_authorizer_request/1, parse_test_invoke_authorizer_response/3, encode_test_invoke_method_input/1, decode_test_invoke_method_input/1, decode_test_invoke_method_output/1, encode_test_invoke_method_body/1, build_test_invoke_method_request/1, parse_test_invoke_method_response/3, encode_untag_resource_output_struct/1, decode_untag_resource_output_struct/0, encode_untag_resource_input/1, decode_untag_resource_input/1, decode_untag_resource_output/1, encode_untag_resource_body/1, build_untag_resource_request/1, parse_untag_resource_response/3, encode_update_account_input/1, decode_update_account_input/1, decode_update_account_output/1, encode_update_account_body/1, build_update_account_request/1, parse_update_account_response/3, encode_update_api_key_input/1, decode_update_api_key_input/1, decode_update_api_key_output/1, encode_update_api_key_body/1, build_update_api_key_request/1, parse_update_api_key_response/3, encode_update_authorizer_input/1, decode_update_authorizer_input/1, decode_update_authorizer_output/1, encode_update_authorizer_body/1, build_update_authorizer_request/1, parse_update_authorizer_response/3, encode_update_base_path_mapping_input/1, decode_update_base_path_mapping_input/1, decode_update_base_path_mapping_output/1, encode_update_base_path_mapping_body/1, build_update_base_path_mapping_request/1, parse_update_base_path_mapping_response/3, encode_update_client_certificate_input/1, decode_update_client_certificate_input/1, decode_update_client_certificate_output/1, encode_update_client_certificate_body/1, build_update_client_certificate_request/1, parse_update_client_certificate_response/3, encode_update_deployment_input/1, decode_update_deployment_input/1, decode_update_deployment_output/1, encode_update_deployment_body/1, build_update_deployment_request/1, parse_update_deployment_response/3, encode_update_documentation_part_input/1, decode_update_documentation_part_input/1, decode_update_documentation_part_output/1, encode_update_documentation_part_body/1, build_update_documentation_part_request/1, parse_update_documentation_part_response/3, encode_update_documentation_version_input/1, decode_update_documentation_version_input/1, decode_update_documentation_version_output/1, encode_update_documentation_version_body/1, build_update_documentation_version_request/1, parse_update_documentation_version_response/3, encode_update_domain_name_input/1, decode_update_domain_name_input/1, decode_update_domain_name_output/1, encode_update_domain_name_body/1, build_update_domain_name_request/1, parse_update_domain_name_response/3, encode_update_gateway_response_input/1, decode_update_gateway_response_input/1, decode_update_gateway_response_output/1, encode_update_gateway_response_body/1, build_update_gateway_response_request/1, parse_update_gateway_response_response/3, encode_update_integration_input/1, decode_update_integration_input/1, decode_update_integration_output/1, encode_update_integration_body/1, build_update_integration_request/1, parse_update_integration_response/3, encode_update_integration_response_input/1, decode_update_integration_response_input/1, decode_update_integration_response_output/1, encode_update_integration_response_body/1, build_update_integration_response_request/1, parse_update_integration_response_response/3, encode_update_method_input/1, decode_update_method_input/1, decode_update_method_output/1, encode_update_method_body/1, build_update_method_request/1, parse_update_method_response/3, encode_update_method_response_input/1, decode_update_method_response_input/1, decode_update_method_response_output/1, encode_update_method_response_body/1, build_update_method_response_request/1, parse_update_method_response_response/3, encode_update_model_input/1, decode_update_model_input/1, decode_update_model_output/1, encode_update_model_body/1, build_update_model_request/1, parse_update_model_response/3, encode_update_request_validator_input/1, decode_update_request_validator_input/1, decode_update_request_validator_output/1, encode_update_request_validator_body/1, build_update_request_validator_request/1, parse_update_request_validator_response/3, encode_update_resource_input/1, decode_update_resource_input/1, decode_update_resource_output/1, encode_update_resource_body/1, build_update_resource_request/1, parse_update_resource_response/3, encode_update_rest_api_input/1, decode_update_rest_api_input/1, decode_update_rest_api_output/1, encode_update_rest_api_body/1, build_update_rest_api_request/1, parse_update_rest_api_response/3, encode_update_stage_input/1, decode_update_stage_input/1, decode_update_stage_output/1, encode_update_stage_body/1, build_update_stage_request/1, parse_update_stage_response/3, encode_update_usage_input/1, decode_update_usage_input/1, decode_update_usage_output/1, encode_update_usage_body/1, build_update_usage_request/1, parse_update_usage_response/3, encode_update_usage_plan_input/1, decode_update_usage_plan_input/1, decode_update_usage_plan_output/1, encode_update_usage_plan_body/1, build_update_usage_plan_request/1, parse_update_usage_plan_response/3, encode_update_vpc_link_input/1, decode_update_vpc_link_input/1, decode_update_vpc_link_output/1, encode_update_vpc_link_body/1, build_update_vpc_link_request/1, parse_update_vpc_link_response/3, parse_bad_request_exception_response/3, parse_conflict_exception_response/3, parse_limit_exceeded_exception_response/3, parse_not_found_exception_response/3, parse_too_many_requests_exception_response/3, parse_unauthorized_exception_response/3, parse_service_unavailable_exception_response/3, create_api_key/2, create_authorizer/2, create_base_path_mapping/2, create_deployment/2, create_documentation_part/2, create_documentation_version/2, create_domain_name/2, create_domain_name_access_association/2, create_model/2, create_request_validator/2, create_resource/2, create_rest_api/2, create_stage/2, create_usage_plan/2, create_usage_plan_key/2, create_vpc_link/2, delete_api_key/2, delete_authorizer/2, delete_base_path_mapping/2, delete_client_certificate/2, delete_deployment/2, delete_documentation_part/2, delete_documentation_version/2, delete_domain_name/2, delete_domain_name_access_association/2, delete_gateway_response/2, delete_integration/2, delete_integration_response/2, delete_method/2, delete_method_response/2, delete_model/2, delete_request_validator/2, delete_resource/2, delete_rest_api/2, delete_stage/2, delete_usage_plan/2, delete_usage_plan_key/2, delete_vpc_link/2, flush_stage_authorizers_cache/2, flush_stage_cache/2, generate_client_certificate/2, get_account/2, get_api_key/2, get_api_keys/2, get_authorizer/2, get_authorizers/2, get_base_path_mapping/2, get_base_path_mappings/2, get_client_certificate/2, get_client_certificates/2, get_deployment/2, get_deployments/2, get_documentation_part/2, get_documentation_parts/2, get_documentation_version/2, get_documentation_versions/2, get_domain_name/2, get_domain_name_access_associations/2, get_domain_names/2, get_export/2, get_gateway_response/2, get_gateway_responses/2, get_integration/2, get_integration_response/2, get_method/2, get_method_response/2, get_model/2, get_models/2, get_model_template/2, get_request_validator/2, get_request_validators/2, get_resource/2, get_resources/2, get_rest_api/2, get_rest_apis/2, get_sdk/2, get_sdk_type/2, get_sdk_types/2, get_stage/2, get_stages/2, get_tags/2, get_usage/2, get_usage_plan/2, get_usage_plan_key/2, get_usage_plan_keys/2, get_usage_plans/2, get_vpc_link/2, get_vpc_links/2, import_api_keys/2, import_documentation_parts/2, import_rest_api/2, put_gateway_response/2, put_integration/2, put_integration_response/2, put_method/2, put_method_response/2, put_rest_api/2, reject_domain_name_access_association/2, tag_resource/2, test_invoke_authorizer/2, test_invoke_method/2, untag_resource/2, update_account/2, update_api_key/2, update_authorizer/2, update_base_path_mapping/2, update_client_certificate/2, update_deployment/2, update_documentation_part/2, update_documentation_version/2, update_domain_name/2, update_gateway_response/2, update_integration/2, update_integration_response/2, update_method/2, update_method_response/2, update_model/2, update_request_validator/2, update_resource/2, update_rest_api/2, update_stage/2, update_usage/2, update_usage_plan/2, update_vpc_link/2, paginate_get_api_keys/4, paginate_get_base_path_mappings/4, paginate_get_client_certificates/4, paginate_get_deployments/4, paginate_get_domain_names/4, paginate_get_models/4, paginate_get_resources/4, paginate_get_rest_apis/4, paginate_get_usage_plan_keys/4, paginate_get_usage_plans/4, paginate_get_vpc_links/4]). -export_type([client/0, create_api_key_request/0, stage_key/0, api_key/0, bad_request_exception/0, conflict_exception/0, limit_exceeded_exception/0, not_found_exception/0, too_many_requests_exception/0, unauthorized_exception/0, create_authorizer_request/0, authorizer_type/0, authorizer/0, create_base_path_mapping_request/0, base_path_mapping/0, create_deployment_request/0, cache_cluster_size/0, deployment_canary_settings/0, deployment/0, method_snapshot/0, service_unavailable_exception/0, create_documentation_part_request/0, documentation_part_location/0, documentation_part_type/0, documentation_part/0, create_documentation_version_request/0, documentation_version/0, create_domain_name_request/0, endpoint_access_mode/0, endpoint_configuration/0, ip_address_type/0, endpoint_type/0, mutual_tls_authentication_input/0, routing_mode/0, security_policy/0, domain_name/0, domain_name_status/0, mutual_tls_authentication/0, create_domain_name_access_association_request/0, access_association_source_type/0, domain_name_access_association/0, create_model_request/0, model/0, create_request_validator_request/0, request_validator/0, create_resource_request/0, resource/0, method/0, integration/0, connection_type/0, content_handling_strategy/0, integration_response/0, response_transfer_mode/0, tls_config/0, integration_type/0, method_response/0, create_rest_api_request/0, api_key_source_type/0, rest_api/0, api_status/0, create_stage_request/0, canary_settings/0, stage/0, access_log_settings/0, cache_cluster_status/0, method_setting/0, unauthorized_cache_control_header_strategy/0, create_usage_plan_request/0, api_stage/0, throttle_settings/0, quota_settings/0, quota_period_type/0, usage_plan/0, create_usage_plan_key_request/0, usage_plan_key/0, create_vpc_link_request/0, vpc_link/0, vpc_link_status/0, delete_api_key_request/0, delete_authorizer_request/0, delete_base_path_mapping_request/0, delete_client_certificate_request/0, delete_deployment_request/0, delete_documentation_part_request/0, delete_documentation_version_request/0, delete_domain_name_request/0, delete_domain_name_access_association_request/0, delete_gateway_response_request/0, gateway_response_type/0, delete_integration_request/0, delete_integration_response_request/0, delete_method_request/0, delete_method_response_request/0, delete_model_request/0, delete_request_validator_request/0, delete_resource_request/0, delete_rest_api_request/0, delete_stage_request/0, delete_usage_plan_request/0, delete_usage_plan_key_request/0, delete_vpc_link_request/0, flush_stage_authorizers_cache_request/0, flush_stage_cache_request/0, generate_client_certificate_request/0, client_certificate/0, get_account_request/0, account/0, get_api_key_request/0, get_api_keys_request/0, api_keys/0, get_authorizer_request/0, get_authorizers_request/0, authorizers/0, get_base_path_mapping_request/0, get_base_path_mappings_request/0, base_path_mappings/0, get_client_certificate_request/0, get_client_certificates_request/0, client_certificates/0, get_deployment_request/0, get_deployments_request/0, deployments/0, get_documentation_part_request/0, get_documentation_parts_request/0, location_status_type/0, documentation_parts/0, get_documentation_version_request/0, get_documentation_versions_request/0, documentation_versions/0, get_domain_name_request/0, get_domain_name_access_associations_request/0, resource_owner/0, domain_name_access_associations/0, get_domain_names_request/0, domain_names/0, get_export_request/0, export_response/0, get_gateway_response_request/0, gateway_response/0, get_gateway_responses_request/0, gateway_responses/0, get_integration_request/0, get_integration_response_request/0, get_method_request/0, get_method_response_request/0, get_model_request/0, get_models_request/0, models/0, get_model_template_request/0, template/0, get_request_validator_request/0, get_request_validators_request/0, request_validators/0, get_resource_request/0, get_resources_request/0, resources/0, get_rest_api_request/0, get_rest_apis_request/0, rest_apis/0, get_sdk_request/0, sdk_response/0, get_sdk_type_request/0, sdk_type/0, sdk_configuration_property/0, get_sdk_types_request/0, sdk_types/0, get_stage_request/0, get_stages_request/0, stages/0, get_tags_request/0, tags/0, get_usage_request/0, usage/0, get_usage_plan_request/0, get_usage_plan_key_request/0, get_usage_plan_keys_request/0, usage_plan_keys/0, get_usage_plans_request/0, usage_plans/0, get_vpc_link_request/0, get_vpc_links_request/0, vpc_links/0, import_api_keys_request/0, api_keys_format/0, api_key_ids/0, import_documentation_parts_request/0, put_mode/0, documentation_part_ids/0, import_rest_api_request/0, put_gateway_response_request/0, put_integration_request/0, put_integration_response_request/0, put_method_request/0, put_method_response_request/0, put_rest_api_request/0, reject_domain_name_access_association_request/0, tag_resource_request/0, test_invoke_authorizer_request/0, test_invoke_authorizer_response/0, test_invoke_method_request/0, test_invoke_method_response/0, untag_resource_request/0, update_account_request/0, patch_operation/0, op/0, update_api_key_request/0, update_authorizer_request/0, update_base_path_mapping_request/0, update_client_certificate_request/0, update_deployment_request/0, update_documentation_part_request/0, update_documentation_version_request/0, update_domain_name_request/0, update_gateway_response_request/0, update_integration_request/0, update_integration_response_request/0, update_method_request/0, update_method_response_request/0, update_model_request/0, update_request_validator_request/0, update_resource_request/0, update_rest_api_request/0, update_stage_request/0, update_usage_request/0, update_usage_plan_request/0, update_vpc_link_request/0, delete_api_key_output/0, delete_authorizer_output/0, delete_base_path_mapping_output/0, delete_client_certificate_output/0, delete_deployment_output/0, delete_documentation_part_output/0, delete_documentation_version_output/0, delete_domain_name_output/0, delete_domain_name_access_association_output/0, delete_gateway_response_output/0, delete_integration_output/0, delete_integration_response_output/0, delete_method_output/0, delete_method_response_output/0, delete_model_output/0, delete_request_validator_output/0, delete_resource_output/0, delete_rest_api_output/0, delete_stage_output/0, delete_usage_plan_output/0, delete_usage_plan_key_output/0, delete_vpc_link_output/0, flush_stage_authorizers_cache_output/0, flush_stage_cache_output/0, reject_domain_name_access_association_output/0, tag_resource_output/0, untag_resource_output/0, create_api_key_error/0, create_authorizer_error/0, create_base_path_mapping_error/0, create_deployment_error/0, create_documentation_part_error/0, create_documentation_version_error/0, create_domain_name_error/0, create_domain_name_access_association_error/0, create_model_error/0, create_request_validator_error/0, create_resource_error/0, create_rest_api_error/0, create_stage_error/0, create_usage_plan_error/0, create_usage_plan_key_error/0, create_vpc_link_error/0, delete_api_key_error/0, delete_authorizer_error/0, delete_base_path_mapping_error/0, delete_client_certificate_error/0, delete_deployment_error/0, delete_documentation_part_error/0, delete_documentation_version_error/0, delete_domain_name_error/0, delete_domain_name_access_association_error/0, delete_gateway_response_error/0, delete_integration_error/0, delete_integration_response_error/0, delete_method_error/0, delete_method_response_error/0, delete_model_error/0, delete_request_validator_error/0, delete_resource_error/0, delete_rest_api_error/0, delete_stage_error/0, delete_usage_plan_error/0, delete_usage_plan_key_error/0, delete_vpc_link_error/0, flush_stage_authorizers_cache_error/0, flush_stage_cache_error/0, generate_client_certificate_error/0, get_account_error/0, get_api_key_error/0, get_api_keys_error/0, get_authorizer_error/0, get_authorizers_error/0, get_base_path_mapping_error/0, get_base_path_mappings_error/0, get_client_certificate_error/0, get_client_certificates_error/0, get_deployment_error/0, get_deployments_error/0, get_documentation_part_error/0, get_documentation_parts_error/0, get_documentation_version_error/0, get_documentation_versions_error/0, get_domain_name_error/0, get_domain_name_access_associations_error/0, get_domain_names_error/0, get_export_error/0, get_gateway_response_error/0, get_gateway_responses_error/0, get_integration_error/0, get_integration_response_error/0, get_method_error/0, get_method_response_error/0, get_model_error/0, get_models_error/0, get_model_template_error/0, get_request_validator_error/0, get_request_validators_error/0, get_resource_error/0, get_resources_error/0, get_rest_api_error/0, get_rest_apis_error/0, get_sdk_error/0, get_sdk_type_error/0, get_sdk_types_error/0, get_stage_error/0, get_stages_error/0, get_tags_error/0, get_usage_error/0, get_usage_plan_error/0, get_usage_plan_key_error/0, get_usage_plan_keys_error/0, get_usage_plans_error/0, get_vpc_link_error/0, get_vpc_links_error/0, import_api_keys_error/0, import_documentation_parts_error/0, import_rest_api_error/0, put_gateway_response_error/0, put_integration_error/0, put_integration_response_error/0, put_method_error/0, put_method_response_error/0, put_rest_api_error/0, reject_domain_name_access_association_error/0, tag_resource_error/0, test_invoke_authorizer_error/0, test_invoke_method_error/0, untag_resource_error/0, update_account_error/0, update_api_key_error/0, update_authorizer_error/0, update_base_path_mapping_error/0, update_client_certificate_error/0, update_deployment_error/0, update_documentation_part_error/0, update_documentation_version_error/0, update_domain_name_error/0, update_gateway_response_error/0, update_integration_error/0, update_integration_response_error/0, update_method_error/0, update_method_response_error/0, update_model_error/0, update_request_validator_error/0, update_resource_error/0, update_rest_api_error/0, update_stage_error/0, update_usage_error/0, update_usage_plan_error/0, update_vpc_link_error/0]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. ?MODULEDOC( " Generated from com.amazonaws.apigateway#BackplaneControlService (restJson1).\n" " DO NOT EDIT. Re-generate via the codegen subproject.\n" ). -opaque client() :: {client, aws@internal@client@runtime:client_config(), aws@internal@credentials_cache:cache()}. -type create_api_key_request() :: {create_api_key_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(boolean()), gleam@option:option(binary()), gleam@option:option(list(stage_key())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary())}. -type stage_key() :: {stage_key, gleam@option:option(binary()), gleam@option:option(binary())}. -type api_key() :: {api_key, gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(binary()), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(list(binary())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary())}. -type bad_request_exception() :: {bad_request_exception, gleam@option:option(binary())}. -type conflict_exception() :: {conflict_exception, gleam@option:option(binary())}. -type limit_exceeded_exception() :: {limit_exceeded_exception, gleam@option:option(binary()), gleam@option:option(binary())}. -type not_found_exception() :: {not_found_exception, gleam@option:option(binary())}. -type too_many_requests_exception() :: {too_many_requests_exception, gleam@option:option(binary()), gleam@option:option(binary())}. -type unauthorized_exception() :: {unauthorized_exception, gleam@option:option(binary())}. -type create_authorizer_request() :: {create_authorizer_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(list(binary())), gleam@option:option(binary()), gleam@option:option(authorizer_type())}. -type authorizer_type() :: authorizer_type_cognito_user_pools | authorizer_type_request | authorizer_type_token. -type authorizer() :: {authorizer, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(list(binary())), gleam@option:option(authorizer_type())}. -type create_base_path_mapping_request() :: {create_base_path_mapping_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type base_path_mapping() :: {base_path_mapping, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type create_deployment_request() :: {create_deployment_request, gleam@option:option(boolean()), gleam@option:option(cache_cluster_size()), gleam@option:option(deployment_canary_settings()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type cache_cluster_size() :: cache_cluster_size_size0_point5_gb | cache_cluster_size_size118_gb | cache_cluster_size_size13_point5_gb | cache_cluster_size_size1_point6_gb | cache_cluster_size_size237_gb | cache_cluster_size_size28_point4_gb | cache_cluster_size_size58_point2_gb | cache_cluster_size_size6_point1_gb. -type deployment_canary_settings() :: {deployment_canary_settings, gleam@option:option(aws@internal@codec@json_float:smithy_float()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(boolean())}. -type deployment() :: {deployment, gleam@option:option(gleam@dict:dict(binary(), gleam@dict:dict(binary(), method_snapshot()))), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(binary())}. -type method_snapshot() :: {method_snapshot, gleam@option:option(boolean()), gleam@option:option(binary())}. -type service_unavailable_exception() :: {service_unavailable_exception, gleam@option:option(binary()), gleam@option:option(binary())}. -type create_documentation_part_request() :: {create_documentation_part_request, gleam@option:option(documentation_part_location()), gleam@option:option(binary()), gleam@option:option(binary())}. -type documentation_part_location() :: {documentation_part_location, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(documentation_part_type())}. -type documentation_part_type() :: documentation_part_type_api | documentation_part_type_authorizer | documentation_part_type_method | documentation_part_type_model | documentation_part_type_path_parameter | documentation_part_type_query_parameter | documentation_part_type_request_body | documentation_part_type_request_header | documentation_part_type_resource | documentation_part_type_response | documentation_part_type_response_body | documentation_part_type_response_header. -type documentation_part() :: {documentation_part, gleam@option:option(binary()), gleam@option:option(documentation_part_location()), gleam@option:option(binary())}. -type create_documentation_version_request() :: {create_documentation_version_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type documentation_version() :: {documentation_version, gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(binary())}. -type create_domain_name_request() :: {create_domain_name_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(endpoint_access_mode()), gleam@option:option(endpoint_configuration()), gleam@option:option(mutual_tls_authentication_input()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(routing_mode()), gleam@option:option(security_policy()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type endpoint_access_mode() :: endpoint_access_mode_basic | endpoint_access_mode_strict. -type endpoint_configuration() :: {endpoint_configuration, gleam@option:option(ip_address_type()), gleam@option:option(list(endpoint_type())), gleam@option:option(list(binary()))}. -type ip_address_type() :: ip_address_type_dualstack | ip_address_type_ipv4. -type endpoint_type() :: endpoint_type_edge | endpoint_type_private | endpoint_type_regional. -type mutual_tls_authentication_input() :: {mutual_tls_authentication_input, gleam@option:option(binary()), gleam@option:option(binary())}. -type routing_mode() :: routing_mode_base_path_mapping_only | routing_mode_routing_rule_only | routing_mode_routing_rule_then_base_path_mapping. -type security_policy() :: security_policy_securitypolicy_tls122018_edge | security_policy_securitypolicy_tls12_pfs2025_edge | security_policy_securitypolicy_tls1312202106 | security_policy_securitypolicy_tls1312_fips_pfs_pq202509 | security_policy_securitypolicy_tls1312_fips_pq202509 | security_policy_securitypolicy_tls1312_pfs_pq202509 | security_policy_securitypolicy_tls1312_pq202509 | security_policy_securitypolicy_tls1313202509 | security_policy_securitypolicy_tls1313_fips202509 | security_policy_securitypolicy_tls132025_edge | security_policy_tls10 | security_policy_tls12. -type domain_name() :: {domain_name, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(domain_name_status()), gleam@option:option(binary()), gleam@option:option(endpoint_access_mode()), gleam@option:option(endpoint_configuration()), gleam@option:option(binary()), gleam@option:option(mutual_tls_authentication()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(routing_mode()), gleam@option:option(security_policy()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type domain_name_status() :: domain_name_status_available | domain_name_status_failed | domain_name_status_pending | domain_name_status_pending_certificate_reimport | domain_name_status_pending_ownership_verification | domain_name_status_updating. -type mutual_tls_authentication() :: {mutual_tls_authentication, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(list(binary()))}. -type create_domain_name_access_association_request() :: {create_domain_name_access_association_request, gleam@option:option(binary()), gleam@option:option(access_association_source_type()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type access_association_source_type() :: access_association_source_type_vpce. -type domain_name_access_association() :: {domain_name_access_association, gleam@option:option(binary()), gleam@option:option(access_association_source_type()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type create_model_request() :: {create_model_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type model() :: {model, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type create_request_validator_request() :: {create_request_validator_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(boolean())}. -type request_validator() :: {request_validator, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(boolean())}. -type create_resource_request() :: {create_resource_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type resource() :: {resource, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), method()))}. -type method() :: {method, gleam@option:option(boolean()), gleam@option:option(list(binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(integration()), gleam@option:option(gleam@dict:dict(binary(), method_response())), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), boolean())), gleam@option:option(binary())}. -type integration() :: {integration, gleam@option:option(list(binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(connection_type()), gleam@option:option(content_handling_strategy()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), integration_response())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(response_transfer_mode()), gleam@option:option(integer()), gleam@option:option(tls_config()), gleam@option:option(integration_type()), gleam@option:option(binary())}. -type connection_type() :: connection_type_internet | connection_type_vpc_link. -type content_handling_strategy() :: content_handling_strategy_convert_to_binary | content_handling_strategy_convert_to_text. -type integration_response() :: {integration_response, gleam@option:option(content_handling_strategy()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(binary())}. -type response_transfer_mode() :: response_transfer_mode_buffered | response_transfer_mode_stream. -type tls_config() :: {tls_config, gleam@option:option(boolean())}. -type integration_type() :: integration_type_aws | integration_type_aws_proxy | integration_type_http | integration_type_http_proxy | integration_type_mock. -type method_response() :: {method_response, gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), boolean())), gleam@option:option(binary())}. -type create_rest_api_request() :: {create_rest_api_request, gleam@option:option(api_key_source_type()), gleam@option:option(list(binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(endpoint_access_mode()), gleam@option:option(endpoint_configuration()), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(security_policy()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary())}. -type api_key_source_type() :: api_key_source_type_authorizer | api_key_source_type_header. -type rest_api() :: {rest_api, gleam@option:option(api_key_source_type()), gleam@option:option(api_status()), gleam@option:option(binary()), gleam@option:option(list(binary())), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(endpoint_access_mode()), gleam@option:option(endpoint_configuration()), gleam@option:option(binary()), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(security_policy()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(list(binary()))}. -type api_status() :: api_status_available | api_status_failed | api_status_pending | api_status_updating. -type create_stage_request() :: {create_stage_request, gleam@option:option(boolean()), gleam@option:option(cache_cluster_size()), gleam@option:option(canary_settings()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(boolean()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type canary_settings() :: {canary_settings, gleam@option:option(binary()), gleam@option:option(aws@internal@codec@json_float:smithy_float()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(boolean())}. -type stage() :: {stage, gleam@option:option(access_log_settings()), gleam@option:option(boolean()), gleam@option:option(cache_cluster_size()), gleam@option:option(cache_cluster_status()), gleam@option:option(canary_settings()), gleam@option:option(binary()), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(gleam@dict:dict(binary(), method_setting())), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(boolean()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary())}. -type access_log_settings() :: {access_log_settings, gleam@option:option(binary()), gleam@option:option(binary())}. -type cache_cluster_status() :: cache_cluster_status_available | cache_cluster_status_create_in_progress | cache_cluster_status_delete_in_progress | cache_cluster_status_flush_in_progress | cache_cluster_status_not_available. -type method_setting() :: {method_setting, gleam@option:option(boolean()), gleam@option:option(integer()), gleam@option:option(boolean()), gleam@option:option(boolean()), gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(boolean()), gleam@option:option(integer()), gleam@option:option(aws@internal@codec@json_float:smithy_float()), gleam@option:option(unauthorized_cache_control_header_strategy())}. -type unauthorized_cache_control_header_strategy() :: unauthorized_cache_control_header_strategy_fail_with403 | unauthorized_cache_control_header_strategy_succeed_without_response_header | unauthorized_cache_control_header_strategy_succeed_with_response_header. -type create_usage_plan_request() :: {create_usage_plan_request, gleam@option:option(list(api_stage())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(quota_settings()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(throttle_settings())}. -type api_stage() :: {api_stage, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), throttle_settings()))}. -type throttle_settings() :: {throttle_settings, gleam@option:option(integer()), gleam@option:option(aws@internal@codec@json_float:smithy_float())}. -type quota_settings() :: {quota_settings, gleam@option:option(integer()), gleam@option:option(integer()), gleam@option:option(quota_period_type())}. -type quota_period_type() :: quota_period_type_day | quota_period_type_month | quota_period_type_week. -type usage_plan() :: {usage_plan, gleam@option:option(list(api_stage())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(quota_settings()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(throttle_settings())}. -type create_usage_plan_key_request() :: {create_usage_plan_key_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type usage_plan_key() :: {usage_plan_key, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type create_vpc_link_request() :: {create_vpc_link_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(list(binary()))}. -type vpc_link() :: {vpc_link, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(vpc_link_status()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(list(binary()))}. -type vpc_link_status() :: vpc_link_status_available | vpc_link_status_deleting | vpc_link_status_failed | vpc_link_status_pending. -type delete_api_key_request() :: {delete_api_key_request, gleam@option:option(binary())}. -type delete_authorizer_request() :: {delete_authorizer_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_base_path_mapping_request() :: {delete_base_path_mapping_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_client_certificate_request() :: {delete_client_certificate_request, gleam@option:option(binary())}. -type delete_deployment_request() :: {delete_deployment_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_documentation_part_request() :: {delete_documentation_part_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_documentation_version_request() :: {delete_documentation_version_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_domain_name_request() :: {delete_domain_name_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_domain_name_access_association_request() :: {delete_domain_name_access_association_request, gleam@option:option(binary())}. -type delete_gateway_response_request() :: {delete_gateway_response_request, gleam@option:option(gateway_response_type()), gleam@option:option(binary())}. -type gateway_response_type() :: gateway_response_type_access_denied | gateway_response_type_api_configuration_error | gateway_response_type_authorizer_configuration_error | gateway_response_type_authorizer_failure | gateway_response_type_bad_request_body | gateway_response_type_bad_request_parameters | gateway_response_type_default4xx | gateway_response_type_default5xx | gateway_response_type_expired_token | gateway_response_type_integration_failure | gateway_response_type_integration_timeout | gateway_response_type_invalid_api_key | gateway_response_type_invalid_signature | gateway_response_type_missing_authentication_token | gateway_response_type_quota_exceeded | gateway_response_type_request_too_large | gateway_response_type_resource_not_found | gateway_response_type_throttled | gateway_response_type_unauthorized | gateway_response_type_unsupported_media_type | gateway_response_type_waf_filtered. -type delete_integration_request() :: {delete_integration_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_integration_response_request() :: {delete_integration_response_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_method_request() :: {delete_method_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_method_response_request() :: {delete_method_response_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_model_request() :: {delete_model_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_request_validator_request() :: {delete_request_validator_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_resource_request() :: {delete_resource_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_rest_api_request() :: {delete_rest_api_request, gleam@option:option(binary())}. -type delete_stage_request() :: {delete_stage_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_usage_plan_request() :: {delete_usage_plan_request, gleam@option:option(binary())}. -type delete_usage_plan_key_request() :: {delete_usage_plan_key_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type delete_vpc_link_request() :: {delete_vpc_link_request, gleam@option:option(binary())}. -type flush_stage_authorizers_cache_request() :: {flush_stage_authorizers_cache_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type flush_stage_cache_request() :: {flush_stage_cache_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type generate_client_certificate_request() :: {generate_client_certificate_request, gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type client_certificate() :: {client_certificate, gleam@option:option(binary()), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type get_account_request() :: get_account_request. -type account() :: {account, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(list(binary())), gleam@option:option(throttle_settings())}. -type get_api_key_request() :: {get_api_key_request, gleam@option:option(binary()), gleam@option:option(boolean())}. -type get_api_keys_request() :: {get_api_keys_request, gleam@option:option(binary()), gleam@option:option(boolean()), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type api_keys() :: {api_keys, gleam@option:option(list(api_key())), gleam@option:option(binary()), gleam@option:option(list(binary()))}. -type get_authorizer_request() :: {get_authorizer_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type get_authorizers_request() :: {get_authorizers_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type authorizers() :: {authorizers, gleam@option:option(list(authorizer())), gleam@option:option(binary())}. -type get_base_path_mapping_request() :: {get_base_path_mapping_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_base_path_mappings_request() :: {get_base_path_mappings_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(integer()), gleam@option:option(binary())}. -type base_path_mappings() :: {base_path_mappings, gleam@option:option(list(base_path_mapping())), gleam@option:option(binary())}. -type get_client_certificate_request() :: {get_client_certificate_request, gleam@option:option(binary())}. -type get_client_certificates_request() :: {get_client_certificates_request, gleam@option:option(integer()), gleam@option:option(binary())}. -type client_certificates() :: {client_certificates, gleam@option:option(list(client_certificate())), gleam@option:option(binary())}. -type get_deployment_request() :: {get_deployment_request, gleam@option:option(binary()), gleam@option:option(list(binary())), gleam@option:option(binary())}. -type get_deployments_request() :: {get_deployments_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type deployments() :: {deployments, gleam@option:option(list(deployment())), gleam@option:option(binary())}. -type get_documentation_part_request() :: {get_documentation_part_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type get_documentation_parts_request() :: {get_documentation_parts_request, gleam@option:option(integer()), gleam@option:option(location_status_type()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(documentation_part_type())}. -type location_status_type() :: location_status_type_documented | location_status_type_undocumented. -type documentation_parts() :: {documentation_parts, gleam@option:option(list(documentation_part())), gleam@option:option(binary())}. -type get_documentation_version_request() :: {get_documentation_version_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type get_documentation_versions_request() :: {get_documentation_versions_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type documentation_versions() :: {documentation_versions, gleam@option:option(list(documentation_version())), gleam@option:option(binary())}. -type get_domain_name_request() :: {get_domain_name_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type get_domain_name_access_associations_request() :: {get_domain_name_access_associations_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(resource_owner())}. -type resource_owner() :: resource_owner_other_accounts | resource_owner_self. -type domain_name_access_associations() :: {domain_name_access_associations, gleam@option:option(list(domain_name_access_association())), gleam@option:option(binary())}. -type get_domain_names_request() :: {get_domain_names_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(resource_owner())}. -type domain_names() :: {domain_names, gleam@option:option(list(domain_name())), gleam@option:option(binary())}. -type get_export_request() :: {get_export_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(binary())}. -type export_response() :: {export_response, gleam@option:option(bitstring()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_gateway_response_request() :: {get_gateway_response_request, gleam@option:option(gateway_response_type()), gleam@option:option(binary())}. -type gateway_response() :: {gateway_response, gleam@option:option(boolean()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gateway_response_type()), gleam@option:option(binary())}. -type get_gateway_responses_request() :: {get_gateway_responses_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type gateway_responses() :: {gateway_responses, gleam@option:option(list(gateway_response())), gleam@option:option(binary())}. -type get_integration_request() :: {get_integration_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_integration_response_request() :: {get_integration_response_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_method_request() :: {get_method_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_method_response_request() :: {get_method_response_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_model_request() :: {get_model_request, gleam@option:option(boolean()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_models_request() :: {get_models_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type models() :: {models, gleam@option:option(list(model())), gleam@option:option(binary())}. -type get_model_template_request() :: {get_model_template_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type template() :: {template, gleam@option:option(binary())}. -type get_request_validator_request() :: {get_request_validator_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type get_request_validators_request() :: {get_request_validators_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type request_validators() :: {request_validators, gleam@option:option(list(request_validator())), gleam@option:option(binary())}. -type get_resource_request() :: {get_resource_request, gleam@option:option(list(binary())), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_resources_request() :: {get_resources_request, gleam@option:option(list(binary())), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type resources() :: {resources, gleam@option:option(list(resource())), gleam@option:option(binary())}. -type get_rest_api_request() :: {get_rest_api_request, gleam@option:option(binary())}. -type get_rest_apis_request() :: {get_rest_apis_request, gleam@option:option(integer()), gleam@option:option(binary())}. -type rest_apis() :: {rest_apis, gleam@option:option(list(rest_api())), gleam@option:option(binary())}. -type get_sdk_request() :: {get_sdk_request, gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type sdk_response() :: {sdk_response, gleam@option:option(bitstring()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_sdk_type_request() :: {get_sdk_type_request, gleam@option:option(binary())}. -type sdk_type() :: {sdk_type, gleam@option:option(list(sdk_configuration_property())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type sdk_configuration_property() :: {sdk_configuration_property, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(boolean())}. -type get_sdk_types_request() :: {get_sdk_types_request, gleam@option:option(integer()), gleam@option:option(binary())}. -type sdk_types() :: {sdk_types, gleam@option:option(list(sdk_type()))}. -type get_stage_request() :: {get_stage_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type get_stages_request() :: {get_stages_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type stages() :: {stages, gleam@option:option(list(stage()))}. -type get_tags_request() :: {get_tags_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary())}. -type tags() :: {tags, gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type get_usage_request() :: {get_usage_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type usage() :: {usage, gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), list(list(integer())))), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type get_usage_plan_request() :: {get_usage_plan_request, gleam@option:option(binary())}. -type get_usage_plan_key_request() :: {get_usage_plan_key_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type get_usage_plan_keys_request() :: {get_usage_plan_keys_request, gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type usage_plan_keys() :: {usage_plan_keys, gleam@option:option(list(usage_plan_key())), gleam@option:option(binary())}. -type get_usage_plans_request() :: {get_usage_plans_request, gleam@option:option(binary()), gleam@option:option(integer()), gleam@option:option(binary())}. -type usage_plans() :: {usage_plans, gleam@option:option(list(usage_plan())), gleam@option:option(binary())}. -type get_vpc_link_request() :: {get_vpc_link_request, gleam@option:option(binary())}. -type get_vpc_links_request() :: {get_vpc_links_request, gleam@option:option(integer()), gleam@option:option(binary())}. -type vpc_links() :: {vpc_links, gleam@option:option(list(vpc_link())), gleam@option:option(binary())}. -type import_api_keys_request() :: {import_api_keys_request, gleam@option:option(bitstring()), gleam@option:option(boolean()), gleam@option:option(api_keys_format())}. -type api_keys_format() :: api_keys_format_csv. -type api_key_ids() :: {api_key_ids, gleam@option:option(list(binary())), gleam@option:option(list(binary()))}. -type import_documentation_parts_request() :: {import_documentation_parts_request, gleam@option:option(bitstring()), gleam@option:option(boolean()), gleam@option:option(put_mode()), gleam@option:option(binary())}. -type put_mode() :: put_mode_merge | put_mode_overwrite. -type documentation_part_ids() :: {documentation_part_ids, gleam@option:option(list(binary())), gleam@option:option(list(binary()))}. -type import_rest_api_request() :: {import_rest_api_request, gleam@option:option(bitstring()), gleam@option:option(boolean()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type put_gateway_response_request() :: {put_gateway_response_request, gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gateway_response_type()), gleam@option:option(binary()), gleam@option:option(binary())}. -type put_integration_request() :: {put_integration_request, gleam@option:option(list(binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(connection_type()), gleam@option:option(content_handling_strategy()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(response_transfer_mode()), gleam@option:option(binary()), gleam@option:option(integer()), gleam@option:option(tls_config()), gleam@option:option(integration_type()), gleam@option:option(binary())}. -type put_integration_response_request() :: {put_integration_response_request, gleam@option:option(content_handling_strategy()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type put_method_request() :: {put_method_request, gleam@option:option(boolean()), gleam@option:option(list(binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), boolean())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type put_method_response_request() :: {put_method_response_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), boolean())), gleam@option:option(binary()), gleam@option:option(binary())}. -type put_rest_api_request() :: {put_rest_api_request, gleam@option:option(bitstring()), gleam@option:option(boolean()), gleam@option:option(put_mode()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary())}. -type reject_domain_name_access_association_request() :: {reject_domain_name_access_association_request, gleam@option:option(binary()), gleam@option:option(binary())}. -type tag_resource_request() :: {tag_resource_request, gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type test_invoke_authorizer_request() :: {test_invoke_authorizer_request, gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(gleam@dict:dict(binary(), list(binary()))), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type test_invoke_authorizer_response() :: {test_invoke_authorizer_response, gleam@option:option(gleam@dict:dict(binary(), list(binary()))), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(integer()), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type test_invoke_method_request() :: {test_invoke_method_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), list(binary()))), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary()))}. -type test_invoke_method_response() :: {test_invoke_method_response, gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), binary())), gleam@option:option(integer()), gleam@option:option(binary()), gleam@option:option(gleam@dict:dict(binary(), list(binary()))), gleam@option:option(integer())}. -type untag_resource_request() :: {untag_resource_request, gleam@option:option(binary()), gleam@option:option(list(binary()))}. -type update_account_request() :: {update_account_request, gleam@option:option(list(patch_operation()))}. -type patch_operation() :: {patch_operation, gleam@option:option(binary()), gleam@option:option(op()), gleam@option:option(binary()), gleam@option:option(binary())}. -type op() :: op_add | op_copy | op_move | op_remove | op_replace | op_test. -type update_api_key_request() :: {update_api_key_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation()))}. -type update_authorizer_request() :: {update_authorizer_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_base_path_mapping_request() :: {update_base_path_mapping_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(list(patch_operation()))}. -type update_client_certificate_request() :: {update_client_certificate_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation()))}. -type update_deployment_request() :: {update_deployment_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_documentation_part_request() :: {update_documentation_part_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_documentation_version_request() :: {update_documentation_version_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_domain_name_request() :: {update_domain_name_request, gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(list(patch_operation()))}. -type update_gateway_response_request() :: {update_gateway_response_request, gleam@option:option(list(patch_operation())), gleam@option:option(gateway_response_type()), gleam@option:option(binary())}. -type update_integration_request() :: {update_integration_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary()), gleam@option:option(binary())}. -type update_integration_response_request() :: {update_integration_response_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type update_method_request() :: {update_method_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary()), gleam@option:option(binary())}. -type update_method_response_request() :: {update_method_response_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary()), gleam@option:option(binary()), gleam@option:option(binary())}. -type update_model_request() :: {update_model_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_request_validator_request() :: {update_request_validator_request, gleam@option:option(list(patch_operation())), gleam@option:option(binary()), gleam@option:option(binary())}. -type update_resource_request() :: {update_resource_request, gleam@option:option(list(patch_operation())), gleam@option:option(binary()), gleam@option:option(binary())}. -type update_rest_api_request() :: {update_rest_api_request, gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_stage_request() :: {update_stage_request, gleam@option:option(list(patch_operation())), gleam@option:option(binary()), gleam@option:option(binary())}. -type update_usage_request() :: {update_usage_request, gleam@option:option(binary()), gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_usage_plan_request() :: {update_usage_plan_request, gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type update_vpc_link_request() :: {update_vpc_link_request, gleam@option:option(list(patch_operation())), gleam@option:option(binary())}. -type delete_api_key_output() :: delete_api_key_output. -type delete_authorizer_output() :: delete_authorizer_output. -type delete_base_path_mapping_output() :: delete_base_path_mapping_output. -type delete_client_certificate_output() :: delete_client_certificate_output. -type delete_deployment_output() :: delete_deployment_output. -type delete_documentation_part_output() :: delete_documentation_part_output. -type delete_documentation_version_output() :: delete_documentation_version_output. -type delete_domain_name_output() :: delete_domain_name_output. -type delete_domain_name_access_association_output() :: delete_domain_name_access_association_output. -type delete_gateway_response_output() :: delete_gateway_response_output. -type delete_integration_output() :: delete_integration_output. -type delete_integration_response_output() :: delete_integration_response_output. -type delete_method_output() :: delete_method_output. -type delete_method_response_output() :: delete_method_response_output. -type delete_model_output() :: delete_model_output. -type delete_request_validator_output() :: delete_request_validator_output. -type delete_resource_output() :: delete_resource_output. -type delete_rest_api_output() :: delete_rest_api_output. -type delete_stage_output() :: delete_stage_output. -type delete_usage_plan_output() :: delete_usage_plan_output. -type delete_usage_plan_key_output() :: delete_usage_plan_key_output. -type delete_vpc_link_output() :: delete_vpc_link_output. -type flush_stage_authorizers_cache_output() :: flush_stage_authorizers_cache_output. -type flush_stage_cache_output() :: flush_stage_cache_output. -type reject_domain_name_access_association_output() :: reject_domain_name_access_association_output. -type tag_resource_output() :: tag_resource_output. -type untag_resource_output() :: untag_resource_output. -type create_api_key_error() :: {create_api_key_error_bad_request_exception, bad_request_exception()} | {create_api_key_error_conflict_exception, conflict_exception()} | {create_api_key_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_api_key_error_not_found_exception, not_found_exception()} | {create_api_key_error_too_many_requests_exception, too_many_requests_exception()} | {create_api_key_error_unauthorized_exception, unauthorized_exception()} | {create_api_key_error_transport, binary()} | {create_api_key_error_unknown, binary(), integer(), binary()}. -type create_authorizer_error() :: {create_authorizer_error_bad_request_exception, bad_request_exception()} | {create_authorizer_error_conflict_exception, conflict_exception()} | {create_authorizer_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_authorizer_error_not_found_exception, not_found_exception()} | {create_authorizer_error_too_many_requests_exception, too_many_requests_exception()} | {create_authorizer_error_unauthorized_exception, unauthorized_exception()} | {create_authorizer_error_transport, binary()} | {create_authorizer_error_unknown, binary(), integer(), binary()}. -type create_base_path_mapping_error() :: {create_base_path_mapping_error_bad_request_exception, bad_request_exception()} | {create_base_path_mapping_error_conflict_exception, conflict_exception()} | {create_base_path_mapping_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_base_path_mapping_error_not_found_exception, not_found_exception()} | {create_base_path_mapping_error_too_many_requests_exception, too_many_requests_exception()} | {create_base_path_mapping_error_unauthorized_exception, unauthorized_exception()} | {create_base_path_mapping_error_transport, binary()} | {create_base_path_mapping_error_unknown, binary(), integer(), binary()}. -type create_deployment_error() :: {create_deployment_error_bad_request_exception, bad_request_exception()} | {create_deployment_error_conflict_exception, conflict_exception()} | {create_deployment_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_deployment_error_not_found_exception, not_found_exception()} | {create_deployment_error_service_unavailable_exception, service_unavailable_exception()} | {create_deployment_error_too_many_requests_exception, too_many_requests_exception()} | {create_deployment_error_unauthorized_exception, unauthorized_exception()} | {create_deployment_error_transport, binary()} | {create_deployment_error_unknown, binary(), integer(), binary()}. -type create_documentation_part_error() :: {create_documentation_part_error_bad_request_exception, bad_request_exception()} | {create_documentation_part_error_conflict_exception, conflict_exception()} | {create_documentation_part_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_documentation_part_error_not_found_exception, not_found_exception()} | {create_documentation_part_error_too_many_requests_exception, too_many_requests_exception()} | {create_documentation_part_error_unauthorized_exception, unauthorized_exception()} | {create_documentation_part_error_transport, binary()} | {create_documentation_part_error_unknown, binary(), integer(), binary()}. -type create_documentation_version_error() :: {create_documentation_version_error_bad_request_exception, bad_request_exception()} | {create_documentation_version_error_conflict_exception, conflict_exception()} | {create_documentation_version_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_documentation_version_error_not_found_exception, not_found_exception()} | {create_documentation_version_error_too_many_requests_exception, too_many_requests_exception()} | {create_documentation_version_error_unauthorized_exception, unauthorized_exception()} | {create_documentation_version_error_transport, binary()} | {create_documentation_version_error_unknown, binary(), integer(), binary()}. -type create_domain_name_error() :: {create_domain_name_error_bad_request_exception, bad_request_exception()} | {create_domain_name_error_conflict_exception, conflict_exception()} | {create_domain_name_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_domain_name_error_too_many_requests_exception, too_many_requests_exception()} | {create_domain_name_error_unauthorized_exception, unauthorized_exception()} | {create_domain_name_error_transport, binary()} | {create_domain_name_error_unknown, binary(), integer(), binary()}. -type create_domain_name_access_association_error() :: {create_domain_name_access_association_error_bad_request_exception, bad_request_exception()} | {create_domain_name_access_association_error_conflict_exception, conflict_exception()} | {create_domain_name_access_association_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_domain_name_access_association_error_too_many_requests_exception, too_many_requests_exception()} | {create_domain_name_access_association_error_unauthorized_exception, unauthorized_exception()} | {create_domain_name_access_association_error_transport, binary()} | {create_domain_name_access_association_error_unknown, binary(), integer(), binary()}. -type create_model_error() :: {create_model_error_bad_request_exception, bad_request_exception()} | {create_model_error_conflict_exception, conflict_exception()} | {create_model_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_model_error_not_found_exception, not_found_exception()} | {create_model_error_too_many_requests_exception, too_many_requests_exception()} | {create_model_error_unauthorized_exception, unauthorized_exception()} | {create_model_error_transport, binary()} | {create_model_error_unknown, binary(), integer(), binary()}. -type create_request_validator_error() :: {create_request_validator_error_bad_request_exception, bad_request_exception()} | {create_request_validator_error_conflict_exception, conflict_exception()} | {create_request_validator_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_request_validator_error_not_found_exception, not_found_exception()} | {create_request_validator_error_too_many_requests_exception, too_many_requests_exception()} | {create_request_validator_error_unauthorized_exception, unauthorized_exception()} | {create_request_validator_error_transport, binary()} | {create_request_validator_error_unknown, binary(), integer(), binary()}. -type create_resource_error() :: {create_resource_error_bad_request_exception, bad_request_exception()} | {create_resource_error_conflict_exception, conflict_exception()} | {create_resource_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_resource_error_not_found_exception, not_found_exception()} | {create_resource_error_too_many_requests_exception, too_many_requests_exception()} | {create_resource_error_unauthorized_exception, unauthorized_exception()} | {create_resource_error_transport, binary()} | {create_resource_error_unknown, binary(), integer(), binary()}. -type create_rest_api_error() :: {create_rest_api_error_bad_request_exception, bad_request_exception()} | {create_rest_api_error_conflict_exception, conflict_exception()} | {create_rest_api_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_rest_api_error_too_many_requests_exception, too_many_requests_exception()} | {create_rest_api_error_unauthorized_exception, unauthorized_exception()} | {create_rest_api_error_transport, binary()} | {create_rest_api_error_unknown, binary(), integer(), binary()}. -type create_stage_error() :: {create_stage_error_bad_request_exception, bad_request_exception()} | {create_stage_error_conflict_exception, conflict_exception()} | {create_stage_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_stage_error_not_found_exception, not_found_exception()} | {create_stage_error_too_many_requests_exception, too_many_requests_exception()} | {create_stage_error_unauthorized_exception, unauthorized_exception()} | {create_stage_error_transport, binary()} | {create_stage_error_unknown, binary(), integer(), binary()}. -type create_usage_plan_error() :: {create_usage_plan_error_bad_request_exception, bad_request_exception()} | {create_usage_plan_error_conflict_exception, conflict_exception()} | {create_usage_plan_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_usage_plan_error_not_found_exception, not_found_exception()} | {create_usage_plan_error_too_many_requests_exception, too_many_requests_exception()} | {create_usage_plan_error_unauthorized_exception, unauthorized_exception()} | {create_usage_plan_error_transport, binary()} | {create_usage_plan_error_unknown, binary(), integer(), binary()}. -type create_usage_plan_key_error() :: {create_usage_plan_key_error_bad_request_exception, bad_request_exception()} | {create_usage_plan_key_error_conflict_exception, conflict_exception()} | {create_usage_plan_key_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_usage_plan_key_error_not_found_exception, not_found_exception()} | {create_usage_plan_key_error_too_many_requests_exception, too_many_requests_exception()} | {create_usage_plan_key_error_unauthorized_exception, unauthorized_exception()} | {create_usage_plan_key_error_transport, binary()} | {create_usage_plan_key_error_unknown, binary(), integer(), binary()}. -type create_vpc_link_error() :: {create_vpc_link_error_bad_request_exception, bad_request_exception()} | {create_vpc_link_error_conflict_exception, conflict_exception()} | {create_vpc_link_error_limit_exceeded_exception, limit_exceeded_exception()} | {create_vpc_link_error_too_many_requests_exception, too_many_requests_exception()} | {create_vpc_link_error_unauthorized_exception, unauthorized_exception()} | {create_vpc_link_error_transport, binary()} | {create_vpc_link_error_unknown, binary(), integer(), binary()}. -type delete_api_key_error() :: {delete_api_key_error_bad_request_exception, bad_request_exception()} | {delete_api_key_error_conflict_exception, conflict_exception()} | {delete_api_key_error_not_found_exception, not_found_exception()} | {delete_api_key_error_too_many_requests_exception, too_many_requests_exception()} | {delete_api_key_error_unauthorized_exception, unauthorized_exception()} | {delete_api_key_error_transport, binary()} | {delete_api_key_error_unknown, binary(), integer(), binary()}. -type delete_authorizer_error() :: {delete_authorizer_error_bad_request_exception, bad_request_exception()} | {delete_authorizer_error_conflict_exception, conflict_exception()} | {delete_authorizer_error_not_found_exception, not_found_exception()} | {delete_authorizer_error_too_many_requests_exception, too_many_requests_exception()} | {delete_authorizer_error_unauthorized_exception, unauthorized_exception()} | {delete_authorizer_error_transport, binary()} | {delete_authorizer_error_unknown, binary(), integer(), binary()}. -type delete_base_path_mapping_error() :: {delete_base_path_mapping_error_bad_request_exception, bad_request_exception()} | {delete_base_path_mapping_error_conflict_exception, conflict_exception()} | {delete_base_path_mapping_error_not_found_exception, not_found_exception()} | {delete_base_path_mapping_error_too_many_requests_exception, too_many_requests_exception()} | {delete_base_path_mapping_error_unauthorized_exception, unauthorized_exception()} | {delete_base_path_mapping_error_transport, binary()} | {delete_base_path_mapping_error_unknown, binary(), integer(), binary()}. -type delete_client_certificate_error() :: {delete_client_certificate_error_bad_request_exception, bad_request_exception()} | {delete_client_certificate_error_conflict_exception, conflict_exception()} | {delete_client_certificate_error_not_found_exception, not_found_exception()} | {delete_client_certificate_error_too_many_requests_exception, too_many_requests_exception()} | {delete_client_certificate_error_unauthorized_exception, unauthorized_exception()} | {delete_client_certificate_error_transport, binary()} | {delete_client_certificate_error_unknown, binary(), integer(), binary()}. -type delete_deployment_error() :: {delete_deployment_error_bad_request_exception, bad_request_exception()} | {delete_deployment_error_conflict_exception, conflict_exception()} | {delete_deployment_error_limit_exceeded_exception, limit_exceeded_exception()} | {delete_deployment_error_not_found_exception, not_found_exception()} | {delete_deployment_error_too_many_requests_exception, too_many_requests_exception()} | {delete_deployment_error_unauthorized_exception, unauthorized_exception()} | {delete_deployment_error_transport, binary()} | {delete_deployment_error_unknown, binary(), integer(), binary()}. -type delete_documentation_part_error() :: {delete_documentation_part_error_bad_request_exception, bad_request_exception()} | {delete_documentation_part_error_conflict_exception, conflict_exception()} | {delete_documentation_part_error_not_found_exception, not_found_exception()} | {delete_documentation_part_error_too_many_requests_exception, too_many_requests_exception()} | {delete_documentation_part_error_unauthorized_exception, unauthorized_exception()} | {delete_documentation_part_error_transport, binary()} | {delete_documentation_part_error_unknown, binary(), integer(), binary()}. -type delete_documentation_version_error() :: {delete_documentation_version_error_bad_request_exception, bad_request_exception()} | {delete_documentation_version_error_conflict_exception, conflict_exception()} | {delete_documentation_version_error_not_found_exception, not_found_exception()} | {delete_documentation_version_error_too_many_requests_exception, too_many_requests_exception()} | {delete_documentation_version_error_unauthorized_exception, unauthorized_exception()} | {delete_documentation_version_error_transport, binary()} | {delete_documentation_version_error_unknown, binary(), integer(), binary()}. -type delete_domain_name_error() :: {delete_domain_name_error_bad_request_exception, bad_request_exception()} | {delete_domain_name_error_conflict_exception, conflict_exception()} | {delete_domain_name_error_not_found_exception, not_found_exception()} | {delete_domain_name_error_too_many_requests_exception, too_many_requests_exception()} | {delete_domain_name_error_unauthorized_exception, unauthorized_exception()} | {delete_domain_name_error_transport, binary()} | {delete_domain_name_error_unknown, binary(), integer(), binary()}. -type delete_domain_name_access_association_error() :: {delete_domain_name_access_association_error_bad_request_exception, bad_request_exception()} | {delete_domain_name_access_association_error_conflict_exception, conflict_exception()} | {delete_domain_name_access_association_error_not_found_exception, not_found_exception()} | {delete_domain_name_access_association_error_too_many_requests_exception, too_many_requests_exception()} | {delete_domain_name_access_association_error_unauthorized_exception, unauthorized_exception()} | {delete_domain_name_access_association_error_transport, binary()} | {delete_domain_name_access_association_error_unknown, binary(), integer(), binary()}. -type delete_gateway_response_error() :: {delete_gateway_response_error_bad_request_exception, bad_request_exception()} | {delete_gateway_response_error_conflict_exception, conflict_exception()} | {delete_gateway_response_error_not_found_exception, not_found_exception()} | {delete_gateway_response_error_too_many_requests_exception, too_many_requests_exception()} | {delete_gateway_response_error_unauthorized_exception, unauthorized_exception()} | {delete_gateway_response_error_transport, binary()} | {delete_gateway_response_error_unknown, binary(), integer(), binary()}. -type delete_integration_error() :: {delete_integration_error_bad_request_exception, bad_request_exception()} | {delete_integration_error_conflict_exception, conflict_exception()} | {delete_integration_error_not_found_exception, not_found_exception()} | {delete_integration_error_too_many_requests_exception, too_many_requests_exception()} | {delete_integration_error_unauthorized_exception, unauthorized_exception()} | {delete_integration_error_transport, binary()} | {delete_integration_error_unknown, binary(), integer(), binary()}. -type delete_integration_response_error() :: {delete_integration_response_error_bad_request_exception, bad_request_exception()} | {delete_integration_response_error_conflict_exception, conflict_exception()} | {delete_integration_response_error_not_found_exception, not_found_exception()} | {delete_integration_response_error_too_many_requests_exception, too_many_requests_exception()} | {delete_integration_response_error_unauthorized_exception, unauthorized_exception()} | {delete_integration_response_error_transport, binary()} | {delete_integration_response_error_unknown, binary(), integer(), binary()}. -type delete_method_error() :: {delete_method_error_conflict_exception, conflict_exception()} | {delete_method_error_not_found_exception, not_found_exception()} | {delete_method_error_too_many_requests_exception, too_many_requests_exception()} | {delete_method_error_unauthorized_exception, unauthorized_exception()} | {delete_method_error_transport, binary()} | {delete_method_error_unknown, binary(), integer(), binary()}. -type delete_method_response_error() :: {delete_method_response_error_bad_request_exception, bad_request_exception()} | {delete_method_response_error_conflict_exception, conflict_exception()} | {delete_method_response_error_not_found_exception, not_found_exception()} | {delete_method_response_error_too_many_requests_exception, too_many_requests_exception()} | {delete_method_response_error_unauthorized_exception, unauthorized_exception()} | {delete_method_response_error_transport, binary()} | {delete_method_response_error_unknown, binary(), integer(), binary()}. -type delete_model_error() :: {delete_model_error_bad_request_exception, bad_request_exception()} | {delete_model_error_conflict_exception, conflict_exception()} | {delete_model_error_not_found_exception, not_found_exception()} | {delete_model_error_too_many_requests_exception, too_many_requests_exception()} | {delete_model_error_unauthorized_exception, unauthorized_exception()} | {delete_model_error_transport, binary()} | {delete_model_error_unknown, binary(), integer(), binary()}. -type delete_request_validator_error() :: {delete_request_validator_error_bad_request_exception, bad_request_exception()} | {delete_request_validator_error_conflict_exception, conflict_exception()} | {delete_request_validator_error_not_found_exception, not_found_exception()} | {delete_request_validator_error_too_many_requests_exception, too_many_requests_exception()} | {delete_request_validator_error_unauthorized_exception, unauthorized_exception()} | {delete_request_validator_error_transport, binary()} | {delete_request_validator_error_unknown, binary(), integer(), binary()}. -type delete_resource_error() :: {delete_resource_error_bad_request_exception, bad_request_exception()} | {delete_resource_error_conflict_exception, conflict_exception()} | {delete_resource_error_not_found_exception, not_found_exception()} | {delete_resource_error_too_many_requests_exception, too_many_requests_exception()} | {delete_resource_error_unauthorized_exception, unauthorized_exception()} | {delete_resource_error_transport, binary()} | {delete_resource_error_unknown, binary(), integer(), binary()}. -type delete_rest_api_error() :: {delete_rest_api_error_bad_request_exception, bad_request_exception()} | {delete_rest_api_error_conflict_exception, conflict_exception()} | {delete_rest_api_error_not_found_exception, not_found_exception()} | {delete_rest_api_error_too_many_requests_exception, too_many_requests_exception()} | {delete_rest_api_error_unauthorized_exception, unauthorized_exception()} | {delete_rest_api_error_transport, binary()} | {delete_rest_api_error_unknown, binary(), integer(), binary()}. -type delete_stage_error() :: {delete_stage_error_bad_request_exception, bad_request_exception()} | {delete_stage_error_conflict_exception, conflict_exception()} | {delete_stage_error_limit_exceeded_exception, limit_exceeded_exception()} | {delete_stage_error_not_found_exception, not_found_exception()} | {delete_stage_error_too_many_requests_exception, too_many_requests_exception()} | {delete_stage_error_unauthorized_exception, unauthorized_exception()} | {delete_stage_error_transport, binary()} | {delete_stage_error_unknown, binary(), integer(), binary()}. -type delete_usage_plan_error() :: {delete_usage_plan_error_bad_request_exception, bad_request_exception()} | {delete_usage_plan_error_conflict_exception, conflict_exception()} | {delete_usage_plan_error_not_found_exception, not_found_exception()} | {delete_usage_plan_error_too_many_requests_exception, too_many_requests_exception()} | {delete_usage_plan_error_unauthorized_exception, unauthorized_exception()} | {delete_usage_plan_error_transport, binary()} | {delete_usage_plan_error_unknown, binary(), integer(), binary()}. -type delete_usage_plan_key_error() :: {delete_usage_plan_key_error_bad_request_exception, bad_request_exception()} | {delete_usage_plan_key_error_conflict_exception, conflict_exception()} | {delete_usage_plan_key_error_not_found_exception, not_found_exception()} | {delete_usage_plan_key_error_too_many_requests_exception, too_many_requests_exception()} | {delete_usage_plan_key_error_unauthorized_exception, unauthorized_exception()} | {delete_usage_plan_key_error_transport, binary()} | {delete_usage_plan_key_error_unknown, binary(), integer(), binary()}. -type delete_vpc_link_error() :: {delete_vpc_link_error_bad_request_exception, bad_request_exception()} | {delete_vpc_link_error_conflict_exception, conflict_exception()} | {delete_vpc_link_error_not_found_exception, not_found_exception()} | {delete_vpc_link_error_too_many_requests_exception, too_many_requests_exception()} | {delete_vpc_link_error_unauthorized_exception, unauthorized_exception()} | {delete_vpc_link_error_transport, binary()} | {delete_vpc_link_error_unknown, binary(), integer(), binary()}. -type flush_stage_authorizers_cache_error() :: {flush_stage_authorizers_cache_error_bad_request_exception, bad_request_exception()} | {flush_stage_authorizers_cache_error_conflict_exception, conflict_exception()} | {flush_stage_authorizers_cache_error_limit_exceeded_exception, limit_exceeded_exception()} | {flush_stage_authorizers_cache_error_not_found_exception, not_found_exception()} | {flush_stage_authorizers_cache_error_too_many_requests_exception, too_many_requests_exception()} | {flush_stage_authorizers_cache_error_unauthorized_exception, unauthorized_exception()} | {flush_stage_authorizers_cache_error_transport, binary()} | {flush_stage_authorizers_cache_error_unknown, binary(), integer(), binary()}. -type flush_stage_cache_error() :: {flush_stage_cache_error_bad_request_exception, bad_request_exception()} | {flush_stage_cache_error_conflict_exception, conflict_exception()} | {flush_stage_cache_error_limit_exceeded_exception, limit_exceeded_exception()} | {flush_stage_cache_error_not_found_exception, not_found_exception()} | {flush_stage_cache_error_too_many_requests_exception, too_many_requests_exception()} | {flush_stage_cache_error_unauthorized_exception, unauthorized_exception()} | {flush_stage_cache_error_transport, binary()} | {flush_stage_cache_error_unknown, binary(), integer(), binary()}. -type generate_client_certificate_error() :: {generate_client_certificate_error_bad_request_exception, bad_request_exception()} | {generate_client_certificate_error_conflict_exception, conflict_exception()} | {generate_client_certificate_error_limit_exceeded_exception, limit_exceeded_exception()} | {generate_client_certificate_error_too_many_requests_exception, too_many_requests_exception()} | {generate_client_certificate_error_unauthorized_exception, unauthorized_exception()} | {generate_client_certificate_error_transport, binary()} | {generate_client_certificate_error_unknown, binary(), integer(), binary()}. -type get_account_error() :: {get_account_error_bad_request_exception, bad_request_exception()} | {get_account_error_not_found_exception, not_found_exception()} | {get_account_error_too_many_requests_exception, too_many_requests_exception()} | {get_account_error_unauthorized_exception, unauthorized_exception()} | {get_account_error_transport, binary()} | {get_account_error_unknown, binary(), integer(), binary()}. -type get_api_key_error() :: {get_api_key_error_bad_request_exception, bad_request_exception()} | {get_api_key_error_not_found_exception, not_found_exception()} | {get_api_key_error_too_many_requests_exception, too_many_requests_exception()} | {get_api_key_error_unauthorized_exception, unauthorized_exception()} | {get_api_key_error_transport, binary()} | {get_api_key_error_unknown, binary(), integer(), binary()}. -type get_api_keys_error() :: {get_api_keys_error_bad_request_exception, bad_request_exception()} | {get_api_keys_error_not_found_exception, not_found_exception()} | {get_api_keys_error_too_many_requests_exception, too_many_requests_exception()} | {get_api_keys_error_unauthorized_exception, unauthorized_exception()} | {get_api_keys_error_transport, binary()} | {get_api_keys_error_unknown, binary(), integer(), binary()}. -type get_authorizer_error() :: {get_authorizer_error_bad_request_exception, bad_request_exception()} | {get_authorizer_error_not_found_exception, not_found_exception()} | {get_authorizer_error_too_many_requests_exception, too_many_requests_exception()} | {get_authorizer_error_unauthorized_exception, unauthorized_exception()} | {get_authorizer_error_transport, binary()} | {get_authorizer_error_unknown, binary(), integer(), binary()}. -type get_authorizers_error() :: {get_authorizers_error_bad_request_exception, bad_request_exception()} | {get_authorizers_error_not_found_exception, not_found_exception()} | {get_authorizers_error_too_many_requests_exception, too_many_requests_exception()} | {get_authorizers_error_unauthorized_exception, unauthorized_exception()} | {get_authorizers_error_transport, binary()} | {get_authorizers_error_unknown, binary(), integer(), binary()}. -type get_base_path_mapping_error() :: {get_base_path_mapping_error_bad_request_exception, bad_request_exception()} | {get_base_path_mapping_error_not_found_exception, not_found_exception()} | {get_base_path_mapping_error_too_many_requests_exception, too_many_requests_exception()} | {get_base_path_mapping_error_unauthorized_exception, unauthorized_exception()} | {get_base_path_mapping_error_transport, binary()} | {get_base_path_mapping_error_unknown, binary(), integer(), binary()}. -type get_base_path_mappings_error() :: {get_base_path_mappings_error_bad_request_exception, bad_request_exception()} | {get_base_path_mappings_error_not_found_exception, not_found_exception()} | {get_base_path_mappings_error_too_many_requests_exception, too_many_requests_exception()} | {get_base_path_mappings_error_unauthorized_exception, unauthorized_exception()} | {get_base_path_mappings_error_transport, binary()} | {get_base_path_mappings_error_unknown, binary(), integer(), binary()}. -type get_client_certificate_error() :: {get_client_certificate_error_bad_request_exception, bad_request_exception()} | {get_client_certificate_error_not_found_exception, not_found_exception()} | {get_client_certificate_error_too_many_requests_exception, too_many_requests_exception()} | {get_client_certificate_error_unauthorized_exception, unauthorized_exception()} | {get_client_certificate_error_transport, binary()} | {get_client_certificate_error_unknown, binary(), integer(), binary()}. -type get_client_certificates_error() :: {get_client_certificates_error_bad_request_exception, bad_request_exception()} | {get_client_certificates_error_not_found_exception, not_found_exception()} | {get_client_certificates_error_too_many_requests_exception, too_many_requests_exception()} | {get_client_certificates_error_unauthorized_exception, unauthorized_exception()} | {get_client_certificates_error_transport, binary()} | {get_client_certificates_error_unknown, binary(), integer(), binary()}. -type get_deployment_error() :: {get_deployment_error_bad_request_exception, bad_request_exception()} | {get_deployment_error_not_found_exception, not_found_exception()} | {get_deployment_error_service_unavailable_exception, service_unavailable_exception()} | {get_deployment_error_too_many_requests_exception, too_many_requests_exception()} | {get_deployment_error_unauthorized_exception, unauthorized_exception()} | {get_deployment_error_transport, binary()} | {get_deployment_error_unknown, binary(), integer(), binary()}. -type get_deployments_error() :: {get_deployments_error_bad_request_exception, bad_request_exception()} | {get_deployments_error_not_found_exception, not_found_exception()} | {get_deployments_error_service_unavailable_exception, service_unavailable_exception()} | {get_deployments_error_too_many_requests_exception, too_many_requests_exception()} | {get_deployments_error_unauthorized_exception, unauthorized_exception()} | {get_deployments_error_transport, binary()} | {get_deployments_error_unknown, binary(), integer(), binary()}. -type get_documentation_part_error() :: {get_documentation_part_error_bad_request_exception, bad_request_exception()} | {get_documentation_part_error_not_found_exception, not_found_exception()} | {get_documentation_part_error_too_many_requests_exception, too_many_requests_exception()} | {get_documentation_part_error_unauthorized_exception, unauthorized_exception()} | {get_documentation_part_error_transport, binary()} | {get_documentation_part_error_unknown, binary(), integer(), binary()}. -type get_documentation_parts_error() :: {get_documentation_parts_error_bad_request_exception, bad_request_exception()} | {get_documentation_parts_error_not_found_exception, not_found_exception()} | {get_documentation_parts_error_too_many_requests_exception, too_many_requests_exception()} | {get_documentation_parts_error_unauthorized_exception, unauthorized_exception()} | {get_documentation_parts_error_transport, binary()} | {get_documentation_parts_error_unknown, binary(), integer(), binary()}. -type get_documentation_version_error() :: {get_documentation_version_error_not_found_exception, not_found_exception()} | {get_documentation_version_error_too_many_requests_exception, too_many_requests_exception()} | {get_documentation_version_error_unauthorized_exception, unauthorized_exception()} | {get_documentation_version_error_transport, binary()} | {get_documentation_version_error_unknown, binary(), integer(), binary()}. -type get_documentation_versions_error() :: {get_documentation_versions_error_bad_request_exception, bad_request_exception()} | {get_documentation_versions_error_not_found_exception, not_found_exception()} | {get_documentation_versions_error_too_many_requests_exception, too_many_requests_exception()} | {get_documentation_versions_error_unauthorized_exception, unauthorized_exception()} | {get_documentation_versions_error_transport, binary()} | {get_documentation_versions_error_unknown, binary(), integer(), binary()}. -type get_domain_name_error() :: {get_domain_name_error_bad_request_exception, bad_request_exception()} | {get_domain_name_error_not_found_exception, not_found_exception()} | {get_domain_name_error_too_many_requests_exception, too_many_requests_exception()} | {get_domain_name_error_unauthorized_exception, unauthorized_exception()} | {get_domain_name_error_transport, binary()} | {get_domain_name_error_unknown, binary(), integer(), binary()}. -type get_domain_name_access_associations_error() :: {get_domain_name_access_associations_error_bad_request_exception, bad_request_exception()} | {get_domain_name_access_associations_error_not_found_exception, not_found_exception()} | {get_domain_name_access_associations_error_too_many_requests_exception, too_many_requests_exception()} | {get_domain_name_access_associations_error_unauthorized_exception, unauthorized_exception()} | {get_domain_name_access_associations_error_transport, binary()} | {get_domain_name_access_associations_error_unknown, binary(), integer(), binary()}. -type get_domain_names_error() :: {get_domain_names_error_bad_request_exception, bad_request_exception()} | {get_domain_names_error_not_found_exception, not_found_exception()} | {get_domain_names_error_too_many_requests_exception, too_many_requests_exception()} | {get_domain_names_error_unauthorized_exception, unauthorized_exception()} | {get_domain_names_error_transport, binary()} | {get_domain_names_error_unknown, binary(), integer(), binary()}. -type get_export_error() :: {get_export_error_bad_request_exception, bad_request_exception()} | {get_export_error_conflict_exception, conflict_exception()} | {get_export_error_limit_exceeded_exception, limit_exceeded_exception()} | {get_export_error_not_found_exception, not_found_exception()} | {get_export_error_too_many_requests_exception, too_many_requests_exception()} | {get_export_error_unauthorized_exception, unauthorized_exception()} | {get_export_error_transport, binary()} | {get_export_error_unknown, binary(), integer(), binary()}. -type get_gateway_response_error() :: {get_gateway_response_error_bad_request_exception, bad_request_exception()} | {get_gateway_response_error_not_found_exception, not_found_exception()} | {get_gateway_response_error_too_many_requests_exception, too_many_requests_exception()} | {get_gateway_response_error_unauthorized_exception, unauthorized_exception()} | {get_gateway_response_error_transport, binary()} | {get_gateway_response_error_unknown, binary(), integer(), binary()}. -type get_gateway_responses_error() :: {get_gateway_responses_error_bad_request_exception, bad_request_exception()} | {get_gateway_responses_error_not_found_exception, not_found_exception()} | {get_gateway_responses_error_too_many_requests_exception, too_many_requests_exception()} | {get_gateway_responses_error_unauthorized_exception, unauthorized_exception()} | {get_gateway_responses_error_transport, binary()} | {get_gateway_responses_error_unknown, binary(), integer(), binary()}. -type get_integration_error() :: {get_integration_error_bad_request_exception, bad_request_exception()} | {get_integration_error_not_found_exception, not_found_exception()} | {get_integration_error_too_many_requests_exception, too_many_requests_exception()} | {get_integration_error_unauthorized_exception, unauthorized_exception()} | {get_integration_error_transport, binary()} | {get_integration_error_unknown, binary(), integer(), binary()}. -type get_integration_response_error() :: {get_integration_response_error_bad_request_exception, bad_request_exception()} | {get_integration_response_error_not_found_exception, not_found_exception()} | {get_integration_response_error_too_many_requests_exception, too_many_requests_exception()} | {get_integration_response_error_unauthorized_exception, unauthorized_exception()} | {get_integration_response_error_transport, binary()} | {get_integration_response_error_unknown, binary(), integer(), binary()}. -type get_method_error() :: {get_method_error_not_found_exception, not_found_exception()} | {get_method_error_too_many_requests_exception, too_many_requests_exception()} | {get_method_error_unauthorized_exception, unauthorized_exception()} | {get_method_error_transport, binary()} | {get_method_error_unknown, binary(), integer(), binary()}. -type get_method_response_error() :: {get_method_response_error_not_found_exception, not_found_exception()} | {get_method_response_error_too_many_requests_exception, too_many_requests_exception()} | {get_method_response_error_unauthorized_exception, unauthorized_exception()} | {get_method_response_error_transport, binary()} | {get_method_response_error_unknown, binary(), integer(), binary()}. -type get_model_error() :: {get_model_error_bad_request_exception, bad_request_exception()} | {get_model_error_not_found_exception, not_found_exception()} | {get_model_error_too_many_requests_exception, too_many_requests_exception()} | {get_model_error_unauthorized_exception, unauthorized_exception()} | {get_model_error_transport, binary()} | {get_model_error_unknown, binary(), integer(), binary()}. -type get_models_error() :: {get_models_error_bad_request_exception, bad_request_exception()} | {get_models_error_not_found_exception, not_found_exception()} | {get_models_error_too_many_requests_exception, too_many_requests_exception()} | {get_models_error_unauthorized_exception, unauthorized_exception()} | {get_models_error_transport, binary()} | {get_models_error_unknown, binary(), integer(), binary()}. -type get_model_template_error() :: {get_model_template_error_bad_request_exception, bad_request_exception()} | {get_model_template_error_not_found_exception, not_found_exception()} | {get_model_template_error_too_many_requests_exception, too_many_requests_exception()} | {get_model_template_error_unauthorized_exception, unauthorized_exception()} | {get_model_template_error_transport, binary()} | {get_model_template_error_unknown, binary(), integer(), binary()}. -type get_request_validator_error() :: {get_request_validator_error_bad_request_exception, bad_request_exception()} | {get_request_validator_error_not_found_exception, not_found_exception()} | {get_request_validator_error_too_many_requests_exception, too_many_requests_exception()} | {get_request_validator_error_unauthorized_exception, unauthorized_exception()} | {get_request_validator_error_transport, binary()} | {get_request_validator_error_unknown, binary(), integer(), binary()}. -type get_request_validators_error() :: {get_request_validators_error_bad_request_exception, bad_request_exception()} | {get_request_validators_error_not_found_exception, not_found_exception()} | {get_request_validators_error_too_many_requests_exception, too_many_requests_exception()} | {get_request_validators_error_unauthorized_exception, unauthorized_exception()} | {get_request_validators_error_transport, binary()} | {get_request_validators_error_unknown, binary(), integer(), binary()}. -type get_resource_error() :: {get_resource_error_not_found_exception, not_found_exception()} | {get_resource_error_too_many_requests_exception, too_many_requests_exception()} | {get_resource_error_unauthorized_exception, unauthorized_exception()} | {get_resource_error_transport, binary()} | {get_resource_error_unknown, binary(), integer(), binary()}. -type get_resources_error() :: {get_resources_error_bad_request_exception, bad_request_exception()} | {get_resources_error_not_found_exception, not_found_exception()} | {get_resources_error_too_many_requests_exception, too_many_requests_exception()} | {get_resources_error_unauthorized_exception, unauthorized_exception()} | {get_resources_error_transport, binary()} | {get_resources_error_unknown, binary(), integer(), binary()}. -type get_rest_api_error() :: {get_rest_api_error_bad_request_exception, bad_request_exception()} | {get_rest_api_error_not_found_exception, not_found_exception()} | {get_rest_api_error_too_many_requests_exception, too_many_requests_exception()} | {get_rest_api_error_unauthorized_exception, unauthorized_exception()} | {get_rest_api_error_transport, binary()} | {get_rest_api_error_unknown, binary(), integer(), binary()}. -type get_rest_apis_error() :: {get_rest_apis_error_bad_request_exception, bad_request_exception()} | {get_rest_apis_error_not_found_exception, not_found_exception()} | {get_rest_apis_error_too_many_requests_exception, too_many_requests_exception()} | {get_rest_apis_error_unauthorized_exception, unauthorized_exception()} | {get_rest_apis_error_transport, binary()} | {get_rest_apis_error_unknown, binary(), integer(), binary()}. -type get_sdk_error() :: {get_sdk_error_bad_request_exception, bad_request_exception()} | {get_sdk_error_conflict_exception, conflict_exception()} | {get_sdk_error_limit_exceeded_exception, limit_exceeded_exception()} | {get_sdk_error_not_found_exception, not_found_exception()} | {get_sdk_error_too_many_requests_exception, too_many_requests_exception()} | {get_sdk_error_unauthorized_exception, unauthorized_exception()} | {get_sdk_error_transport, binary()} | {get_sdk_error_unknown, binary(), integer(), binary()}. -type get_sdk_type_error() :: {get_sdk_type_error_bad_request_exception, bad_request_exception()} | {get_sdk_type_error_not_found_exception, not_found_exception()} | {get_sdk_type_error_too_many_requests_exception, too_many_requests_exception()} | {get_sdk_type_error_unauthorized_exception, unauthorized_exception()} | {get_sdk_type_error_transport, binary()} | {get_sdk_type_error_unknown, binary(), integer(), binary()}. -type get_sdk_types_error() :: {get_sdk_types_error_bad_request_exception, bad_request_exception()} | {get_sdk_types_error_not_found_exception, not_found_exception()} | {get_sdk_types_error_too_many_requests_exception, too_many_requests_exception()} | {get_sdk_types_error_unauthorized_exception, unauthorized_exception()} | {get_sdk_types_error_transport, binary()} | {get_sdk_types_error_unknown, binary(), integer(), binary()}. -type get_stage_error() :: {get_stage_error_bad_request_exception, bad_request_exception()} | {get_stage_error_conflict_exception, conflict_exception()} | {get_stage_error_limit_exceeded_exception, limit_exceeded_exception()} | {get_stage_error_not_found_exception, not_found_exception()} | {get_stage_error_too_many_requests_exception, too_many_requests_exception()} | {get_stage_error_unauthorized_exception, unauthorized_exception()} | {get_stage_error_transport, binary()} | {get_stage_error_unknown, binary(), integer(), binary()}. -type get_stages_error() :: {get_stages_error_bad_request_exception, bad_request_exception()} | {get_stages_error_conflict_exception, conflict_exception()} | {get_stages_error_limit_exceeded_exception, limit_exceeded_exception()} | {get_stages_error_not_found_exception, not_found_exception()} | {get_stages_error_too_many_requests_exception, too_many_requests_exception()} | {get_stages_error_unauthorized_exception, unauthorized_exception()} | {get_stages_error_transport, binary()} | {get_stages_error_unknown, binary(), integer(), binary()}. -type get_tags_error() :: {get_tags_error_bad_request_exception, bad_request_exception()} | {get_tags_error_not_found_exception, not_found_exception()} | {get_tags_error_too_many_requests_exception, too_many_requests_exception()} | {get_tags_error_unauthorized_exception, unauthorized_exception()} | {get_tags_error_transport, binary()} | {get_tags_error_unknown, binary(), integer(), binary()}. -type get_usage_error() :: {get_usage_error_bad_request_exception, bad_request_exception()} | {get_usage_error_not_found_exception, not_found_exception()} | {get_usage_error_too_many_requests_exception, too_many_requests_exception()} | {get_usage_error_unauthorized_exception, unauthorized_exception()} | {get_usage_error_transport, binary()} | {get_usage_error_unknown, binary(), integer(), binary()}. -type get_usage_plan_error() :: {get_usage_plan_error_bad_request_exception, bad_request_exception()} | {get_usage_plan_error_not_found_exception, not_found_exception()} | {get_usage_plan_error_too_many_requests_exception, too_many_requests_exception()} | {get_usage_plan_error_unauthorized_exception, unauthorized_exception()} | {get_usage_plan_error_transport, binary()} | {get_usage_plan_error_unknown, binary(), integer(), binary()}. -type get_usage_plan_key_error() :: {get_usage_plan_key_error_bad_request_exception, bad_request_exception()} | {get_usage_plan_key_error_not_found_exception, not_found_exception()} | {get_usage_plan_key_error_too_many_requests_exception, too_many_requests_exception()} | {get_usage_plan_key_error_unauthorized_exception, unauthorized_exception()} | {get_usage_plan_key_error_transport, binary()} | {get_usage_plan_key_error_unknown, binary(), integer(), binary()}. -type get_usage_plan_keys_error() :: {get_usage_plan_keys_error_bad_request_exception, bad_request_exception()} | {get_usage_plan_keys_error_not_found_exception, not_found_exception()} | {get_usage_plan_keys_error_too_many_requests_exception, too_many_requests_exception()} | {get_usage_plan_keys_error_unauthorized_exception, unauthorized_exception()} | {get_usage_plan_keys_error_transport, binary()} | {get_usage_plan_keys_error_unknown, binary(), integer(), binary()}. -type get_usage_plans_error() :: {get_usage_plans_error_bad_request_exception, bad_request_exception()} | {get_usage_plans_error_not_found_exception, not_found_exception()} | {get_usage_plans_error_too_many_requests_exception, too_many_requests_exception()} | {get_usage_plans_error_unauthorized_exception, unauthorized_exception()} | {get_usage_plans_error_transport, binary()} | {get_usage_plans_error_unknown, binary(), integer(), binary()}. -type get_vpc_link_error() :: {get_vpc_link_error_bad_request_exception, bad_request_exception()} | {get_vpc_link_error_not_found_exception, not_found_exception()} | {get_vpc_link_error_too_many_requests_exception, too_many_requests_exception()} | {get_vpc_link_error_unauthorized_exception, unauthorized_exception()} | {get_vpc_link_error_transport, binary()} | {get_vpc_link_error_unknown, binary(), integer(), binary()}. -type get_vpc_links_error() :: {get_vpc_links_error_bad_request_exception, bad_request_exception()} | {get_vpc_links_error_not_found_exception, not_found_exception()} | {get_vpc_links_error_too_many_requests_exception, too_many_requests_exception()} | {get_vpc_links_error_unauthorized_exception, unauthorized_exception()} | {get_vpc_links_error_transport, binary()} | {get_vpc_links_error_unknown, binary(), integer(), binary()}. -type import_api_keys_error() :: {import_api_keys_error_bad_request_exception, bad_request_exception()} | {import_api_keys_error_conflict_exception, conflict_exception()} | {import_api_keys_error_limit_exceeded_exception, limit_exceeded_exception()} | {import_api_keys_error_not_found_exception, not_found_exception()} | {import_api_keys_error_too_many_requests_exception, too_many_requests_exception()} | {import_api_keys_error_unauthorized_exception, unauthorized_exception()} | {import_api_keys_error_transport, binary()} | {import_api_keys_error_unknown, binary(), integer(), binary()}. -type import_documentation_parts_error() :: {import_documentation_parts_error_bad_request_exception, bad_request_exception()} | {import_documentation_parts_error_conflict_exception, conflict_exception()} | {import_documentation_parts_error_limit_exceeded_exception, limit_exceeded_exception()} | {import_documentation_parts_error_not_found_exception, not_found_exception()} | {import_documentation_parts_error_too_many_requests_exception, too_many_requests_exception()} | {import_documentation_parts_error_unauthorized_exception, unauthorized_exception()} | {import_documentation_parts_error_transport, binary()} | {import_documentation_parts_error_unknown, binary(), integer(), binary()}. -type import_rest_api_error() :: {import_rest_api_error_bad_request_exception, bad_request_exception()} | {import_rest_api_error_conflict_exception, conflict_exception()} | {import_rest_api_error_limit_exceeded_exception, limit_exceeded_exception()} | {import_rest_api_error_not_found_exception, not_found_exception()} | {import_rest_api_error_too_many_requests_exception, too_many_requests_exception()} | {import_rest_api_error_unauthorized_exception, unauthorized_exception()} | {import_rest_api_error_transport, binary()} | {import_rest_api_error_unknown, binary(), integer(), binary()}. -type put_gateway_response_error() :: {put_gateway_response_error_bad_request_exception, bad_request_exception()} | {put_gateway_response_error_conflict_exception, conflict_exception()} | {put_gateway_response_error_limit_exceeded_exception, limit_exceeded_exception()} | {put_gateway_response_error_not_found_exception, not_found_exception()} | {put_gateway_response_error_too_many_requests_exception, too_many_requests_exception()} | {put_gateway_response_error_unauthorized_exception, unauthorized_exception()} | {put_gateway_response_error_transport, binary()} | {put_gateway_response_error_unknown, binary(), integer(), binary()}. -type put_integration_error() :: {put_integration_error_bad_request_exception, bad_request_exception()} | {put_integration_error_conflict_exception, conflict_exception()} | {put_integration_error_limit_exceeded_exception, limit_exceeded_exception()} | {put_integration_error_not_found_exception, not_found_exception()} | {put_integration_error_too_many_requests_exception, too_many_requests_exception()} | {put_integration_error_unauthorized_exception, unauthorized_exception()} | {put_integration_error_transport, binary()} | {put_integration_error_unknown, binary(), integer(), binary()}. -type put_integration_response_error() :: {put_integration_response_error_bad_request_exception, bad_request_exception()} | {put_integration_response_error_conflict_exception, conflict_exception()} | {put_integration_response_error_limit_exceeded_exception, limit_exceeded_exception()} | {put_integration_response_error_not_found_exception, not_found_exception()} | {put_integration_response_error_too_many_requests_exception, too_many_requests_exception()} | {put_integration_response_error_unauthorized_exception, unauthorized_exception()} | {put_integration_response_error_transport, binary()} | {put_integration_response_error_unknown, binary(), integer(), binary()}. -type put_method_error() :: {put_method_error_bad_request_exception, bad_request_exception()} | {put_method_error_conflict_exception, conflict_exception()} | {put_method_error_limit_exceeded_exception, limit_exceeded_exception()} | {put_method_error_not_found_exception, not_found_exception()} | {put_method_error_too_many_requests_exception, too_many_requests_exception()} | {put_method_error_unauthorized_exception, unauthorized_exception()} | {put_method_error_transport, binary()} | {put_method_error_unknown, binary(), integer(), binary()}. -type put_method_response_error() :: {put_method_response_error_bad_request_exception, bad_request_exception()} | {put_method_response_error_conflict_exception, conflict_exception()} | {put_method_response_error_limit_exceeded_exception, limit_exceeded_exception()} | {put_method_response_error_not_found_exception, not_found_exception()} | {put_method_response_error_too_many_requests_exception, too_many_requests_exception()} | {put_method_response_error_unauthorized_exception, unauthorized_exception()} | {put_method_response_error_transport, binary()} | {put_method_response_error_unknown, binary(), integer(), binary()}. -type put_rest_api_error() :: {put_rest_api_error_bad_request_exception, bad_request_exception()} | {put_rest_api_error_conflict_exception, conflict_exception()} | {put_rest_api_error_limit_exceeded_exception, limit_exceeded_exception()} | {put_rest_api_error_not_found_exception, not_found_exception()} | {put_rest_api_error_too_many_requests_exception, too_many_requests_exception()} | {put_rest_api_error_unauthorized_exception, unauthorized_exception()} | {put_rest_api_error_transport, binary()} | {put_rest_api_error_unknown, binary(), integer(), binary()}. -type reject_domain_name_access_association_error() :: {reject_domain_name_access_association_error_bad_request_exception, bad_request_exception()} | {reject_domain_name_access_association_error_conflict_exception, conflict_exception()} | {reject_domain_name_access_association_error_not_found_exception, not_found_exception()} | {reject_domain_name_access_association_error_too_many_requests_exception, too_many_requests_exception()} | {reject_domain_name_access_association_error_unauthorized_exception, unauthorized_exception()} | {reject_domain_name_access_association_error_transport, binary()} | {reject_domain_name_access_association_error_unknown, binary(), integer(), binary()}. -type tag_resource_error() :: {tag_resource_error_bad_request_exception, bad_request_exception()} | {tag_resource_error_conflict_exception, conflict_exception()} | {tag_resource_error_limit_exceeded_exception, limit_exceeded_exception()} | {tag_resource_error_not_found_exception, not_found_exception()} | {tag_resource_error_too_many_requests_exception, too_many_requests_exception()} | {tag_resource_error_unauthorized_exception, unauthorized_exception()} | {tag_resource_error_transport, binary()} | {tag_resource_error_unknown, binary(), integer(), binary()}. -type test_invoke_authorizer_error() :: {test_invoke_authorizer_error_bad_request_exception, bad_request_exception()} | {test_invoke_authorizer_error_not_found_exception, not_found_exception()} | {test_invoke_authorizer_error_too_many_requests_exception, too_many_requests_exception()} | {test_invoke_authorizer_error_unauthorized_exception, unauthorized_exception()} | {test_invoke_authorizer_error_transport, binary()} | {test_invoke_authorizer_error_unknown, binary(), integer(), binary()}. -type test_invoke_method_error() :: {test_invoke_method_error_bad_request_exception, bad_request_exception()} | {test_invoke_method_error_not_found_exception, not_found_exception()} | {test_invoke_method_error_too_many_requests_exception, too_many_requests_exception()} | {test_invoke_method_error_unauthorized_exception, unauthorized_exception()} | {test_invoke_method_error_transport, binary()} | {test_invoke_method_error_unknown, binary(), integer(), binary()}. -type untag_resource_error() :: {untag_resource_error_bad_request_exception, bad_request_exception()} | {untag_resource_error_conflict_exception, conflict_exception()} | {untag_resource_error_limit_exceeded_exception, limit_exceeded_exception()} | {untag_resource_error_not_found_exception, not_found_exception()} | {untag_resource_error_too_many_requests_exception, too_many_requests_exception()} | {untag_resource_error_unauthorized_exception, unauthorized_exception()} | {untag_resource_error_transport, binary()} | {untag_resource_error_unknown, binary(), integer(), binary()}. -type update_account_error() :: {update_account_error_bad_request_exception, bad_request_exception()} | {update_account_error_conflict_exception, conflict_exception()} | {update_account_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_account_error_not_found_exception, not_found_exception()} | {update_account_error_too_many_requests_exception, too_many_requests_exception()} | {update_account_error_unauthorized_exception, unauthorized_exception()} | {update_account_error_transport, binary()} | {update_account_error_unknown, binary(), integer(), binary()}. -type update_api_key_error() :: {update_api_key_error_bad_request_exception, bad_request_exception()} | {update_api_key_error_conflict_exception, conflict_exception()} | {update_api_key_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_api_key_error_not_found_exception, not_found_exception()} | {update_api_key_error_too_many_requests_exception, too_many_requests_exception()} | {update_api_key_error_unauthorized_exception, unauthorized_exception()} | {update_api_key_error_transport, binary()} | {update_api_key_error_unknown, binary(), integer(), binary()}. -type update_authorizer_error() :: {update_authorizer_error_bad_request_exception, bad_request_exception()} | {update_authorizer_error_conflict_exception, conflict_exception()} | {update_authorizer_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_authorizer_error_not_found_exception, not_found_exception()} | {update_authorizer_error_too_many_requests_exception, too_many_requests_exception()} | {update_authorizer_error_unauthorized_exception, unauthorized_exception()} | {update_authorizer_error_transport, binary()} | {update_authorizer_error_unknown, binary(), integer(), binary()}. -type update_base_path_mapping_error() :: {update_base_path_mapping_error_bad_request_exception, bad_request_exception()} | {update_base_path_mapping_error_conflict_exception, conflict_exception()} | {update_base_path_mapping_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_base_path_mapping_error_not_found_exception, not_found_exception()} | {update_base_path_mapping_error_too_many_requests_exception, too_many_requests_exception()} | {update_base_path_mapping_error_unauthorized_exception, unauthorized_exception()} | {update_base_path_mapping_error_transport, binary()} | {update_base_path_mapping_error_unknown, binary(), integer(), binary()}. -type update_client_certificate_error() :: {update_client_certificate_error_bad_request_exception, bad_request_exception()} | {update_client_certificate_error_conflict_exception, conflict_exception()} | {update_client_certificate_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_client_certificate_error_not_found_exception, not_found_exception()} | {update_client_certificate_error_too_many_requests_exception, too_many_requests_exception()} | {update_client_certificate_error_unauthorized_exception, unauthorized_exception()} | {update_client_certificate_error_transport, binary()} | {update_client_certificate_error_unknown, binary(), integer(), binary()}. -type update_deployment_error() :: {update_deployment_error_bad_request_exception, bad_request_exception()} | {update_deployment_error_conflict_exception, conflict_exception()} | {update_deployment_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_deployment_error_not_found_exception, not_found_exception()} | {update_deployment_error_service_unavailable_exception, service_unavailable_exception()} | {update_deployment_error_too_many_requests_exception, too_many_requests_exception()} | {update_deployment_error_unauthorized_exception, unauthorized_exception()} | {update_deployment_error_transport, binary()} | {update_deployment_error_unknown, binary(), integer(), binary()}. -type update_documentation_part_error() :: {update_documentation_part_error_bad_request_exception, bad_request_exception()} | {update_documentation_part_error_conflict_exception, conflict_exception()} | {update_documentation_part_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_documentation_part_error_not_found_exception, not_found_exception()} | {update_documentation_part_error_too_many_requests_exception, too_many_requests_exception()} | {update_documentation_part_error_unauthorized_exception, unauthorized_exception()} | {update_documentation_part_error_transport, binary()} | {update_documentation_part_error_unknown, binary(), integer(), binary()}. -type update_documentation_version_error() :: {update_documentation_version_error_bad_request_exception, bad_request_exception()} | {update_documentation_version_error_conflict_exception, conflict_exception()} | {update_documentation_version_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_documentation_version_error_not_found_exception, not_found_exception()} | {update_documentation_version_error_too_many_requests_exception, too_many_requests_exception()} | {update_documentation_version_error_unauthorized_exception, unauthorized_exception()} | {update_documentation_version_error_transport, binary()} | {update_documentation_version_error_unknown, binary(), integer(), binary()}. -type update_domain_name_error() :: {update_domain_name_error_bad_request_exception, bad_request_exception()} | {update_domain_name_error_conflict_exception, conflict_exception()} | {update_domain_name_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_domain_name_error_not_found_exception, not_found_exception()} | {update_domain_name_error_too_many_requests_exception, too_many_requests_exception()} | {update_domain_name_error_unauthorized_exception, unauthorized_exception()} | {update_domain_name_error_transport, binary()} | {update_domain_name_error_unknown, binary(), integer(), binary()}. -type update_gateway_response_error() :: {update_gateway_response_error_bad_request_exception, bad_request_exception()} | {update_gateway_response_error_conflict_exception, conflict_exception()} | {update_gateway_response_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_gateway_response_error_not_found_exception, not_found_exception()} | {update_gateway_response_error_too_many_requests_exception, too_many_requests_exception()} | {update_gateway_response_error_unauthorized_exception, unauthorized_exception()} | {update_gateway_response_error_transport, binary()} | {update_gateway_response_error_unknown, binary(), integer(), binary()}. -type update_integration_error() :: {update_integration_error_bad_request_exception, bad_request_exception()} | {update_integration_error_conflict_exception, conflict_exception()} | {update_integration_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_integration_error_not_found_exception, not_found_exception()} | {update_integration_error_too_many_requests_exception, too_many_requests_exception()} | {update_integration_error_unauthorized_exception, unauthorized_exception()} | {update_integration_error_transport, binary()} | {update_integration_error_unknown, binary(), integer(), binary()}. -type update_integration_response_error() :: {update_integration_response_error_bad_request_exception, bad_request_exception()} | {update_integration_response_error_conflict_exception, conflict_exception()} | {update_integration_response_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_integration_response_error_not_found_exception, not_found_exception()} | {update_integration_response_error_too_many_requests_exception, too_many_requests_exception()} | {update_integration_response_error_unauthorized_exception, unauthorized_exception()} | {update_integration_response_error_transport, binary()} | {update_integration_response_error_unknown, binary(), integer(), binary()}. -type update_method_error() :: {update_method_error_bad_request_exception, bad_request_exception()} | {update_method_error_conflict_exception, conflict_exception()} | {update_method_error_not_found_exception, not_found_exception()} | {update_method_error_too_many_requests_exception, too_many_requests_exception()} | {update_method_error_unauthorized_exception, unauthorized_exception()} | {update_method_error_transport, binary()} | {update_method_error_unknown, binary(), integer(), binary()}. -type update_method_response_error() :: {update_method_response_error_bad_request_exception, bad_request_exception()} | {update_method_response_error_conflict_exception, conflict_exception()} | {update_method_response_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_method_response_error_not_found_exception, not_found_exception()} | {update_method_response_error_too_many_requests_exception, too_many_requests_exception()} | {update_method_response_error_unauthorized_exception, unauthorized_exception()} | {update_method_response_error_transport, binary()} | {update_method_response_error_unknown, binary(), integer(), binary()}. -type update_model_error() :: {update_model_error_bad_request_exception, bad_request_exception()} | {update_model_error_conflict_exception, conflict_exception()} | {update_model_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_model_error_not_found_exception, not_found_exception()} | {update_model_error_too_many_requests_exception, too_many_requests_exception()} | {update_model_error_unauthorized_exception, unauthorized_exception()} | {update_model_error_transport, binary()} | {update_model_error_unknown, binary(), integer(), binary()}. -type update_request_validator_error() :: {update_request_validator_error_bad_request_exception, bad_request_exception()} | {update_request_validator_error_conflict_exception, conflict_exception()} | {update_request_validator_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_request_validator_error_not_found_exception, not_found_exception()} | {update_request_validator_error_too_many_requests_exception, too_many_requests_exception()} | {update_request_validator_error_unauthorized_exception, unauthorized_exception()} | {update_request_validator_error_transport, binary()} | {update_request_validator_error_unknown, binary(), integer(), binary()}. -type update_resource_error() :: {update_resource_error_bad_request_exception, bad_request_exception()} | {update_resource_error_conflict_exception, conflict_exception()} | {update_resource_error_not_found_exception, not_found_exception()} | {update_resource_error_too_many_requests_exception, too_many_requests_exception()} | {update_resource_error_unauthorized_exception, unauthorized_exception()} | {update_resource_error_transport, binary()} | {update_resource_error_unknown, binary(), integer(), binary()}. -type update_rest_api_error() :: {update_rest_api_error_bad_request_exception, bad_request_exception()} | {update_rest_api_error_conflict_exception, conflict_exception()} | {update_rest_api_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_rest_api_error_not_found_exception, not_found_exception()} | {update_rest_api_error_too_many_requests_exception, too_many_requests_exception()} | {update_rest_api_error_unauthorized_exception, unauthorized_exception()} | {update_rest_api_error_transport, binary()} | {update_rest_api_error_unknown, binary(), integer(), binary()}. -type update_stage_error() :: {update_stage_error_bad_request_exception, bad_request_exception()} | {update_stage_error_conflict_exception, conflict_exception()} | {update_stage_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_stage_error_not_found_exception, not_found_exception()} | {update_stage_error_too_many_requests_exception, too_many_requests_exception()} | {update_stage_error_unauthorized_exception, unauthorized_exception()} | {update_stage_error_transport, binary()} | {update_stage_error_unknown, binary(), integer(), binary()}. -type update_usage_error() :: {update_usage_error_bad_request_exception, bad_request_exception()} | {update_usage_error_conflict_exception, conflict_exception()} | {update_usage_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_usage_error_not_found_exception, not_found_exception()} | {update_usage_error_too_many_requests_exception, too_many_requests_exception()} | {update_usage_error_unauthorized_exception, unauthorized_exception()} | {update_usage_error_transport, binary()} | {update_usage_error_unknown, binary(), integer(), binary()}. -type update_usage_plan_error() :: {update_usage_plan_error_bad_request_exception, bad_request_exception()} | {update_usage_plan_error_conflict_exception, conflict_exception()} | {update_usage_plan_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_usage_plan_error_not_found_exception, not_found_exception()} | {update_usage_plan_error_too_many_requests_exception, too_many_requests_exception()} | {update_usage_plan_error_unauthorized_exception, unauthorized_exception()} | {update_usage_plan_error_transport, binary()} | {update_usage_plan_error_unknown, binary(), integer(), binary()}. -type update_vpc_link_error() :: {update_vpc_link_error_bad_request_exception, bad_request_exception()} | {update_vpc_link_error_conflict_exception, conflict_exception()} | {update_vpc_link_error_limit_exceeded_exception, limit_exceeded_exception()} | {update_vpc_link_error_not_found_exception, not_found_exception()} | {update_vpc_link_error_too_many_requests_exception, too_many_requests_exception()} | {update_vpc_link_error_unauthorized_exception, unauthorized_exception()} | {update_vpc_link_error_transport, binary()} | {update_vpc_link_error_unknown, binary(), integer(), binary()}. -file("src/aws/services/api_gateway.gleam", 35). ?DOC( " Build a Client for an AWS region. Credentials resolve through\n" " the default chain (env → web-identity → SSO → profile → process\n" " → ECS → IMDS); use `with_credentials_provider` to override.\n" ). -spec new(binary()) -> client(). new(Region) -> Config = aws@internal@client@runtime:default_config( Region, <<"apigateway"/utf8>>, <<"apigateway"/utf8>> ), Cache@1 = case aws@internal@credentials_cache:start_default( erlang:element(2, Config) ) of {ok, Cache} -> Cache; _assert_fail -> erlang:error(#{gleam_error => let_assert, message => <<"Pattern match failed, no pattern matched the value."/utf8>>, file => <>, module => <<"aws/services/api_gateway"/utf8>>, function => <<"new"/utf8>>, line => 37, value => _assert_fail, start => 5200, 'end' => 5271, pattern_start => 5211, pattern_end => 5220}) end, Config@1 = aws@internal@client@runtime:with_credentials_provider( Config, aws@internal@credentials_cache:as_provider(Cache@1) ), Rule_set@1 = case aws@endpoints:parse_rule_set( <<"{\"parameters\":{\"Endpoint\":{\"builtIn\":\"SDK::Endpoint\",\"documentation\":\"Override the endpoint used to send this request\",\"required\":false,\"type\":\"string\"},\"Region\":{\"builtIn\":\"AWS::Region\",\"documentation\":\"The AWS region used to dispatch the request.\",\"required\":false,\"type\":\"string\"},\"UseDualStack\":{\"builtIn\":\"AWS::UseDualStack\",\"default\":false,\"documentation\":\"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.\",\"required\":true,\"type\":\"boolean\"},\"UseFIPS\":{\"builtIn\":\"AWS::UseFIPS\",\"default\":false,\"documentation\":\"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.\",\"required\":true,\"type\":\"boolean\"}},\"rules\":[{\"conditions\":[{\"argv\":[{\"ref\":\"Endpoint\"}],\"fn\":\"isSet\"}],\"rules\":[{\"conditions\":[{\"argv\":[{\"ref\":\"UseFIPS\"},true],\"fn\":\"booleanEquals\"}],\"error\":\"Invalid Configuration: FIPS and custom endpoint are not supported\",\"type\":\"error\"},{\"conditions\":[{\"argv\":[{\"ref\":\"UseDualStack\"},true],\"fn\":\"booleanEquals\"}],\"error\":\"Invalid Configuration: Dualstack and custom endpoint are not supported\",\"type\":\"error\"},{\"conditions\":[],\"endpoint\":{\"headers\":{},\"properties\":{},\"url\":{\"ref\":\"Endpoint\"}},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[{\"argv\":[{\"ref\":\"Region\"}],\"fn\":\"isSet\"}],\"rules\":[{\"conditions\":[{\"argv\":[{\"ref\":\"Region\"}],\"assign\":\"PartitionResult\",\"fn\":\"aws.partition\"}],\"rules\":[{\"conditions\":[{\"argv\":[{\"ref\":\"UseFIPS\"},true],\"fn\":\"booleanEquals\"},{\"argv\":[{\"ref\":\"UseDualStack\"},true],\"fn\":\"booleanEquals\"}],\"rules\":[{\"conditions\":[{\"argv\":[true,{\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsFIPS\"],\"fn\":\"getAttr\"}],\"fn\":\"booleanEquals\"},{\"argv\":[true,{\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsDualStack\"],\"fn\":\"getAttr\"}],\"fn\":\"booleanEquals\"}],\"rules\":[{\"conditions\":[],\"endpoint\":{\"headers\":{},\"properties\":{},\"url\":\"https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\"},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"FIPS and DualStack are enabled, but this partition does not support one or both\",\"type\":\"error\"}],\"type\":\"tree\"},{\"conditions\":[{\"argv\":[{\"ref\":\"UseFIPS\"},true],\"fn\":\"booleanEquals\"}],\"rules\":[{\"conditions\":[{\"argv\":[{\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsFIPS\"],\"fn\":\"getAttr\"},true],\"fn\":\"booleanEquals\"}],\"rules\":[{\"conditions\":[],\"endpoint\":{\"headers\":{},\"properties\":{},\"url\":\"https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}\"},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"FIPS is enabled but this partition does not support FIPS\",\"type\":\"error\"}],\"type\":\"tree\"},{\"conditions\":[{\"argv\":[{\"ref\":\"UseDualStack\"},true],\"fn\":\"booleanEquals\"}],\"rules\":[{\"conditions\":[{\"argv\":[true,{\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsDualStack\"],\"fn\":\"getAttr\"}],\"fn\":\"booleanEquals\"}],\"rules\":[{\"conditions\":[],\"endpoint\":{\"headers\":{},\"properties\":{},\"url\":\"https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}\"},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"DualStack is enabled but this partition does not support DualStack\",\"type\":\"error\"}],\"type\":\"tree\"},{\"conditions\":[],\"endpoint\":{\"headers\":{},\"properties\":{},\"url\":\"https://apigateway.{Region}.{PartitionResult#dnsSuffix}\"},\"type\":\"endpoint\"}],\"type\":\"tree\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"Invalid Configuration: Missing Region\",\"type\":\"error\"}],\"version\":\"1.0\"}"/utf8>> ) of {ok, Rule_set} -> Rule_set; _assert_fail@1 -> erlang:error(#{gleam_error => let_assert, message => <<"Pattern match failed, no pattern matched the value."/utf8>>, file => <>, module => <<"aws/services/api_gateway"/utf8>>, function => <<"new"/utf8>>, line => 43, value => _assert_fail@1, start => 5392, 'end' => 5466, pattern_start => 5403, pattern_end => 5415}) end, Config@2 = aws@internal@client@runtime:with_endpoint_rule_set( Config@1, Rule_set@1 ), {client, Config@2, Cache@1}. -file("src/aws/services/api_gateway.gleam", 52). ?DOC( " Build a Client by resolving the region from the standard AWS\n" " sources (`AWS_REGION`, `AWS_DEFAULT_REGION`, `~/.aws/config`).\n" " Returns `Error(_)` when no source supplies a region — typical in\n" " Lambda/ECS/EC2 where exactly one of these is always set.\n" ). -spec new_with_auto_region() -> {ok, client()} | {error, aws@region:resolve_error()}. new_with_auto_region() -> gleam@result:'try'( aws@region:resolve(<<"default"/utf8>>), fun(Resolved) -> {ok, new(Resolved)} end ). -file("src/aws/services/api_gateway.gleam", 64). ?DOC( " Override the credentials provider — use for non-default\n" " profiles, in-process static credentials, or a custom chain.\n" " The supplied provider is wrapped in a fresh per-Client\n" " credentials cache so callers don't lose refresh/coalesce\n" " behaviour by overriding the default chain. The previously\n" " running cache actor is stopped — call this on a Client value\n" " you intend to keep, not on one that's about to be discarded.\n" ). -spec with_credentials_provider(client(), aws@credentials:provider()) -> client(). with_credentials_provider(Client, Provider) -> _ = aws@internal@credentials_cache:shutdown(erlang:element(3, Client)), Cache@1 = case aws@internal@credentials_cache:start_default(Provider) of {ok, Cache} -> Cache; _assert_fail -> erlang:error(#{gleam_error => let_assert, message => <<"Pattern match failed, no pattern matched the value."/utf8>>, file => <>, module => <<"aws/services/api_gateway"/utf8>>, function => <<"with_credentials_provider"/utf8>>, line => 69, value => _assert_fail, start => 6597, 'end' => 6661, pattern_start => 6608, pattern_end => 6617}) end, {client, aws@internal@client@runtime:with_credentials_provider( erlang:element(2, Client), aws@internal@credentials_cache:as_provider(Cache@1) ), Cache@1}. -file("src/aws/services/api_gateway.gleam", 80). ?DOC(" Override the endpoint URL (LocalStack, FIPS endpoints, custom DNS).\n"). -spec with_endpoint_url(client(), binary()) -> client(). with_endpoint_url(Client, Url) -> {client, aws@internal@client@runtime:with_endpoint_url( erlang:element(2, Client), Url ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 88). ?DOC(" Swap the HTTP transport — useful for canned-response test doubles.\n"). -spec with_http_send( client(), fun((gleam@http@request:request(bitstring())) -> {ok, gleam@http@response:response(bitstring())} | {error, aws@internal@http_send:http_error()}) ) -> client(). with_http_send(Client, Send) -> {client, aws@internal@client@runtime:with_http_send( erlang:element(2, Client), Send ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 100). ?DOC( " Swap the streaming HTTP transport. Same role as `with_http_send`\n" " but targets the `@streaming` output path (`runtime.invoke_streaming`).\n" " Use for canned-response test doubles on streaming ops, or to plug\n" " in a custom chunked transport (proxy, gRPC tunnel, instrumented\n" " sender) without disturbing the buffered path.\n" ). -spec with_streaming_http_send( client(), fun((gleam@http@request:request(bitstring())) -> {ok, gleam@http@response:response(aws@streaming:streaming_body())} | {error, aws@internal@http_send:http_error()}) ) -> client(). with_streaming_http_send(Client, Send) -> {client, aws@internal@client@runtime:with_streaming_http_send( erlang:element(2, Client), Send ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 117). ?DOC( " Switch the streaming sender to the HTTP/2 variant. httpc adds\n" " `{http_version, \"HTTP/2\"}` to its option list; servers that\n" " don't speak HTTP/2 negotiate down to HTTP/1.1 via ALPN, so\n" " calls keep working even when the peer doesn't support it.\n" " Buffered requests (`with_http_send`) are unaffected — HTTP/2\n" " is for high-throughput streaming endpoints (S3 multipart,\n" " Bedrock streaming, Transcribe).\n" ). -spec with_http2(client()) -> client(). with_http2(Client) -> {client, aws@internal@client@runtime:with_http2(erlang:element(2, Client)), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 127). ?DOC( " Opt the Client into SigV4a (asymmetric ECDSA P-256) signing\n" " for every request. `region_set` becomes the `X-Amz-Region-Set`\n" " header — single-region callers pass `[\"us-east-1\"]`,\n" " multi-region callers pass the full list. Required for S3\n" " Multi-Region Access Points and any other endpoint that demands\n" " AWS4-ECDSA-P256-SHA256 signatures.\n" ). -spec with_sigv4a_region_set(client(), list(binary())) -> client(). with_sigv4a_region_set(Client, Region_set) -> {client, aws@internal@client@runtime:with_sigv4a_region_set( erlang:element(2, Client), Region_set ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 142). ?DOC( " Override SigV4a's `normalize_path` (RFC 3986 dot-segment removal).\n" " No-op when `with_sigv4a_region_set` has not been called yet — the\n" " knob lives on the per-Client SigV4a state, not on the underlying\n" " transport. S3 callers need `False` so object keys with `.` / `..`\n" " survive the canonical-request step.\n" ). -spec with_sigv4a_path_normalization(client(), boolean()) -> client(). with_sigv4a_path_normalization(Client, Normalize) -> {client, aws@internal@client@runtime:with_sigv4a_path_normalization( erlang:element(2, Client), Normalize ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 157). ?DOC( " Override the retry attempt budget on the underlying ClientConfig.\n" " The common case for retry tuning — pass `1` to disable retries\n" " entirely (single attempt per request), `5` for long-running batch\n" " workloads. Preserves the other retry knobs (delays, sleep, rng,\n" " rate-limiter); use `runtime.with_retry_strategy` for full control.\n" ). -spec with_max_attempts(client(), integer()) -> client(). with_max_attempts(Client, N) -> {client, aws@internal@client@runtime:with_max_attempts( erlang:element(2, Client), N ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 166). ?DOC( " When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.\n" " Wire form: `runtime.with_endpoint_param(config, \"UseDualStack\", ...)`.\n" ). -spec with_use_dual_stack(client(), boolean()) -> client(). with_use_dual_stack(Client, Value) -> {client, aws@internal@client@runtime:with_endpoint_param( erlang:element(2, Client), <<"UseDualStack"/utf8>>, {bool_val, Value} ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 179). ?DOC( " When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.\n" " Wire form: `runtime.with_endpoint_param(config, \"UseFIPS\", ...)`.\n" ). -spec with_use_fips(client(), boolean()) -> client(). with_use_fips(Client, Value) -> {client, aws@internal@client@runtime:with_endpoint_param( erlang:element(2, Client), <<"UseFIPS"/utf8>>, {bool_val, Value} ), erlang:element(3, Client)}. -file("src/aws/services/api_gateway.gleam", 197). ?DOC( " Read the underlying `runtime.ClientConfig` out of an existing\n" " `Client`. Use this when you want to dispatch a request through\n" " `runtime.invoke` / `runtime.invoke_streaming` directly — e.g. to\n" " build a service-specific streaming wrapper around a `@streaming`\n" " output operation that the per-op codegen hasn't surfaced yet.\n" " The returned config is a value (Gleam records are immutable);\n" " callers cannot mutate the Client through it.\n" ). -spec config(client()) -> aws@internal@client@runtime:client_config(). config(Client) -> erlang:element(2, Client). -file("src/aws/services/api_gateway.gleam", 207). ?DOC( " Release the per-Client credentials cache actor. Call this when a\n" " Client value is no longer needed — long-running processes that\n" " build many Clients (tests, scripts, multi-tenant servers) will\n" " otherwise accumulate one BEAM process per `new` call. Fire-and-\n" " forget; safe to call multiple times. For tests or graceful\n" " shutdown that must observe the actor's exit, use `shutdown_sync`.\n" ). -spec shutdown(client()) -> nil. shutdown(Client) -> aws@internal@credentials_cache:shutdown(erlang:element(3, Client)). -file("src/aws/services/api_gateway.gleam", 215). ?DOC( " Like `shutdown` but blocks until the credentials cache actor has\n" " actually exited (or `timeout_ms` elapses). `Ok(Nil)` indicates a\n" " clean exit; `Error(Nil)` indicates the timeout fired and the\n" " actor was still alive when the caller gave up.\n" ). -spec shutdown_sync(client(), integer()) -> {ok, nil} | {error, nil}. shutdown_sync(Client, Timeout_ms) -> aws@internal@credentials_cache:shutdown_sync( erlang:element(3, Client), Timeout_ms ). -file("src/aws/services/api_gateway.gleam", 407). -spec encode_stage_key_struct(stage_key()) -> gleam@json:json(). encode_stage_key_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"restApiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"stageName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 235). -spec encode_create_api_key_request_struct(create_api_key_request()) -> gleam@json:json(). encode_create_api_key_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"customerId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"enabled"/utf8>>, gleam@json:bool(V@2)} | Pairs@2]; none -> [{<<"enabled"/utf8>>, gleam@json:bool(false)} | Pairs@2] end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"generateDistinctId"/utf8>>, gleam@json:bool(V@3)} | Pairs@3]; none -> [{<<"generateDistinctId"/utf8>>, gleam@json:bool(false)} | Pairs@3] end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"name"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"stageKeys"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_stage_key_struct/1) end)(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"value"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, gleam@json:object(Pairs@8). -file("src/aws/services/api_gateway.gleam", 420). -spec decode_stage_key_struct() -> gleam@dynamic@decode:decoder(stage_key()). decode_stage_key_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {stage_key, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 288). -spec decode_create_api_key_request_struct() -> gleam@dynamic@decode:decoder(create_api_key_request()). decode_create_api_key_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"customerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Customer_id) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"enabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Enabled) -> gleam@dynamic@decode:optional_field( <<"generateDistinctId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Generate_distinct_id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"stageKeys"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_stage_key_struct( ) ) ), fun(Stage_keys) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Value ) -> gleam@dynamic@decode:success( {create_api_key_request, Customer_id, Description, Enabled, Generate_distinct_id, Name, Stage_keys, Tags, Value} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 435). -spec decode_stage_key_struct_params() -> gleam@dynamic@decode:decoder(stage_key()). decode_stage_key_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {stage_key, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 344). -spec decode_create_api_key_request_struct_params() -> gleam@dynamic@decode:decoder(create_api_key_request()). decode_create_api_key_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"customerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Customer_id) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"enabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Enabled) -> gleam@dynamic@decode:optional_field( <<"generateDistinctId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Generate_distinct_id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"stageKeys"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_stage_key_struct_params( ) ) ), fun(Stage_keys) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Value ) -> gleam@dynamic@decode:success( {create_api_key_request, Customer_id, Description, Enabled, Generate_distinct_id, Name, Stage_keys, Tags, Value} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 465). -spec encode_api_key_struct(api_key()) -> gleam@json:json(). encode_api_key_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"createdDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"customerId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"description"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"enabled"/utf8>>, gleam@json:bool(V@3)} | Pairs@3]; none -> [{<<"enabled"/utf8>>, gleam@json:bool(false)} | Pairs@3] end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"id"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"lastUpdatedDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"name"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"stageKeys"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"value"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, gleam@json:object(Pairs@10). -file("src/aws/services/api_gateway.gleam", 530). -spec decode_api_key_struct() -> gleam@dynamic@decode:decoder(api_key()). decode_api_key_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"customerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Customer_id) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"enabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Enabled) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"lastUpdatedDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Last_updated_date) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"stageKeys"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Stage_keys ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Value ) -> gleam@dynamic@decode:success( {api_key, Created_date, Customer_id, Description, Enabled, Id, Last_updated_date, Name, Stage_keys, Tags, Value} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 596). -spec decode_api_key_struct_params() -> gleam@dynamic@decode:decoder(api_key()). decode_api_key_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"customerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Customer_id) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"enabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Enabled) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"lastUpdatedDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Last_updated_date) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"stageKeys"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Stage_keys ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Value ) -> gleam@dynamic@decode:success( {api_key, Created_date, Customer_id, Description, Enabled, Id, Last_updated_date, Name, Stage_keys, Tags, Value} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 666). -spec encode_bad_request_exception_struct(bad_request_exception()) -> gleam@json:json(). encode_bad_request_exception_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"message"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 677). -spec decode_bad_request_exception_struct() -> gleam@dynamic@decode:decoder(bad_request_exception()). decode_bad_request_exception_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success( {bad_request_exception, Message} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 689). -spec decode_bad_request_exception_struct_params() -> gleam@dynamic@decode:decoder(bad_request_exception()). decode_bad_request_exception_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success( {bad_request_exception, Message} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 705). -spec encode_conflict_exception_struct(conflict_exception()) -> gleam@json:json(). encode_conflict_exception_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"message"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 714). -spec decode_conflict_exception_struct() -> gleam@dynamic@decode:decoder(conflict_exception()). decode_conflict_exception_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success({conflict_exception, Message}) end ) end ). -file("src/aws/services/api_gateway.gleam", 724). -spec decode_conflict_exception_struct_params() -> gleam@dynamic@decode:decoder(conflict_exception()). decode_conflict_exception_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success({conflict_exception, Message}) end ) end ). -file("src/aws/services/api_gateway.gleam", 743). -spec encode_limit_exceeded_exception_struct(limit_exceeded_exception()) -> gleam@json:json(). encode_limit_exceeded_exception_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"message"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"retryAfterSeconds"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 758). -spec decode_limit_exceeded_exception_struct() -> gleam@dynamic@decode:decoder(limit_exceeded_exception()). decode_limit_exceeded_exception_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:optional_field( <<"retryAfterSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Retry_after_seconds) -> gleam@dynamic@decode:success( {limit_exceeded_exception, Message, Retry_after_seconds} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 778). -spec decode_limit_exceeded_exception_struct_params() -> gleam@dynamic@decode:decoder(limit_exceeded_exception()). decode_limit_exceeded_exception_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:optional_field( <<"retryAfterSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Retry_after_seconds) -> gleam@dynamic@decode:success( {limit_exceeded_exception, Message, Retry_after_seconds} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 802). -spec encode_not_found_exception_struct(not_found_exception()) -> gleam@json:json(). encode_not_found_exception_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"message"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 813). -spec decode_not_found_exception_struct() -> gleam@dynamic@decode:decoder(not_found_exception()). decode_not_found_exception_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success({not_found_exception, Message}) end ) end ). -file("src/aws/services/api_gateway.gleam", 823). -spec decode_not_found_exception_struct_params() -> gleam@dynamic@decode:decoder(not_found_exception()). decode_not_found_exception_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success({not_found_exception, Message}) end ) end ). -file("src/aws/services/api_gateway.gleam", 842). -spec encode_too_many_requests_exception_struct(too_many_requests_exception()) -> gleam@json:json(). encode_too_many_requests_exception_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"message"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"retryAfterSeconds"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 857). -spec decode_too_many_requests_exception_struct() -> gleam@dynamic@decode:decoder(too_many_requests_exception()). decode_too_many_requests_exception_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:optional_field( <<"retryAfterSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Retry_after_seconds) -> gleam@dynamic@decode:success( {too_many_requests_exception, Message, Retry_after_seconds} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 877). -spec decode_too_many_requests_exception_struct_params() -> gleam@dynamic@decode:decoder(too_many_requests_exception()). decode_too_many_requests_exception_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:optional_field( <<"retryAfterSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Retry_after_seconds) -> gleam@dynamic@decode:success( {too_many_requests_exception, Message, Retry_after_seconds} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 901). -spec encode_unauthorized_exception_struct(unauthorized_exception()) -> gleam@json:json(). encode_unauthorized_exception_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"message"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 912). -spec decode_unauthorized_exception_struct() -> gleam@dynamic@decode:decoder(unauthorized_exception()). decode_unauthorized_exception_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success( {unauthorized_exception, Message} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 924). -spec decode_unauthorized_exception_struct_params() -> gleam@dynamic@decode:decoder(unauthorized_exception()). decode_unauthorized_exception_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:success( {unauthorized_exception, Message} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1146). -spec encode_authorizer_type_enum(authorizer_type()) -> gleam@json:json(). encode_authorizer_type_enum(V) -> case V of authorizer_type_cognito_user_pools -> gleam@json:string(<<"COGNITO_USER_POOLS"/utf8>>); authorizer_type_request -> gleam@json:string(<<"REQUEST"/utf8>>); authorizer_type_token -> gleam@json:string(<<"TOKEN"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 951). -spec encode_create_authorizer_request_struct(create_authorizer_request()) -> gleam@json:json(). encode_create_authorizer_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"authType"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizerCredentials"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"authorizerResultTtlInSeconds"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"authorizerUri"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"identitySource"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"identityValidationExpression"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"name"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"providerARNs"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"type"/utf8>>, encode_authorizer_type_enum(V@9)} | Pairs@9]; none -> Pairs@9 end, gleam@json:object(Pairs@10). -file("src/aws/services/api_gateway.gleam", 1154). -spec decode_authorizer_type_enum() -> gleam@dynamic@decode:decoder(authorizer_type()). decode_authorizer_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"COGNITO_USER_POOLS"/utf8>> -> gleam@dynamic@decode:success( authorizer_type_cognito_user_pools ); <<"REQUEST"/utf8>> -> gleam@dynamic@decode:success(authorizer_type_request); <<"TOKEN"/utf8>> -> gleam@dynamic@decode:success(authorizer_type_token); _ -> gleam@dynamic@decode:failure( authorizer_type_cognito_user_pools, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 1004). -spec decode_create_authorizer_request_struct() -> gleam@dynamic@decode:decoder(create_authorizer_request()). decode_create_authorizer_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Auth_type) -> gleam@dynamic@decode:optional_field( <<"authorizerCredentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_credentials) -> gleam@dynamic@decode:optional_field( <<"authorizerResultTtlInSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Authorizer_result_ttl_in_seconds) -> gleam@dynamic@decode:optional_field( <<"authorizerUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_uri) -> gleam@dynamic@decode:optional_field( <<"identitySource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Identity_source) -> gleam@dynamic@decode:optional_field( <<"identityValidationExpression"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Identity_validation_expression ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"providerARNs"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Provider_ar_ns ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_authorizer_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:success( {create_authorizer_request, Auth_type, Authorizer_credentials, Authorizer_result_ttl_in_seconds, Authorizer_uri, Identity_source, Identity_validation_expression, Name, Provider_ar_ns, Rest_api_id, Type_} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1072). -spec decode_create_authorizer_request_struct_params() -> gleam@dynamic@decode:decoder(create_authorizer_request()). decode_create_authorizer_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Auth_type) -> gleam@dynamic@decode:optional_field( <<"authorizerCredentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_credentials) -> gleam@dynamic@decode:optional_field( <<"authorizerResultTtlInSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Authorizer_result_ttl_in_seconds) -> gleam@dynamic@decode:optional_field( <<"authorizerUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_uri) -> gleam@dynamic@decode:optional_field( <<"identitySource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Identity_source) -> gleam@dynamic@decode:optional_field( <<"identityValidationExpression"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Identity_validation_expression ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"providerARNs"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Provider_ar_ns ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_authorizer_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:success( {create_authorizer_request, Auth_type, Authorizer_credentials, Authorizer_result_ttl_in_seconds, Authorizer_uri, Identity_source, Identity_validation_expression, Name, Provider_ar_ns, Rest_api_id, Type_} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1165). -spec authorizer_type_from_wire(binary()) -> {ok, authorizer_type()} | {error, binary()}. authorizer_type_from_wire(S) -> case S of <<"COGNITO_USER_POOLS"/utf8>> -> {ok, authorizer_type_cognito_user_pools}; <<"REQUEST"/utf8>> -> {ok, authorizer_type_request}; <<"TOKEN"/utf8>> -> {ok, authorizer_type_token}; _ -> {ok, authorizer_type_cognito_user_pools} end. -file("src/aws/services/api_gateway.gleam", 1189). -spec encode_authorizer_struct(authorizer()) -> gleam@json:json(). encode_authorizer_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"authType"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizerCredentials"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"authorizerResultTtlInSeconds"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"authorizerUri"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"id"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"identitySource"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"identityValidationExpression"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"name"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"providerARNs"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"type"/utf8>>, encode_authorizer_type_enum(V@9)} | Pairs@9]; none -> Pairs@9 end, gleam@json:object(Pairs@10). -file("src/aws/services/api_gateway.gleam", 1240). -spec decode_authorizer_struct() -> gleam@dynamic@decode:decoder(authorizer()). decode_authorizer_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Auth_type) -> gleam@dynamic@decode:optional_field( <<"authorizerCredentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_credentials) -> gleam@dynamic@decode:optional_field( <<"authorizerResultTtlInSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Authorizer_result_ttl_in_seconds) -> gleam@dynamic@decode:optional_field( <<"authorizerUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_uri) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"identitySource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Identity_source) -> gleam@dynamic@decode:optional_field( <<"identityValidationExpression"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Identity_validation_expression ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Name ) -> gleam@dynamic@decode:optional_field( <<"providerARNs"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Provider_ar_ns ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_authorizer_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:success( {authorizer, Auth_type, Authorizer_credentials, Authorizer_result_ttl_in_seconds, Authorizer_uri, Id, Identity_source, Identity_validation_expression, Name, Provider_ar_ns, Type_} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1306). -spec decode_authorizer_struct_params() -> gleam@dynamic@decode:decoder(authorizer()). decode_authorizer_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Auth_type) -> gleam@dynamic@decode:optional_field( <<"authorizerCredentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_credentials) -> gleam@dynamic@decode:optional_field( <<"authorizerResultTtlInSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Authorizer_result_ttl_in_seconds) -> gleam@dynamic@decode:optional_field( <<"authorizerUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_uri) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"identitySource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Identity_source) -> gleam@dynamic@decode:optional_field( <<"identityValidationExpression"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Identity_validation_expression ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Name ) -> gleam@dynamic@decode:optional_field( <<"providerARNs"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Provider_ar_ns ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_authorizer_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:success( {authorizer, Auth_type, Authorizer_credentials, Authorizer_result_ttl_in_seconds, Authorizer_uri, Id, Identity_source, Identity_validation_expression, Name, Provider_ar_ns, Type_} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1382). -spec encode_create_base_path_mapping_request_struct( create_base_path_mapping_request() ) -> gleam@json:json(). encode_create_base_path_mapping_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"basePath"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"stage"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 1409). -spec decode_create_base_path_mapping_request_struct() -> gleam@dynamic@decode:decoder(create_base_path_mapping_request()). decode_create_base_path_mapping_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage) -> gleam@dynamic@decode:success( {create_base_path_mapping_request, Base_path, Domain_name, Domain_name_id, Rest_api_id, Stage} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1447). -spec decode_create_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:decoder(create_base_path_mapping_request()). decode_create_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage) -> gleam@dynamic@decode:success( {create_base_path_mapping_request, Base_path, Domain_name, Domain_name_id, Rest_api_id, Stage} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1493). -spec encode_base_path_mapping_struct(base_path_mapping()) -> gleam@json:json(). encode_base_path_mapping_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"basePath"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"stage"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 1510). -spec decode_base_path_mapping_struct() -> gleam@dynamic@decode:decoder(base_path_mapping()). decode_base_path_mapping_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage) -> gleam@dynamic@decode:success( {base_path_mapping, Base_path, Rest_api_id, Stage} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1534). -spec decode_base_path_mapping_struct_params() -> gleam@dynamic@decode:decoder(base_path_mapping()). decode_base_path_mapping_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage) -> gleam@dynamic@decode:success( {base_path_mapping, Base_path, Rest_api_id, Stage} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1822). -spec encode_deployment_canary_settings_struct(deployment_canary_settings()) -> gleam@json:json(). encode_deployment_canary_settings_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"percentTraffic"/utf8>>, aws@internal@codec@json_float:encode(V)} | Pairs]; none -> [{<<"percentTraffic"/utf8>>, gleam@json:int(0)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"stageVariableOverrides"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"useStageCache"/utf8>>, gleam@json:bool(V@2)} | Pairs@2]; none -> [{<<"useStageCache"/utf8>>, gleam@json:bool(false)} | Pairs@2] end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 1769). -spec encode_cache_cluster_size_enum(cache_cluster_size()) -> gleam@json:json(). encode_cache_cluster_size_enum(V) -> case V of cache_cluster_size_size0_point5_gb -> gleam@json:string(<<"0.5"/utf8>>); cache_cluster_size_size118_gb -> gleam@json:string(<<"118"/utf8>>); cache_cluster_size_size13_point5_gb -> gleam@json:string(<<"13.5"/utf8>>); cache_cluster_size_size1_point6_gb -> gleam@json:string(<<"1.6"/utf8>>); cache_cluster_size_size237_gb -> gleam@json:string(<<"237"/utf8>>); cache_cluster_size_size28_point4_gb -> gleam@json:string(<<"28.4"/utf8>>); cache_cluster_size_size58_point2_gb -> gleam@json:string(<<"58.2"/utf8>>); cache_cluster_size_size6_point1_gb -> gleam@json:string(<<"6.1"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 1574). -spec encode_create_deployment_request_struct(create_deployment_request()) -> gleam@json:json(). encode_create_deployment_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheClusterEnabled"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheClusterSize"/utf8>>, encode_cache_cluster_size_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"canarySettings"/utf8>>, encode_deployment_canary_settings_struct(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"description"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"stageDescription"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"stageName"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"tracingEnabled"/utf8>>, gleam@json:bool(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"variables"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@8)} | Pairs@8]; none -> Pairs@8 end, gleam@json:object(Pairs@9). -file("src/aws/services/api_gateway.gleam", 1852). -spec decode_deployment_canary_settings_struct() -> gleam@dynamic@decode:decoder(deployment_canary_settings()). decode_deployment_canary_settings_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"percentTraffic"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder() ), fun(Percent_traffic) -> gleam@dynamic@decode:optional_field( <<"stageVariableOverrides"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Stage_variable_overrides) -> gleam@dynamic@decode:optional_field( <<"useStageCache"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Use_stage_cache) -> gleam@dynamic@decode:success( {deployment_canary_settings, Percent_traffic, Stage_variable_overrides, Use_stage_cache} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1782). -spec decode_cache_cluster_size_enum() -> gleam@dynamic@decode:decoder(cache_cluster_size()). decode_cache_cluster_size_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"0.5"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_size_size0_point5_gb ); <<"118"/utf8>> -> gleam@dynamic@decode:success(cache_cluster_size_size118_gb); <<"13.5"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_size_size13_point5_gb ); <<"1.6"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_size_size1_point6_gb ); <<"237"/utf8>> -> gleam@dynamic@decode:success(cache_cluster_size_size237_gb); <<"28.4"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_size_size28_point4_gb ); <<"58.2"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_size_size58_point2_gb ); <<"6.1"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_size_size6_point1_gb ); _ -> gleam@dynamic@decode:failure( cache_cluster_size_size0_point5_gb, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 1634). -spec decode_create_deployment_request_struct() -> gleam@dynamic@decode:decoder(create_deployment_request()). decode_create_deployment_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheClusterEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_cluster_enabled) -> gleam@dynamic@decode:optional_field( <<"cacheClusterSize"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_size_enum() ), fun(Cache_cluster_size) -> gleam@dynamic@decode:optional_field( <<"canarySettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_deployment_canary_settings_struct() ), fun(Canary_settings) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageDescription"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_description) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:optional_field( <<"tracingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Tracing_enabled ) -> gleam@dynamic@decode:optional_field( <<"variables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Variables ) -> gleam@dynamic@decode:success( {create_deployment_request, Cache_cluster_enabled, Cache_cluster_size, Canary_settings, Description, Rest_api_id, Stage_description, Stage_name, Tracing_enabled, Variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1878). -spec decode_deployment_canary_settings_struct_params() -> gleam@dynamic@decode:decoder(deployment_canary_settings()). decode_deployment_canary_settings_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"percentTraffic"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder() ), fun(Percent_traffic) -> gleam@dynamic@decode:optional_field( <<"stageVariableOverrides"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Stage_variable_overrides) -> gleam@dynamic@decode:optional_field( <<"useStageCache"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Use_stage_cache) -> gleam@dynamic@decode:success( {deployment_canary_settings, Percent_traffic, Stage_variable_overrides, Use_stage_cache} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1696). -spec decode_create_deployment_request_struct_params() -> gleam@dynamic@decode:decoder(create_deployment_request()). decode_create_deployment_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheClusterEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_cluster_enabled) -> gleam@dynamic@decode:optional_field( <<"cacheClusterSize"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_size_enum() ), fun(Cache_cluster_size) -> gleam@dynamic@decode:optional_field( <<"canarySettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_deployment_canary_settings_struct_params( ) ), fun(Canary_settings) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageDescription"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_description) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:optional_field( <<"tracingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Tracing_enabled ) -> gleam@dynamic@decode:optional_field( <<"variables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Variables ) -> gleam@dynamic@decode:success( {create_deployment_request, Cache_cluster_enabled, Cache_cluster_size, Canary_settings, Description, Rest_api_id, Stage_description, Stage_name, Tracing_enabled, Variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1798). -spec cache_cluster_size_from_wire(binary()) -> {ok, cache_cluster_size()} | {error, binary()}. cache_cluster_size_from_wire(S) -> case S of <<"0.5"/utf8>> -> {ok, cache_cluster_size_size0_point5_gb}; <<"118"/utf8>> -> {ok, cache_cluster_size_size118_gb}; <<"13.5"/utf8>> -> {ok, cache_cluster_size_size13_point5_gb}; <<"1.6"/utf8>> -> {ok, cache_cluster_size_size1_point6_gb}; <<"237"/utf8>> -> {ok, cache_cluster_size_size237_gb}; <<"28.4"/utf8>> -> {ok, cache_cluster_size_size28_point4_gb}; <<"58.2"/utf8>> -> {ok, cache_cluster_size_size58_point2_gb}; <<"6.1"/utf8>> -> {ok, cache_cluster_size_size6_point1_gb}; _ -> {ok, cache_cluster_size_size0_point5_gb} end. -file("src/aws/services/api_gateway.gleam", 2035). -spec encode_method_snapshot_struct(method_snapshot()) -> gleam@json:json(). encode_method_snapshot_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeyRequired"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> [{<<"apiKeyRequired"/utf8>>, gleam@json:bool(false)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizationType"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 1915). -spec encode_deployment_struct(deployment()) -> gleam@json:json(). encode_deployment_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiSummary"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list( D@1 ), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element( 1, Pair@1 ), encode_method_snapshot_struct( erlang:element( 2, Pair@1 ) )} end ) end ) end)(erlang:element(2, Pair))} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"createdDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"description"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"id"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 2048). -spec decode_method_snapshot_struct() -> gleam@dynamic@decode:decoder(method_snapshot()). decode_method_snapshot_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyRequired"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Api_key_required) -> gleam@dynamic@decode:optional_field( <<"authorizationType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorization_type) -> gleam@dynamic@decode:success( {method_snapshot, Api_key_required, Authorization_type} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1962). -spec decode_deployment_struct() -> gleam@dynamic@decode:decoder(deployment()). decode_deployment_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiSummary"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_snapshot_struct() ) ) ), fun(Api_summary) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:success( {deployment, Api_summary, Created_date, Description, Id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2066). -spec decode_method_snapshot_struct_params() -> gleam@dynamic@decode:decoder(method_snapshot()). decode_method_snapshot_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyRequired"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Api_key_required) -> gleam@dynamic@decode:optional_field( <<"authorizationType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorization_type) -> gleam@dynamic@decode:success( {method_snapshot, Api_key_required, Authorization_type} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 1995). -spec decode_deployment_struct_params() -> gleam@dynamic@decode:decoder(deployment()). decode_deployment_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiSummary"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_snapshot_struct_params() ) ) ), fun(Api_summary) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:success( {deployment, Api_summary, Created_date, Description, Id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2091). -spec encode_service_unavailable_exception_struct( service_unavailable_exception() ) -> gleam@json:json(). encode_service_unavailable_exception_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"message"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"retryAfterSeconds"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 2106). -spec decode_service_unavailable_exception_struct() -> gleam@dynamic@decode:decoder(service_unavailable_exception()). decode_service_unavailable_exception_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:optional_field( <<"retryAfterSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Retry_after_seconds) -> gleam@dynamic@decode:success( {service_unavailable_exception, Message, Retry_after_seconds} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2126). -spec decode_service_unavailable_exception_struct_params() -> gleam@dynamic@decode:decoder(service_unavailable_exception()). decode_service_unavailable_exception_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"message"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Message) -> gleam@dynamic@decode:optional_field( <<"retryAfterSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Retry_after_seconds) -> gleam@dynamic@decode:success( {service_unavailable_exception, Message, Retry_after_seconds} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2359). -spec encode_documentation_part_type_enum(documentation_part_type()) -> gleam@json:json(). encode_documentation_part_type_enum(V) -> case V of documentation_part_type_api -> gleam@json:string(<<"API"/utf8>>); documentation_part_type_authorizer -> gleam@json:string(<<"AUTHORIZER"/utf8>>); documentation_part_type_method -> gleam@json:string(<<"METHOD"/utf8>>); documentation_part_type_model -> gleam@json:string(<<"MODEL"/utf8>>); documentation_part_type_path_parameter -> gleam@json:string(<<"PATH_PARAMETER"/utf8>>); documentation_part_type_query_parameter -> gleam@json:string(<<"QUERY_PARAMETER"/utf8>>); documentation_part_type_request_body -> gleam@json:string(<<"REQUEST_BODY"/utf8>>); documentation_part_type_request_header -> gleam@json:string(<<"REQUEST_HEADER"/utf8>>); documentation_part_type_resource -> gleam@json:string(<<"RESOURCE"/utf8>>); documentation_part_type_response -> gleam@json:string(<<"RESPONSE"/utf8>>); documentation_part_type_response_body -> gleam@json:string(<<"RESPONSE_BODY"/utf8>>); documentation_part_type_response_header -> gleam@json:string(<<"RESPONSE_HEADER"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 2238). -spec encode_documentation_part_location_struct(documentation_part_location()) -> gleam@json:json(). encode_documentation_part_location_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"method"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"name"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"path"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"type"/utf8>>, encode_documentation_part_type_enum(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 2154). -spec encode_create_documentation_part_request_struct( create_documentation_part_request() ) -> gleam@json:json(). encode_create_documentation_part_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"location"/utf8>>, encode_documentation_part_location_struct(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"properties"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 2378). -spec decode_documentation_part_type_enum() -> gleam@dynamic@decode:decoder(documentation_part_type()). decode_documentation_part_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"API"/utf8>> -> gleam@dynamic@decode:success(documentation_part_type_api); <<"AUTHORIZER"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_authorizer ); <<"METHOD"/utf8>> -> gleam@dynamic@decode:success(documentation_part_type_method); <<"MODEL"/utf8>> -> gleam@dynamic@decode:success(documentation_part_type_model); <<"PATH_PARAMETER"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_path_parameter ); <<"QUERY_PARAMETER"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_query_parameter ); <<"REQUEST_BODY"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_request_body ); <<"REQUEST_HEADER"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_request_header ); <<"RESOURCE"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_resource ); <<"RESPONSE"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_response ); <<"RESPONSE_BODY"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_response_body ); <<"RESPONSE_HEADER"/utf8>> -> gleam@dynamic@decode:success( documentation_part_type_response_header ); _ -> gleam@dynamic@decode:failure( documentation_part_type_api, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 2268). -spec decode_documentation_part_location_struct() -> gleam@dynamic@decode:decoder(documentation_part_location()). decode_documentation_part_location_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"method"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Method) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_type_enum( ) ), fun(Type_) -> gleam@dynamic@decode:success( {documentation_part_location, Method, Name, Path, Status_code, Type_} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2176). -spec decode_create_documentation_part_request_struct() -> gleam@dynamic@decode:decoder(create_documentation_part_request()). decode_create_documentation_part_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"location"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_location_struct() ), fun(Location) -> gleam@dynamic@decode:optional_field( <<"properties"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Properties) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {create_documentation_part_request, Location, Properties, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2306). -spec decode_documentation_part_location_struct_params() -> gleam@dynamic@decode:decoder(documentation_part_location()). decode_documentation_part_location_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"method"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Method) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_type_enum( ) ), fun(Type_) -> gleam@dynamic@decode:success( {documentation_part_location, Method, Name, Path, Status_code, Type_} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2202). -spec decode_create_documentation_part_request_struct_params() -> gleam@dynamic@decode:decoder(create_documentation_part_request()). decode_create_documentation_part_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"location"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_location_struct_params() ), fun(Location) -> gleam@dynamic@decode:optional_field( <<"properties"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Properties) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {create_documentation_part_request, Location, Properties, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2400). -spec documentation_part_type_from_wire(binary()) -> {ok, documentation_part_type()} | {error, binary()}. documentation_part_type_from_wire(S) -> case S of <<"API"/utf8>> -> {ok, documentation_part_type_api}; <<"AUTHORIZER"/utf8>> -> {ok, documentation_part_type_authorizer}; <<"METHOD"/utf8>> -> {ok, documentation_part_type_method}; <<"MODEL"/utf8>> -> {ok, documentation_part_type_model}; <<"PATH_PARAMETER"/utf8>> -> {ok, documentation_part_type_path_parameter}; <<"QUERY_PARAMETER"/utf8>> -> {ok, documentation_part_type_query_parameter}; <<"REQUEST_BODY"/utf8>> -> {ok, documentation_part_type_request_body}; <<"REQUEST_HEADER"/utf8>> -> {ok, documentation_part_type_request_header}; <<"RESOURCE"/utf8>> -> {ok, documentation_part_type_resource}; <<"RESPONSE"/utf8>> -> {ok, documentation_part_type_response}; <<"RESPONSE_BODY"/utf8>> -> {ok, documentation_part_type_response_body}; <<"RESPONSE_HEADER"/utf8>> -> {ok, documentation_part_type_response_header}; _ -> {ok, documentation_part_type_api} end. -file("src/aws/services/api_gateway.gleam", 2428). -spec encode_documentation_part_struct(documentation_part()) -> gleam@json:json(). encode_documentation_part_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"id"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"location"/utf8>>, encode_documentation_part_location_struct(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"properties"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 2448). -spec decode_documentation_part_struct() -> gleam@dynamic@decode:decoder(documentation_part()). decode_documentation_part_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"location"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_location_struct() ), fun(Location) -> gleam@dynamic@decode:optional_field( <<"properties"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Properties) -> gleam@dynamic@decode:success( {documentation_part, Id, Location, Properties} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2472). -spec decode_documentation_part_struct_params() -> gleam@dynamic@decode:decoder(documentation_part()). decode_documentation_part_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"location"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_location_struct_params() ), fun(Location) -> gleam@dynamic@decode:optional_field( <<"properties"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Properties) -> gleam@dynamic@decode:success( {documentation_part, Id, Location, Properties} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2507). -spec encode_create_documentation_version_request_struct( create_documentation_version_request() ) -> gleam@json:json(). encode_create_documentation_version_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"description"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"stageName"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 2530). -spec decode_create_documentation_version_request_struct() -> gleam@dynamic@decode:decoder(create_documentation_version_request()). decode_create_documentation_version_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {create_documentation_version_request, Description, Documentation_version, Rest_api_id, Stage_name} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2562). -spec decode_create_documentation_version_request_struct_params() -> gleam@dynamic@decode:decoder(create_documentation_version_request()). decode_create_documentation_version_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {create_documentation_version_request, Description, Documentation_version, Rest_api_id, Stage_name} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2602). -spec encode_documentation_version_struct(documentation_version()) -> gleam@json:json(). encode_documentation_version_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"createdDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"version"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 2624). -spec decode_documentation_version_struct() -> gleam@dynamic@decode:decoder(documentation_version()). decode_documentation_version_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"version"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Version) -> gleam@dynamic@decode:success( {documentation_version, Created_date, Description, Version} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2650). -spec decode_documentation_version_struct_params() -> gleam@dynamic@decode:decoder(documentation_version()). decode_documentation_version_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"version"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Version) -> gleam@dynamic@decode:success( {documentation_version, Created_date, Description, Version} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3303). -spec encode_security_policy_enum(security_policy()) -> gleam@json:json(). encode_security_policy_enum(V) -> case V of security_policy_securitypolicy_tls122018_edge -> gleam@json:string(<<"SecurityPolicy_TLS12_2018_EDGE"/utf8>>); security_policy_securitypolicy_tls12_pfs2025_edge -> gleam@json:string(<<"SecurityPolicy_TLS12_PFS_2025_EDGE"/utf8>>); security_policy_securitypolicy_tls1312202106 -> gleam@json:string(<<"SecurityPolicy_TLS13_1_2_2021_06"/utf8>>); security_policy_securitypolicy_tls1312_fips_pfs_pq202509 -> gleam@json:string( <<"SecurityPolicy_TLS13_1_2_FIPS_PFS_PQ_2025_09"/utf8>> ); security_policy_securitypolicy_tls1312_fips_pq202509 -> gleam@json:string( <<"SecurityPolicy_TLS13_1_2_FIPS_PQ_2025_09"/utf8>> ); security_policy_securitypolicy_tls1312_pfs_pq202509 -> gleam@json:string( <<"SecurityPolicy_TLS13_1_2_PFS_PQ_2025_09"/utf8>> ); security_policy_securitypolicy_tls1312_pq202509 -> gleam@json:string(<<"SecurityPolicy_TLS13_1_2_PQ_2025_09"/utf8>>); security_policy_securitypolicy_tls1313202509 -> gleam@json:string(<<"SecurityPolicy_TLS13_1_3_2025_09"/utf8>>); security_policy_securitypolicy_tls1313_fips202509 -> gleam@json:string(<<"SecurityPolicy_TLS13_1_3_FIPS_2025_09"/utf8>>); security_policy_securitypolicy_tls132025_edge -> gleam@json:string(<<"SecurityPolicy_TLS13_2025_EDGE"/utf8>>); security_policy_tls10 -> gleam@json:string(<<"TLS_1_0"/utf8>>); security_policy_tls12 -> gleam@json:string(<<"TLS_1_2"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 3257). -spec encode_routing_mode_enum(routing_mode()) -> gleam@json:json(). encode_routing_mode_enum(V) -> case V of routing_mode_base_path_mapping_only -> gleam@json:string(<<"BASE_PATH_MAPPING_ONLY"/utf8>>); routing_mode_routing_rule_only -> gleam@json:string(<<"ROUTING_RULE_ONLY"/utf8>>); routing_mode_routing_rule_then_base_path_mapping -> gleam@json:string(<<"ROUTING_RULE_THEN_BASE_PATH_MAPPING"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 3196). -spec encode_mutual_tls_authentication_input_struct( mutual_tls_authentication_input() ) -> gleam@json:json(). encode_mutual_tls_authentication_input_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"truststoreUri"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"truststoreVersion"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 3161). -spec encode_endpoint_type_enum(endpoint_type()) -> gleam@json:json(). encode_endpoint_type_enum(V) -> case V of endpoint_type_edge -> gleam@json:string(<<"EDGE"/utf8>>); endpoint_type_private -> gleam@json:string(<<"PRIVATE"/utf8>>); endpoint_type_regional -> gleam@json:string(<<"REGIONAL"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 3130). -spec encode_ip_address_type_enum(ip_address_type()) -> gleam@json:json(). encode_ip_address_type_enum(V) -> case V of ip_address_type_dualstack -> gleam@json:string(<<"dualstack"/utf8>>); ip_address_type_ipv4 -> gleam@json:string(<<"ipv4"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 3045). -spec encode_endpoint_configuration_struct(endpoint_configuration()) -> gleam@json:json(). encode_endpoint_configuration_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"ipAddressType"/utf8>>, encode_ip_address_type_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"types"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_endpoint_type_enum/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"vpcEndpointIds"/utf8>>, (fun(Xs@1) -> gleam@json:array(Xs@1, fun gleam@json:string/1) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 3010). -spec encode_endpoint_access_mode_enum(endpoint_access_mode()) -> gleam@json:json(). encode_endpoint_access_mode_enum(V) -> case V of endpoint_access_mode_basic -> gleam@json:string(<<"BASIC"/utf8>>); endpoint_access_mode_strict -> gleam@json:string(<<"STRICT"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 2697). -spec encode_create_domain_name_request_struct(create_domain_name_request()) -> gleam@json:json(). encode_create_domain_name_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"certificateArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"certificateBody"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"certificateChain"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"certificateName"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"certificatePrivateKey"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"domainName"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"endpointAccessMode"/utf8>>, encode_endpoint_access_mode_enum(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"endpointConfiguration"/utf8>>, encode_endpoint_configuration_struct(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"mutualTlsAuthentication"/utf8>>, encode_mutual_tls_authentication_input_struct(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"ownershipVerificationCertificateArn"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"policy"/utf8>>, gleam@json:string(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"regionalCertificateArn"/utf8>>, gleam@json:string(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"regionalCertificateName"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(15, Input) of {some, V@13} -> [{<<"routingMode"/utf8>>, encode_routing_mode_enum(V@13)} | Pairs@13]; none -> Pairs@13 end, Pairs@15 = case erlang:element(16, Input) of {some, V@14} -> [{<<"securityPolicy"/utf8>>, encode_security_policy_enum(V@14)} | Pairs@14]; none -> Pairs@14 end, Pairs@16 = case erlang:element(17, Input) of {some, V@15} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@15)} | Pairs@15]; none -> Pairs@15 end, gleam@json:object(Pairs@16). -file("src/aws/services/api_gateway.gleam", 3330). -spec decode_security_policy_enum() -> gleam@dynamic@decode:decoder(security_policy()). decode_security_policy_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"SecurityPolicy_TLS12_2018_EDGE"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls122018_edge ); <<"SecurityPolicy_TLS12_PFS_2025_EDGE"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls12_pfs2025_edge ); <<"SecurityPolicy_TLS13_1_2_2021_06"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls1312202106 ); <<"SecurityPolicy_TLS13_1_2_FIPS_PFS_PQ_2025_09"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls1312_fips_pfs_pq202509 ); <<"SecurityPolicy_TLS13_1_2_FIPS_PQ_2025_09"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls1312_fips_pq202509 ); <<"SecurityPolicy_TLS13_1_2_PFS_PQ_2025_09"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls1312_pfs_pq202509 ); <<"SecurityPolicy_TLS13_1_2_PQ_2025_09"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls1312_pq202509 ); <<"SecurityPolicy_TLS13_1_3_2025_09"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls1313202509 ); <<"SecurityPolicy_TLS13_1_3_FIPS_2025_09"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls1313_fips202509 ); <<"SecurityPolicy_TLS13_2025_EDGE"/utf8>> -> gleam@dynamic@decode:success( security_policy_securitypolicy_tls132025_edge ); <<"TLS_1_0"/utf8>> -> gleam@dynamic@decode:success(security_policy_tls10); <<"TLS_1_2"/utf8>> -> gleam@dynamic@decode:success(security_policy_tls12); _ -> gleam@dynamic@decode:failure( security_policy_securitypolicy_tls122018_edge, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 3266). -spec decode_routing_mode_enum() -> gleam@dynamic@decode:decoder(routing_mode()). decode_routing_mode_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"BASE_PATH_MAPPING_ONLY"/utf8>> -> gleam@dynamic@decode:success( routing_mode_base_path_mapping_only ); <<"ROUTING_RULE_ONLY"/utf8>> -> gleam@dynamic@decode:success(routing_mode_routing_rule_only); <<"ROUTING_RULE_THEN_BASE_PATH_MAPPING"/utf8>> -> gleam@dynamic@decode:success( routing_mode_routing_rule_then_base_path_mapping ); _ -> gleam@dynamic@decode:failure( routing_mode_base_path_mapping_only, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 3211). -spec decode_mutual_tls_authentication_input_struct() -> gleam@dynamic@decode:decoder(mutual_tls_authentication_input()). decode_mutual_tls_authentication_input_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"truststoreUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_uri) -> gleam@dynamic@decode:optional_field( <<"truststoreVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_version) -> gleam@dynamic@decode:success( {mutual_tls_authentication_input, Truststore_uri, Truststore_version} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3169). -spec decode_endpoint_type_enum() -> gleam@dynamic@decode:decoder(endpoint_type()). decode_endpoint_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"EDGE"/utf8>> -> gleam@dynamic@decode:success(endpoint_type_edge); <<"PRIVATE"/utf8>> -> gleam@dynamic@decode:success(endpoint_type_private); <<"REGIONAL"/utf8>> -> gleam@dynamic@decode:success(endpoint_type_regional); _ -> gleam@dynamic@decode:failure( endpoint_type_edge, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 3137). -spec decode_ip_address_type_enum() -> gleam@dynamic@decode:decoder(ip_address_type()). decode_ip_address_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"dualstack"/utf8>> -> gleam@dynamic@decode:success(ip_address_type_dualstack); <<"ipv4"/utf8>> -> gleam@dynamic@decode:success(ip_address_type_ipv4); _ -> gleam@dynamic@decode:failure( ip_address_type_dualstack, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 3073). -spec decode_endpoint_configuration_struct() -> gleam@dynamic@decode:decoder(endpoint_configuration()). decode_endpoint_configuration_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"ipAddressType"/utf8>>, none, gleam@dynamic@decode:optional(decode_ip_address_type_enum()), fun(Ip_address_type) -> gleam@dynamic@decode:optional_field( <<"types"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_endpoint_type_enum() ) ), fun(Types) -> gleam@dynamic@decode:optional_field( <<"vpcEndpointIds"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Vpc_endpoint_ids) -> gleam@dynamic@decode:success( {endpoint_configuration, Ip_address_type, Types, Vpc_endpoint_ids} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3017). -spec decode_endpoint_access_mode_enum() -> gleam@dynamic@decode:decoder(endpoint_access_mode()). decode_endpoint_access_mode_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"BASIC"/utf8>> -> gleam@dynamic@decode:success(endpoint_access_mode_basic); <<"STRICT"/utf8>> -> gleam@dynamic@decode:success(endpoint_access_mode_strict); _ -> gleam@dynamic@decode:failure( endpoint_access_mode_basic, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 2797). -spec decode_create_domain_name_request_struct() -> gleam@dynamic@decode:decoder(create_domain_name_request()). decode_create_domain_name_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"certificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_arn) -> gleam@dynamic@decode:optional_field( <<"certificateBody"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_body) -> gleam@dynamic@decode:optional_field( <<"certificateChain"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_chain) -> gleam@dynamic@decode:optional_field( <<"certificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_name) -> gleam@dynamic@decode:optional_field( <<"certificatePrivateKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_private_key) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"mutualTlsAuthentication"/utf8>>, none, gleam@dynamic@decode:optional( decode_mutual_tls_authentication_input_struct( ) ), fun( Mutual_tls_authentication ) -> gleam@dynamic@decode:optional_field( <<"ownershipVerificationCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Ownership_verification_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_name ) -> gleam@dynamic@decode:optional_field( <<"routingMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_routing_mode_enum( ) ), fun( Routing_mode ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:success( {create_domain_name_request, Certificate_arn, Certificate_body, Certificate_chain, Certificate_name, Certificate_private_key, Domain_name, Endpoint_access_mode, Endpoint_configuration, Mutual_tls_authentication, Ownership_verification_certificate_arn, Policy, Regional_certificate_arn, Regional_certificate_name, Routing_mode, Security_policy, Tags} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3231). -spec decode_mutual_tls_authentication_input_struct_params() -> gleam@dynamic@decode:decoder(mutual_tls_authentication_input()). decode_mutual_tls_authentication_input_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"truststoreUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_uri) -> gleam@dynamic@decode:optional_field( <<"truststoreVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_version) -> gleam@dynamic@decode:success( {mutual_tls_authentication_input, Truststore_uri, Truststore_version} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3099). -spec decode_endpoint_configuration_struct_params() -> gleam@dynamic@decode:decoder(endpoint_configuration()). decode_endpoint_configuration_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"ipAddressType"/utf8>>, none, gleam@dynamic@decode:optional(decode_ip_address_type_enum()), fun(Ip_address_type) -> gleam@dynamic@decode:optional_field( <<"types"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_endpoint_type_enum() ) ), fun(Types) -> gleam@dynamic@decode:optional_field( <<"vpcEndpointIds"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Vpc_endpoint_ids) -> gleam@dynamic@decode:success( {endpoint_configuration, Ip_address_type, Types, Vpc_endpoint_ids} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 2901). -spec decode_create_domain_name_request_struct_params() -> gleam@dynamic@decode:decoder(create_domain_name_request()). decode_create_domain_name_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"certificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_arn) -> gleam@dynamic@decode:optional_field( <<"certificateBody"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_body) -> gleam@dynamic@decode:optional_field( <<"certificateChain"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_chain) -> gleam@dynamic@decode:optional_field( <<"certificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_name) -> gleam@dynamic@decode:optional_field( <<"certificatePrivateKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_private_key) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct_params( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"mutualTlsAuthentication"/utf8>>, none, gleam@dynamic@decode:optional( decode_mutual_tls_authentication_input_struct_params( ) ), fun( Mutual_tls_authentication ) -> gleam@dynamic@decode:optional_field( <<"ownershipVerificationCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Ownership_verification_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_name ) -> gleam@dynamic@decode:optional_field( <<"routingMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_routing_mode_enum( ) ), fun( Routing_mode ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:success( {create_domain_name_request, Certificate_arn, Certificate_body, Certificate_chain, Certificate_name, Certificate_private_key, Domain_name, Endpoint_access_mode, Endpoint_configuration, Mutual_tls_authentication, Ownership_verification_certificate_arn, Policy, Regional_certificate_arn, Regional_certificate_name, Routing_mode, Security_policy, Tags} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3027). -spec endpoint_access_mode_from_wire(binary()) -> {ok, endpoint_access_mode()} | {error, binary()}. endpoint_access_mode_from_wire(S) -> case S of <<"BASIC"/utf8>> -> {ok, endpoint_access_mode_basic}; <<"STRICT"/utf8>> -> {ok, endpoint_access_mode_strict}; _ -> {ok, endpoint_access_mode_basic} end. -file("src/aws/services/api_gateway.gleam", 3147). -spec ip_address_type_from_wire(binary()) -> {ok, ip_address_type()} | {error, binary()}. ip_address_type_from_wire(S) -> case S of <<"dualstack"/utf8>> -> {ok, ip_address_type_dualstack}; <<"ipv4"/utf8>> -> {ok, ip_address_type_ipv4}; _ -> {ok, ip_address_type_dualstack} end. -file("src/aws/services/api_gateway.gleam", 3180). -spec endpoint_type_from_wire(binary()) -> {ok, endpoint_type()} | {error, binary()}. endpoint_type_from_wire(S) -> case S of <<"EDGE"/utf8>> -> {ok, endpoint_type_edge}; <<"PRIVATE"/utf8>> -> {ok, endpoint_type_private}; <<"REGIONAL"/utf8>> -> {ok, endpoint_type_regional}; _ -> {ok, endpoint_type_edge} end. -file("src/aws/services/api_gateway.gleam", 3278). -spec routing_mode_from_wire(binary()) -> {ok, routing_mode()} | {error, binary()}. routing_mode_from_wire(S) -> case S of <<"BASE_PATH_MAPPING_ONLY"/utf8>> -> {ok, routing_mode_base_path_mapping_only}; <<"ROUTING_RULE_ONLY"/utf8>> -> {ok, routing_mode_routing_rule_only}; <<"ROUTING_RULE_THEN_BASE_PATH_MAPPING"/utf8>> -> {ok, routing_mode_routing_rule_then_base_path_mapping}; _ -> {ok, routing_mode_base_path_mapping_only} end. -file("src/aws/services/api_gateway.gleam", 3364). -spec security_policy_from_wire(binary()) -> {ok, security_policy()} | {error, binary()}. security_policy_from_wire(S) -> case S of <<"SecurityPolicy_TLS12_2018_EDGE"/utf8>> -> {ok, security_policy_securitypolicy_tls122018_edge}; <<"SecurityPolicy_TLS12_PFS_2025_EDGE"/utf8>> -> {ok, security_policy_securitypolicy_tls12_pfs2025_edge}; <<"SecurityPolicy_TLS13_1_2_2021_06"/utf8>> -> {ok, security_policy_securitypolicy_tls1312202106}; <<"SecurityPolicy_TLS13_1_2_FIPS_PFS_PQ_2025_09"/utf8>> -> {ok, security_policy_securitypolicy_tls1312_fips_pfs_pq202509}; <<"SecurityPolicy_TLS13_1_2_FIPS_PQ_2025_09"/utf8>> -> {ok, security_policy_securitypolicy_tls1312_fips_pq202509}; <<"SecurityPolicy_TLS13_1_2_PFS_PQ_2025_09"/utf8>> -> {ok, security_policy_securitypolicy_tls1312_pfs_pq202509}; <<"SecurityPolicy_TLS13_1_2_PQ_2025_09"/utf8>> -> {ok, security_policy_securitypolicy_tls1312_pq202509}; <<"SecurityPolicy_TLS13_1_3_2025_09"/utf8>> -> {ok, security_policy_securitypolicy_tls1313202509}; <<"SecurityPolicy_TLS13_1_3_FIPS_2025_09"/utf8>> -> {ok, security_policy_securitypolicy_tls1313_fips202509}; <<"SecurityPolicy_TLS13_2025_EDGE"/utf8>> -> {ok, security_policy_securitypolicy_tls132025_edge}; <<"TLS_1_0"/utf8>> -> {ok, security_policy_tls10}; <<"TLS_1_2"/utf8>> -> {ok, security_policy_tls12}; _ -> {ok, security_policy_securitypolicy_tls122018_edge} end. -file("src/aws/services/api_gateway.gleam", 3899). -spec encode_mutual_tls_authentication_struct(mutual_tls_authentication()) -> gleam@json:json(). encode_mutual_tls_authentication_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"truststoreUri"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"truststoreVersion"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"truststoreWarnings"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 3846). -spec encode_domain_name_status_enum(domain_name_status()) -> gleam@json:json(). encode_domain_name_status_enum(V) -> case V of domain_name_status_available -> gleam@json:string(<<"AVAILABLE"/utf8>>); domain_name_status_failed -> gleam@json:string(<<"FAILED"/utf8>>); domain_name_status_pending -> gleam@json:string(<<"PENDING"/utf8>>); domain_name_status_pending_certificate_reimport -> gleam@json:string(<<"PENDING_CERTIFICATE_REIMPORT"/utf8>>); domain_name_status_pending_ownership_verification -> gleam@json:string(<<"PENDING_OWNERSHIP_VERIFICATION"/utf8>>); domain_name_status_updating -> gleam@json:string(<<"UPDATING"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 3420). -spec encode_domain_name_struct(domain_name()) -> gleam@json:json(). encode_domain_name_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"certificateArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"certificateName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"certificateUploadDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"distributionDomainName"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"distributionHostedZoneId"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"domainName"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"domainNameArn"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"domainNameStatus"/utf8>>, encode_domain_name_status_enum(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"domainNameStatusMessage"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"endpointAccessMode"/utf8>>, encode_endpoint_access_mode_enum(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"endpointConfiguration"/utf8>>, encode_endpoint_configuration_struct(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"managementPolicy"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(15, Input) of {some, V@13} -> [{<<"mutualTlsAuthentication"/utf8>>, encode_mutual_tls_authentication_struct(V@13)} | Pairs@13]; none -> Pairs@13 end, Pairs@15 = case erlang:element(16, Input) of {some, V@14} -> [{<<"ownershipVerificationCertificateArn"/utf8>>, gleam@json:string(V@14)} | Pairs@14]; none -> Pairs@14 end, Pairs@16 = case erlang:element(17, Input) of {some, V@15} -> [{<<"policy"/utf8>>, gleam@json:string(V@15)} | Pairs@15]; none -> Pairs@15 end, Pairs@17 = case erlang:element(18, Input) of {some, V@16} -> [{<<"regionalCertificateArn"/utf8>>, gleam@json:string(V@16)} | Pairs@16]; none -> Pairs@16 end, Pairs@18 = case erlang:element(19, Input) of {some, V@17} -> [{<<"regionalCertificateName"/utf8>>, gleam@json:string(V@17)} | Pairs@17]; none -> Pairs@17 end, Pairs@19 = case erlang:element(20, Input) of {some, V@18} -> [{<<"regionalDomainName"/utf8>>, gleam@json:string(V@18)} | Pairs@18]; none -> Pairs@18 end, Pairs@20 = case erlang:element(21, Input) of {some, V@19} -> [{<<"regionalHostedZoneId"/utf8>>, gleam@json:string(V@19)} | Pairs@19]; none -> Pairs@19 end, Pairs@21 = case erlang:element(22, Input) of {some, V@20} -> [{<<"routingMode"/utf8>>, encode_routing_mode_enum(V@20)} | Pairs@20]; none -> Pairs@20 end, Pairs@22 = case erlang:element(23, Input) of {some, V@21} -> [{<<"securityPolicy"/utf8>>, encode_security_policy_enum(V@21)} | Pairs@21]; none -> Pairs@21 end, Pairs@23 = case erlang:element(24, Input) of {some, V@22} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@22)} | Pairs@22]; none -> Pairs@22 end, gleam@json:object(Pairs@23). -file("src/aws/services/api_gateway.gleam", 3921). -spec decode_mutual_tls_authentication_struct() -> gleam@dynamic@decode:decoder(mutual_tls_authentication()). decode_mutual_tls_authentication_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"truststoreUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_uri) -> gleam@dynamic@decode:optional_field( <<"truststoreVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_version) -> gleam@dynamic@decode:optional_field( <<"truststoreWarnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Truststore_warnings) -> gleam@dynamic@decode:success( {mutual_tls_authentication, Truststore_uri, Truststore_version, Truststore_warnings} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3859). -spec decode_domain_name_status_enum() -> gleam@dynamic@decode:decoder(domain_name_status()). decode_domain_name_status_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"AVAILABLE"/utf8>> -> gleam@dynamic@decode:success(domain_name_status_available); <<"FAILED"/utf8>> -> gleam@dynamic@decode:success(domain_name_status_failed); <<"PENDING"/utf8>> -> gleam@dynamic@decode:success(domain_name_status_pending); <<"PENDING_CERTIFICATE_REIMPORT"/utf8>> -> gleam@dynamic@decode:success( domain_name_status_pending_certificate_reimport ); <<"PENDING_OWNERSHIP_VERIFICATION"/utf8>> -> gleam@dynamic@decode:success( domain_name_status_pending_ownership_verification ); <<"UPDATING"/utf8>> -> gleam@dynamic@decode:success(domain_name_status_updating); _ -> gleam@dynamic@decode:failure( domain_name_status_available, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 3549). -spec decode_domain_name_struct() -> gleam@dynamic@decode:decoder(domain_name()). decode_domain_name_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"certificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_arn) -> gleam@dynamic@decode:optional_field( <<"certificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_name) -> gleam@dynamic@decode:optional_field( <<"certificateUploadDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Certificate_upload_date) -> gleam@dynamic@decode:optional_field( <<"distributionDomainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Distribution_domain_name) -> gleam@dynamic@decode:optional_field( <<"distributionHostedZoneId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Distribution_hosted_zone_id) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Domain_name_arn ) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Domain_name_id ) -> gleam@dynamic@decode:optional_field( <<"domainNameStatus"/utf8>>, none, gleam@dynamic@decode:optional( decode_domain_name_status_enum( ) ), fun( Domain_name_status ) -> gleam@dynamic@decode:optional_field( <<"domainNameStatusMessage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Domain_name_status_message ) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"managementPolicy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Management_policy ) -> gleam@dynamic@decode:optional_field( <<"mutualTlsAuthentication"/utf8>>, none, gleam@dynamic@decode:optional( decode_mutual_tls_authentication_struct( ) ), fun( Mutual_tls_authentication ) -> gleam@dynamic@decode:optional_field( <<"ownershipVerificationCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Ownership_verification_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_name ) -> gleam@dynamic@decode:optional_field( <<"regionalDomainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_domain_name ) -> gleam@dynamic@decode:optional_field( <<"regionalHostedZoneId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_hosted_zone_id ) -> gleam@dynamic@decode:optional_field( <<"routingMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_routing_mode_enum( ) ), fun( Routing_mode ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:success( {domain_name, Certificate_arn, Certificate_name, Certificate_upload_date, Distribution_domain_name, Distribution_hosted_zone_id, Domain_name, Domain_name_arn, Domain_name_id, Domain_name_status, Domain_name_status_message, Endpoint_access_mode, Endpoint_configuration, Management_policy, Mutual_tls_authentication, Ownership_verification_certificate_arn, Policy, Regional_certificate_arn, Regional_certificate_name, Regional_domain_name, Regional_hosted_zone_id, Routing_mode, Security_policy, Tags} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3947). -spec decode_mutual_tls_authentication_struct_params() -> gleam@dynamic@decode:decoder(mutual_tls_authentication()). decode_mutual_tls_authentication_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"truststoreUri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_uri) -> gleam@dynamic@decode:optional_field( <<"truststoreVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Truststore_version) -> gleam@dynamic@decode:optional_field( <<"truststoreWarnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Truststore_warnings) -> gleam@dynamic@decode:success( {mutual_tls_authentication, Truststore_uri, Truststore_version, Truststore_warnings} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3693). -spec decode_domain_name_struct_params() -> gleam@dynamic@decode:decoder(domain_name()). decode_domain_name_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"certificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_arn) -> gleam@dynamic@decode:optional_field( <<"certificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Certificate_name) -> gleam@dynamic@decode:optional_field( <<"certificateUploadDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Certificate_upload_date) -> gleam@dynamic@decode:optional_field( <<"distributionDomainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Distribution_domain_name) -> gleam@dynamic@decode:optional_field( <<"distributionHostedZoneId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Distribution_hosted_zone_id) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Domain_name_arn ) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Domain_name_id ) -> gleam@dynamic@decode:optional_field( <<"domainNameStatus"/utf8>>, none, gleam@dynamic@decode:optional( decode_domain_name_status_enum( ) ), fun( Domain_name_status ) -> gleam@dynamic@decode:optional_field( <<"domainNameStatusMessage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Domain_name_status_message ) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct_params( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"managementPolicy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Management_policy ) -> gleam@dynamic@decode:optional_field( <<"mutualTlsAuthentication"/utf8>>, none, gleam@dynamic@decode:optional( decode_mutual_tls_authentication_struct_params( ) ), fun( Mutual_tls_authentication ) -> gleam@dynamic@decode:optional_field( <<"ownershipVerificationCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Ownership_verification_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_arn ) -> gleam@dynamic@decode:optional_field( <<"regionalCertificateName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_certificate_name ) -> gleam@dynamic@decode:optional_field( <<"regionalDomainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_domain_name ) -> gleam@dynamic@decode:optional_field( <<"regionalHostedZoneId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Regional_hosted_zone_id ) -> gleam@dynamic@decode:optional_field( <<"routingMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_routing_mode_enum( ) ), fun( Routing_mode ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:success( {domain_name, Certificate_arn, Certificate_name, Certificate_upload_date, Distribution_domain_name, Distribution_hosted_zone_id, Domain_name, Domain_name_arn, Domain_name_id, Domain_name_status, Domain_name_status_message, Endpoint_access_mode, Endpoint_configuration, Management_policy, Mutual_tls_authentication, Ownership_verification_certificate_arn, Policy, Regional_certificate_arn, Regional_certificate_name, Regional_domain_name, Regional_hosted_zone_id, Routing_mode, Security_policy, Tags} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 3875). -spec domain_name_status_from_wire(binary()) -> {ok, domain_name_status()} | {error, binary()}. domain_name_status_from_wire(S) -> case S of <<"AVAILABLE"/utf8>> -> {ok, domain_name_status_available}; <<"FAILED"/utf8>> -> {ok, domain_name_status_failed}; <<"PENDING"/utf8>> -> {ok, domain_name_status_pending}; <<"PENDING_CERTIFICATE_REIMPORT"/utf8>> -> {ok, domain_name_status_pending_certificate_reimport}; <<"PENDING_OWNERSHIP_VERIFICATION"/utf8>> -> {ok, domain_name_status_pending_ownership_verification}; <<"UPDATING"/utf8>> -> {ok, domain_name_status_updating}; _ -> {ok, domain_name_status_available} end. -file("src/aws/services/api_gateway.gleam", 4090). -spec encode_access_association_source_type_enum( access_association_source_type() ) -> gleam@json:json(). encode_access_association_source_type_enum(V) -> case V of access_association_source_type_vpce -> gleam@json:string(<<"VPCE"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 3982). -spec encode_create_domain_name_access_association_request_struct( create_domain_name_access_association_request() ) -> gleam@json:json(). encode_create_domain_name_access_association_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"accessAssociationSource"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"accessAssociationSourceType"/utf8>>, encode_access_association_source_type_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"domainNameArn"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 4098). -spec decode_access_association_source_type_enum() -> gleam@dynamic@decode:decoder(access_association_source_type()). decode_access_association_source_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"VPCE"/utf8>> -> gleam@dynamic@decode:success( access_association_source_type_vpce ); _ -> gleam@dynamic@decode:failure( access_association_source_type_vpce, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 4022). -spec decode_create_domain_name_access_association_request_struct() -> gleam@dynamic@decode:decoder(create_domain_name_access_association_request()). decode_create_domain_name_access_association_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accessAssociationSource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Access_association_source) -> gleam@dynamic@decode:optional_field( <<"accessAssociationSourceType"/utf8>>, none, gleam@dynamic@decode:optional( decode_access_association_source_type_enum() ), fun(Access_association_source_type) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_arn) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {create_domain_name_access_association_request, Access_association_source, Access_association_source_type, Domain_name_arn, Tags} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4054). -spec decode_create_domain_name_access_association_request_struct_params() -> gleam@dynamic@decode:decoder(create_domain_name_access_association_request()). decode_create_domain_name_access_association_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accessAssociationSource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Access_association_source) -> gleam@dynamic@decode:optional_field( <<"accessAssociationSourceType"/utf8>>, none, gleam@dynamic@decode:optional( decode_access_association_source_type_enum() ), fun(Access_association_source_type) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_arn) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {create_domain_name_access_association_request, Access_association_source, Access_association_source_type, Domain_name_arn, Tags} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4109). -spec access_association_source_type_from_wire(binary()) -> {ok, access_association_source_type()} | {error, binary()}. access_association_source_type_from_wire(S) -> case S of <<"VPCE"/utf8>> -> {ok, access_association_source_type_vpce}; _ -> {ok, access_association_source_type_vpce} end. -file("src/aws/services/api_gateway.gleam", 4128). -spec encode_domain_name_access_association_struct( domain_name_access_association() ) -> gleam@json:json(). encode_domain_name_access_association_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"accessAssociationSource"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"accessAssociationSourceType"/utf8>>, encode_access_association_source_type_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"domainNameAccessAssociationArn"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"domainNameArn"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 4175). -spec decode_domain_name_access_association_struct() -> gleam@dynamic@decode:decoder(domain_name_access_association()). decode_domain_name_access_association_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accessAssociationSource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Access_association_source) -> gleam@dynamic@decode:optional_field( <<"accessAssociationSourceType"/utf8>>, none, gleam@dynamic@decode:optional( decode_access_association_source_type_enum() ), fun(Access_association_source_type) -> gleam@dynamic@decode:optional_field( <<"domainNameAccessAssociationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_access_association_arn) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_arn) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {domain_name_access_association, Access_association_source, Access_association_source_type, Domain_name_access_association_arn, Domain_name_arn, Tags} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4213). -spec decode_domain_name_access_association_struct_params() -> gleam@dynamic@decode:decoder(domain_name_access_association()). decode_domain_name_access_association_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accessAssociationSource"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Access_association_source) -> gleam@dynamic@decode:optional_field( <<"accessAssociationSourceType"/utf8>>, none, gleam@dynamic@decode:optional( decode_access_association_source_type_enum() ), fun(Access_association_source_type) -> gleam@dynamic@decode:optional_field( <<"domainNameAccessAssociationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_access_association_arn) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_arn) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {domain_name_access_association, Access_association_source, Access_association_source_type, Domain_name_access_association_arn, Domain_name_arn, Tags} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4261). -spec encode_create_model_request_struct(create_model_request()) -> gleam@json:json(). encode_create_model_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"contentType"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"name"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"schema"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 4288). -spec decode_create_model_request_struct() -> gleam@dynamic@decode:decoder(create_model_request()). decode_create_model_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"schema"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Schema) -> gleam@dynamic@decode:success( {create_model_request, Content_type, Description, Name, Rest_api_id, Schema} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4326). -spec decode_create_model_request_struct_params() -> gleam@dynamic@decode:decoder(create_model_request()). decode_create_model_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"schema"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Schema) -> gleam@dynamic@decode:success( {create_model_request, Content_type, Description, Name, Rest_api_id, Schema} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4374). -spec encode_model_struct(model()) -> gleam@json:json(). encode_model_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"contentType"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"id"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"name"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"schema"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 4399). -spec decode_model_struct() -> gleam@dynamic@decode:decoder(model()). decode_model_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"schema"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Schema) -> gleam@dynamic@decode:success( {model, Content_type, Description, Id, Name, Schema} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4435). -spec decode_model_struct_params() -> gleam@dynamic@decode:decoder(model()). decode_model_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"schema"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Schema) -> gleam@dynamic@decode:success( {model, Content_type, Description, Id, Name, Schema} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4480). -spec encode_create_request_validator_request_struct( create_request_validator_request() ) -> gleam@json:json(). encode_create_request_validator_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"name"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"validateRequestBody"/utf8>>, gleam@json:bool(V@2)} | Pairs@2]; none -> [{<<"validateRequestBody"/utf8>>, gleam@json:bool(false)} | Pairs@2] end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"validateRequestParameters"/utf8>>, gleam@json:bool(V@3)} | Pairs@3]; none -> [{<<"validateRequestParameters"/utf8>>, gleam@json:bool(false)} | Pairs@3] end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 4503). -spec decode_create_request_validator_request_struct() -> gleam@dynamic@decode:decoder(create_request_validator_request()). decode_create_request_validator_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"validateRequestBody"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_body) -> gleam@dynamic@decode:optional_field( <<"validateRequestParameters"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_parameters) -> gleam@dynamic@decode:success( {create_request_validator_request, Name, Rest_api_id, Validate_request_body, Validate_request_parameters} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4535). -spec decode_create_request_validator_request_struct_params() -> gleam@dynamic@decode:decoder(create_request_validator_request()). decode_create_request_validator_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"validateRequestBody"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_body) -> gleam@dynamic@decode:optional_field( <<"validateRequestParameters"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_parameters) -> gleam@dynamic@decode:success( {create_request_validator_request, Name, Rest_api_id, Validate_request_body, Validate_request_parameters} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4576). -spec encode_request_validator_struct(request_validator()) -> gleam@json:json(). encode_request_validator_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"id"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"name"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"validateRequestBody"/utf8>>, gleam@json:bool(V@2)} | Pairs@2]; none -> [{<<"validateRequestBody"/utf8>>, gleam@json:bool(false)} | Pairs@2] end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"validateRequestParameters"/utf8>>, gleam@json:bool(V@3)} | Pairs@3]; none -> [{<<"validateRequestParameters"/utf8>>, gleam@json:bool(false)} | Pairs@3] end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 4597). -spec decode_request_validator_struct() -> gleam@dynamic@decode:decoder(request_validator()). decode_request_validator_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"validateRequestBody"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_body) -> gleam@dynamic@decode:optional_field( <<"validateRequestParameters"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_parameters) -> gleam@dynamic@decode:success( {request_validator, Id, Name, Validate_request_body, Validate_request_parameters} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4627). -spec decode_request_validator_struct_params() -> gleam@dynamic@decode:decoder(request_validator()). decode_request_validator_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"validateRequestBody"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_body) -> gleam@dynamic@decode:optional_field( <<"validateRequestParameters"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Validate_request_parameters) -> gleam@dynamic@decode:success( {request_validator, Id, Name, Validate_request_body, Validate_request_parameters} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4667). -spec encode_create_resource_request_struct(create_resource_request()) -> gleam@json:json(). encode_create_resource_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"parentId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"pathPart"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 4686). -spec decode_create_resource_request_struct() -> gleam@dynamic@decode:decoder(create_resource_request()). decode_create_resource_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"parentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Parent_id) -> gleam@dynamic@decode:optional_field( <<"pathPart"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path_part) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {create_resource_request, Parent_id, Path_part, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4712). -spec decode_create_resource_request_struct_params() -> gleam@dynamic@decode:decoder(create_resource_request()). decode_create_resource_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"parentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Parent_id) -> gleam@dynamic@decode:optional_field( <<"pathPart"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path_part) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {create_resource_request, Parent_id, Path_part, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5807). -spec encode_method_response_struct(method_response()) -> gleam@json:json(). encode_method_response_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"responseModels"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"responseParameters"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:bool( erlang:element(2, Pair@1) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 5763). -spec encode_integration_type_enum(integration_type()) -> gleam@json:json(). encode_integration_type_enum(V) -> case V of integration_type_aws -> gleam@json:string(<<"AWS"/utf8>>); integration_type_aws_proxy -> gleam@json:string(<<"AWS_PROXY"/utf8>>); integration_type_http -> gleam@json:string(<<"HTTP"/utf8>>); integration_type_http_proxy -> gleam@json:string(<<"HTTP_PROXY"/utf8>>); integration_type_mock -> gleam@json:string(<<"MOCK"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 5722). -spec encode_tls_config_struct(tls_config()) -> gleam@json:json(). encode_tls_config_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"insecureSkipVerification"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> [{<<"insecureSkipVerification"/utf8>>, gleam@json:bool(false)} | Pairs] end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 5687). -spec encode_response_transfer_mode_enum(response_transfer_mode()) -> gleam@json:json(). encode_response_transfer_mode_enum(V) -> case V of response_transfer_mode_buffered -> gleam@json:string(<<"BUFFERED"/utf8>>); response_transfer_mode_stream -> gleam@json:string(<<"STREAM"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 5508). -spec encode_content_handling_strategy_enum(content_handling_strategy()) -> gleam@json:json(). encode_content_handling_strategy_enum(V) -> case V of content_handling_strategy_convert_to_binary -> gleam@json:string(<<"CONVERT_TO_BINARY"/utf8>>); content_handling_strategy_convert_to_text -> gleam@json:string(<<"CONVERT_TO_TEXT"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 5554). -spec encode_integration_response_struct(integration_response()) -> gleam@json:json(). encode_integration_response_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"contentHandling"/utf8>>, encode_content_handling_strategy_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"responseParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"responseTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"selectionPattern"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 5478). -spec encode_connection_type_enum(connection_type()) -> gleam@json:json(). encode_connection_type_enum(V) -> case V of connection_type_internet -> gleam@json:string(<<"INTERNET"/utf8>>); connection_type_vpc_link -> gleam@json:string(<<"VPC_LINK"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 5131). -spec encode_integration_struct(integration()) -> gleam@json:json(). encode_integration_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheKeyParameters"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheNamespace"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"connectionId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"connectionType"/utf8>>, encode_connection_type_enum(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"contentHandling"/utf8>>, encode_content_handling_strategy_enum(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"credentials"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"integrationResponses"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), encode_integration_response_struct( erlang:element(2, Pair) )} end ) end ) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"integrationTarget"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"passthroughBehavior"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"requestParameters"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"requestTemplates"/utf8>>, (fun(D@2) -> gleam@json:object( begin _pipe@2 = maps:to_list(D@2), gleam@list:map( _pipe@2, fun(Pair@2) -> {erlang:element(1, Pair@2), gleam@json:string( erlang:element(2, Pair@2) )} end ) end ) end)(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"responseTransferMode"/utf8>>, encode_response_transfer_mode_enum(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(15, Input) of {some, V@13} -> [{<<"timeoutInMillis"/utf8>>, gleam@json:int(V@13)} | Pairs@13]; none -> [{<<"timeoutInMillis"/utf8>>, gleam@json:int(0)} | Pairs@13] end, Pairs@15 = case erlang:element(16, Input) of {some, V@14} -> [{<<"tlsConfig"/utf8>>, encode_tls_config_struct(V@14)} | Pairs@14]; none -> Pairs@14 end, Pairs@16 = case erlang:element(17, Input) of {some, V@15} -> [{<<"type"/utf8>>, encode_integration_type_enum(V@15)} | Pairs@15]; none -> Pairs@15 end, Pairs@17 = case erlang:element(18, Input) of {some, V@16} -> [{<<"uri"/utf8>>, gleam@json:string(V@16)} | Pairs@16]; none -> Pairs@16 end, gleam@json:object(Pairs@17). -file("src/aws/services/api_gateway.gleam", 4872). -spec encode_method_struct(method()) -> gleam@json:json(). encode_method_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeyRequired"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizationScopes"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"authorizationType"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"authorizerId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"methodIntegration"/utf8>>, encode_integration_struct(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"methodResponses"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), encode_method_response_struct( erlang:element(2, Pair) )} end ) end ) end)(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"operationName"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"requestModels"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"requestParameters"/utf8>>, (fun(D@2) -> gleam@json:object( begin _pipe@2 = maps:to_list(D@2), gleam@list:map( _pipe@2, fun(Pair@2) -> {erlang:element(1, Pair@2), gleam@json:bool( erlang:element(2, Pair@2) )} end ) end ) end)(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"requestValidatorId"/utf8>>, gleam@json:string(V@10)} | Pairs@10]; none -> Pairs@10 end, gleam@json:object(Pairs@11). -file("src/aws/services/api_gateway.gleam", 4748). -spec encode_resource_struct(resource()) -> gleam@json:json(). encode_resource_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"id"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"parentId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"path"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"pathPart"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"resourceMethods"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), encode_method_struct( erlang:element(2, Pair) )} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 5846). -spec decode_method_response_struct() -> gleam@dynamic@decode:decoder(method_response()). decode_method_response_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_models) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {method_response, Response_models, Response_parameters, Status_code} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5773). -spec decode_integration_type_enum() -> gleam@dynamic@decode:decoder(integration_type()). decode_integration_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"AWS"/utf8>> -> gleam@dynamic@decode:success(integration_type_aws); <<"AWS_PROXY"/utf8>> -> gleam@dynamic@decode:success(integration_type_aws_proxy); <<"HTTP"/utf8>> -> gleam@dynamic@decode:success(integration_type_http); <<"HTTP_PROXY"/utf8>> -> gleam@dynamic@decode:success(integration_type_http_proxy); <<"MOCK"/utf8>> -> gleam@dynamic@decode:success(integration_type_mock); _ -> gleam@dynamic@decode:failure( integration_type_aws, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 5731). -spec decode_tls_config_struct() -> gleam@dynamic@decode:decoder(tls_config()). decode_tls_config_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"insecureSkipVerification"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Insecure_skip_verification) -> gleam@dynamic@decode:success( {tls_config, Insecure_skip_verification} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5696). -spec decode_response_transfer_mode_enum() -> gleam@dynamic@decode:decoder(response_transfer_mode()). decode_response_transfer_mode_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"BUFFERED"/utf8>> -> gleam@dynamic@decode:success( response_transfer_mode_buffered ); <<"STREAM"/utf8>> -> gleam@dynamic@decode:success(response_transfer_mode_stream); _ -> gleam@dynamic@decode:failure( response_transfer_mode_buffered, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 5517). -spec decode_content_handling_strategy_enum() -> gleam@dynamic@decode:decoder(content_handling_strategy()). decode_content_handling_strategy_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"CONVERT_TO_BINARY"/utf8>> -> gleam@dynamic@decode:success( content_handling_strategy_convert_to_binary ); <<"CONVERT_TO_TEXT"/utf8>> -> gleam@dynamic@decode:success( content_handling_strategy_convert_to_text ); _ -> gleam@dynamic@decode:failure( content_handling_strategy_convert_to_binary, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 5606). -spec decode_integration_response_struct() -> gleam@dynamic@decode:decoder(integration_response()). decode_integration_response_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum() ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"selectionPattern"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Selection_pattern) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {integration_response, Content_handling, Response_parameters, Response_templates, Selection_pattern, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5485). -spec decode_connection_type_enum() -> gleam@dynamic@decode:decoder(connection_type()). decode_connection_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"INTERNET"/utf8>> -> gleam@dynamic@decode:success(connection_type_internet); <<"VPC_LINK"/utf8>> -> gleam@dynamic@decode:success(connection_type_vpc_link); _ -> gleam@dynamic@decode:failure( connection_type_internet, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 5251). -spec decode_integration_struct() -> gleam@dynamic@decode:decoder(integration()). decode_integration_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheKeyParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Cache_key_parameters) -> gleam@dynamic@decode:optional_field( <<"cacheNamespace"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Cache_namespace) -> gleam@dynamic@decode:optional_field( <<"connectionId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Connection_id) -> gleam@dynamic@decode:optional_field( <<"connectionType"/utf8>>, none, gleam@dynamic@decode:optional( decode_connection_type_enum() ), fun(Connection_type) -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum( ) ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"credentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Credentials) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"integrationResponses"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_integration_response_struct( ) ) ), fun( Integration_responses ) -> gleam@dynamic@decode:optional_field( <<"integrationTarget"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Integration_target ) -> gleam@dynamic@decode:optional_field( <<"passthroughBehavior"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Passthrough_behavior ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_templates ) -> gleam@dynamic@decode:optional_field( <<"responseTransferMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_response_transfer_mode_enum( ) ), fun( Response_transfer_mode ) -> gleam@dynamic@decode:optional_field( <<"timeoutInMillis"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Timeout_in_millis ) -> gleam@dynamic@decode:optional_field( <<"tlsConfig"/utf8>>, none, gleam@dynamic@decode:optional( decode_tls_config_struct( ) ), fun( Tls_config ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_integration_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:optional_field( <<"uri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Uri ) -> gleam@dynamic@decode:success( {integration, Cache_key_parameters, Cache_namespace, Connection_id, Connection_type, Content_handling, Credentials, Http_method, Integration_responses, Integration_target, Passthrough_behavior, Request_parameters, Request_templates, Response_transfer_mode, Timeout_in_millis, Tls_config, Type_, Uri} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4962). -spec decode_method_struct() -> gleam@dynamic@decode:decoder(method()). decode_method_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyRequired"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Api_key_required) -> gleam@dynamic@decode:optional_field( <<"authorizationScopes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Authorization_scopes) -> gleam@dynamic@decode:optional_field( <<"authorizationType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorization_type) -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"methodIntegration"/utf8>>, none, gleam@dynamic@decode:optional( decode_integration_struct( ) ), fun(Method_integration) -> gleam@dynamic@decode:optional_field( <<"methodResponses"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_response_struct( ) ) ), fun( Method_responses ) -> gleam@dynamic@decode:optional_field( <<"operationName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Operation_name ) -> gleam@dynamic@decode:optional_field( <<"requestModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_models ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Request_validator_id ) -> gleam@dynamic@decode:success( {method, Api_key_required, Authorization_scopes, Authorization_type, Authorizer_id, Http_method, Method_integration, Method_responses, Operation_name, Request_models, Request_parameters, Request_validator_id} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4784). -spec decode_resource_struct() -> gleam@dynamic@decode:decoder(resource()). decode_resource_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"parentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Parent_id) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"pathPart"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path_part) -> gleam@dynamic@decode:optional_field( <<"resourceMethods"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_struct() ) ), fun(Resource_methods) -> gleam@dynamic@decode:success( {resource, Id, Parent_id, Path, Path_part, Resource_methods} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5870). -spec decode_method_response_struct_params() -> gleam@dynamic@decode:decoder(method_response()). decode_method_response_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_models) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {method_response, Response_models, Response_parameters, Status_code} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5743). -spec decode_tls_config_struct_params() -> gleam@dynamic@decode:decoder(tls_config()). decode_tls_config_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"insecureSkipVerification"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Insecure_skip_verification) -> gleam@dynamic@decode:success( {tls_config, Insecure_skip_verification} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5644). -spec decode_integration_response_struct_params() -> gleam@dynamic@decode:decoder(integration_response()). decode_integration_response_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum() ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"selectionPattern"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Selection_pattern) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {integration_response, Content_handling, Response_parameters, Response_templates, Selection_pattern, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5362). -spec decode_integration_struct_params() -> gleam@dynamic@decode:decoder(integration()). decode_integration_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheKeyParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Cache_key_parameters) -> gleam@dynamic@decode:optional_field( <<"cacheNamespace"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Cache_namespace) -> gleam@dynamic@decode:optional_field( <<"connectionId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Connection_id) -> gleam@dynamic@decode:optional_field( <<"connectionType"/utf8>>, none, gleam@dynamic@decode:optional( decode_connection_type_enum() ), fun(Connection_type) -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum( ) ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"credentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Credentials) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"integrationResponses"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_integration_response_struct_params( ) ) ), fun( Integration_responses ) -> gleam@dynamic@decode:optional_field( <<"integrationTarget"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Integration_target ) -> gleam@dynamic@decode:optional_field( <<"passthroughBehavior"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Passthrough_behavior ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_templates ) -> gleam@dynamic@decode:optional_field( <<"responseTransferMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_response_transfer_mode_enum( ) ), fun( Response_transfer_mode ) -> gleam@dynamic@decode:optional_field( <<"timeoutInMillis"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Timeout_in_millis ) -> gleam@dynamic@decode:optional_field( <<"tlsConfig"/utf8>>, none, gleam@dynamic@decode:optional( decode_tls_config_struct_params( ) ), fun( Tls_config ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_integration_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:optional_field( <<"uri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Uri ) -> gleam@dynamic@decode:success( {integration, Cache_key_parameters, Cache_namespace, Connection_id, Connection_type, Content_handling, Credentials, Http_method, Integration_responses, Integration_target, Passthrough_behavior, Request_parameters, Request_templates, Response_transfer_mode, Timeout_in_millis, Tls_config, Type_, Uri} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5034). -spec decode_method_struct_params() -> gleam@dynamic@decode:decoder(method()). decode_method_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyRequired"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Api_key_required) -> gleam@dynamic@decode:optional_field( <<"authorizationScopes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Authorization_scopes) -> gleam@dynamic@decode:optional_field( <<"authorizationType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorization_type) -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"methodIntegration"/utf8>>, none, gleam@dynamic@decode:optional( decode_integration_struct_params( ) ), fun(Method_integration) -> gleam@dynamic@decode:optional_field( <<"methodResponses"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_response_struct_params( ) ) ), fun( Method_responses ) -> gleam@dynamic@decode:optional_field( <<"operationName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Operation_name ) -> gleam@dynamic@decode:optional_field( <<"requestModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_models ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Request_validator_id ) -> gleam@dynamic@decode:success( {method, Api_key_required, Authorization_scopes, Authorization_type, Authorizer_id, Http_method, Method_integration, Method_responses, Operation_name, Request_models, Request_parameters, Request_validator_id} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 4820). -spec decode_resource_struct_params() -> gleam@dynamic@decode:decoder(resource()). decode_resource_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"parentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Parent_id) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"pathPart"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path_part) -> gleam@dynamic@decode:optional_field( <<"resourceMethods"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_struct_params( ) ) ), fun(Resource_methods) -> gleam@dynamic@decode:success( {resource, Id, Parent_id, Path, Path_part, Resource_methods} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 5495). -spec connection_type_from_wire(binary()) -> {ok, connection_type()} | {error, binary()}. connection_type_from_wire(S) -> case S of <<"INTERNET"/utf8>> -> {ok, connection_type_internet}; <<"VPC_LINK"/utf8>> -> {ok, connection_type_vpc_link}; _ -> {ok, connection_type_internet} end. -file("src/aws/services/api_gateway.gleam", 5534). -spec content_handling_strategy_from_wire(binary()) -> {ok, content_handling_strategy()} | {error, binary()}. content_handling_strategy_from_wire(S) -> case S of <<"CONVERT_TO_BINARY"/utf8>> -> {ok, content_handling_strategy_convert_to_binary}; <<"CONVERT_TO_TEXT"/utf8>> -> {ok, content_handling_strategy_convert_to_text}; _ -> {ok, content_handling_strategy_convert_to_binary} end. -file("src/aws/services/api_gateway.gleam", 5708). -spec response_transfer_mode_from_wire(binary()) -> {ok, response_transfer_mode()} | {error, binary()}. response_transfer_mode_from_wire(S) -> case S of <<"BUFFERED"/utf8>> -> {ok, response_transfer_mode_buffered}; <<"STREAM"/utf8>> -> {ok, response_transfer_mode_stream}; _ -> {ok, response_transfer_mode_buffered} end. -file("src/aws/services/api_gateway.gleam", 5786). -spec integration_type_from_wire(binary()) -> {ok, integration_type()} | {error, binary()}. integration_type_from_wire(S) -> case S of <<"AWS"/utf8>> -> {ok, integration_type_aws}; <<"AWS_PROXY"/utf8>> -> {ok, integration_type_aws_proxy}; <<"HTTP"/utf8>> -> {ok, integration_type_http}; <<"HTTP_PROXY"/utf8>> -> {ok, integration_type_http_proxy}; <<"MOCK"/utf8>> -> {ok, integration_type_mock}; _ -> {ok, integration_type_aws} end. -file("src/aws/services/api_gateway.gleam", 6174). -spec encode_api_key_source_type_enum(api_key_source_type()) -> gleam@json:json(). encode_api_key_source_type_enum(V) -> case V of api_key_source_type_authorizer -> gleam@json:string(<<"AUTHORIZER"/utf8>>); api_key_source_type_header -> gleam@json:string(<<"HEADER"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 5912). -spec encode_create_rest_api_request_struct(create_rest_api_request()) -> gleam@json:json(). encode_create_rest_api_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeySource"/utf8>>, encode_api_key_source_type_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"binaryMediaTypes"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"cloneFrom"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"description"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"disableExecuteApiEndpoint"/utf8>>, gleam@json:bool(V@4)} | Pairs@4]; none -> [{<<"disableExecuteApiEndpoint"/utf8>>, gleam@json:bool(false)} | Pairs@4] end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"endpointAccessMode"/utf8>>, encode_endpoint_access_mode_enum(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"endpointConfiguration"/utf8>>, encode_endpoint_configuration_struct(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"minimumCompressionSize"/utf8>>, gleam@json:int(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"name"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"policy"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"securityPolicy"/utf8>>, encode_security_policy_enum(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"version"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, gleam@json:object(Pairs@13). -file("src/aws/services/api_gateway.gleam", 6181). -spec decode_api_key_source_type_enum() -> gleam@dynamic@decode:decoder(api_key_source_type()). decode_api_key_source_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"AUTHORIZER"/utf8>> -> gleam@dynamic@decode:success(api_key_source_type_authorizer); <<"HEADER"/utf8>> -> gleam@dynamic@decode:success(api_key_source_type_header); _ -> gleam@dynamic@decode:failure( api_key_source_type_authorizer, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 5997). -spec decode_create_rest_api_request_struct() -> gleam@dynamic@decode:decoder(create_rest_api_request()). decode_create_rest_api_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeySource"/utf8>>, none, gleam@dynamic@decode:optional(decode_api_key_source_type_enum()), fun(Api_key_source) -> gleam@dynamic@decode:optional_field( <<"binaryMediaTypes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Binary_media_types) -> gleam@dynamic@decode:optional_field( <<"cloneFrom"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Clone_from) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"disableExecuteApiEndpoint"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Disable_execute_api_endpoint ) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"minimumCompressionSize"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Minimum_compression_size ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Name ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"version"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Version ) -> gleam@dynamic@decode:success( {create_rest_api_request, Api_key_source, Binary_media_types, Clone_from, Description, Disable_execute_api_endpoint, Endpoint_access_mode, Endpoint_configuration, Minimum_compression_size, Name, Policy, Security_policy, Tags, Version} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 6083). -spec decode_create_rest_api_request_struct_params() -> gleam@dynamic@decode:decoder(create_rest_api_request()). decode_create_rest_api_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeySource"/utf8>>, none, gleam@dynamic@decode:optional(decode_api_key_source_type_enum()), fun(Api_key_source) -> gleam@dynamic@decode:optional_field( <<"binaryMediaTypes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Binary_media_types) -> gleam@dynamic@decode:optional_field( <<"cloneFrom"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Clone_from) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"disableExecuteApiEndpoint"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Disable_execute_api_endpoint ) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct_params( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"minimumCompressionSize"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Minimum_compression_size ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Name ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"version"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Version ) -> gleam@dynamic@decode:success( {create_rest_api_request, Api_key_source, Binary_media_types, Clone_from, Description, Disable_execute_api_endpoint, Endpoint_access_mode, Endpoint_configuration, Minimum_compression_size, Name, Policy, Security_policy, Tags, Version} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 6191). -spec api_key_source_type_from_wire(binary()) -> {ok, api_key_source_type()} | {error, binary()}. api_key_source_type_from_wire(S) -> case S of <<"AUTHORIZER"/utf8>> -> {ok, api_key_source_type_authorizer}; <<"HEADER"/utf8>> -> {ok, api_key_source_type_header}; _ -> {ok, api_key_source_type_authorizer} end. -file("src/aws/services/api_gateway.gleam", 6568). -spec encode_api_status_enum(api_status()) -> gleam@json:json(). encode_api_status_enum(V) -> case V of api_status_available -> gleam@json:string(<<"AVAILABLE"/utf8>>); api_status_failed -> gleam@json:string(<<"FAILED"/utf8>>); api_status_pending -> gleam@json:string(<<"PENDING"/utf8>>); api_status_updating -> gleam@json:string(<<"UPDATING"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 6224). -spec encode_rest_api_struct(rest_api()) -> gleam@json:json(). encode_rest_api_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeySource"/utf8>>, encode_api_key_source_type_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"apiStatus"/utf8>>, encode_api_status_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"apiStatusMessage"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"binaryMediaTypes"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"createdDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"description"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"disableExecuteApiEndpoint"/utf8>>, gleam@json:bool(V@6)} | Pairs@6]; none -> [{<<"disableExecuteApiEndpoint"/utf8>>, gleam@json:bool(false)} | Pairs@6] end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"endpointAccessMode"/utf8>>, encode_endpoint_access_mode_enum(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"endpointConfiguration"/utf8>>, encode_endpoint_configuration_struct(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"id"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"minimumCompressionSize"/utf8>>, gleam@json:int(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"name"/utf8>>, gleam@json:string(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"policy"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(15, Input) of {some, V@13} -> [{<<"rootResourceId"/utf8>>, gleam@json:string(V@13)} | Pairs@13]; none -> Pairs@13 end, Pairs@15 = case erlang:element(16, Input) of {some, V@14} -> [{<<"securityPolicy"/utf8>>, encode_security_policy_enum(V@14)} | Pairs@14]; none -> Pairs@14 end, Pairs@16 = case erlang:element(17, Input) of {some, V@15} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@15)} | Pairs@15]; none -> Pairs@15 end, Pairs@17 = case erlang:element(18, Input) of {some, V@16} -> [{<<"version"/utf8>>, gleam@json:string(V@16)} | Pairs@16]; none -> Pairs@16 end, Pairs@18 = case erlang:element(19, Input) of {some, V@17} -> [{<<"warnings"/utf8>>, (fun(Xs@1) -> gleam@json:array(Xs@1, fun gleam@json:string/1) end)(V@17)} | Pairs@17]; none -> Pairs@17 end, gleam@json:object(Pairs@18). -file("src/aws/services/api_gateway.gleam", 6577). -spec decode_api_status_enum() -> gleam@dynamic@decode:decoder(api_status()). decode_api_status_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"AVAILABLE"/utf8>> -> gleam@dynamic@decode:success(api_status_available); <<"FAILED"/utf8>> -> gleam@dynamic@decode:success(api_status_failed); <<"PENDING"/utf8>> -> gleam@dynamic@decode:success(api_status_pending); <<"UPDATING"/utf8>> -> gleam@dynamic@decode:success(api_status_updating); _ -> gleam@dynamic@decode:failure( api_status_available, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 6333). -spec decode_rest_api_struct() -> gleam@dynamic@decode:decoder(rest_api()). decode_rest_api_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeySource"/utf8>>, none, gleam@dynamic@decode:optional(decode_api_key_source_type_enum()), fun(Api_key_source) -> gleam@dynamic@decode:optional_field( <<"apiStatus"/utf8>>, none, gleam@dynamic@decode:optional(decode_api_status_enum()), fun(Api_status) -> gleam@dynamic@decode:optional_field( <<"apiStatusMessage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_status_message) -> gleam@dynamic@decode:optional_field( <<"binaryMediaTypes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Binary_media_types) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"disableExecuteApiEndpoint"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Disable_execute_api_endpoint ) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Id ) -> gleam@dynamic@decode:optional_field( <<"minimumCompressionSize"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Minimum_compression_size ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Name ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"rootResourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Root_resource_id ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"version"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Version ) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Warnings ) -> gleam@dynamic@decode:success( {rest_api, Api_key_source, Api_status, Api_status_message, Binary_media_types, Created_date, Description, Disable_execute_api_endpoint, Endpoint_access_mode, Endpoint_configuration, Id, Minimum_compression_size, Name, Policy, Root_resource_id, Security_policy, Tags, Version, Warnings} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 6447). -spec decode_rest_api_struct_params() -> gleam@dynamic@decode:decoder(rest_api()). decode_rest_api_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeySource"/utf8>>, none, gleam@dynamic@decode:optional(decode_api_key_source_type_enum()), fun(Api_key_source) -> gleam@dynamic@decode:optional_field( <<"apiStatus"/utf8>>, none, gleam@dynamic@decode:optional(decode_api_status_enum()), fun(Api_status) -> gleam@dynamic@decode:optional_field( <<"apiStatusMessage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_status_message) -> gleam@dynamic@decode:optional_field( <<"binaryMediaTypes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Binary_media_types) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"disableExecuteApiEndpoint"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Disable_execute_api_endpoint ) -> gleam@dynamic@decode:optional_field( <<"endpointAccessMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_access_mode_enum( ) ), fun( Endpoint_access_mode ) -> gleam@dynamic@decode:optional_field( <<"endpointConfiguration"/utf8>>, none, gleam@dynamic@decode:optional( decode_endpoint_configuration_struct_params( ) ), fun( Endpoint_configuration ) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Id ) -> gleam@dynamic@decode:optional_field( <<"minimumCompressionSize"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Minimum_compression_size ) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Name ) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Policy ) -> gleam@dynamic@decode:optional_field( <<"rootResourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Root_resource_id ) -> gleam@dynamic@decode:optional_field( <<"securityPolicy"/utf8>>, none, gleam@dynamic@decode:optional( decode_security_policy_enum( ) ), fun( Security_policy ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"version"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Version ) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Warnings ) -> gleam@dynamic@decode:success( {rest_api, Api_key_source, Api_status, Api_status_message, Binary_media_types, Created_date, Description, Disable_execute_api_endpoint, Endpoint_access_mode, Endpoint_configuration, Id, Minimum_compression_size, Name, Policy, Root_resource_id, Security_policy, Tags, Version, Warnings} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 6589). -spec api_status_from_wire(binary()) -> {ok, api_status()} | {error, binary()}. api_status_from_wire(S) -> case S of <<"AVAILABLE"/utf8>> -> {ok, api_status_available}; <<"FAILED"/utf8>> -> {ok, api_status_failed}; <<"PENDING"/utf8>> -> {ok, api_status_pending}; <<"UPDATING"/utf8>> -> {ok, api_status_updating}; _ -> {ok, api_status_available} end. -file("src/aws/services/api_gateway.gleam", 6851). -spec encode_canary_settings_struct(canary_settings()) -> gleam@json:json(). encode_canary_settings_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"percentTraffic"/utf8>>, aws@internal@codec@json_float:encode(V@1)} | Pairs@1]; none -> [{<<"percentTraffic"/utf8>>, gleam@json:int(0)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"stageVariableOverrides"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"useStageCache"/utf8>>, gleam@json:bool(V@3)} | Pairs@3]; none -> [{<<"useStageCache"/utf8>>, gleam@json:bool(false)} | Pairs@3] end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 6615). -spec encode_create_stage_request_struct(create_stage_request()) -> gleam@json:json(). encode_create_stage_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheClusterEnabled"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> [{<<"cacheClusterEnabled"/utf8>>, gleam@json:bool(false)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheClusterSize"/utf8>>, encode_cache_cluster_size_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"canarySettings"/utf8>>, encode_canary_settings_struct(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"description"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"stageName"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"tracingEnabled"/utf8>>, gleam@json:bool(V@9)} | Pairs@9]; none -> [{<<"tracingEnabled"/utf8>>, gleam@json:bool(false)} | Pairs@9] end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"variables"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@10)} | Pairs@10]; none -> Pairs@10 end, gleam@json:object(Pairs@11). -file("src/aws/services/api_gateway.gleam", 6883). -spec decode_canary_settings_struct() -> gleam@dynamic@decode:decoder(canary_settings()). decode_canary_settings_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"percentTraffic"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder() ), fun(Percent_traffic) -> gleam@dynamic@decode:optional_field( <<"stageVariableOverrides"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Stage_variable_overrides) -> gleam@dynamic@decode:optional_field( <<"useStageCache"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Use_stage_cache) -> gleam@dynamic@decode:success( {canary_settings, Deployment_id, Percent_traffic, Stage_variable_overrides, Use_stage_cache} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 6694). -spec decode_create_stage_request_struct() -> gleam@dynamic@decode:decoder(create_stage_request()). decode_create_stage_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheClusterEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_cluster_enabled) -> gleam@dynamic@decode:optional_field( <<"cacheClusterSize"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_size_enum() ), fun(Cache_cluster_size) -> gleam@dynamic@decode:optional_field( <<"canarySettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_canary_settings_struct() ), fun(Canary_settings) -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Documentation_version ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Stage_name ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"tracingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Tracing_enabled ) -> gleam@dynamic@decode:optional_field( <<"variables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Variables ) -> gleam@dynamic@decode:success( {create_stage_request, Cache_cluster_enabled, Cache_cluster_size, Canary_settings, Deployment_id, Description, Documentation_version, Rest_api_id, Stage_name, Tags, Tracing_enabled, Variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 6913). -spec decode_canary_settings_struct_params() -> gleam@dynamic@decode:decoder(canary_settings()). decode_canary_settings_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"percentTraffic"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder() ), fun(Percent_traffic) -> gleam@dynamic@decode:optional_field( <<"stageVariableOverrides"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Stage_variable_overrides) -> gleam@dynamic@decode:optional_field( <<"useStageCache"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Use_stage_cache) -> gleam@dynamic@decode:success( {canary_settings, Deployment_id, Percent_traffic, Stage_variable_overrides, Use_stage_cache} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 6768). -spec decode_create_stage_request_struct_params() -> gleam@dynamic@decode:decoder(create_stage_request()). decode_create_stage_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheClusterEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_cluster_enabled) -> gleam@dynamic@decode:optional_field( <<"cacheClusterSize"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_size_enum() ), fun(Cache_cluster_size) -> gleam@dynamic@decode:optional_field( <<"canarySettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_canary_settings_struct_params() ), fun(Canary_settings) -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Documentation_version ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Stage_name ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"tracingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Tracing_enabled ) -> gleam@dynamic@decode:optional_field( <<"variables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Variables ) -> gleam@dynamic@decode:success( {create_stage_request, Cache_cluster_enabled, Cache_cluster_size, Canary_settings, Deployment_id, Description, Documentation_version, Rest_api_id, Stage_name, Tags, Tracing_enabled, Variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7626). -spec encode_unauthorized_cache_control_header_strategy_enum( unauthorized_cache_control_header_strategy() ) -> gleam@json:json(). encode_unauthorized_cache_control_header_strategy_enum(V) -> case V of unauthorized_cache_control_header_strategy_fail_with403 -> gleam@json:string(<<"FAIL_WITH_403"/utf8>>); unauthorized_cache_control_header_strategy_succeed_without_response_header -> gleam@json:string(<<"SUCCEED_WITHOUT_RESPONSE_HEADER"/utf8>>); unauthorized_cache_control_header_strategy_succeed_with_response_header -> gleam@json:string(<<"SUCCEED_WITH_RESPONSE_HEADER"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 7431). -spec encode_method_setting_struct(method_setting()) -> gleam@json:json(). encode_method_setting_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheDataEncrypted"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> [{<<"cacheDataEncrypted"/utf8>>, gleam@json:bool(false)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheTtlInSeconds"/utf8>>, gleam@json:int(V@1)} | Pairs@1]; none -> [{<<"cacheTtlInSeconds"/utf8>>, gleam@json:int(0)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"cachingEnabled"/utf8>>, gleam@json:bool(V@2)} | Pairs@2]; none -> [{<<"cachingEnabled"/utf8>>, gleam@json:bool(false)} | Pairs@2] end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"dataTraceEnabled"/utf8>>, gleam@json:bool(V@3)} | Pairs@3]; none -> [{<<"dataTraceEnabled"/utf8>>, gleam@json:bool(false)} | Pairs@3] end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"loggingLevel"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"metricsEnabled"/utf8>>, gleam@json:bool(V@5)} | Pairs@5]; none -> [{<<"metricsEnabled"/utf8>>, gleam@json:bool(false)} | Pairs@5] end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"requireAuthorizationForCacheControl"/utf8>>, gleam@json:bool(V@6)} | Pairs@6]; none -> [{<<"requireAuthorizationForCacheControl"/utf8>>, gleam@json:bool(false)} | Pairs@6] end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"throttlingBurstLimit"/utf8>>, gleam@json:int(V@7)} | Pairs@7]; none -> [{<<"throttlingBurstLimit"/utf8>>, gleam@json:int(0)} | Pairs@7] end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"throttlingRateLimit"/utf8>>, aws@internal@codec@json_float:encode(V@8)} | Pairs@8]; none -> [{<<"throttlingRateLimit"/utf8>>, gleam@json:int(0)} | Pairs@8] end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"unauthorizedCacheControlHeaderStrategy"/utf8>>, encode_unauthorized_cache_control_header_strategy_enum(V@9)} | Pairs@9]; none -> Pairs@9 end, gleam@json:object(Pairs@10). -file("src/aws/services/api_gateway.gleam", 7378). -spec encode_cache_cluster_status_enum(cache_cluster_status()) -> gleam@json:json(). encode_cache_cluster_status_enum(V) -> case V of cache_cluster_status_available -> gleam@json:string(<<"AVAILABLE"/utf8>>); cache_cluster_status_create_in_progress -> gleam@json:string(<<"CREATE_IN_PROGRESS"/utf8>>); cache_cluster_status_delete_in_progress -> gleam@json:string(<<"DELETE_IN_PROGRESS"/utf8>>); cache_cluster_status_flush_in_progress -> gleam@json:string(<<"FLUSH_IN_PROGRESS"/utf8>>); cache_cluster_status_not_available -> gleam@json:string(<<"NOT_AVAILABLE"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 7317). -spec encode_access_log_settings_struct(access_log_settings()) -> gleam@json:json(). encode_access_log_settings_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"destinationArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"format"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 6965). -spec encode_stage_struct(stage()) -> gleam@json:json(). encode_stage_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"accessLogSettings"/utf8>>, encode_access_log_settings_struct(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheClusterEnabled"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> [{<<"cacheClusterEnabled"/utf8>>, gleam@json:bool(false)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"cacheClusterSize"/utf8>>, encode_cache_cluster_size_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"cacheClusterStatus"/utf8>>, encode_cache_cluster_status_enum(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"canarySettings"/utf8>>, encode_canary_settings_struct(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"clientCertificateId"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"createdDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"description"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"lastUpdatedDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"methodSettings"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), encode_method_setting_struct( erlang:element(2, Pair) )} end ) end ) end)(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"stageName"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(15, Input) of {some, V@13} -> [{<<"tags"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@13)} | Pairs@13]; none -> Pairs@13 end, Pairs@15 = case erlang:element(16, Input) of {some, V@14} -> [{<<"tracingEnabled"/utf8>>, gleam@json:bool(V@14)} | Pairs@14]; none -> [{<<"tracingEnabled"/utf8>>, gleam@json:bool(false)} | Pairs@14] end, Pairs@16 = case erlang:element(17, Input) of {some, V@15} -> [{<<"variables"/utf8>>, (fun(D@2) -> gleam@json:object( begin _pipe@2 = maps:to_list(D@2), gleam@list:map( _pipe@2, fun(Pair@2) -> {erlang:element(1, Pair@2), gleam@json:string( erlang:element(2, Pair@2) )} end ) end ) end)(V@15)} | Pairs@15]; none -> Pairs@15 end, Pairs@17 = case erlang:element(18, Input) of {some, V@16} -> [{<<"webAclArn"/utf8>>, gleam@json:string(V@16)} | Pairs@16]; none -> Pairs@16 end, gleam@json:object(Pairs@17). -file("src/aws/services/api_gateway.gleam", 7639). -spec decode_unauthorized_cache_control_header_strategy_enum() -> gleam@dynamic@decode:decoder(unauthorized_cache_control_header_strategy()). decode_unauthorized_cache_control_header_strategy_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"FAIL_WITH_403"/utf8>> -> gleam@dynamic@decode:success( unauthorized_cache_control_header_strategy_fail_with403 ); <<"SUCCEED_WITHOUT_RESPONSE_HEADER"/utf8>> -> gleam@dynamic@decode:success( unauthorized_cache_control_header_strategy_succeed_without_response_header ); <<"SUCCEED_WITH_RESPONSE_HEADER"/utf8>> -> gleam@dynamic@decode:success( unauthorized_cache_control_header_strategy_succeed_with_response_header ); _ -> gleam@dynamic@decode:failure( unauthorized_cache_control_header_strategy_fail_with403, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 7488). -spec decode_method_setting_struct() -> gleam@dynamic@decode:decoder(method_setting()). decode_method_setting_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheDataEncrypted"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_data_encrypted) -> gleam@dynamic@decode:optional_field( <<"cacheTtlInSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Cache_ttl_in_seconds) -> gleam@dynamic@decode:optional_field( <<"cachingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Caching_enabled) -> gleam@dynamic@decode:optional_field( <<"dataTraceEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Data_trace_enabled) -> gleam@dynamic@decode:optional_field( <<"loggingLevel"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Logging_level) -> gleam@dynamic@decode:optional_field( <<"metricsEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Metrics_enabled) -> gleam@dynamic@decode:optional_field( <<"requireAuthorizationForCacheControl"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Require_authorization_for_cache_control ) -> gleam@dynamic@decode:optional_field( <<"throttlingBurstLimit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Throttling_burst_limit ) -> gleam@dynamic@decode:optional_field( <<"throttlingRateLimit"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder( ) ), fun( Throttling_rate_limit ) -> gleam@dynamic@decode:optional_field( <<"unauthorizedCacheControlHeaderStrategy"/utf8>>, none, gleam@dynamic@decode:optional( decode_unauthorized_cache_control_header_strategy_enum( ) ), fun( Unauthorized_cache_control_header_strategy ) -> gleam@dynamic@decode:success( {method_setting, Cache_data_encrypted, Cache_ttl_in_seconds, Caching_enabled, Data_trace_enabled, Logging_level, Metrics_enabled, Require_authorization_for_cache_control, Throttling_burst_limit, Throttling_rate_limit, Unauthorized_cache_control_header_strategy} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7388). -spec decode_cache_cluster_status_enum() -> gleam@dynamic@decode:decoder(cache_cluster_status()). decode_cache_cluster_status_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"AVAILABLE"/utf8>> -> gleam@dynamic@decode:success(cache_cluster_status_available); <<"CREATE_IN_PROGRESS"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_status_create_in_progress ); <<"DELETE_IN_PROGRESS"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_status_delete_in_progress ); <<"FLUSH_IN_PROGRESS"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_status_flush_in_progress ); <<"NOT_AVAILABLE"/utf8>> -> gleam@dynamic@decode:success( cache_cluster_status_not_available ); _ -> gleam@dynamic@decode:failure( cache_cluster_status_available, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 7332). -spec decode_access_log_settings_struct() -> gleam@dynamic@decode:decoder(access_log_settings()). decode_access_log_settings_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"destinationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Destination_arn) -> gleam@dynamic@decode:optional_field( <<"format"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Format) -> gleam@dynamic@decode:success( {access_log_settings, Destination_arn, Format} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7091). -spec decode_stage_struct() -> gleam@dynamic@decode:decoder(stage()). decode_stage_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accessLogSettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_access_log_settings_struct() ), fun(Access_log_settings) -> gleam@dynamic@decode:optional_field( <<"cacheClusterEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_cluster_enabled) -> gleam@dynamic@decode:optional_field( <<"cacheClusterSize"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_size_enum() ), fun(Cache_cluster_size) -> gleam@dynamic@decode:optional_field( <<"cacheClusterStatus"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_status_enum() ), fun(Cache_cluster_status) -> gleam@dynamic@decode:optional_field( <<"canarySettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_canary_settings_struct( ) ), fun(Canary_settings) -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Client_certificate_id ) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun( Created_date ) -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Deployment_id ) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Description ) -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Documentation_version ) -> gleam@dynamic@decode:optional_field( <<"lastUpdatedDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun( Last_updated_date ) -> gleam@dynamic@decode:optional_field( <<"methodSettings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_setting_struct( ) ) ), fun( Method_settings ) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Stage_name ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"tracingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Tracing_enabled ) -> gleam@dynamic@decode:optional_field( <<"variables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Variables ) -> gleam@dynamic@decode:optional_field( <<"webAclArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Web_acl_arn ) -> gleam@dynamic@decode:success( {stage, Access_log_settings, Cache_cluster_enabled, Cache_cluster_size, Cache_cluster_status, Canary_settings, Client_certificate_id, Created_date, Deployment_id, Description, Documentation_version, Last_updated_date, Method_settings, Stage_name, Tags, Tracing_enabled, Variables, Web_acl_arn} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7554). -spec decode_method_setting_struct_params() -> gleam@dynamic@decode:decoder(method_setting()). decode_method_setting_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheDataEncrypted"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_data_encrypted) -> gleam@dynamic@decode:optional_field( <<"cacheTtlInSeconds"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Cache_ttl_in_seconds) -> gleam@dynamic@decode:optional_field( <<"cachingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Caching_enabled) -> gleam@dynamic@decode:optional_field( <<"dataTraceEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Data_trace_enabled) -> gleam@dynamic@decode:optional_field( <<"loggingLevel"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Logging_level) -> gleam@dynamic@decode:optional_field( <<"metricsEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Metrics_enabled) -> gleam@dynamic@decode:optional_field( <<"requireAuthorizationForCacheControl"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Require_authorization_for_cache_control ) -> gleam@dynamic@decode:optional_field( <<"throttlingBurstLimit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Throttling_burst_limit ) -> gleam@dynamic@decode:optional_field( <<"throttlingRateLimit"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder( ) ), fun( Throttling_rate_limit ) -> gleam@dynamic@decode:optional_field( <<"unauthorizedCacheControlHeaderStrategy"/utf8>>, none, gleam@dynamic@decode:optional( decode_unauthorized_cache_control_header_strategy_enum( ) ), fun( Unauthorized_cache_control_header_strategy ) -> gleam@dynamic@decode:success( {method_setting, Cache_data_encrypted, Cache_ttl_in_seconds, Caching_enabled, Data_trace_enabled, Logging_level, Metrics_enabled, Require_authorization_for_cache_control, Throttling_burst_limit, Throttling_rate_limit, Unauthorized_cache_control_header_strategy} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7350). -spec decode_access_log_settings_struct_params() -> gleam@dynamic@decode:decoder(access_log_settings()). decode_access_log_settings_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"destinationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Destination_arn) -> gleam@dynamic@decode:optional_field( <<"format"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Format) -> gleam@dynamic@decode:success( {access_log_settings, Destination_arn, Format} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7199). -spec decode_stage_struct_params() -> gleam@dynamic@decode:decoder(stage()). decode_stage_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accessLogSettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_access_log_settings_struct_params() ), fun(Access_log_settings) -> gleam@dynamic@decode:optional_field( <<"cacheClusterEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Cache_cluster_enabled) -> gleam@dynamic@decode:optional_field( <<"cacheClusterSize"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_size_enum() ), fun(Cache_cluster_size) -> gleam@dynamic@decode:optional_field( <<"cacheClusterStatus"/utf8>>, none, gleam@dynamic@decode:optional( decode_cache_cluster_status_enum() ), fun(Cache_cluster_status) -> gleam@dynamic@decode:optional_field( <<"canarySettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_canary_settings_struct_params( ) ), fun(Canary_settings) -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Client_certificate_id ) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun( Created_date ) -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Deployment_id ) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Description ) -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Documentation_version ) -> gleam@dynamic@decode:optional_field( <<"lastUpdatedDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun( Last_updated_date ) -> gleam@dynamic@decode:optional_field( <<"methodSettings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_method_setting_struct_params( ) ) ), fun( Method_settings ) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Stage_name ) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Tags ) -> gleam@dynamic@decode:optional_field( <<"tracingEnabled"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun( Tracing_enabled ) -> gleam@dynamic@decode:optional_field( <<"variables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Variables ) -> gleam@dynamic@decode:optional_field( <<"webAclArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Web_acl_arn ) -> gleam@dynamic@decode:success( {stage, Access_log_settings, Cache_cluster_enabled, Cache_cluster_size, Cache_cluster_status, Canary_settings, Client_certificate_id, Created_date, Deployment_id, Description, Documentation_version, Last_updated_date, Method_settings, Stage_name, Tags, Tracing_enabled, Variables, Web_acl_arn} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7401). -spec cache_cluster_status_from_wire(binary()) -> {ok, cache_cluster_status()} | {error, binary()}. cache_cluster_status_from_wire(S) -> case S of <<"AVAILABLE"/utf8>> -> {ok, cache_cluster_status_available}; <<"CREATE_IN_PROGRESS"/utf8>> -> {ok, cache_cluster_status_create_in_progress}; <<"DELETE_IN_PROGRESS"/utf8>> -> {ok, cache_cluster_status_delete_in_progress}; <<"FLUSH_IN_PROGRESS"/utf8>> -> {ok, cache_cluster_status_flush_in_progress}; <<"NOT_AVAILABLE"/utf8>> -> {ok, cache_cluster_status_not_available}; _ -> {ok, cache_cluster_status_available} end. -file("src/aws/services/api_gateway.gleam", 7663). -spec unauthorized_cache_control_header_strategy_from_wire(binary()) -> {ok, unauthorized_cache_control_header_strategy()} | {error, binary()}. unauthorized_cache_control_header_strategy_from_wire(S) -> case S of <<"FAIL_WITH_403"/utf8>> -> {ok, unauthorized_cache_control_header_strategy_fail_with403}; <<"SUCCEED_WITHOUT_RESPONSE_HEADER"/utf8>> -> {ok, unauthorized_cache_control_header_strategy_succeed_without_response_header}; <<"SUCCEED_WITH_RESPONSE_HEADER"/utf8>> -> {ok, unauthorized_cache_control_header_strategy_succeed_with_response_header}; _ -> {ok, unauthorized_cache_control_header_strategy_fail_with403} end. -file("src/aws/services/api_gateway.gleam", 7914). -spec encode_throttle_settings_struct(throttle_settings()) -> gleam@json:json(). encode_throttle_settings_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"burstLimit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> [{<<"burstLimit"/utf8>>, gleam@json:int(0)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"rateLimit"/utf8>>, aws@internal@codec@json_float:encode(V@1)} | Pairs@1]; none -> [{<<"rateLimit"/utf8>>, gleam@json:int(0)} | Pairs@1] end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 8036). -spec encode_quota_period_type_enum(quota_period_type()) -> gleam@json:json(). encode_quota_period_type_enum(V) -> case V of quota_period_type_day -> gleam@json:string(<<"DAY"/utf8>>); quota_period_type_month -> gleam@json:string(<<"MONTH"/utf8>>); quota_period_type_week -> gleam@json:string(<<"WEEK"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 7973). -spec encode_quota_settings_struct(quota_settings()) -> gleam@json:json(). encode_quota_settings_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> [{<<"limit"/utf8>>, gleam@json:int(0)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"offset"/utf8>>, gleam@json:int(V@1)} | Pairs@1]; none -> [{<<"offset"/utf8>>, gleam@json:int(0)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"period"/utf8>>, encode_quota_period_type_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 7831). -spec encode_api_stage_struct(api_stage()) -> gleam@json:json(). encode_api_stage_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"stage"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"throttle"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), encode_throttle_settings_struct( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 7687). -spec encode_create_usage_plan_request_struct(create_usage_plan_request()) -> gleam@json:json(). encode_create_usage_plan_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiStages"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_api_stage_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"name"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"quota"/utf8>>, encode_quota_settings_struct(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"throttle"/utf8>>, encode_throttle_settings_struct(V@5)} | Pairs@5]; none -> Pairs@5 end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 7927). -spec decode_throttle_settings_struct() -> gleam@dynamic@decode:decoder(throttle_settings()). decode_throttle_settings_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"burstLimit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Burst_limit) -> gleam@dynamic@decode:optional_field( <<"rateLimit"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder() ), fun(Rate_limit) -> gleam@dynamic@decode:success( {throttle_settings, Burst_limit, Rate_limit} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8044). -spec decode_quota_period_type_enum() -> gleam@dynamic@decode:decoder(quota_period_type()). decode_quota_period_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"DAY"/utf8>> -> gleam@dynamic@decode:success(quota_period_type_day); <<"MONTH"/utf8>> -> gleam@dynamic@decode:success(quota_period_type_month); <<"WEEK"/utf8>> -> gleam@dynamic@decode:success(quota_period_type_week); _ -> gleam@dynamic@decode:failure( quota_period_type_day, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 7990). -spec decode_quota_settings_struct() -> gleam@dynamic@decode:decoder(quota_settings()). decode_quota_settings_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"offset"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Offset) -> gleam@dynamic@decode:optional_field( <<"period"/utf8>>, none, gleam@dynamic@decode:optional( decode_quota_period_type_enum() ), fun(Period) -> gleam@dynamic@decode:success( {quota_settings, Limit, Offset, Period} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7861). -spec decode_api_stage_struct() -> gleam@dynamic@decode:decoder(api_stage()). decode_api_stage_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_id) -> gleam@dynamic@decode:optional_field( <<"stage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage) -> gleam@dynamic@decode:optional_field( <<"throttle"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_throttle_settings_struct() ) ), fun(Throttle) -> gleam@dynamic@decode:success( {api_stage, Api_id, Stage, Throttle} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7735). -spec decode_create_usage_plan_request_struct() -> gleam@dynamic@decode:decoder(create_usage_plan_request()). decode_create_usage_plan_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiStages"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_api_stage_struct()) ), fun(Api_stages) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"quota"/utf8>>, none, gleam@dynamic@decode:optional( decode_quota_settings_struct() ), fun(Quota) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"throttle"/utf8>>, none, gleam@dynamic@decode:optional( decode_throttle_settings_struct( ) ), fun(Throttle) -> gleam@dynamic@decode:success( {create_usage_plan_request, Api_stages, Description, Name, Quota, Tags, Throttle} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7945). -spec decode_throttle_settings_struct_params() -> gleam@dynamic@decode:decoder(throttle_settings()). decode_throttle_settings_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"burstLimit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Burst_limit) -> gleam@dynamic@decode:optional_field( <<"rateLimit"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_float:decoder() ), fun(Rate_limit) -> gleam@dynamic@decode:success( {throttle_settings, Burst_limit, Rate_limit} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8010). -spec decode_quota_settings_struct_params() -> gleam@dynamic@decode:decoder(quota_settings()). decode_quota_settings_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"offset"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Offset) -> gleam@dynamic@decode:optional_field( <<"period"/utf8>>, none, gleam@dynamic@decode:optional( decode_quota_period_type_enum() ), fun(Period) -> gleam@dynamic@decode:success( {quota_settings, Limit, Offset, Period} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7884). -spec decode_api_stage_struct_params() -> gleam@dynamic@decode:decoder(api_stage()). decode_api_stage_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_id) -> gleam@dynamic@decode:optional_field( <<"stage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage) -> gleam@dynamic@decode:optional_field( <<"throttle"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, decode_throttle_settings_struct_params() ) ), fun(Throttle) -> gleam@dynamic@decode:success( {api_stage, Api_id, Stage, Throttle} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 7779). -spec decode_create_usage_plan_request_struct_params() -> gleam@dynamic@decode:decoder(create_usage_plan_request()). decode_create_usage_plan_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiStages"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_api_stage_struct_params()) ), fun(Api_stages) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"quota"/utf8>>, none, gleam@dynamic@decode:optional( decode_quota_settings_struct_params( ) ), fun(Quota) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"throttle"/utf8>>, none, gleam@dynamic@decode:optional( decode_throttle_settings_struct_params( ) ), fun(Throttle) -> gleam@dynamic@decode:success( {create_usage_plan_request, Api_stages, Description, Name, Quota, Tags, Throttle} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8055). -spec quota_period_type_from_wire(binary()) -> {ok, quota_period_type()} | {error, binary()}. quota_period_type_from_wire(S) -> case S of <<"DAY"/utf8>> -> {ok, quota_period_type_day}; <<"MONTH"/utf8>> -> {ok, quota_period_type_month}; <<"WEEK"/utf8>> -> {ok, quota_period_type_week}; _ -> {ok, quota_period_type_day} end. -file("src/aws/services/api_gateway.gleam", 8079). -spec encode_usage_plan_struct(usage_plan()) -> gleam@json:json(). encode_usage_plan_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiStages"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_api_stage_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"id"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"name"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"productCode"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"quota"/utf8>>, encode_quota_settings_struct(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"throttle"/utf8>>, encode_throttle_settings_struct(V@7)} | Pairs@7]; none -> Pairs@7 end, gleam@json:object(Pairs@8). -file("src/aws/services/api_gateway.gleam", 8133). -spec decode_usage_plan_struct() -> gleam@dynamic@decode:decoder(usage_plan()). decode_usage_plan_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiStages"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_api_stage_struct()) ), fun(Api_stages) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"productCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Product_code) -> gleam@dynamic@decode:optional_field( <<"quota"/utf8>>, none, gleam@dynamic@decode:optional( decode_quota_settings_struct( ) ), fun(Quota) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"throttle"/utf8>>, none, gleam@dynamic@decode:optional( decode_throttle_settings_struct( ) ), fun( Throttle ) -> gleam@dynamic@decode:success( {usage_plan, Api_stages, Description, Id, Name, Product_code, Quota, Tags, Throttle} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8187). -spec decode_usage_plan_struct_params() -> gleam@dynamic@decode:decoder(usage_plan()). decode_usage_plan_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiStages"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_api_stage_struct_params()) ), fun(Api_stages) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"productCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Product_code) -> gleam@dynamic@decode:optional_field( <<"quota"/utf8>>, none, gleam@dynamic@decode:optional( decode_quota_settings_struct_params( ) ), fun(Quota) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"throttle"/utf8>>, none, gleam@dynamic@decode:optional( decode_throttle_settings_struct_params( ) ), fun( Throttle ) -> gleam@dynamic@decode:success( {usage_plan, Api_stages, Description, Id, Name, Product_code, Quota, Tags, Throttle} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8249). -spec encode_create_usage_plan_key_request_struct( create_usage_plan_key_request() ) -> gleam@json:json(). encode_create_usage_plan_key_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"keyId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"keyType"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 8268). -spec decode_create_usage_plan_key_request_struct() -> gleam@dynamic@decode:decoder(create_usage_plan_key_request()). decode_create_usage_plan_key_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"keyType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_type) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {create_usage_plan_key_request, Key_id, Key_type, Usage_plan_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8294). -spec decode_create_usage_plan_key_request_struct_params() -> gleam@dynamic@decode:decoder(create_usage_plan_key_request()). decode_create_usage_plan_key_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"keyType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_type) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {create_usage_plan_key_request, Key_id, Key_type, Usage_plan_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8329). -spec encode_usage_plan_key_struct(usage_plan_key()) -> gleam@json:json(). encode_usage_plan_key_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"id"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"name"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"type"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"value"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 8350). -spec decode_usage_plan_key_struct() -> gleam@dynamic@decode:decoder(usage_plan_key()). decode_usage_plan_key_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Type_) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Value) -> gleam@dynamic@decode:success( {usage_plan_key, Id, Name, Type_, Value} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8375). -spec decode_usage_plan_key_struct_params() -> gleam@dynamic@decode:decoder(usage_plan_key()). decode_usage_plan_key_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Type_) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Value) -> gleam@dynamic@decode:success( {usage_plan_key, Id, Name, Type_, Value} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8409). -spec encode_create_vpc_link_request_struct(create_vpc_link_request()) -> gleam@json:json(). encode_create_vpc_link_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"description"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"name"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"targetArns"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 8446). -spec decode_create_vpc_link_request_struct() -> gleam@dynamic@decode:decoder(create_vpc_link_request()). decode_create_vpc_link_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"targetArns"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Target_arns) -> gleam@dynamic@decode:success( {create_vpc_link_request, Description, Name, Tags, Target_arns} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8478). -spec decode_create_vpc_link_request_struct_params() -> gleam@dynamic@decode:decoder(create_vpc_link_request()). decode_create_vpc_link_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"targetArns"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Target_arns) -> gleam@dynamic@decode:success( {create_vpc_link_request, Description, Name, Tags, Target_arns} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8672). -spec encode_vpc_link_status_enum(vpc_link_status()) -> gleam@json:json(). encode_vpc_link_status_enum(V) -> case V of vpc_link_status_available -> gleam@json:string(<<"AVAILABLE"/utf8>>); vpc_link_status_deleting -> gleam@json:string(<<"DELETING"/utf8>>); vpc_link_status_failed -> gleam@json:string(<<"FAILED"/utf8>>); vpc_link_status_pending -> gleam@json:string(<<"PENDING"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 8522). -spec encode_vpc_link_struct(vpc_link()) -> gleam@json:json(). encode_vpc_link_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"description"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"id"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"name"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"status"/utf8>>, encode_vpc_link_status_enum(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"statusMessage"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"targetArns"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@6)} | Pairs@6]; none -> Pairs@6 end, gleam@json:object(Pairs@7). -file("src/aws/services/api_gateway.gleam", 8681). -spec decode_vpc_link_status_enum() -> gleam@dynamic@decode:decoder(vpc_link_status()). decode_vpc_link_status_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"AVAILABLE"/utf8>> -> gleam@dynamic@decode:success(vpc_link_status_available); <<"DELETING"/utf8>> -> gleam@dynamic@decode:success(vpc_link_status_deleting); <<"FAILED"/utf8>> -> gleam@dynamic@decode:success(vpc_link_status_failed); <<"PENDING"/utf8>> -> gleam@dynamic@decode:success(vpc_link_status_pending); _ -> gleam@dynamic@decode:failure( vpc_link_status_available, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 8569). -spec decode_vpc_link_struct() -> gleam@dynamic@decode:decoder(vpc_link()). decode_vpc_link_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"status"/utf8>>, none, gleam@dynamic@decode:optional( decode_vpc_link_status_enum() ), fun(Status) -> gleam@dynamic@decode:optional_field( <<"statusMessage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_message) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"targetArns"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Target_arns) -> gleam@dynamic@decode:success( {vpc_link, Description, Id, Name, Status, Status_message, Tags, Target_arns} ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8617). -spec decode_vpc_link_struct_params() -> gleam@dynamic@decode:decoder(vpc_link()). decode_vpc_link_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"status"/utf8>>, none, gleam@dynamic@decode:optional( decode_vpc_link_status_enum() ), fun(Status) -> gleam@dynamic@decode:optional_field( <<"statusMessage"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_message) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:optional_field( <<"targetArns"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Target_arns) -> gleam@dynamic@decode:success( {vpc_link, Description, Id, Name, Status, Status_message, Tags, Target_arns} ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8693). -spec vpc_link_status_from_wire(binary()) -> {ok, vpc_link_status()} | {error, binary()}. vpc_link_status_from_wire(S) -> case S of <<"AVAILABLE"/utf8>> -> {ok, vpc_link_status_available}; <<"DELETING"/utf8>> -> {ok, vpc_link_status_deleting}; <<"FAILED"/utf8>> -> {ok, vpc_link_status_failed}; <<"PENDING"/utf8>> -> {ok, vpc_link_status_pending}; _ -> {ok, vpc_link_status_available} end. -file("src/aws/services/api_gateway.gleam", 8707). -spec encode_delete_api_key_request_struct(delete_api_key_request()) -> gleam@json:json(). encode_delete_api_key_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKey"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 8718). -spec decode_delete_api_key_request_struct() -> gleam@dynamic@decode:decoder(delete_api_key_request()). decode_delete_api_key_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key) -> gleam@dynamic@decode:success( {delete_api_key_request, Api_key} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8730). -spec decode_delete_api_key_request_struct_params() -> gleam@dynamic@decode:decoder(delete_api_key_request()). decode_delete_api_key_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key) -> gleam@dynamic@decode:success( {delete_api_key_request, Api_key} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8749). -spec encode_delete_authorizer_request_struct(delete_authorizer_request()) -> gleam@json:json(). encode_delete_authorizer_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"authorizerId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 8764). -spec decode_delete_authorizer_request_struct() -> gleam@dynamic@decode:decoder(delete_authorizer_request()). decode_delete_authorizer_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_authorizer_request, Authorizer_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8784). -spec decode_delete_authorizer_request_struct_params() -> gleam@dynamic@decode:decoder(delete_authorizer_request()). decode_delete_authorizer_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_authorizer_request, Authorizer_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8812). -spec encode_delete_base_path_mapping_request_struct( delete_base_path_mapping_request() ) -> gleam@json:json(). encode_delete_base_path_mapping_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"basePath"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 8831). -spec decode_delete_base_path_mapping_request_struct() -> gleam@dynamic@decode:decoder(delete_base_path_mapping_request()). decode_delete_base_path_mapping_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {delete_base_path_mapping_request, Base_path, Domain_name, Domain_name_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8857). -spec decode_delete_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:decoder(delete_base_path_mapping_request()). decode_delete_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {delete_base_path_mapping_request, Base_path, Domain_name, Domain_name_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8887). -spec encode_delete_client_certificate_request_struct( delete_client_certificate_request() ) -> gleam@json:json(). encode_delete_client_certificate_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"clientCertificateId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 8898). -spec decode_delete_client_certificate_request_struct() -> gleam@dynamic@decode:decoder(delete_client_certificate_request()). decode_delete_client_certificate_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:success( {delete_client_certificate_request, Client_certificate_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8912). -spec decode_delete_client_certificate_request_struct_params() -> gleam@dynamic@decode:decoder(delete_client_certificate_request()). decode_delete_client_certificate_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:success( {delete_client_certificate_request, Client_certificate_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8933). -spec encode_delete_deployment_request_struct(delete_deployment_request()) -> gleam@json:json(). encode_delete_deployment_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 8948). -spec decode_delete_deployment_request_struct() -> gleam@dynamic@decode:decoder(delete_deployment_request()). decode_delete_deployment_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_deployment_request, Deployment_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8968). -spec decode_delete_deployment_request_struct_params() -> gleam@dynamic@decode:decoder(delete_deployment_request()). decode_delete_deployment_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_deployment_request, Deployment_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 8995). -spec encode_delete_documentation_part_request_struct( delete_documentation_part_request() ) -> gleam@json:json(). encode_delete_documentation_part_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"documentationPartId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 9010). -spec decode_delete_documentation_part_request_struct() -> gleam@dynamic@decode:decoder(delete_documentation_part_request()). decode_delete_documentation_part_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationPartId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_part_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_documentation_part_request, Documentation_part_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9030). -spec decode_delete_documentation_part_request_struct_params() -> gleam@dynamic@decode:decoder(delete_documentation_part_request()). decode_delete_documentation_part_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationPartId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_part_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_documentation_part_request, Documentation_part_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9057). -spec encode_delete_documentation_version_request_struct( delete_documentation_version_request() ) -> gleam@json:json(). encode_delete_documentation_version_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 9072). -spec decode_delete_documentation_version_request_struct() -> gleam@dynamic@decode:decoder(delete_documentation_version_request()). decode_delete_documentation_version_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_documentation_version_request, Documentation_version, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9092). -spec decode_delete_documentation_version_request_struct_params() -> gleam@dynamic@decode:decoder(delete_documentation_version_request()). decode_delete_documentation_version_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_documentation_version_request, Documentation_version, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9119). -spec encode_delete_domain_name_request_struct(delete_domain_name_request()) -> gleam@json:json(). encode_delete_domain_name_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"domainName"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 9134). -spec decode_delete_domain_name_request_struct() -> gleam@dynamic@decode:decoder(delete_domain_name_request()). decode_delete_domain_name_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {delete_domain_name_request, Domain_name, Domain_name_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9154). -spec decode_delete_domain_name_request_struct_params() -> gleam@dynamic@decode:decoder(delete_domain_name_request()). decode_delete_domain_name_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {delete_domain_name_request, Domain_name, Domain_name_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9180). -spec encode_delete_domain_name_access_association_request_struct( delete_domain_name_access_association_request() ) -> gleam@json:json(). encode_delete_domain_name_access_association_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"domainNameAccessAssociationArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 9194). -spec decode_delete_domain_name_access_association_request_struct() -> gleam@dynamic@decode:decoder(delete_domain_name_access_association_request()). decode_delete_domain_name_access_association_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainNameAccessAssociationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_access_association_arn) -> gleam@dynamic@decode:success( {delete_domain_name_access_association_request, Domain_name_access_association_arn} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9208). -spec decode_delete_domain_name_access_association_request_struct_params() -> gleam@dynamic@decode:decoder(delete_domain_name_access_association_request()). decode_delete_domain_name_access_association_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainNameAccessAssociationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_access_association_arn) -> gleam@dynamic@decode:success( {delete_domain_name_access_association_request, Domain_name_access_association_arn} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9311). -spec encode_gateway_response_type_enum(gateway_response_type()) -> gleam@json:json(). encode_gateway_response_type_enum(V) -> case V of gateway_response_type_access_denied -> gleam@json:string(<<"ACCESS_DENIED"/utf8>>); gateway_response_type_api_configuration_error -> gleam@json:string(<<"API_CONFIGURATION_ERROR"/utf8>>); gateway_response_type_authorizer_configuration_error -> gleam@json:string(<<"AUTHORIZER_CONFIGURATION_ERROR"/utf8>>); gateway_response_type_authorizer_failure -> gleam@json:string(<<"AUTHORIZER_FAILURE"/utf8>>); gateway_response_type_bad_request_body -> gleam@json:string(<<"BAD_REQUEST_BODY"/utf8>>); gateway_response_type_bad_request_parameters -> gleam@json:string(<<"BAD_REQUEST_PARAMETERS"/utf8>>); gateway_response_type_default4xx -> gleam@json:string(<<"DEFAULT_4XX"/utf8>>); gateway_response_type_default5xx -> gleam@json:string(<<"DEFAULT_5XX"/utf8>>); gateway_response_type_expired_token -> gleam@json:string(<<"EXPIRED_TOKEN"/utf8>>); gateway_response_type_integration_failure -> gleam@json:string(<<"INTEGRATION_FAILURE"/utf8>>); gateway_response_type_integration_timeout -> gleam@json:string(<<"INTEGRATION_TIMEOUT"/utf8>>); gateway_response_type_invalid_api_key -> gleam@json:string(<<"INVALID_API_KEY"/utf8>>); gateway_response_type_invalid_signature -> gleam@json:string(<<"INVALID_SIGNATURE"/utf8>>); gateway_response_type_missing_authentication_token -> gleam@json:string(<<"MISSING_AUTHENTICATION_TOKEN"/utf8>>); gateway_response_type_quota_exceeded -> gleam@json:string(<<"QUOTA_EXCEEDED"/utf8>>); gateway_response_type_request_too_large -> gleam@json:string(<<"REQUEST_TOO_LARGE"/utf8>>); gateway_response_type_resource_not_found -> gleam@json:string(<<"RESOURCE_NOT_FOUND"/utf8>>); gateway_response_type_throttled -> gleam@json:string(<<"THROTTLED"/utf8>>); gateway_response_type_unauthorized -> gleam@json:string(<<"UNAUTHORIZED"/utf8>>); gateway_response_type_unsupported_media_type -> gleam@json:string(<<"UNSUPPORTED_MEDIA_TYPE"/utf8>>); gateway_response_type_waf_filtered -> gleam@json:string(<<"WAF_FILTERED"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 9229). -spec encode_delete_gateway_response_request_struct( delete_gateway_response_request() ) -> gleam@json:json(). encode_delete_gateway_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"responseType"/utf8>>, encode_gateway_response_type_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 9342). -spec decode_gateway_response_type_enum() -> gleam@dynamic@decode:decoder(gateway_response_type()). decode_gateway_response_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"ACCESS_DENIED"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_access_denied ); <<"API_CONFIGURATION_ERROR"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_api_configuration_error ); <<"AUTHORIZER_CONFIGURATION_ERROR"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_authorizer_configuration_error ); <<"AUTHORIZER_FAILURE"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_authorizer_failure ); <<"BAD_REQUEST_BODY"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_bad_request_body ); <<"BAD_REQUEST_PARAMETERS"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_bad_request_parameters ); <<"DEFAULT_4XX"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_default4xx ); <<"DEFAULT_5XX"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_default5xx ); <<"EXPIRED_TOKEN"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_expired_token ); <<"INTEGRATION_FAILURE"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_integration_failure ); <<"INTEGRATION_TIMEOUT"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_integration_timeout ); <<"INVALID_API_KEY"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_invalid_api_key ); <<"INVALID_SIGNATURE"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_invalid_signature ); <<"MISSING_AUTHENTICATION_TOKEN"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_missing_authentication_token ); <<"QUOTA_EXCEEDED"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_quota_exceeded ); <<"REQUEST_TOO_LARGE"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_request_too_large ); <<"RESOURCE_NOT_FOUND"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_resource_not_found ); <<"THROTTLED"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_throttled ); <<"UNAUTHORIZED"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_unauthorized ); <<"UNSUPPORTED_MEDIA_TYPE"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_unsupported_media_type ); <<"WAF_FILTERED"/utf8>> -> gleam@dynamic@decode:success( gateway_response_type_waf_filtered ); _ -> gleam@dynamic@decode:failure( gateway_response_type_access_denied, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 9247). -spec decode_delete_gateway_response_request_struct() -> gleam@dynamic@decode:decoder(delete_gateway_response_request()). decode_delete_gateway_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_gateway_response_request, Response_type, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9267). -spec decode_delete_gateway_response_request_struct_params() -> gleam@dynamic@decode:decoder(delete_gateway_response_request()). decode_delete_gateway_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_gateway_response_request, Response_type, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9382). -spec gateway_response_type_from_wire(binary()) -> {ok, gateway_response_type()} | {error, binary()}. gateway_response_type_from_wire(S) -> case S of <<"ACCESS_DENIED"/utf8>> -> {ok, gateway_response_type_access_denied}; <<"API_CONFIGURATION_ERROR"/utf8>> -> {ok, gateway_response_type_api_configuration_error}; <<"AUTHORIZER_CONFIGURATION_ERROR"/utf8>> -> {ok, gateway_response_type_authorizer_configuration_error}; <<"AUTHORIZER_FAILURE"/utf8>> -> {ok, gateway_response_type_authorizer_failure}; <<"BAD_REQUEST_BODY"/utf8>> -> {ok, gateway_response_type_bad_request_body}; <<"BAD_REQUEST_PARAMETERS"/utf8>> -> {ok, gateway_response_type_bad_request_parameters}; <<"DEFAULT_4XX"/utf8>> -> {ok, gateway_response_type_default4xx}; <<"DEFAULT_5XX"/utf8>> -> {ok, gateway_response_type_default5xx}; <<"EXPIRED_TOKEN"/utf8>> -> {ok, gateway_response_type_expired_token}; <<"INTEGRATION_FAILURE"/utf8>> -> {ok, gateway_response_type_integration_failure}; <<"INTEGRATION_TIMEOUT"/utf8>> -> {ok, gateway_response_type_integration_timeout}; <<"INVALID_API_KEY"/utf8>> -> {ok, gateway_response_type_invalid_api_key}; <<"INVALID_SIGNATURE"/utf8>> -> {ok, gateway_response_type_invalid_signature}; <<"MISSING_AUTHENTICATION_TOKEN"/utf8>> -> {ok, gateway_response_type_missing_authentication_token}; <<"QUOTA_EXCEEDED"/utf8>> -> {ok, gateway_response_type_quota_exceeded}; <<"REQUEST_TOO_LARGE"/utf8>> -> {ok, gateway_response_type_request_too_large}; <<"RESOURCE_NOT_FOUND"/utf8>> -> {ok, gateway_response_type_resource_not_found}; <<"THROTTLED"/utf8>> -> {ok, gateway_response_type_throttled}; <<"UNAUTHORIZED"/utf8>> -> {ok, gateway_response_type_unauthorized}; <<"UNSUPPORTED_MEDIA_TYPE"/utf8>> -> {ok, gateway_response_type_unsupported_media_type}; <<"WAF_FILTERED"/utf8>> -> {ok, gateway_response_type_waf_filtered}; _ -> {ok, gateway_response_type_access_denied} end. -file("src/aws/services/api_gateway.gleam", 9421). -spec encode_delete_integration_request_struct(delete_integration_request()) -> gleam@json:json(). encode_delete_integration_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 9440). -spec decode_delete_integration_request_struct() -> gleam@dynamic@decode:decoder(delete_integration_request()). decode_delete_integration_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_integration_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9466). -spec decode_delete_integration_request_struct_params() -> gleam@dynamic@decode:decoder(delete_integration_request()). decode_delete_integration_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_integration_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9501). -spec encode_delete_integration_response_request_struct( delete_integration_response_request() ) -> gleam@json:json(). encode_delete_integration_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 9524). -spec decode_delete_integration_response_request_struct() -> gleam@dynamic@decode:decoder(delete_integration_response_request()). decode_delete_integration_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {delete_integration_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9556). -spec decode_delete_integration_response_request_struct_params() -> gleam@dynamic@decode:decoder(delete_integration_response_request()). decode_delete_integration_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {delete_integration_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9596). -spec encode_delete_method_request_struct(delete_method_request()) -> gleam@json:json(). encode_delete_method_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 9615). -spec decode_delete_method_request_struct() -> gleam@dynamic@decode:decoder(delete_method_request()). decode_delete_method_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_method_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9641). -spec decode_delete_method_request_struct_params() -> gleam@dynamic@decode:decoder(delete_method_request()). decode_delete_method_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_method_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9676). -spec encode_delete_method_response_request_struct( delete_method_response_request() ) -> gleam@json:json(). encode_delete_method_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 9699). -spec decode_delete_method_response_request_struct() -> gleam@dynamic@decode:decoder(delete_method_response_request()). decode_delete_method_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {delete_method_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9731). -spec decode_delete_method_response_request_struct_params() -> gleam@dynamic@decode:decoder(delete_method_response_request()). decode_delete_method_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {delete_method_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9770). -spec encode_delete_model_request_struct(delete_model_request()) -> gleam@json:json(). encode_delete_model_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"modelName"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 9785). -spec decode_delete_model_request_struct() -> gleam@dynamic@decode:decoder(delete_model_request()). decode_delete_model_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_model_request, Model_name, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9805). -spec decode_delete_model_request_struct_params() -> gleam@dynamic@decode:decoder(delete_model_request()). decode_delete_model_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_model_request, Model_name, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9832). -spec encode_delete_request_validator_request_struct( delete_request_validator_request() ) -> gleam@json:json(). encode_delete_request_validator_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"requestValidatorId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 9847). -spec decode_delete_request_validator_request_struct() -> gleam@dynamic@decode:decoder(delete_request_validator_request()). decode_delete_request_validator_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Request_validator_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_request_validator_request, Request_validator_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9867). -spec decode_delete_request_validator_request_struct_params() -> gleam@dynamic@decode:decoder(delete_request_validator_request()). decode_delete_request_validator_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Request_validator_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_request_validator_request, Request_validator_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9894). -spec encode_delete_resource_request_struct(delete_resource_request()) -> gleam@json:json(). encode_delete_resource_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"resourceId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 9909). -spec decode_delete_resource_request_struct() -> gleam@dynamic@decode:decoder(delete_resource_request()). decode_delete_resource_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_resource_request, Resource_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9929). -spec decode_delete_resource_request_struct_params() -> gleam@dynamic@decode:decoder(delete_resource_request()). decode_delete_resource_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_resource_request, Resource_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9953). -spec encode_delete_rest_api_request_struct(delete_rest_api_request()) -> gleam@json:json(). encode_delete_rest_api_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"restApiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 9964). -spec decode_delete_rest_api_request_struct() -> gleam@dynamic@decode:decoder(delete_rest_api_request()). decode_delete_rest_api_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_rest_api_request, Rest_api_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9976). -spec decode_delete_rest_api_request_struct_params() -> gleam@dynamic@decode:decoder(delete_rest_api_request()). decode_delete_rest_api_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {delete_rest_api_request, Rest_api_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 9995). -spec encode_delete_stage_request_struct(delete_stage_request()) -> gleam@json:json(). encode_delete_stage_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"restApiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"stageName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 10010). -spec decode_delete_stage_request_struct() -> gleam@dynamic@decode:decoder(delete_stage_request()). decode_delete_stage_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {delete_stage_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10030). -spec decode_delete_stage_request_struct_params() -> gleam@dynamic@decode:decoder(delete_stage_request()). decode_delete_stage_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {delete_stage_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10054). -spec encode_delete_usage_plan_request_struct(delete_usage_plan_request()) -> gleam@json:json(). encode_delete_usage_plan_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 10065). -spec decode_delete_usage_plan_request_struct() -> gleam@dynamic@decode:decoder(delete_usage_plan_request()). decode_delete_usage_plan_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {delete_usage_plan_request, Usage_plan_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10077). -spec decode_delete_usage_plan_request_struct_params() -> gleam@dynamic@decode:decoder(delete_usage_plan_request()). decode_delete_usage_plan_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {delete_usage_plan_request, Usage_plan_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10096). -spec encode_delete_usage_plan_key_request_struct( delete_usage_plan_key_request() ) -> gleam@json:json(). encode_delete_usage_plan_key_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"keyId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 10111). -spec decode_delete_usage_plan_key_request_struct() -> gleam@dynamic@decode:decoder(delete_usage_plan_key_request()). decode_delete_usage_plan_key_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {delete_usage_plan_key_request, Key_id, Usage_plan_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10131). -spec decode_delete_usage_plan_key_request_struct_params() -> gleam@dynamic@decode:decoder(delete_usage_plan_key_request()). decode_delete_usage_plan_key_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {delete_usage_plan_key_request, Key_id, Usage_plan_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10155). -spec encode_delete_vpc_link_request_struct(delete_vpc_link_request()) -> gleam@json:json(). encode_delete_vpc_link_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"vpcLinkId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 10166). -spec decode_delete_vpc_link_request_struct() -> gleam@dynamic@decode:decoder(delete_vpc_link_request()). decode_delete_vpc_link_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"vpcLinkId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Vpc_link_id) -> gleam@dynamic@decode:success( {delete_vpc_link_request, Vpc_link_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10178). -spec decode_delete_vpc_link_request_struct_params() -> gleam@dynamic@decode:decoder(delete_vpc_link_request()). decode_delete_vpc_link_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"vpcLinkId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Vpc_link_id) -> gleam@dynamic@decode:success( {delete_vpc_link_request, Vpc_link_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10197). -spec encode_flush_stage_authorizers_cache_request_struct( flush_stage_authorizers_cache_request() ) -> gleam@json:json(). encode_flush_stage_authorizers_cache_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"restApiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"stageName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 10212). -spec decode_flush_stage_authorizers_cache_request_struct() -> gleam@dynamic@decode:decoder(flush_stage_authorizers_cache_request()). decode_flush_stage_authorizers_cache_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {flush_stage_authorizers_cache_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10232). -spec decode_flush_stage_authorizers_cache_request_struct_params() -> gleam@dynamic@decode:decoder(flush_stage_authorizers_cache_request()). decode_flush_stage_authorizers_cache_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {flush_stage_authorizers_cache_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10259). -spec encode_flush_stage_cache_request_struct(flush_stage_cache_request()) -> gleam@json:json(). encode_flush_stage_cache_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"restApiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"stageName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 10274). -spec decode_flush_stage_cache_request_struct() -> gleam@dynamic@decode:decoder(flush_stage_cache_request()). decode_flush_stage_cache_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {flush_stage_cache_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10294). -spec decode_flush_stage_cache_request_struct_params() -> gleam@dynamic@decode:decoder(flush_stage_cache_request()). decode_flush_stage_cache_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {flush_stage_cache_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10321). -spec encode_generate_client_certificate_request_struct( generate_client_certificate_request() ) -> gleam@json:json(). encode_generate_client_certificate_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"description"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 10347). -spec decode_generate_client_certificate_request_struct() -> gleam@dynamic@decode:decoder(generate_client_certificate_request()). decode_generate_client_certificate_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {generate_client_certificate_request, Description, Tags} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10367). -spec decode_generate_client_certificate_request_struct_params() -> gleam@dynamic@decode:decoder(generate_client_certificate_request()). decode_generate_client_certificate_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {generate_client_certificate_request, Description, Tags} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10398). -spec encode_client_certificate_struct(client_certificate()) -> gleam@json:json(). encode_client_certificate_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"clientCertificateId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"createdDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"description"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"expirationDate"/utf8>>, aws@internal@codec@json_timestamp:encode_epoch_seconds(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"pemEncodedCertificate"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@5)} | Pairs@5]; none -> Pairs@5 end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 10444). -spec decode_client_certificate_struct() -> gleam@dynamic@decode:decoder(client_certificate()). decode_client_certificate_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"expirationDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Expiration_date) -> gleam@dynamic@decode:optional_field( <<"pemEncodedCertificate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Pem_encoded_certificate) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {client_certificate, Client_certificate_id, Created_date, Description, Expiration_date, Pem_encoded_certificate, Tags} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10486). -spec decode_client_certificate_struct_params() -> gleam@dynamic@decode:decoder(client_certificate()). decode_client_certificate_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:optional_field( <<"createdDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise() ), fun(Created_date) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"expirationDate"/utf8>>, none, gleam@dynamic@decode:optional( aws@internal@codec@json_timestamp:decoder_precise( ) ), fun(Expiration_date) -> gleam@dynamic@decode:optional_field( <<"pemEncodedCertificate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Pem_encoded_certificate) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {client_certificate, Client_certificate_id, Created_date, Description, Expiration_date, Pem_encoded_certificate, Tags} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10534). -spec encode_get_account_request_struct(get_account_request()) -> gleam@json:json(). encode_get_account_request_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 10538). -spec decode_get_account_request_struct() -> gleam@dynamic@decode:decoder(get_account_request()). decode_get_account_request_struct() -> gleam@dynamic@decode:success(get_account_request). -file("src/aws/services/api_gateway.gleam", 10542). -spec decode_get_account_request_struct_params() -> gleam@dynamic@decode:decoder(get_account_request()). decode_get_account_request_struct_params() -> gleam@dynamic@decode:success(get_account_request). -file("src/aws/services/api_gateway.gleam", 10557). -spec encode_account_struct(account()) -> gleam@json:json(). encode_account_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeyVersion"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cloudwatchRoleArn"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"features"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"throttleSettings"/utf8>>, encode_throttle_settings_struct(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 10584). -spec decode_account_struct() -> gleam@dynamic@decode:decoder(account()). decode_account_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key_version) -> gleam@dynamic@decode:optional_field( <<"cloudwatchRoleArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Cloudwatch_role_arn) -> gleam@dynamic@decode:optional_field( <<"features"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Features) -> gleam@dynamic@decode:optional_field( <<"throttleSettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_throttle_settings_struct() ), fun(Throttle_settings) -> gleam@dynamic@decode:success( {account, Api_key_version, Cloudwatch_role_arn, Features, Throttle_settings} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10614). -spec decode_account_struct_params() -> gleam@dynamic@decode:decoder(account()). decode_account_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key_version) -> gleam@dynamic@decode:optional_field( <<"cloudwatchRoleArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Cloudwatch_role_arn) -> gleam@dynamic@decode:optional_field( <<"features"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Features) -> gleam@dynamic@decode:optional_field( <<"throttleSettings"/utf8>>, none, gleam@dynamic@decode:optional( decode_throttle_settings_struct_params( ) ), fun(Throttle_settings) -> gleam@dynamic@decode:success( {account, Api_key_version, Cloudwatch_role_arn, Features, Throttle_settings} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10651). -spec encode_get_api_key_request_struct(get_api_key_request()) -> gleam@json:json(). encode_get_api_key_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKey"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"includeValue"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 10664). -spec decode_get_api_key_request_struct() -> gleam@dynamic@decode:decoder(get_api_key_request()). decode_get_api_key_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key) -> gleam@dynamic@decode:optional_field( <<"includeValue"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Include_value) -> gleam@dynamic@decode:success( {get_api_key_request, Api_key, Include_value} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10682). -spec decode_get_api_key_request_struct_params() -> gleam@dynamic@decode:decoder(get_api_key_request()). decode_get_api_key_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key) -> gleam@dynamic@decode:optional_field( <<"includeValue"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Include_value) -> gleam@dynamic@decode:success( {get_api_key_request, Api_key, Include_value} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10712). -spec encode_get_api_keys_request_struct(get_api_keys_request()) -> gleam@json:json(). encode_get_api_keys_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"customerId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"includeValues"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"limit"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"nameQuery"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"position"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 10739). -spec decode_get_api_keys_request_struct() -> gleam@dynamic@decode:decoder(get_api_keys_request()). decode_get_api_keys_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"customerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Customer_id) -> gleam@dynamic@decode:optional_field( <<"includeValues"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Include_values) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"nameQuery"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name_query) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_api_keys_request, Customer_id, Include_values, Limit, Name_query, Position} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10775). -spec decode_get_api_keys_request_struct_params() -> gleam@dynamic@decode:decoder(get_api_keys_request()). decode_get_api_keys_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"customerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Customer_id) -> gleam@dynamic@decode:optional_field( <<"includeValues"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Include_values) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"nameQuery"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name_query) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_api_keys_request, Customer_id, Include_values, Limit, Name_query, Position} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10821). -spec encode_api_keys_struct(api_keys()) -> gleam@json:json(). encode_api_keys_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_api_key_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"warnings"/utf8>>, (fun(Xs@1) -> gleam@json:array(Xs@1, fun gleam@json:string/1) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 10844). -spec decode_api_keys_struct() -> gleam@dynamic@decode:decoder(api_keys()). decode_api_keys_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_api_key_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Warnings) -> gleam@dynamic@decode:success( {api_keys, Items, Position, Warnings} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10864). -spec decode_api_keys_struct_params() -> gleam@dynamic@decode:decoder(api_keys()). decode_api_keys_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_api_key_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Warnings) -> gleam@dynamic@decode:success( {api_keys, Items, Position, Warnings} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10891). -spec encode_get_authorizer_request_struct(get_authorizer_request()) -> gleam@json:json(). encode_get_authorizer_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"authorizerId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 10906). -spec decode_get_authorizer_request_struct() -> gleam@dynamic@decode:decoder(get_authorizer_request()). decode_get_authorizer_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_authorizer_request, Authorizer_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10926). -spec decode_get_authorizer_request_struct_params() -> gleam@dynamic@decode:decoder(get_authorizer_request()). decode_get_authorizer_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_authorizer_request, Authorizer_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10954). -spec encode_get_authorizers_request_struct(get_authorizers_request()) -> gleam@json:json(). encode_get_authorizers_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 10973). -spec decode_get_authorizers_request_struct() -> gleam@dynamic@decode:decoder(get_authorizers_request()). decode_get_authorizers_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_authorizers_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 10999). -spec decode_get_authorizers_request_struct_params() -> gleam@dynamic@decode:decoder(get_authorizers_request()). decode_get_authorizers_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_authorizers_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11032). -spec encode_authorizers_struct(authorizers()) -> gleam@json:json(). encode_authorizers_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_authorizer_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 11048). -spec decode_authorizers_struct() -> gleam@dynamic@decode:decoder(authorizers()). decode_authorizers_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_authorizer_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {authorizers, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11063). -spec decode_authorizers_struct_params() -> gleam@dynamic@decode:decoder(authorizers()). decode_authorizers_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_authorizer_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {authorizers, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11086). -spec encode_get_base_path_mapping_request_struct( get_base_path_mapping_request() ) -> gleam@json:json(). encode_get_base_path_mapping_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"basePath"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 11105). -spec decode_get_base_path_mapping_request_struct() -> gleam@dynamic@decode:decoder(get_base_path_mapping_request()). decode_get_base_path_mapping_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {get_base_path_mapping_request, Base_path, Domain_name, Domain_name_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11131). -spec decode_get_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:decoder(get_base_path_mapping_request()). decode_get_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {get_base_path_mapping_request, Base_path, Domain_name, Domain_name_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11166). -spec encode_get_base_path_mappings_request_struct( get_base_path_mappings_request() ) -> gleam@json:json(). encode_get_base_path_mappings_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"domainName"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"limit"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"position"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 11189). -spec decode_get_base_path_mappings_request_struct() -> gleam@dynamic@decode:decoder(get_base_path_mappings_request()). decode_get_base_path_mappings_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_base_path_mappings_request, Domain_name, Domain_name_id, Limit, Position} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11221). -spec decode_get_base_path_mappings_request_struct_params() -> gleam@dynamic@decode:decoder(get_base_path_mappings_request()). decode_get_base_path_mappings_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_base_path_mappings_request, Domain_name, Domain_name_id, Limit, Position} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11260). -spec encode_base_path_mappings_struct(base_path_mappings()) -> gleam@json:json(). encode_base_path_mappings_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_base_path_mapping_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 11276). -spec decode_base_path_mappings_struct() -> gleam@dynamic@decode:decoder(base_path_mappings()). decode_base_path_mappings_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_base_path_mapping_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {base_path_mappings, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11291). -spec decode_base_path_mappings_struct_params() -> gleam@dynamic@decode:decoder(base_path_mappings()). decode_base_path_mappings_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_base_path_mapping_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {base_path_mappings, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11312). -spec encode_get_client_certificate_request_struct( get_client_certificate_request() ) -> gleam@json:json(). encode_get_client_certificate_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"clientCertificateId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 11323). -spec decode_get_client_certificate_request_struct() -> gleam@dynamic@decode:decoder(get_client_certificate_request()). decode_get_client_certificate_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:success( {get_client_certificate_request, Client_certificate_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11337). -spec decode_get_client_certificate_request_struct_params() -> gleam@dynamic@decode:decoder(get_client_certificate_request()). decode_get_client_certificate_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:success( {get_client_certificate_request, Client_certificate_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11358). -spec encode_get_client_certificates_request_struct( get_client_certificates_request() ) -> gleam@json:json(). encode_get_client_certificates_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 11373). -spec decode_get_client_certificates_request_struct() -> gleam@dynamic@decode:decoder(get_client_certificates_request()). decode_get_client_certificates_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_client_certificates_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11390). -spec decode_get_client_certificates_request_struct_params() -> gleam@dynamic@decode:decoder(get_client_certificates_request()). decode_get_client_certificates_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_client_certificates_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11414). -spec encode_client_certificates_struct(client_certificates()) -> gleam@json:json(). encode_client_certificates_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_client_certificate_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 11432). -spec decode_client_certificates_struct() -> gleam@dynamic@decode:decoder(client_certificates()). decode_client_certificates_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_client_certificate_struct() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {client_certificates, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11447). -spec decode_client_certificates_struct_params() -> gleam@dynamic@decode:decoder(client_certificates()). decode_client_certificates_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_client_certificate_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {client_certificates, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11472). -spec encode_get_deployment_request_struct(get_deployment_request()) -> gleam@json:json(). encode_get_deployment_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"embed"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 11494). -spec decode_get_deployment_request_struct() -> gleam@dynamic@decode:decoder(get_deployment_request()). decode_get_deployment_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"embed"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Embed) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_deployment_request, Deployment_id, Embed, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11520). -spec decode_get_deployment_request_struct_params() -> gleam@dynamic@decode:decoder(get_deployment_request()). decode_get_deployment_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"embed"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Embed) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_deployment_request, Deployment_id, Embed, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11554). -spec encode_get_deployments_request_struct(get_deployments_request()) -> gleam@json:json(). encode_get_deployments_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 11573). -spec decode_get_deployments_request_struct() -> gleam@dynamic@decode:decoder(get_deployments_request()). decode_get_deployments_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_deployments_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11599). -spec decode_get_deployments_request_struct_params() -> gleam@dynamic@decode:decoder(get_deployments_request()). decode_get_deployments_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_deployments_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11632). -spec encode_deployments_struct(deployments()) -> gleam@json:json(). encode_deployments_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_deployment_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 11648). -spec decode_deployments_struct() -> gleam@dynamic@decode:decoder(deployments()). decode_deployments_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_deployment_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {deployments, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11663). -spec decode_deployments_struct_params() -> gleam@dynamic@decode:decoder(deployments()). decode_deployments_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_deployment_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {deployments, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11685). -spec encode_get_documentation_part_request_struct( get_documentation_part_request() ) -> gleam@json:json(). encode_get_documentation_part_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"documentationPartId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 11700). -spec decode_get_documentation_part_request_struct() -> gleam@dynamic@decode:decoder(get_documentation_part_request()). decode_get_documentation_part_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationPartId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_part_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_documentation_part_request, Documentation_part_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11720). -spec decode_get_documentation_part_request_struct_params() -> gleam@dynamic@decode:decoder(get_documentation_part_request()). decode_get_documentation_part_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationPartId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_part_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_documentation_part_request, Documentation_part_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11898). -spec encode_location_status_type_enum(location_status_type()) -> gleam@json:json(). encode_location_status_type_enum(V) -> case V of location_status_type_documented -> gleam@json:string(<<"DOCUMENTED"/utf8>>); location_status_type_undocumented -> gleam@json:string(<<"UNDOCUMENTED"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 11752). -spec encode_get_documentation_parts_request_struct( get_documentation_parts_request() ) -> gleam@json:json(). encode_get_documentation_parts_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"locationStatus"/utf8>>, encode_location_status_type_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"nameQuery"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"path"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"position"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"type"/utf8>>, encode_documentation_part_type_enum(V@6)} | Pairs@6]; none -> Pairs@6 end, gleam@json:object(Pairs@7). -file("src/aws/services/api_gateway.gleam", 11905). -spec decode_location_status_type_enum() -> gleam@dynamic@decode:decoder(location_status_type()). decode_location_status_type_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"DOCUMENTED"/utf8>> -> gleam@dynamic@decode:success( location_status_type_documented ); <<"UNDOCUMENTED"/utf8>> -> gleam@dynamic@decode:success( location_status_type_undocumented ); _ -> gleam@dynamic@decode:failure( location_status_type_documented, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 11793). -spec decode_get_documentation_parts_request_struct() -> gleam@dynamic@decode:decoder(get_documentation_parts_request()). decode_get_documentation_parts_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"locationStatus"/utf8>>, none, gleam@dynamic@decode:optional( decode_location_status_type_enum() ), fun(Location_status) -> gleam@dynamic@decode:optional_field( <<"nameQuery"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name_query) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_type_enum( ) ), fun(Type_) -> gleam@dynamic@decode:success( {get_documentation_parts_request, Limit, Location_status, Name_query, Path, Position, Rest_api_id, Type_} ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11843). -spec decode_get_documentation_parts_request_struct_params() -> gleam@dynamic@decode:decoder(get_documentation_parts_request()). decode_get_documentation_parts_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"locationStatus"/utf8>>, none, gleam@dynamic@decode:optional( decode_location_status_type_enum() ), fun(Location_status) -> gleam@dynamic@decode:optional_field( <<"nameQuery"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name_query) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_documentation_part_type_enum( ) ), fun(Type_) -> gleam@dynamic@decode:success( {get_documentation_parts_request, Limit, Location_status, Name_query, Path, Position, Rest_api_id, Type_} ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11915). -spec location_status_type_from_wire(binary()) -> {ok, location_status_type()} | {error, binary()}. location_status_type_from_wire(S) -> case S of <<"DOCUMENTED"/utf8>> -> {ok, location_status_type_documented}; <<"UNDOCUMENTED"/utf8>> -> {ok, location_status_type_undocumented}; _ -> {ok, location_status_type_documented} end. -file("src/aws/services/api_gateway.gleam", 11932). -spec encode_documentation_parts_struct(documentation_parts()) -> gleam@json:json(). encode_documentation_parts_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_documentation_part_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 11950). -spec decode_documentation_parts_struct() -> gleam@dynamic@decode:decoder(documentation_parts()). decode_documentation_parts_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_documentation_part_struct() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {documentation_parts, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11965). -spec decode_documentation_parts_struct_params() -> gleam@dynamic@decode:decoder(documentation_parts()). decode_documentation_parts_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_documentation_part_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {documentation_parts, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 11989). -spec encode_get_documentation_version_request_struct( get_documentation_version_request() ) -> gleam@json:json(). encode_get_documentation_version_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 12004). -spec decode_get_documentation_version_request_struct() -> gleam@dynamic@decode:decoder(get_documentation_version_request()). decode_get_documentation_version_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_documentation_version_request, Documentation_version, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12024). -spec decode_get_documentation_version_request_struct_params() -> gleam@dynamic@decode:decoder(get_documentation_version_request()). decode_get_documentation_version_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_documentation_version_request, Documentation_version, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12052). -spec encode_get_documentation_versions_request_struct( get_documentation_versions_request() ) -> gleam@json:json(). encode_get_documentation_versions_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 12071). -spec decode_get_documentation_versions_request_struct() -> gleam@dynamic@decode:decoder(get_documentation_versions_request()). decode_get_documentation_versions_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_documentation_versions_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12097). -spec decode_get_documentation_versions_request_struct_params() -> gleam@dynamic@decode:decoder(get_documentation_versions_request()). decode_get_documentation_versions_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_documentation_versions_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12130). -spec encode_documentation_versions_struct(documentation_versions()) -> gleam@json:json(). encode_documentation_versions_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_documentation_version_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 12151). -spec decode_documentation_versions_struct() -> gleam@dynamic@decode:decoder(documentation_versions()). decode_documentation_versions_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_documentation_version_struct() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {documentation_versions, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12168). -spec decode_documentation_versions_struct_params() -> gleam@dynamic@decode:decoder(documentation_versions()). decode_documentation_versions_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_documentation_version_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {documentation_versions, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12192). -spec encode_get_domain_name_request_struct(get_domain_name_request()) -> gleam@json:json(). encode_get_domain_name_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"domainName"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 12207). -spec decode_get_domain_name_request_struct() -> gleam@dynamic@decode:decoder(get_domain_name_request()). decode_get_domain_name_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {get_domain_name_request, Domain_name, Domain_name_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12227). -spec decode_get_domain_name_request_struct_params() -> gleam@dynamic@decode:decoder(get_domain_name_request()). decode_get_domain_name_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:success( {get_domain_name_request, Domain_name, Domain_name_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12334). -spec encode_resource_owner_enum(resource_owner()) -> gleam@json:json(). encode_resource_owner_enum(V) -> case V of resource_owner_other_accounts -> gleam@json:string(<<"OTHER_ACCOUNTS"/utf8>>); resource_owner_self -> gleam@json:string(<<"SELF"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 12255). -spec encode_get_domain_name_access_associations_request_struct( get_domain_name_access_associations_request() ) -> gleam@json:json(). encode_get_domain_name_access_associations_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceOwner"/utf8>>, encode_resource_owner_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 12341). -spec decode_resource_owner_enum() -> gleam@dynamic@decode:decoder(resource_owner()). decode_resource_owner_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"OTHER_ACCOUNTS"/utf8>> -> gleam@dynamic@decode:success(resource_owner_other_accounts); <<"SELF"/utf8>> -> gleam@dynamic@decode:success(resource_owner_self); _ -> gleam@dynamic@decode:failure( resource_owner_other_accounts, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 12277). -spec decode_get_domain_name_access_associations_request_struct() -> gleam@dynamic@decode:decoder(get_domain_name_access_associations_request()). decode_get_domain_name_access_associations_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"resourceOwner"/utf8>>, none, gleam@dynamic@decode:optional( decode_resource_owner_enum() ), fun(Resource_owner) -> gleam@dynamic@decode:success( {get_domain_name_access_associations_request, Limit, Position, Resource_owner} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12303). -spec decode_get_domain_name_access_associations_request_struct_params() -> gleam@dynamic@decode:decoder(get_domain_name_access_associations_request()). decode_get_domain_name_access_associations_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"resourceOwner"/utf8>>, none, gleam@dynamic@decode:optional( decode_resource_owner_enum() ), fun(Resource_owner) -> gleam@dynamic@decode:success( {get_domain_name_access_associations_request, Limit, Position, Resource_owner} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12351). -spec resource_owner_from_wire(binary()) -> {ok, resource_owner()} | {error, binary()}. resource_owner_from_wire(S) -> case S of <<"OTHER_ACCOUNTS"/utf8>> -> {ok, resource_owner_other_accounts}; <<"SELF"/utf8>> -> {ok, resource_owner_self}; _ -> {ok, resource_owner_other_accounts} end. -file("src/aws/services/api_gateway.gleam", 12366). -spec encode_domain_name_access_associations_struct( domain_name_access_associations() ) -> gleam@json:json(). encode_domain_name_access_associations_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_domain_name_access_association_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 12389). -spec decode_domain_name_access_associations_struct() -> gleam@dynamic@decode:decoder(domain_name_access_associations()). decode_domain_name_access_associations_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_domain_name_access_association_struct() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {domain_name_access_associations, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12406). -spec decode_domain_name_access_associations_struct_params() -> gleam@dynamic@decode:decoder(domain_name_access_associations()). decode_domain_name_access_associations_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_domain_name_access_association_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {domain_name_access_associations, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12433). -spec encode_get_domain_names_request_struct(get_domain_names_request()) -> gleam@json:json(). encode_get_domain_names_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceOwner"/utf8>>, encode_resource_owner_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 12455). -spec decode_get_domain_names_request_struct() -> gleam@dynamic@decode:decoder(get_domain_names_request()). decode_get_domain_names_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"resourceOwner"/utf8>>, none, gleam@dynamic@decode:optional( decode_resource_owner_enum() ), fun(Resource_owner) -> gleam@dynamic@decode:success( {get_domain_names_request, Limit, Position, Resource_owner} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12481). -spec decode_get_domain_names_request_struct_params() -> gleam@dynamic@decode:decoder(get_domain_names_request()). decode_get_domain_names_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"resourceOwner"/utf8>>, none, gleam@dynamic@decode:optional( decode_resource_owner_enum() ), fun(Resource_owner) -> gleam@dynamic@decode:success( {get_domain_names_request, Limit, Position, Resource_owner} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12514). -spec encode_domain_names_struct(domain_names()) -> gleam@json:json(). encode_domain_names_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_domain_name_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 12530). -spec decode_domain_names_struct() -> gleam@dynamic@decode:decoder(domain_names()). decode_domain_names_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_domain_name_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {domain_names, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12545). -spec decode_domain_names_struct_params() -> gleam@dynamic@decode:decoder(domain_names()). decode_domain_names_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_domain_name_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {domain_names, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12570). -spec encode_get_export_request_struct(get_export_request()) -> gleam@json:json(). encode_get_export_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"accepts"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"exportType"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"parameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"stageName"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 12606). -spec decode_get_export_request_struct() -> gleam@dynamic@decode:decoder(get_export_request()). decode_get_export_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accepts"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Accepts) -> gleam@dynamic@decode:optional_field( <<"exportType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Export_type) -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {get_export_request, Accepts, Export_type, Parameters, Rest_api_id, Stage_name} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12642). -spec decode_get_export_request_struct_params() -> gleam@dynamic@decode:decoder(get_export_request()). decode_get_export_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"accepts"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Accepts) -> gleam@dynamic@decode:optional_field( <<"exportType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Export_type) -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {get_export_request, Accepts, Export_type, Parameters, Rest_api_id, Stage_name} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12688). -spec encode_export_response_struct(export_response()) -> gleam@json:json(). encode_export_response_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, (fun(B) -> gleam@json:string(gleam_stdlib:base64_encode(B, true)) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"contentDisposition"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"contentType"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 12708). -spec decode_export_response_struct() -> gleam@dynamic@decode:decoder(export_response()). decode_export_response_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"contentDisposition"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_disposition) -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:success( {export_response, Body, Content_disposition, Content_type} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12736). -spec decode_export_response_struct_params() -> gleam@dynamic@decode:decoder(export_response()). decode_export_response_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"contentDisposition"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_disposition) -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:success( {export_response, Body, Content_disposition, Content_type} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12771). -spec encode_get_gateway_response_request_struct(get_gateway_response_request()) -> gleam@json:json(). encode_get_gateway_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"responseType"/utf8>>, encode_gateway_response_type_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 12789). -spec decode_get_gateway_response_request_struct() -> gleam@dynamic@decode:decoder(get_gateway_response_request()). decode_get_gateway_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_gateway_response_request, Response_type, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12809). -spec decode_get_gateway_response_request_struct_params() -> gleam@dynamic@decode:decoder(get_gateway_response_request()). decode_get_gateway_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_gateway_response_request, Response_type, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12839). -spec encode_gateway_response_struct(gateway_response()) -> gleam@json:json(). encode_gateway_response_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"defaultResponse"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> [{<<"defaultResponse"/utf8>>, gleam@json:bool(false)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"responseParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"responseTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"responseType"/utf8>>, encode_gateway_response_type_enum(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 12889). -spec decode_gateway_response_struct() -> gleam@dynamic@decode:decoder(gateway_response()). decode_gateway_response_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"defaultResponse"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Default_response) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {gateway_response, Default_response, Response_parameters, Response_templates, Response_type, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12925). -spec decode_gateway_response_struct_params() -> gleam@dynamic@decode:decoder(gateway_response()). decode_gateway_response_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"defaultResponse"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Default_response) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {gateway_response, Default_response, Response_parameters, Response_templates, Response_type, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 12971). -spec encode_get_gateway_responses_request_struct( get_gateway_responses_request() ) -> gleam@json:json(). encode_get_gateway_responses_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 12990). -spec decode_get_gateway_responses_request_struct() -> gleam@dynamic@decode:decoder(get_gateway_responses_request()). decode_get_gateway_responses_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_gateway_responses_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13016). -spec decode_get_gateway_responses_request_struct_params() -> gleam@dynamic@decode:decoder(get_gateway_responses_request()). decode_get_gateway_responses_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_gateway_responses_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13049). -spec encode_gateway_responses_struct(gateway_responses()) -> gleam@json:json(). encode_gateway_responses_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_gateway_response_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 13065). -spec decode_gateway_responses_struct() -> gleam@dynamic@decode:decoder(gateway_responses()). decode_gateway_responses_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_gateway_response_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {gateway_responses, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13080). -spec decode_gateway_responses_struct_params() -> gleam@dynamic@decode:decoder(gateway_responses()). decode_gateway_responses_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_gateway_response_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {gateway_responses, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13105). -spec encode_get_integration_request_struct(get_integration_request()) -> gleam@json:json(). encode_get_integration_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 13124). -spec decode_get_integration_request_struct() -> gleam@dynamic@decode:decoder(get_integration_request()). decode_get_integration_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_integration_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13150). -spec decode_get_integration_request_struct_params() -> gleam@dynamic@decode:decoder(get_integration_request()). decode_get_integration_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_integration_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13185). -spec encode_get_integration_response_request_struct( get_integration_response_request() ) -> gleam@json:json(). encode_get_integration_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 13208). -spec decode_get_integration_response_request_struct() -> gleam@dynamic@decode:decoder(get_integration_response_request()). decode_get_integration_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {get_integration_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13240). -spec decode_get_integration_response_request_struct_params() -> gleam@dynamic@decode:decoder(get_integration_response_request()). decode_get_integration_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {get_integration_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13280). -spec encode_get_method_request_struct(get_method_request()) -> gleam@json:json(). encode_get_method_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 13297). -spec decode_get_method_request_struct() -> gleam@dynamic@decode:decoder(get_method_request()). decode_get_method_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_method_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13321). -spec decode_get_method_request_struct_params() -> gleam@dynamic@decode:decoder(get_method_request()). decode_get_method_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_method_request, Http_method, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13356). -spec encode_get_method_response_request_struct(get_method_response_request()) -> gleam@json:json(). encode_get_method_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 13379). -spec decode_get_method_response_request_struct() -> gleam@dynamic@decode:decoder(get_method_response_request()). decode_get_method_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {get_method_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13411). -spec decode_get_method_response_request_struct_params() -> gleam@dynamic@decode:decoder(get_method_response_request()). decode_get_method_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {get_method_response_request, Http_method, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13451). -spec encode_get_model_request_struct(get_model_request()) -> gleam@json:json(). encode_get_model_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"flatten"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> [{<<"flatten"/utf8>>, gleam@json:bool(false)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"modelName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 13468). -spec decode_get_model_request_struct() -> gleam@dynamic@decode:decoder(get_model_request()). decode_get_model_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"flatten"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Flatten) -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_model_request, Flatten, Model_name, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13492). -spec decode_get_model_request_struct_params() -> gleam@dynamic@decode:decoder(get_model_request()). decode_get_model_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"flatten"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Flatten) -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_model_request, Flatten, Model_name, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13526). -spec encode_get_models_request_struct(get_models_request()) -> gleam@json:json(). encode_get_models_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 13543). -spec decode_get_models_request_struct() -> gleam@dynamic@decode:decoder(get_models_request()). decode_get_models_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_models_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13567). -spec decode_get_models_request_struct_params() -> gleam@dynamic@decode:decoder(get_models_request()). decode_get_models_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_models_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13597). -spec encode_models_struct(models()) -> gleam@json:json(). encode_models_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_model_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 13613). -spec decode_models_struct() -> gleam@dynamic@decode:decoder(models()). decode_models_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_model_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {models, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13628). -spec decode_models_struct_params() -> gleam@dynamic@decode:decoder(models()). decode_models_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_model_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {models, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13650). -spec encode_get_model_template_request_struct(get_model_template_request()) -> gleam@json:json(). encode_get_model_template_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"modelName"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 13665). -spec decode_get_model_template_request_struct() -> gleam@dynamic@decode:decoder(get_model_template_request()). decode_get_model_template_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_model_template_request, Model_name, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13685). -spec decode_get_model_template_request_struct_params() -> gleam@dynamic@decode:decoder(get_model_template_request()). decode_get_model_template_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_model_template_request, Model_name, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13709). -spec encode_template_struct(template()) -> gleam@json:json(). encode_template_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"value"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 13718). -spec decode_template_struct() -> gleam@dynamic@decode:decoder(template()). decode_template_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Value) -> gleam@dynamic@decode:success({template, Value}) end ) end ). -file("src/aws/services/api_gateway.gleam", 13728). -spec decode_template_struct_params() -> gleam@dynamic@decode:decoder(template()). decode_template_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Value) -> gleam@dynamic@decode:success({template, Value}) end ) end ). -file("src/aws/services/api_gateway.gleam", 13745). -spec encode_get_request_validator_request_struct( get_request_validator_request() ) -> gleam@json:json(). encode_get_request_validator_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"requestValidatorId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 13760). -spec decode_get_request_validator_request_struct() -> gleam@dynamic@decode:decoder(get_request_validator_request()). decode_get_request_validator_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Request_validator_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_request_validator_request, Request_validator_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13780). -spec decode_get_request_validator_request_struct_params() -> gleam@dynamic@decode:decoder(get_request_validator_request()). decode_get_request_validator_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Request_validator_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_request_validator_request, Request_validator_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13808). -spec encode_get_request_validators_request_struct( get_request_validators_request() ) -> gleam@json:json(). encode_get_request_validators_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 13827). -spec decode_get_request_validators_request_struct() -> gleam@dynamic@decode:decoder(get_request_validators_request()). decode_get_request_validators_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_request_validators_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13853). -spec decode_get_request_validators_request_struct_params() -> gleam@dynamic@decode:decoder(get_request_validators_request()). decode_get_request_validators_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_request_validators_request, Limit, Position, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13886). -spec encode_request_validators_struct(request_validators()) -> gleam@json:json(). encode_request_validators_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_request_validator_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 13902). -spec decode_request_validators_struct() -> gleam@dynamic@decode:decoder(request_validators()). decode_request_validators_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_request_validator_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {request_validators, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13917). -spec decode_request_validators_struct_params() -> gleam@dynamic@decode:decoder(request_validators()). decode_request_validators_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_request_validator_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {request_validators, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13942). -spec encode_get_resource_request_struct(get_resource_request()) -> gleam@json:json(). encode_get_resource_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"embed"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 13964). -spec decode_get_resource_request_struct() -> gleam@dynamic@decode:decoder(get_resource_request()). decode_get_resource_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"embed"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Embed) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_resource_request, Embed, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 13990). -spec decode_get_resource_request_struct_params() -> gleam@dynamic@decode:decoder(get_resource_request()). decode_get_resource_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"embed"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Embed) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_resource_request, Embed, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14025). -spec encode_get_resources_request_struct(get_resources_request()) -> gleam@json:json(). encode_get_resources_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"embed"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"limit"/utf8>>, gleam@json:int(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"position"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 14051). -spec decode_get_resources_request_struct() -> gleam@dynamic@decode:decoder(get_resources_request()). decode_get_resources_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"embed"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Embed) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_resources_request, Embed, Limit, Position, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14083). -spec decode_get_resources_request_struct_params() -> gleam@dynamic@decode:decoder(get_resources_request()). decode_get_resources_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"embed"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Embed) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_resources_request, Embed, Limit, Position, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14122). -spec encode_resources_struct(resources()) -> gleam@json:json(). encode_resources_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_resource_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 14138). -spec decode_resources_struct() -> gleam@dynamic@decode:decoder(resources()). decode_resources_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_resource_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {resources, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14153). -spec decode_resources_struct_params() -> gleam@dynamic@decode:decoder(resources()). decode_resources_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_resource_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {resources, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14172). -spec encode_get_rest_api_request_struct(get_rest_api_request()) -> gleam@json:json(). encode_get_rest_api_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"restApiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 14183). -spec decode_get_rest_api_request_struct() -> gleam@dynamic@decode:decoder(get_rest_api_request()). decode_get_rest_api_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_rest_api_request, Rest_api_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14193). -spec decode_get_rest_api_request_struct_params() -> gleam@dynamic@decode:decoder(get_rest_api_request()). decode_get_rest_api_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_rest_api_request, Rest_api_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14209). -spec encode_get_rest_apis_request_struct(get_rest_apis_request()) -> gleam@json:json(). encode_get_rest_apis_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 14224). -spec decode_get_rest_apis_request_struct() -> gleam@dynamic@decode:decoder(get_rest_apis_request()). decode_get_rest_apis_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_rest_apis_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14241). -spec decode_get_rest_apis_request_struct_params() -> gleam@dynamic@decode:decoder(get_rest_apis_request()). decode_get_rest_apis_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_rest_apis_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14262). -spec encode_rest_apis_struct(rest_apis()) -> gleam@json:json(). encode_rest_apis_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_rest_api_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 14278). -spec decode_rest_apis_struct() -> gleam@dynamic@decode:decoder(rest_apis()). decode_rest_apis_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_rest_api_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {rest_apis, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14293). -spec decode_rest_apis_struct_params() -> gleam@dynamic@decode:decoder(rest_apis()). decode_rest_apis_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_rest_api_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {rest_apis, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14317). -spec encode_get_sdk_request_struct(get_sdk_request()) -> gleam@json:json(). encode_get_sdk_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"parameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"sdkType"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"stageName"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 14349). -spec decode_get_sdk_request_struct() -> gleam@dynamic@decode:decoder(get_sdk_request()). decode_get_sdk_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"sdkType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Sdk_type) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {get_sdk_request, Parameters, Rest_api_id, Sdk_type, Stage_name} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14379). -spec decode_get_sdk_request_struct_params() -> gleam@dynamic@decode:decoder(get_sdk_request()). decode_get_sdk_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"sdkType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Sdk_type) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {get_sdk_request, Parameters, Rest_api_id, Sdk_type, Stage_name} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14417). -spec encode_sdk_response_struct(sdk_response()) -> gleam@json:json(). encode_sdk_response_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, (fun(B) -> gleam@json:string(gleam_stdlib:base64_encode(B, true)) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"contentDisposition"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"contentType"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 14437). -spec decode_sdk_response_struct() -> gleam@dynamic@decode:decoder(sdk_response()). decode_sdk_response_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"contentDisposition"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_disposition) -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:success( {sdk_response, Body, Content_disposition, Content_type} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14465). -spec decode_sdk_response_struct_params() -> gleam@dynamic@decode:decoder(sdk_response()). decode_sdk_response_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"contentDisposition"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_disposition) -> gleam@dynamic@decode:optional_field( <<"contentType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Content_type) -> gleam@dynamic@decode:success( {sdk_response, Body, Content_disposition, Content_type} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14497). -spec encode_get_sdk_type_request_struct(get_sdk_type_request()) -> gleam@json:json(). encode_get_sdk_type_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"id"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 14508). -spec decode_get_sdk_type_request_struct() -> gleam@dynamic@decode:decoder(get_sdk_type_request()). decode_get_sdk_type_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:success({get_sdk_type_request, Id}) end ) end ). -file("src/aws/services/api_gateway.gleam", 14518). -spec decode_get_sdk_type_request_struct_params() -> gleam@dynamic@decode:decoder(get_sdk_type_request()). decode_get_sdk_type_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:success({get_sdk_type_request, Id}) end ) end ). -file("src/aws/services/api_gateway.gleam", 14638). -spec encode_sdk_configuration_property_struct(sdk_configuration_property()) -> gleam@json:json(). encode_sdk_configuration_property_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"defaultValue"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"friendlyName"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"name"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"required"/utf8>>, gleam@json:bool(V@4)} | Pairs@4]; none -> [{<<"required"/utf8>>, gleam@json:bool(false)} | Pairs@4] end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 14539). -spec encode_sdk_type_struct(sdk_type()) -> gleam@json:json(). encode_sdk_type_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"configurationProperties"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_sdk_configuration_property_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"friendlyName"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"id"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 14665). -spec decode_sdk_configuration_property_struct() -> gleam@dynamic@decode:decoder(sdk_configuration_property()). decode_sdk_configuration_property_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"defaultValue"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Default_value) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"friendlyName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Friendly_name) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"required"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Required) -> gleam@dynamic@decode:success( {sdk_configuration_property, Default_value, Description, Friendly_name, Name, Required} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14566). -spec decode_sdk_type_struct() -> gleam@dynamic@decode:decoder(sdk_type()). decode_sdk_type_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"configurationProperties"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_sdk_configuration_property_struct() ) ), fun(Configuration_properties) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"friendlyName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Friendly_name) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:success( {sdk_type, Configuration_properties, Description, Friendly_name, Id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14703). -spec decode_sdk_configuration_property_struct_params() -> gleam@dynamic@decode:decoder(sdk_configuration_property()). decode_sdk_configuration_property_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"defaultValue"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Default_value) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"friendlyName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Friendly_name) -> gleam@dynamic@decode:optional_field( <<"name"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name) -> gleam@dynamic@decode:optional_field( <<"required"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Required) -> gleam@dynamic@decode:success( {sdk_configuration_property, Default_value, Description, Friendly_name, Name, Required} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14596). -spec decode_sdk_type_struct_params() -> gleam@dynamic@decode:decoder(sdk_type()). decode_sdk_type_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"configurationProperties"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_sdk_configuration_property_struct_params() ) ), fun(Configuration_properties) -> gleam@dynamic@decode:optional_field( <<"description"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Description) -> gleam@dynamic@decode:optional_field( <<"friendlyName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Friendly_name) -> gleam@dynamic@decode:optional_field( <<"id"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Id) -> gleam@dynamic@decode:success( {sdk_type, Configuration_properties, Description, Friendly_name, Id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14745). -spec encode_get_sdk_types_request_struct(get_sdk_types_request()) -> gleam@json:json(). encode_get_sdk_types_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 14760). -spec decode_get_sdk_types_request_struct() -> gleam@dynamic@decode:decoder(get_sdk_types_request()). decode_get_sdk_types_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_sdk_types_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14777). -spec decode_get_sdk_types_request_struct_params() -> gleam@dynamic@decode:decoder(get_sdk_types_request()). decode_get_sdk_types_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_sdk_types_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14798). -spec encode_sdk_types_struct(sdk_types()) -> gleam@json:json(). encode_sdk_types_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_sdk_type_struct/1) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 14810). -spec decode_sdk_types_struct() -> gleam@dynamic@decode:decoder(sdk_types()). decode_sdk_types_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_sdk_type_struct()) ), fun(Items) -> gleam@dynamic@decode:success({sdk_types, Items}) end ) end ). -file("src/aws/services/api_gateway.gleam", 14820). -spec decode_sdk_types_struct_params() -> gleam@dynamic@decode:decoder(sdk_types()). decode_sdk_types_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_sdk_type_struct_params()) ), fun(Items) -> gleam@dynamic@decode:success({sdk_types, Items}) end ) end ). -file("src/aws/services/api_gateway.gleam", 14837). -spec encode_get_stage_request_struct(get_stage_request()) -> gleam@json:json(). encode_get_stage_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"restApiId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"stageName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 14850). -spec decode_get_stage_request_struct() -> gleam@dynamic@decode:decoder(get_stage_request()). decode_get_stage_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {get_stage_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14868). -spec decode_get_stage_request_struct_params() -> gleam@dynamic@decode:decoder(get_stage_request()). decode_get_stage_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {get_stage_request, Rest_api_id, Stage_name} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14895). -spec encode_get_stages_request_struct(get_stages_request()) -> gleam@json:json(). encode_get_stages_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 14908). -spec decode_get_stages_request_struct() -> gleam@dynamic@decode:decoder(get_stages_request()). decode_get_stages_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_stages_request, Deployment_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14926). -spec decode_get_stages_request_struct_params() -> gleam@dynamic@decode:decoder(get_stages_request()). decode_get_stages_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {get_stages_request, Deployment_id, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 14950). -spec encode_stages_struct(stages()) -> gleam@json:json(). encode_stages_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_stage_struct/1) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 14962). -spec decode_stages_struct() -> gleam@dynamic@decode:decoder(stages()). decode_stages_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_stage_struct()) ), fun(Item) -> gleam@dynamic@decode:success({stages, Item}) end ) end ). -file("src/aws/services/api_gateway.gleam", 14972). -spec decode_stages_struct_params() -> gleam@dynamic@decode:decoder(stages()). decode_stages_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_stage_struct_params()) ), fun(Item) -> gleam@dynamic@decode:success({stages, Item}) end ) end ). -file("src/aws/services/api_gateway.gleam", 14990). -spec encode_get_tags_request_struct(get_tags_request()) -> gleam@json:json(). encode_get_tags_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceArn"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 15007). -spec decode_get_tags_request_struct() -> gleam@dynamic@decode:decoder(get_tags_request()). decode_get_tags_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"resourceArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_arn) -> gleam@dynamic@decode:success( {get_tags_request, Limit, Position, Resource_arn} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15031). -spec decode_get_tags_request_struct_params() -> gleam@dynamic@decode:decoder(get_tags_request()). decode_get_tags_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"resourceArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_arn) -> gleam@dynamic@decode:success( {get_tags_request, Limit, Position, Resource_arn} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15059). -spec encode_tags_struct(tags()) -> gleam@json:json(). encode_tags_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 15079). -spec decode_tags_struct() -> gleam@dynamic@decode:decoder(tags()). decode_tags_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success({tags, Tags}) end ) end ). -file("src/aws/services/api_gateway.gleam", 15089). -spec decode_tags_struct_params() -> gleam@dynamic@decode:decoder(tags()). decode_tags_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success({tags, Tags}) end ) end ). -file("src/aws/services/api_gateway.gleam", 15110). -spec encode_get_usage_request_struct(get_usage_request()) -> gleam@json:json(). encode_get_usage_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"endDate"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"keyId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"limit"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"position"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"startDate"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 15139). -spec decode_get_usage_request_struct() -> gleam@dynamic@decode:decoder(get_usage_request()). decode_get_usage_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"endDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(End_date) -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"startDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Start_date) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_request, End_date, Key_id, Limit, Position, Start_date, Usage_plan_id} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15181). -spec decode_get_usage_request_struct_params() -> gleam@dynamic@decode:decoder(get_usage_request()). decode_get_usage_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"endDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(End_date) -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"startDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Start_date) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_request, End_date, Key_id, Limit, Position, Start_date, Usage_plan_id} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15235). -spec encode_usage_struct(usage()) -> gleam@json:json(). encode_usage_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"endDate"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"values"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), (fun(Xs) -> gleam@json:array( Xs, fun(Xs@1) -> gleam@json:array( Xs@1, fun gleam@json:int/1 ) end ) end)(erlang:element(2, Pair))} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"position"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"startDate"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 15278). -spec decode_usage_struct() -> gleam@dynamic@decode:decoder(usage()). decode_usage_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"endDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(End_date) -> gleam@dynamic@decode:optional_field( <<"values"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_int/1} ) ) ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"startDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Start_date) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {usage, End_date, Items, Position, Start_date, Usage_plan_id} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15317). -spec decode_usage_struct_params() -> gleam@dynamic@decode:decoder(usage()). decode_usage_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"endDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(End_date) -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_int/1} ) ) ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"startDate"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Start_date) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {usage, End_date, Items, Position, Start_date, Usage_plan_id} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15360). -spec encode_get_usage_plan_request_struct(get_usage_plan_request()) -> gleam@json:json(). encode_get_usage_plan_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 15371). -spec decode_get_usage_plan_request_struct() -> gleam@dynamic@decode:decoder(get_usage_plan_request()). decode_get_usage_plan_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_plan_request, Usage_plan_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15383). -spec decode_get_usage_plan_request_struct_params() -> gleam@dynamic@decode:decoder(get_usage_plan_request()). decode_get_usage_plan_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_plan_request, Usage_plan_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15402). -spec encode_get_usage_plan_key_request_struct(get_usage_plan_key_request()) -> gleam@json:json(). encode_get_usage_plan_key_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"keyId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 15417). -spec decode_get_usage_plan_key_request_struct() -> gleam@dynamic@decode:decoder(get_usage_plan_key_request()). decode_get_usage_plan_key_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_plan_key_request, Key_id, Usage_plan_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15437). -spec decode_get_usage_plan_key_request_struct_params() -> gleam@dynamic@decode:decoder(get_usage_plan_key_request()). decode_get_usage_plan_key_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_plan_key_request, Key_id, Usage_plan_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15466). -spec encode_get_usage_plan_keys_request_struct(get_usage_plan_keys_request()) -> gleam@json:json(). encode_get_usage_plan_keys_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"nameQuery"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"position"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 15489). -spec decode_get_usage_plan_keys_request_struct() -> gleam@dynamic@decode:decoder(get_usage_plan_keys_request()). decode_get_usage_plan_keys_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"nameQuery"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name_query) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_plan_keys_request, Limit, Name_query, Position, Usage_plan_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15521). -spec decode_get_usage_plan_keys_request_struct_params() -> gleam@dynamic@decode:decoder(get_usage_plan_keys_request()). decode_get_usage_plan_keys_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"nameQuery"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Name_query) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {get_usage_plan_keys_request, Limit, Name_query, Position, Usage_plan_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15560). -spec encode_usage_plan_keys_struct(usage_plan_keys()) -> gleam@json:json(). encode_usage_plan_keys_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_usage_plan_key_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 15576). -spec decode_usage_plan_keys_struct() -> gleam@dynamic@decode:decoder(usage_plan_keys()). decode_usage_plan_keys_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_usage_plan_key_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {usage_plan_keys, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15591). -spec decode_usage_plan_keys_struct_params() -> gleam@dynamic@decode:decoder(usage_plan_keys()). decode_usage_plan_keys_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_usage_plan_key_struct_params() ) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {usage_plan_keys, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15614). -spec encode_get_usage_plans_request_struct(get_usage_plans_request()) -> gleam@json:json(). encode_get_usage_plans_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"keyId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"limit"/utf8>>, gleam@json:int(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"position"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 15633). -spec decode_get_usage_plans_request_struct() -> gleam@dynamic@decode:decoder(get_usage_plans_request()). decode_get_usage_plans_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_usage_plans_request, Key_id, Limit, Position} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15659). -spec decode_get_usage_plans_request_struct_params() -> gleam@dynamic@decode:decoder(get_usage_plans_request()). decode_get_usage_plans_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_usage_plans_request, Key_id, Limit, Position} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15692). -spec encode_usage_plans_struct(usage_plans()) -> gleam@json:json(). encode_usage_plans_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_usage_plan_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 15708). -spec decode_usage_plans_struct() -> gleam@dynamic@decode:decoder(usage_plans()). decode_usage_plans_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_usage_plan_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {usage_plans, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15723). -spec decode_usage_plans_struct_params() -> gleam@dynamic@decode:decoder(usage_plans()). decode_usage_plans_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_usage_plan_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {usage_plans, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15742). -spec encode_get_vpc_link_request_struct(get_vpc_link_request()) -> gleam@json:json(). encode_get_vpc_link_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"vpcLinkId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 15753). -spec decode_get_vpc_link_request_struct() -> gleam@dynamic@decode:decoder(get_vpc_link_request()). decode_get_vpc_link_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"vpcLinkId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Vpc_link_id) -> gleam@dynamic@decode:success( {get_vpc_link_request, Vpc_link_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15763). -spec decode_get_vpc_link_request_struct_params() -> gleam@dynamic@decode:decoder(get_vpc_link_request()). decode_get_vpc_link_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"vpcLinkId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Vpc_link_id) -> gleam@dynamic@decode:success( {get_vpc_link_request, Vpc_link_id} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15779). -spec encode_get_vpc_links_request_struct(get_vpc_links_request()) -> gleam@json:json(). encode_get_vpc_links_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"limit"/utf8>>, gleam@json:int(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 15794). -spec decode_get_vpc_links_request_struct() -> gleam@dynamic@decode:decoder(get_vpc_links_request()). decode_get_vpc_links_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_vpc_links_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15811). -spec decode_get_vpc_links_request_struct_params() -> gleam@dynamic@decode:decoder(get_vpc_links_request()). decode_get_vpc_links_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"limit"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Limit) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {get_vpc_links_request, Limit, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15832). -spec encode_vpc_links_struct(vpc_links()) -> gleam@json:json(). encode_vpc_links_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"item"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_vpc_link_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"position"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 15848). -spec decode_vpc_links_struct() -> gleam@dynamic@decode:decoder(vpc_links()). decode_vpc_links_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"item"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_vpc_link_struct()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {vpc_links, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15863). -spec decode_vpc_links_struct_params() -> gleam@dynamic@decode:decoder(vpc_links()). decode_vpc_links_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"items"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_vpc_link_struct_params()) ), fun(Items) -> gleam@dynamic@decode:optional_field( <<"position"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Position) -> gleam@dynamic@decode:success( {vpc_links, Items, Position} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15972). -spec encode_api_keys_format_enum(api_keys_format()) -> gleam@json:json(). encode_api_keys_format_enum(V) -> case V of api_keys_format_csv -> gleam@json:string(<<"csv"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 15886). -spec encode_import_api_keys_request_struct(import_api_keys_request()) -> gleam@json:json(). encode_import_api_keys_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, (fun(B) -> gleam@json:string(gleam_stdlib:base64_encode(B, true)) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(false)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"format"/utf8>>, encode_api_keys_format_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 15978). -spec decode_api_keys_format_enum() -> gleam@dynamic@decode:decoder(api_keys_format()). decode_api_keys_format_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"csv"/utf8>> -> gleam@dynamic@decode:success(api_keys_format_csv); _ -> gleam@dynamic@decode:failure( api_keys_format_csv, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 15908). -spec decode_import_api_keys_request_struct() -> gleam@dynamic@decode:decoder(import_api_keys_request()). decode_import_api_keys_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"format"/utf8>>, none, gleam@dynamic@decode:optional( decode_api_keys_format_enum() ), fun(Format) -> gleam@dynamic@decode:success( {import_api_keys_request, Body, Fail_on_warnings, Format} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15938). -spec decode_import_api_keys_request_struct_params() -> gleam@dynamic@decode:decoder(import_api_keys_request()). decode_import_api_keys_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"format"/utf8>>, none, gleam@dynamic@decode:optional( decode_api_keys_format_enum() ), fun(Format) -> gleam@dynamic@decode:success( {import_api_keys_request, Body, Fail_on_warnings, Format} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 15987). -spec api_keys_format_from_wire(binary()) -> {ok, api_keys_format()} | {error, binary()}. api_keys_format_from_wire(S) -> case S of <<"csv"/utf8>> -> {ok, api_keys_format_csv}; _ -> {ok, api_keys_format_csv} end. -file("src/aws/services/api_gateway.gleam", 16001). -spec encode_api_key_ids_struct(api_key_ids()) -> gleam@json:json(). encode_api_key_ids_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"ids"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"warnings"/utf8>>, (fun(Xs@1) -> gleam@json:array(Xs@1, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 16020). -spec decode_api_key_ids_struct() -> gleam@dynamic@decode:decoder(api_key_ids()). decode_api_key_ids_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"ids"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Ids) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Warnings) -> gleam@dynamic@decode:success( {api_key_ids, Ids, Warnings} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16035). -spec decode_api_key_ids_struct_params() -> gleam@dynamic@decode:decoder(api_key_ids()). decode_api_key_ids_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"ids"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Ids) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Warnings) -> gleam@dynamic@decode:success( {api_key_ids, Ids, Warnings} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16162). -spec encode_put_mode_enum(put_mode()) -> gleam@json:json(). encode_put_mode_enum(V) -> case V of put_mode_merge -> gleam@json:string(<<"merge"/utf8>>); put_mode_overwrite -> gleam@json:string(<<"overwrite"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 16059). -spec encode_import_documentation_parts_request_struct( import_documentation_parts_request() ) -> gleam@json:json(). encode_import_documentation_parts_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, (fun(B) -> gleam@json:string(gleam_stdlib:base64_encode(B, true)) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(false)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"mode"/utf8>>, encode_put_mode_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 16169). -spec decode_put_mode_enum() -> gleam@dynamic@decode:decoder(put_mode()). decode_put_mode_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"merge"/utf8>> -> gleam@dynamic@decode:success(put_mode_merge); <<"overwrite"/utf8>> -> gleam@dynamic@decode:success(put_mode_overwrite); _ -> gleam@dynamic@decode:failure( put_mode_merge, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 16085). -spec decode_import_documentation_parts_request_struct() -> gleam@dynamic@decode:decoder(import_documentation_parts_request()). decode_import_documentation_parts_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"mode"/utf8>>, none, gleam@dynamic@decode:optional( decode_put_mode_enum() ), fun(Mode) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {import_documentation_parts_request, Body, Fail_on_warnings, Mode, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16121). -spec decode_import_documentation_parts_request_struct_params() -> gleam@dynamic@decode:decoder(import_documentation_parts_request()). decode_import_documentation_parts_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"mode"/utf8>>, none, gleam@dynamic@decode:optional( decode_put_mode_enum() ), fun(Mode) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {import_documentation_parts_request, Body, Fail_on_warnings, Mode, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16179). -spec put_mode_from_wire(binary()) -> {ok, put_mode()} | {error, binary()}. put_mode_from_wire(S) -> case S of <<"merge"/utf8>> -> {ok, put_mode_merge}; <<"overwrite"/utf8>> -> {ok, put_mode_overwrite}; _ -> {ok, put_mode_merge} end. -file("src/aws/services/api_gateway.gleam", 16194). -spec encode_documentation_part_ids_struct(documentation_part_ids()) -> gleam@json:json(). encode_documentation_part_ids_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"ids"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"warnings"/utf8>>, (fun(Xs@1) -> gleam@json:array(Xs@1, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 16215). -spec decode_documentation_part_ids_struct() -> gleam@dynamic@decode:decoder(documentation_part_ids()). decode_documentation_part_ids_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"ids"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Ids) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Warnings) -> gleam@dynamic@decode:success( {documentation_part_ids, Ids, Warnings} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16232). -spec decode_documentation_part_ids_struct_params() -> gleam@dynamic@decode:decoder(documentation_part_ids()). decode_documentation_part_ids_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"ids"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Ids) -> gleam@dynamic@decode:optional_field( <<"warnings"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Warnings) -> gleam@dynamic@decode:success( {documentation_part_ids, Ids, Warnings} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16257). -spec encode_import_rest_api_request_struct(import_rest_api_request()) -> gleam@json:json(). encode_import_rest_api_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, (fun(B) -> gleam@json:string(gleam_stdlib:base64_encode(B, true)) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(false)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"parameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 16290). -spec decode_import_rest_api_request_struct() -> gleam@dynamic@decode:decoder(import_rest_api_request()). decode_import_rest_api_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:success( {import_rest_api_request, Body, Fail_on_warnings, Parameters} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16320). -spec decode_import_rest_api_request_struct_params() -> gleam@dynamic@decode:decoder(import_rest_api_request()). decode_import_rest_api_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:success( {import_rest_api_request, Body, Fail_on_warnings, Parameters} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16360). -spec encode_put_gateway_response_request_struct(put_gateway_response_request()) -> gleam@json:json(). encode_put_gateway_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"responseParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"responseTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"responseType"/utf8>>, encode_gateway_response_type_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 16412). -spec decode_put_gateway_response_request_struct() -> gleam@dynamic@decode:decoder(put_gateway_response_request()). decode_put_gateway_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {put_gateway_response_request, Response_parameters, Response_templates, Response_type, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16450). -spec decode_put_gateway_response_request_struct_params() -> gleam@dynamic@decode:decoder(put_gateway_response_request()). decode_put_gateway_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {put_gateway_response_request, Response_parameters, Response_templates, Response_type, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16512). -spec encode_put_integration_request_struct(put_integration_request()) -> gleam@json:json(). encode_put_integration_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheKeyParameters"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheNamespace"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"connectionId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"connectionType"/utf8>>, encode_connection_type_enum(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"contentHandling"/utf8>>, encode_content_handling_strategy_enum(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"credentials"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"requestHttpMethod"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"integrationTarget"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"passthroughBehavior"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"requestParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"requestTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(15, Input) of {some, V@13} -> [{<<"responseTransferMode"/utf8>>, encode_response_transfer_mode_enum(V@13)} | Pairs@13]; none -> Pairs@13 end, Pairs@15 = case erlang:element(16, Input) of {some, V@14} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@14)} | Pairs@14]; none -> Pairs@14 end, Pairs@16 = case erlang:element(17, Input) of {some, V@15} -> [{<<"timeoutInMillis"/utf8>>, gleam@json:int(V@15)} | Pairs@15]; none -> Pairs@15 end, Pairs@17 = case erlang:element(18, Input) of {some, V@16} -> [{<<"tlsConfig"/utf8>>, encode_tls_config_struct(V@16)} | Pairs@16]; none -> Pairs@16 end, Pairs@18 = case erlang:element(19, Input) of {some, V@17} -> [{<<"type"/utf8>>, encode_integration_type_enum(V@17)} | Pairs@17]; none -> Pairs@17 end, Pairs@19 = case erlang:element(20, Input) of {some, V@18} -> [{<<"uri"/utf8>>, gleam@json:string(V@18)} | Pairs@18]; none -> Pairs@18 end, gleam@json:object(Pairs@19). -file("src/aws/services/api_gateway.gleam", 16629). -spec decode_put_integration_request_struct() -> gleam@dynamic@decode:decoder(put_integration_request()). decode_put_integration_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheKeyParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Cache_key_parameters) -> gleam@dynamic@decode:optional_field( <<"cacheNamespace"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Cache_namespace) -> gleam@dynamic@decode:optional_field( <<"connectionId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Connection_id) -> gleam@dynamic@decode:optional_field( <<"connectionType"/utf8>>, none, gleam@dynamic@decode:optional( decode_connection_type_enum() ), fun(Connection_type) -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum( ) ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"credentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Credentials) -> gleam@dynamic@decode:optional_field( <<"requestHttpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Integration_http_method ) -> gleam@dynamic@decode:optional_field( <<"integrationTarget"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Integration_target ) -> gleam@dynamic@decode:optional_field( <<"passthroughBehavior"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Passthrough_behavior ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_templates ) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Resource_id ) -> gleam@dynamic@decode:optional_field( <<"responseTransferMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_response_transfer_mode_enum( ) ), fun( Response_transfer_mode ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:optional_field( <<"timeoutInMillis"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Timeout_in_millis ) -> gleam@dynamic@decode:optional_field( <<"tlsConfig"/utf8>>, none, gleam@dynamic@decode:optional( decode_tls_config_struct( ) ), fun( Tls_config ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_integration_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:optional_field( <<"uri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Uri ) -> gleam@dynamic@decode:success( {put_integration_request, Cache_key_parameters, Cache_namespace, Connection_id, Connection_type, Content_handling, Credentials, Http_method, Integration_http_method, Integration_target, Passthrough_behavior, Request_parameters, Request_templates, Resource_id, Response_transfer_mode, Rest_api_id, Timeout_in_millis, Tls_config, Type_, Uri} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16751). -spec decode_put_integration_request_struct_params() -> gleam@dynamic@decode:decoder(put_integration_request()). decode_put_integration_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"cacheKeyParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Cache_key_parameters) -> gleam@dynamic@decode:optional_field( <<"cacheNamespace"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Cache_namespace) -> gleam@dynamic@decode:optional_field( <<"connectionId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Connection_id) -> gleam@dynamic@decode:optional_field( <<"connectionType"/utf8>>, none, gleam@dynamic@decode:optional( decode_connection_type_enum() ), fun(Connection_type) -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum( ) ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"credentials"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Credentials) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"integrationHttpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Integration_http_method ) -> gleam@dynamic@decode:optional_field( <<"integrationTarget"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Integration_target ) -> gleam@dynamic@decode:optional_field( <<"passthroughBehavior"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Passthrough_behavior ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_templates ) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Resource_id ) -> gleam@dynamic@decode:optional_field( <<"responseTransferMode"/utf8>>, none, gleam@dynamic@decode:optional( decode_response_transfer_mode_enum( ) ), fun( Response_transfer_mode ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:optional_field( <<"timeoutInMillis"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun( Timeout_in_millis ) -> gleam@dynamic@decode:optional_field( <<"tlsConfig"/utf8>>, none, gleam@dynamic@decode:optional( decode_tls_config_struct_params( ) ), fun( Tls_config ) -> gleam@dynamic@decode:optional_field( <<"type"/utf8>>, none, gleam@dynamic@decode:optional( decode_integration_type_enum( ) ), fun( Type_ ) -> gleam@dynamic@decode:optional_field( <<"uri"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Uri ) -> gleam@dynamic@decode:success( {put_integration_request, Cache_key_parameters, Cache_namespace, Connection_id, Connection_type, Content_handling, Credentials, Http_method, Integration_http_method, Integration_target, Passthrough_behavior, Request_parameters, Request_templates, Resource_id, Response_transfer_mode, Rest_api_id, Timeout_in_millis, Tls_config, Type_, Uri} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 16886). -spec encode_put_integration_response_request_struct( put_integration_response_request() ) -> gleam@json:json(). encode_put_integration_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"contentHandling"/utf8>>, encode_content_handling_strategy_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"responseParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"responseTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"selectionPattern"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, gleam@json:object(Pairs@8). -file("src/aws/services/api_gateway.gleam", 16950). -spec decode_put_integration_response_request_struct() -> gleam@dynamic@decode:decoder(put_integration_response_request()). decode_put_integration_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum() ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"selectionPattern"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Selection_pattern ) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Status_code ) -> gleam@dynamic@decode:success( {put_integration_response_request, Content_handling, Http_method, Resource_id, Response_parameters, Response_templates, Rest_api_id, Selection_pattern, Status_code} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17006). -spec decode_put_integration_response_request_struct_params() -> gleam@dynamic@decode:decoder(put_integration_response_request()). decode_put_integration_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"contentHandling"/utf8>>, none, gleam@dynamic@decode:optional( decode_content_handling_strategy_enum() ), fun(Content_handling) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"responseTemplates"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_templates) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"selectionPattern"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Selection_pattern ) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Status_code ) -> gleam@dynamic@decode:success( {put_integration_response_request, Content_handling, Http_method, Resource_id, Response_parameters, Response_templates, Rest_api_id, Selection_pattern, Status_code} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17078). -spec encode_put_method_request_struct(put_method_request()) -> gleam@json:json(). encode_put_method_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeyRequired"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> [{<<"apiKeyRequired"/utf8>>, gleam@json:bool(false)} | Pairs] end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizationScopes"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"authorizationType"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"authorizerId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"operationName"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"requestModels"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"requestParameters"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:bool( erlang:element(2, Pair@1) )} end ) end ) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"requestValidatorId"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@10)} | Pairs@10]; none -> Pairs@10 end, gleam@json:object(Pairs@11). -file("src/aws/services/api_gateway.gleam", 17152). -spec decode_put_method_request_struct() -> gleam@dynamic@decode:decoder(put_method_request()). decode_put_method_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyRequired"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Api_key_required) -> gleam@dynamic@decode:optional_field( <<"authorizationScopes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Authorization_scopes) -> gleam@dynamic@decode:optional_field( <<"authorizationType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorization_type) -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"operationName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Operation_name) -> gleam@dynamic@decode:optional_field( <<"requestModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_models ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Request_validator_id ) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Resource_id ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:success( {put_method_request, Api_key_required, Authorization_scopes, Authorization_type, Authorizer_id, Http_method, Operation_name, Request_models, Request_parameters, Request_validator_id, Resource_id, Rest_api_id} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17224). -spec decode_put_method_request_struct_params() -> gleam@dynamic@decode:decoder(put_method_request()). decode_put_method_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKeyRequired"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Api_key_required) -> gleam@dynamic@decode:optional_field( <<"authorizationScopes"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Authorization_scopes) -> gleam@dynamic@decode:optional_field( <<"authorizationType"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorization_type) -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"operationName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Operation_name) -> gleam@dynamic@decode:optional_field( <<"requestModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Request_models ) -> gleam@dynamic@decode:optional_field( <<"requestParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun( Request_parameters ) -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Request_validator_id ) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Resource_id ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:success( {put_method_request, Api_key_required, Authorization_scopes, Authorization_type, Authorizer_id, Http_method, Operation_name, Request_models, Request_parameters, Request_validator_id, Resource_id, Rest_api_id} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17309). -spec encode_put_method_response_request_struct(put_method_response_request()) -> gleam@json:json(). encode_put_method_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"responseModels"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"responseParameters"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:bool( erlang:element(2, Pair@1) )} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 17362). -spec decode_put_method_response_request_struct() -> gleam@dynamic@decode:decoder(put_method_response_request()). decode_put_method_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"responseModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_models) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {put_method_response_request, Http_method, Resource_id, Response_models, Response_parameters, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17406). -spec decode_put_method_response_request_struct_params() -> gleam@dynamic@decode:decoder(put_method_response_request()). decode_put_method_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"responseModels"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Response_models) -> gleam@dynamic@decode:optional_field( <<"responseParameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_bool/1} ) ), fun(Response_parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {put_method_response_request, Http_method, Resource_id, Response_models, Response_parameters, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17460). -spec encode_put_rest_api_request_struct(put_rest_api_request()) -> gleam@json:json(). encode_put_rest_api_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, (fun(B) -> gleam@json:string(gleam_stdlib:base64_encode(B, true)) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> [{<<"failOnWarnings"/utf8>>, gleam@json:bool(false)} | Pairs@1] end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"mode"/utf8>>, encode_put_mode_enum(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"parameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 17501). -spec decode_put_rest_api_request_struct() -> gleam@dynamic@decode:decoder(put_rest_api_request()). decode_put_rest_api_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"mode"/utf8>>, none, gleam@dynamic@decode:optional( decode_put_mode_enum() ), fun(Mode) -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {put_rest_api_request, Body, Fail_on_warnings, Mode, Parameters, Rest_api_id} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17541). -spec decode_put_rest_api_request_struct_params() -> gleam@dynamic@decode:decoder(put_rest_api_request()). decode_put_rest_api_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> gleam@dynamic@decode:success( gleam_stdlib:identity(S) ) end ) ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"failOnWarnings"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_bool/1} ), fun(Fail_on_warnings) -> gleam@dynamic@decode:optional_field( <<"mode"/utf8>>, none, gleam@dynamic@decode:optional( decode_put_mode_enum() ), fun(Mode) -> gleam@dynamic@decode:optional_field( <<"parameters"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Parameters) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {put_rest_api_request, Body, Fail_on_warnings, Mode, Parameters, Rest_api_id} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17590). -spec encode_reject_domain_name_access_association_request_struct( reject_domain_name_access_association_request() ) -> gleam@json:json(). encode_reject_domain_name_access_association_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"domainNameAccessAssociationArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainNameArn"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 17608). -spec decode_reject_domain_name_access_association_request_struct() -> gleam@dynamic@decode:decoder(reject_domain_name_access_association_request()). decode_reject_domain_name_access_association_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainNameAccessAssociationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_access_association_arn) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_arn) -> gleam@dynamic@decode:success( {reject_domain_name_access_association_request, Domain_name_access_association_arn, Domain_name_arn} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17628). -spec decode_reject_domain_name_access_association_request_struct_params() -> gleam@dynamic@decode:decoder(reject_domain_name_access_association_request()). decode_reject_domain_name_access_association_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainNameAccessAssociationArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_access_association_arn) -> gleam@dynamic@decode:optional_field( <<"domainNameArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_arn) -> gleam@dynamic@decode:success( {reject_domain_name_access_association_request, Domain_name_access_association_arn, Domain_name_arn} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17655). -spec encode_tag_resource_request_struct(tag_resource_request()) -> gleam@json:json(). encode_tag_resource_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"resourceArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 17681). -spec decode_tag_resource_request_struct() -> gleam@dynamic@decode:decoder(tag_resource_request()). decode_tag_resource_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"resourceArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_arn) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {tag_resource_request, Resource_arn, Tags} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17698). -spec decode_tag_resource_request_struct_params() -> gleam@dynamic@decode:decoder(tag_resource_request()). decode_tag_resource_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"resourceArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_arn) -> gleam@dynamic@decode:optional_field( <<"tags"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tags) -> gleam@dynamic@decode:success( {tag_resource_request, Resource_arn, Tags} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17728). -spec encode_test_invoke_authorizer_request_struct( test_invoke_authorizer_request() ) -> gleam@json:json(). encode_test_invoke_authorizer_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"additionalContext"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizerId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"body"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"headers"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"multiValueHeaders"/utf8>>, (fun(D@2) -> gleam@json:object( begin _pipe@2 = maps:to_list(D@2), gleam@list:map( _pipe@2, fun(Pair@2) -> {erlang:element(1, Pair@2), (fun(Xs) -> gleam@json:array( Xs, fun gleam@json:string/1 ) end)(erlang:element(2, Pair@2))} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"pathWithQueryString"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"stageVariables"/utf8>>, (fun(D@3) -> gleam@json:object( begin _pipe@3 = maps:to_list(D@3), gleam@list:map( _pipe@3, fun(Pair@3) -> {erlang:element(1, Pair@3), gleam@json:string( erlang:element(2, Pair@3) )} end ) end ) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, gleam@json:object(Pairs@8). -file("src/aws/services/api_gateway.gleam", 17813). -spec decode_test_invoke_authorizer_request_struct() -> gleam@dynamic@decode:decoder(test_invoke_authorizer_request()). decode_test_invoke_authorizer_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"additionalContext"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Additional_context) -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"headers"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Headers) -> gleam@dynamic@decode:optional_field( <<"multiValueHeaders"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Multi_value_headers) -> gleam@dynamic@decode:optional_field( <<"pathWithQueryString"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Path_with_query_string ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageVariables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Stage_variables ) -> gleam@dynamic@decode:success( {test_invoke_authorizer_request, Additional_context, Authorizer_id, Body, Headers, Multi_value_headers, Path_with_query_string, Rest_api_id, Stage_variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17869). -spec decode_test_invoke_authorizer_request_struct_params() -> gleam@dynamic@decode:decoder(test_invoke_authorizer_request()). decode_test_invoke_authorizer_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"additionalContext"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Additional_context) -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"headers"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Headers) -> gleam@dynamic@decode:optional_field( <<"multiValueHeaders"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Multi_value_headers) -> gleam@dynamic@decode:optional_field( <<"pathWithQueryString"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Path_with_query_string ) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageVariables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Stage_variables ) -> gleam@dynamic@decode:success( {test_invoke_authorizer_request, Additional_context, Authorizer_id, Body, Headers, Multi_value_headers, Path_with_query_string, Rest_api_id, Stage_variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 17937). -spec encode_test_invoke_authorizer_response_struct( test_invoke_authorizer_response() ) -> gleam@json:json(). encode_test_invoke_authorizer_response_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"authorization"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), (fun(Xs) -> gleam@json:array( Xs, fun gleam@json:string/1 ) end)(erlang:element(2, Pair))} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"claims"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"clientStatus"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> [{<<"clientStatus"/utf8>>, gleam@json:int(0)} | Pairs@2] end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"latency"/utf8>>, gleam@json:int(V@3)} | Pairs@3]; none -> [{<<"latency"/utf8>>, gleam@json:int(0)} | Pairs@3] end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"log"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"policy"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"principalId"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, gleam@json:object(Pairs@7). -file("src/aws/services/api_gateway.gleam", 17996). -spec decode_test_invoke_authorizer_response_struct() -> gleam@dynamic@decode:decoder(test_invoke_authorizer_response()). decode_test_invoke_authorizer_response_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorization"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Authorization) -> gleam@dynamic@decode:optional_field( <<"claims"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Claims) -> gleam@dynamic@decode:optional_field( <<"clientStatus"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Client_status) -> gleam@dynamic@decode:optional_field( <<"latency"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Latency) -> gleam@dynamic@decode:optional_field( <<"log"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Log) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Policy) -> gleam@dynamic@decode:optional_field( <<"principalId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Principal_id ) -> gleam@dynamic@decode:success( {test_invoke_authorizer_response, Authorization, Claims, Client_status, Latency, Log, Policy, Principal_id} ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18046). -spec decode_test_invoke_authorizer_response_struct_params() -> gleam@dynamic@decode:decoder(test_invoke_authorizer_response()). decode_test_invoke_authorizer_response_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorization"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Authorization) -> gleam@dynamic@decode:optional_field( <<"claims"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Claims) -> gleam@dynamic@decode:optional_field( <<"clientStatus"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Client_status) -> gleam@dynamic@decode:optional_field( <<"latency"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Latency) -> gleam@dynamic@decode:optional_field( <<"log"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Log) -> gleam@dynamic@decode:optional_field( <<"policy"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Policy) -> gleam@dynamic@decode:optional_field( <<"principalId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Principal_id ) -> gleam@dynamic@decode:success( {test_invoke_authorizer_response, Authorization, Claims, Client_status, Latency, Log, Policy, Principal_id} ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18110). -spec encode_test_invoke_method_request_struct(test_invoke_method_request()) -> gleam@json:json(). encode_test_invoke_method_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"clientCertificateId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"headers"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"multiValueHeaders"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), (fun(Xs) -> gleam@json:array( Xs, fun gleam@json:string/1 ) end)(erlang:element(2, Pair@1))} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"pathWithQueryString"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"stageVariables"/utf8>>, (fun(D@2) -> gleam@json:object( begin _pipe@2 = maps:to_list(D@2), gleam@list:map( _pipe@2, fun(Pair@2) -> {erlang:element(1, Pair@2), gleam@json:string( erlang:element(2, Pair@2) )} end ) end ) end)(V@8)} | Pairs@8]; none -> Pairs@8 end, gleam@json:object(Pairs@9). -file("src/aws/services/api_gateway.gleam", 18188). -spec decode_test_invoke_method_request_struct() -> gleam@dynamic@decode:decoder(test_invoke_method_request()). decode_test_invoke_method_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:optional_field( <<"headers"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Headers) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"multiValueHeaders"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Multi_value_headers) -> gleam@dynamic@decode:optional_field( <<"pathWithQueryString"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Path_with_query_string ) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:optional_field( <<"stageVariables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Stage_variables ) -> gleam@dynamic@decode:success( {test_invoke_method_request, Body, Client_certificate_id, Headers, Http_method, Multi_value_headers, Path_with_query_string, Resource_id, Rest_api_id, Stage_variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18250). -spec decode_test_invoke_method_request_struct_params() -> gleam@dynamic@decode:decoder(test_invoke_method_request()). decode_test_invoke_method_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:optional_field( <<"headers"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Headers) -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"multiValueHeaders"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Multi_value_headers) -> gleam@dynamic@decode:optional_field( <<"pathWithQueryString"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Path_with_query_string ) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun( Rest_api_id ) -> gleam@dynamic@decode:optional_field( <<"stageVariables"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun( Stage_variables ) -> gleam@dynamic@decode:success( {test_invoke_method_request, Body, Client_certificate_id, Headers, Http_method, Multi_value_headers, Path_with_query_string, Resource_id, Rest_api_id, Stage_variables} ) end ) end ) end ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18323). -spec encode_test_invoke_method_response_struct(test_invoke_method_response()) -> gleam@json:json(). encode_test_invoke_method_response_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"headers"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"latency"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> [{<<"latency"/utf8>>, gleam@json:int(0)} | Pairs@2] end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"log"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"multiValueHeaders"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), (fun(Xs) -> gleam@json:array( Xs, fun gleam@json:string/1 ) end)(erlang:element(2, Pair@1))} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"status"/utf8>>, gleam@json:int(V@5)} | Pairs@5]; none -> [{<<"status"/utf8>>, gleam@json:int(0)} | Pairs@5] end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 18378). -spec decode_test_invoke_method_response_struct() -> gleam@dynamic@decode:decoder(test_invoke_method_response()). decode_test_invoke_method_response_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"headers"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Headers) -> gleam@dynamic@decode:optional_field( <<"latency"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Latency) -> gleam@dynamic@decode:optional_field( <<"log"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Log) -> gleam@dynamic@decode:optional_field( <<"multiValueHeaders"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Multi_value_headers) -> gleam@dynamic@decode:optional_field( <<"status"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Status) -> gleam@dynamic@decode:success( {test_invoke_method_response, Body, Headers, Latency, Log, Multi_value_headers, Status} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18422). -spec decode_test_invoke_method_response_struct_params() -> gleam@dynamic@decode:decoder(test_invoke_method_response()). decode_test_invoke_method_response_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"body"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Body) -> gleam@dynamic@decode:optional_field( <<"headers"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Headers) -> gleam@dynamic@decode:optional_field( <<"latency"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Latency) -> gleam@dynamic@decode:optional_field( <<"log"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Log) -> gleam@dynamic@decode:optional_field( <<"multiValueHeaders"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:dict( {decoder, fun gleam@dynamic@decode:decode_string/1}, gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ) ), fun(Multi_value_headers) -> gleam@dynamic@decode:optional_field( <<"status"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_int/1} ), fun(Status) -> gleam@dynamic@decode:success( {test_invoke_method_response, Body, Headers, Latency, Log, Multi_value_headers, Status} ) end ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18473). -spec encode_untag_resource_request_struct(untag_resource_request()) -> gleam@json:json(). encode_untag_resource_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"resourceArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"tagKeys"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 18491). -spec decode_untag_resource_request_struct() -> gleam@dynamic@decode:decoder(untag_resource_request()). decode_untag_resource_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"resourceArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_arn) -> gleam@dynamic@decode:optional_field( <<"tagKeys"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tag_keys) -> gleam@dynamic@decode:success( {untag_resource_request, Resource_arn, Tag_keys} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18511). -spec decode_untag_resource_request_struct_params() -> gleam@dynamic@decode:decoder(untag_resource_request()). decode_untag_resource_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"resourceArn"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_arn) -> gleam@dynamic@decode:optional_field( <<"tagKeys"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( {decoder, fun gleam@dynamic@decode:decode_string/1} ) ), fun(Tag_keys) -> gleam@dynamic@decode:success( {untag_resource_request, Resource_arn, Tag_keys} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18665). -spec encode_op_enum(op()) -> gleam@json:json(). encode_op_enum(V) -> case V of op_add -> gleam@json:string(<<"add"/utf8>>); op_copy -> gleam@json:string(<<"copy"/utf8>>); op_move -> gleam@json:string(<<"move"/utf8>>); op_remove -> gleam@json:string(<<"remove"/utf8>>); op_replace -> gleam@json:string(<<"replace"/utf8>>); op_test -> gleam@json:string(<<"test"/utf8>>) end. -file("src/aws/services/api_gateway.gleam", 18585). -spec encode_patch_operation_struct(patch_operation()) -> gleam@json:json(). encode_patch_operation_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"from"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"op"/utf8>>, encode_op_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"path"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"value"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 18535). -spec encode_update_account_request_struct(update_account_request()) -> gleam@json:json(). encode_update_account_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 18676). -spec decode_op_enum() -> gleam@dynamic@decode:decoder(op()). decode_op_enum() -> gleam@dynamic@decode:then( {decoder, fun gleam@dynamic@decode:decode_string/1}, fun(S) -> case S of <<"add"/utf8>> -> gleam@dynamic@decode:success(op_add); <<"copy"/utf8>> -> gleam@dynamic@decode:success(op_copy); <<"move"/utf8>> -> gleam@dynamic@decode:success(op_move); <<"remove"/utf8>> -> gleam@dynamic@decode:success(op_remove); <<"replace"/utf8>> -> gleam@dynamic@decode:success(op_replace); <<"test"/utf8>> -> gleam@dynamic@decode:success(op_test); _ -> gleam@dynamic@decode:failure( op_add, <<"unknown enum value"/utf8>> ) end end ). -file("src/aws/services/api_gateway.gleam", 18606). -spec decode_patch_operation_struct() -> gleam@dynamic@decode:decoder(patch_operation()). decode_patch_operation_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"from"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(From) -> gleam@dynamic@decode:optional_field( <<"op"/utf8>>, none, gleam@dynamic@decode:optional(decode_op_enum()), fun(Op) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Value) -> gleam@dynamic@decode:success( {patch_operation, From, Op, Path, Value} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18552). -spec decode_update_account_request_struct() -> gleam@dynamic@decode:decoder(update_account_request()). decode_update_account_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_account_request, Patch_operations} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18631). -spec decode_patch_operation_struct_params() -> gleam@dynamic@decode:decoder(patch_operation()). decode_patch_operation_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"from"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(From) -> gleam@dynamic@decode:optional_field( <<"op"/utf8>>, none, gleam@dynamic@decode:optional(decode_op_enum()), fun(Op) -> gleam@dynamic@decode:optional_field( <<"path"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Path) -> gleam@dynamic@decode:optional_field( <<"value"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Value) -> gleam@dynamic@decode:success( {patch_operation, From, Op, Path, Value} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18564). -spec decode_update_account_request_struct_params() -> gleam@dynamic@decode:decoder(update_account_request()). decode_update_account_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_account_request, Patch_operations} ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18690). -spec op_from_wire(binary()) -> {ok, op()} | {error, binary()}. op_from_wire(S) -> case S of <<"add"/utf8>> -> {ok, op_add}; <<"copy"/utf8>> -> {ok, op_copy}; <<"move"/utf8>> -> {ok, op_move}; <<"remove"/utf8>> -> {ok, op_remove}; <<"replace"/utf8>> -> {ok, op_replace}; <<"test"/utf8>> -> {ok, op_test}; _ -> {ok, op_add} end. -file("src/aws/services/api_gateway.gleam", 18709). -spec encode_update_api_key_request_struct(update_api_key_request()) -> gleam@json:json(). encode_update_api_key_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKey"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 18730). -spec decode_update_api_key_request_struct() -> gleam@dynamic@decode:decoder(update_api_key_request()). decode_update_api_key_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_api_key_request, Api_key, Patch_operations} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18750). -spec decode_update_api_key_request_struct_params() -> gleam@dynamic@decode:decoder(update_api_key_request()). decode_update_api_key_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"apiKey"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Api_key) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_api_key_request, Api_key, Patch_operations} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18778). -spec encode_update_authorizer_request_struct(update_authorizer_request()) -> gleam@json:json(). encode_update_authorizer_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"authorizerId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 18803). -spec decode_update_authorizer_request_struct() -> gleam@dynamic@decode:decoder(update_authorizer_request()). decode_update_authorizer_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_authorizer_request, Authorizer_id, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18829). -spec decode_update_authorizer_request_struct_params() -> gleam@dynamic@decode:decoder(update_authorizer_request()). decode_update_authorizer_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"authorizerId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Authorizer_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_authorizer_request, Authorizer_id, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18864). -spec encode_update_base_path_mapping_request_struct( update_base_path_mapping_request() ) -> gleam@json:json(). encode_update_base_path_mapping_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"basePath"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainName"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 18893). -spec decode_update_base_path_mapping_request_struct() -> gleam@dynamic@decode:decoder(update_base_path_mapping_request()). decode_update_base_path_mapping_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_base_path_mapping_request, Base_path, Domain_name, Domain_name_id, Patch_operations} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18925). -spec decode_update_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:decoder(update_base_path_mapping_request()). decode_update_base_path_mapping_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"basePath"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Base_path) -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params( ) ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_base_path_mapping_request, Base_path, Domain_name, Domain_name_id, Patch_operations} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 18964). -spec encode_update_client_certificate_request_struct( update_client_certificate_request() ) -> gleam@json:json(). encode_update_client_certificate_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"clientCertificateId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 18985). -spec decode_update_client_certificate_request_struct() -> gleam@dynamic@decode:decoder(update_client_certificate_request()). decode_update_client_certificate_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_client_certificate_request, Client_certificate_id, Patch_operations} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19005). -spec decode_update_client_certificate_request_struct_params() -> gleam@dynamic@decode:decoder(update_client_certificate_request()). decode_update_client_certificate_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"clientCertificateId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Client_certificate_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_client_certificate_request, Client_certificate_id, Patch_operations} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19033). -spec encode_update_deployment_request_struct(update_deployment_request()) -> gleam@json:json(). encode_update_deployment_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 19058). -spec decode_update_deployment_request_struct() -> gleam@dynamic@decode:decoder(update_deployment_request()). decode_update_deployment_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_deployment_request, Deployment_id, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19084). -spec decode_update_deployment_request_struct_params() -> gleam@dynamic@decode:decoder(update_deployment_request()). decode_update_deployment_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"deploymentId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Deployment_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_deployment_request, Deployment_id, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19118). -spec encode_update_documentation_part_request_struct( update_documentation_part_request() ) -> gleam@json:json(). encode_update_documentation_part_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"documentationPartId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 19143). -spec decode_update_documentation_part_request_struct() -> gleam@dynamic@decode:decoder(update_documentation_part_request()). decode_update_documentation_part_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationPartId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_part_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_documentation_part_request, Documentation_part_id, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19169). -spec decode_update_documentation_part_request_struct_params() -> gleam@dynamic@decode:decoder(update_documentation_part_request()). decode_update_documentation_part_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationPartId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_part_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_documentation_part_request, Documentation_part_id, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19203). -spec encode_update_documentation_version_request_struct( update_documentation_version_request() ) -> gleam@json:json(). encode_update_documentation_version_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 19228). -spec decode_update_documentation_version_request_struct() -> gleam@dynamic@decode:decoder(update_documentation_version_request()). decode_update_documentation_version_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_documentation_version_request, Documentation_version, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19254). -spec decode_update_documentation_version_request_struct_params() -> gleam@dynamic@decode:decoder(update_documentation_version_request()). decode_update_documentation_version_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"documentationVersion"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Documentation_version) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_documentation_version_request, Documentation_version, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19288). -spec encode_update_domain_name_request_struct(update_domain_name_request()) -> gleam@json:json(). encode_update_domain_name_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"domainName"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"domainNameId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 19313). -spec decode_update_domain_name_request_struct() -> gleam@dynamic@decode:decoder(update_domain_name_request()). decode_update_domain_name_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_domain_name_request, Domain_name, Domain_name_id, Patch_operations} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19339). -spec decode_update_domain_name_request_struct_params() -> gleam@dynamic@decode:decoder(update_domain_name_request()). decode_update_domain_name_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"domainName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name) -> gleam@dynamic@decode:optional_field( <<"domainNameId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Domain_name_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:success( {update_domain_name_request, Domain_name, Domain_name_id, Patch_operations} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19373). -spec encode_update_gateway_response_request_struct( update_gateway_response_request() ) -> gleam@json:json(). encode_update_gateway_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"responseType"/utf8>>, encode_gateway_response_type_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 19401). -spec decode_update_gateway_response_request_struct() -> gleam@dynamic@decode:decoder(update_gateway_response_request()). decode_update_gateway_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_gateway_response_request, Patch_operations, Response_type, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19427). -spec decode_update_gateway_response_request_struct_params() -> gleam@dynamic@decode:decoder(update_gateway_response_request()). decode_update_gateway_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"responseType"/utf8>>, none, gleam@dynamic@decode:optional( decode_gateway_response_type_enum() ), fun(Response_type) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_gateway_response_request, Patch_operations, Response_type, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19462). -spec encode_update_integration_request_struct(update_integration_request()) -> gleam@json:json(). encode_update_integration_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 19491). -spec decode_update_integration_request_struct() -> gleam@dynamic@decode:decoder(update_integration_request()). decode_update_integration_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_integration_request, Http_method, Patch_operations, Resource_id, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19523). -spec decode_update_integration_request_struct_params() -> gleam@dynamic@decode:decoder(update_integration_request()). decode_update_integration_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_integration_request, Http_method, Patch_operations, Resource_id, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19565). -spec encode_update_integration_response_request_struct( update_integration_response_request() ) -> gleam@json:json(). encode_update_integration_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 19598). -spec decode_update_integration_response_request_struct() -> gleam@dynamic@decode:decoder(update_integration_response_request()). decode_update_integration_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {update_integration_response_request, Http_method, Patch_operations, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19636). -spec decode_update_integration_response_request_struct_params() -> gleam@dynamic@decode:decoder(update_integration_response_request()). decode_update_integration_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {update_integration_response_request, Http_method, Patch_operations, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19683). -spec encode_update_method_request_struct(update_method_request()) -> gleam@json:json(). encode_update_method_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 19712). -spec decode_update_method_request_struct() -> gleam@dynamic@decode:decoder(update_method_request()). decode_update_method_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_method_request, Http_method, Patch_operations, Resource_id, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19744). -spec decode_update_method_request_struct_params() -> gleam@dynamic@decode:decoder(update_method_request()). decode_update_method_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_method_request, Http_method, Patch_operations, Resource_id, Rest_api_id} ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19786). -spec encode_update_method_response_request_struct( update_method_response_request() ) -> gleam@json:json(). encode_update_method_response_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, gleam@json:object(Pairs@5). -file("src/aws/services/api_gateway.gleam", 19819). -spec decode_update_method_response_request_struct() -> gleam@dynamic@decode:decoder(update_method_response_request()). decode_update_method_response_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {update_method_response_request, Http_method, Patch_operations, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19857). -spec decode_update_method_response_request_struct_params() -> gleam@dynamic@decode:decoder(update_method_response_request()). decode_update_method_response_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"httpMethod"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Http_method) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"statusCode"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Status_code) -> gleam@dynamic@decode:success( {update_method_response_request, Http_method, Patch_operations, Resource_id, Rest_api_id, Status_code} ) end ) end ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19903). -spec encode_update_model_request_struct(update_model_request()) -> gleam@json:json(). encode_update_model_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"modelName"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 19928). -spec decode_update_model_request_struct() -> gleam@dynamic@decode:decoder(update_model_request()). decode_update_model_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_model_request, Model_name, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19954). -spec decode_update_model_request_struct_params() -> gleam@dynamic@decode:decoder(update_model_request()). decode_update_model_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"modelName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Model_name) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_model_request, Model_name, Patch_operations, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 19988). -spec encode_update_request_validator_request_struct( update_request_validator_request() ) -> gleam@json:json(). encode_update_request_validator_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"requestValidatorId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 20013). -spec decode_update_request_validator_request_struct() -> gleam@dynamic@decode:decoder(update_request_validator_request()). decode_update_request_validator_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Request_validator_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_request_validator_request, Patch_operations, Request_validator_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20039). -spec decode_update_request_validator_request_struct_params() -> gleam@dynamic@decode:decoder(update_request_validator_request()). decode_update_request_validator_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"requestValidatorId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Request_validator_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_request_validator_request, Patch_operations, Request_validator_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20073). -spec encode_update_resource_request_struct(update_resource_request()) -> gleam@json:json(). encode_update_resource_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"resourceId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 20098). -spec decode_update_resource_request_struct() -> gleam@dynamic@decode:decoder(update_resource_request()). decode_update_resource_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_resource_request, Patch_operations, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20124). -spec decode_update_resource_request_struct_params() -> gleam@dynamic@decode:decoder(update_resource_request()). decode_update_resource_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"resourceId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Resource_id) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_resource_request, Patch_operations, Resource_id, Rest_api_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20157). -spec encode_update_rest_api_request_struct(update_rest_api_request()) -> gleam@json:json(). encode_update_rest_api_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 20178). -spec decode_update_rest_api_request_struct() -> gleam@dynamic@decode:decoder(update_rest_api_request()). decode_update_rest_api_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_rest_api_request, Patch_operations, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20198). -spec decode_update_rest_api_request_struct_params() -> gleam@dynamic@decode:decoder(update_rest_api_request()). decode_update_rest_api_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:success( {update_rest_api_request, Patch_operations, Rest_api_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20226). -spec encode_update_stage_request_struct(update_stage_request()) -> gleam@json:json(). encode_update_stage_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"stageName"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 20251). -spec decode_update_stage_request_struct() -> gleam@dynamic@decode:decoder(update_stage_request()). decode_update_stage_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {update_stage_request, Patch_operations, Rest_api_id, Stage_name} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20277). -spec decode_update_stage_request_struct_params() -> gleam@dynamic@decode:decoder(update_stage_request()). decode_update_stage_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"restApiId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Rest_api_id) -> gleam@dynamic@decode:optional_field( <<"stageName"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Stage_name) -> gleam@dynamic@decode:success( {update_stage_request, Patch_operations, Rest_api_id, Stage_name} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20311). -spec encode_update_usage_request_struct(update_usage_request()) -> gleam@json:json(). encode_update_usage_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"keyId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 20336). -spec decode_update_usage_request_struct() -> gleam@dynamic@decode:decoder(update_usage_request()). decode_update_usage_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {update_usage_request, Key_id, Patch_operations, Usage_plan_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20362). -spec decode_update_usage_request_struct_params() -> gleam@dynamic@decode:decoder(update_usage_request()). decode_update_usage_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"keyId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Key_id) -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {update_usage_request, Key_id, Patch_operations, Usage_plan_id} ) end ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20395). -spec encode_update_usage_plan_request_struct(update_usage_plan_request()) -> gleam@json:json(). encode_update_usage_plan_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"usagePlanId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 20416). -spec decode_update_usage_plan_request_struct() -> gleam@dynamic@decode:decoder(update_usage_plan_request()). decode_update_usage_plan_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {update_usage_plan_request, Patch_operations, Usage_plan_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20436). -spec decode_update_usage_plan_request_struct_params() -> gleam@dynamic@decode:decoder(update_usage_plan_request()). decode_update_usage_plan_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"usagePlanId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Usage_plan_id) -> gleam@dynamic@decode:success( {update_usage_plan_request, Patch_operations, Usage_plan_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20463). -spec encode_update_vpc_link_request_struct(update_vpc_link_request()) -> gleam@json:json(). encode_update_vpc_link_request_struct(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"vpcLinkId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 20484). -spec decode_update_vpc_link_request_struct() -> gleam@dynamic@decode:decoder(update_vpc_link_request()). decode_update_vpc_link_request_struct() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list(decode_patch_operation_struct()) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"vpcLinkId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Vpc_link_id) -> gleam@dynamic@decode:success( {update_vpc_link_request, Patch_operations, Vpc_link_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20504). -spec decode_update_vpc_link_request_struct_params() -> gleam@dynamic@decode:decoder(update_vpc_link_request()). decode_update_vpc_link_request_struct_params() -> gleam@dynamic@decode:recursive( fun() -> gleam@dynamic@decode:optional_field( <<"patchOperations"/utf8>>, none, gleam@dynamic@decode:optional( gleam@dynamic@decode:list( decode_patch_operation_struct_params() ) ), fun(Patch_operations) -> gleam@dynamic@decode:optional_field( <<"vpcLinkId"/utf8>>, none, gleam@dynamic@decode:optional( {decoder, fun gleam@dynamic@decode:decode_string/1} ), fun(Vpc_link_id) -> gleam@dynamic@decode:success( {update_vpc_link_request, Patch_operations, Vpc_link_id} ) end ) end ) end ). -file("src/aws/services/api_gateway.gleam", 20524). -spec encode_create_api_key_input(create_api_key_request()) -> binary(). encode_create_api_key_input(Input) -> gleam@json:to_string(encode_create_api_key_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 20528). -spec decode_create_api_key_input(binary()) -> {ok, create_api_key_request()} | {error, binary()}. decode_create_api_key_input(Body) -> case gleam@json:parse(Body, decode_create_api_key_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20537). -spec decode_create_api_key_output(binary()) -> {ok, api_key()} | {error, binary()}. decode_create_api_key_output(Body) -> case gleam@json:parse(Body, decode_api_key_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20544). -spec encode_create_api_key_body(create_api_key_request()) -> gleam@json:json(). encode_create_api_key_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"customerId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"enabled"/utf8>>, gleam@json:bool(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"generateDistinctId"/utf8>>, gleam@json:bool(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"name"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"stageKeys"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_stage_key_struct/1) end)(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"value"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, gleam@json:object(Pairs@8). -file("src/aws/services/api_gateway.gleam", 20595). -spec build_create_api_key_request(create_api_key_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_api_key_request(Input) -> Path = <<"/apikeys"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_api_key_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 20623). -spec parse_create_api_key_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, api_key()} | {error, binary()}. parse_create_api_key_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_api_key_output(<<"{}"/utf8>>); _ -> decode_create_api_key_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20638). -spec encode_create_authorizer_input(create_authorizer_request()) -> binary(). encode_create_authorizer_input(Input) -> gleam@json:to_string(encode_create_authorizer_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 20644). -spec decode_create_authorizer_input(binary()) -> {ok, create_authorizer_request()} | {error, binary()}. decode_create_authorizer_input(Body) -> case gleam@json:parse( Body, decode_create_authorizer_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20653). -spec decode_create_authorizer_output(binary()) -> {ok, authorizer()} | {error, binary()}. decode_create_authorizer_output(Body) -> case gleam@json:parse(Body, decode_authorizer_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20662). -spec encode_create_authorizer_body(create_authorizer_request()) -> gleam@json:json(). encode_create_authorizer_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"authType"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizerCredentials"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"authorizerResultTtlInSeconds"/utf8>>, gleam@json:int(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"authorizerUri"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"identitySource"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"identityValidationExpression"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"name"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"providerARNs"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(11, Input) of {some, V@8} -> [{<<"type"/utf8>>, encode_authorizer_type_enum(V@8)} | Pairs@8]; none -> Pairs@8 end, gleam@json:object(Pairs@9). -file("src/aws/services/api_gateway.gleam", 20711). -spec build_create_authorizer_request(create_authorizer_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_authorizer_request(Input) -> Path = <<"/restapis/{restApiId}/authorizers"/utf8>>, Path@1 = case erlang:element(10, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_authorizer_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 20743). -spec parse_create_authorizer_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, authorizer()} | {error, binary()}. parse_create_authorizer_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_authorizer_output(<<"{}"/utf8>>); _ -> decode_create_authorizer_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20758). -spec encode_create_base_path_mapping_input(create_base_path_mapping_request()) -> binary(). encode_create_base_path_mapping_input(Input) -> gleam@json:to_string(encode_create_base_path_mapping_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 20764). -spec decode_create_base_path_mapping_input(binary()) -> {ok, create_base_path_mapping_request()} | {error, binary()}. decode_create_base_path_mapping_input(Body) -> case gleam@json:parse( Body, decode_create_base_path_mapping_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20775). -spec decode_create_base_path_mapping_output(binary()) -> {ok, base_path_mapping()} | {error, binary()}. decode_create_base_path_mapping_output(Body) -> case gleam@json:parse(Body, decode_base_path_mapping_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20784). -spec encode_create_base_path_mapping_body(create_base_path_mapping_request()) -> gleam@json:json(). encode_create_base_path_mapping_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"basePath"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(5, Input) of {some, V@1} -> [{<<"restApiId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(6, Input) of {some, V@2} -> [{<<"stage"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 20803). -spec build_create_base_path_mapping_request(create_base_path_mapping_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_base_path_mapping_request(Input) -> Path = <<"/domainnames/{domainName}/basepathmappings"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"domainName"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@1 ); none -> Query end, Headers = maps:new(), Body_json = encode_create_base_path_mapping_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@1), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 20839). -spec parse_create_base_path_mapping_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, base_path_mapping()} | {error, binary()}. parse_create_base_path_mapping_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_base_path_mapping_output(<<"{}"/utf8>>); _ -> decode_create_base_path_mapping_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20854). -spec encode_create_deployment_input(create_deployment_request()) -> binary(). encode_create_deployment_input(Input) -> gleam@json:to_string(encode_create_deployment_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 20860). -spec decode_create_deployment_input(binary()) -> {ok, create_deployment_request()} | {error, binary()}. decode_create_deployment_input(Body) -> case gleam@json:parse( Body, decode_create_deployment_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20869). -spec decode_create_deployment_output(binary()) -> {ok, deployment()} | {error, binary()}. decode_create_deployment_output(Body) -> case gleam@json:parse(Body, decode_deployment_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20878). -spec encode_create_deployment_body(create_deployment_request()) -> gleam@json:json(). encode_create_deployment_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheClusterEnabled"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheClusterSize"/utf8>>, encode_cache_cluster_size_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"canarySettings"/utf8>>, encode_deployment_canary_settings_struct(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"description"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(7, Input) of {some, V@4} -> [{<<"stageDescription"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(8, Input) of {some, V@5} -> [{<<"stageName"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(9, Input) of {some, V@6} -> [{<<"tracingEnabled"/utf8>>, gleam@json:bool(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(10, Input) of {some, V@7} -> [{<<"variables"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, gleam@json:object(Pairs@8). -file("src/aws/services/api_gateway.gleam", 20934). -spec build_create_deployment_request(create_deployment_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_deployment_request(Input) -> Path = <<"/restapis/{restApiId}/deployments"/utf8>>, Path@1 = case erlang:element(6, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_deployment_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 20966). -spec parse_create_deployment_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, deployment()} | {error, binary()}. parse_create_deployment_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_deployment_output(<<"{}"/utf8>>); _ -> decode_create_deployment_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20981). -spec encode_create_documentation_part_input( create_documentation_part_request() ) -> binary(). encode_create_documentation_part_input(Input) -> gleam@json:to_string(encode_create_documentation_part_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 20987). -spec decode_create_documentation_part_input(binary()) -> {ok, create_documentation_part_request()} | {error, binary()}. decode_create_documentation_part_input(Body) -> case gleam@json:parse( Body, decode_create_documentation_part_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 20998). -spec decode_create_documentation_part_output(binary()) -> {ok, documentation_part()} | {error, binary()}. decode_create_documentation_part_output(Body) -> case gleam@json:parse(Body, decode_documentation_part_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21007). -spec encode_create_documentation_part_body(create_documentation_part_request()) -> gleam@json:json(). encode_create_documentation_part_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"location"/utf8>>, encode_documentation_part_location_struct(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"properties"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 21025). -spec build_create_documentation_part_request( create_documentation_part_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_documentation_part_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/parts"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_documentation_part_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21057). -spec parse_create_documentation_part_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_part()} | {error, binary()}. parse_create_documentation_part_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_documentation_part_output(<<"{}"/utf8>>); _ -> decode_create_documentation_part_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21072). -spec encode_create_documentation_version_input( create_documentation_version_request() ) -> binary(). encode_create_documentation_version_input(Input) -> gleam@json:to_string( encode_create_documentation_version_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 21078). -spec decode_create_documentation_version_input(binary()) -> {ok, create_documentation_version_request()} | {error, binary()}. decode_create_documentation_version_input(Body) -> case gleam@json:parse( Body, decode_create_documentation_version_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21092). -spec decode_create_documentation_version_output(binary()) -> {ok, documentation_version()} | {error, binary()}. decode_create_documentation_version_output(Body) -> case gleam@json:parse(Body, decode_documentation_version_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21101). -spec encode_create_documentation_version_body( create_documentation_version_request() ) -> gleam@json:json(). encode_create_documentation_version_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"description"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(5, Input) of {some, V@2} -> [{<<"stageName"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 21120). -spec build_create_documentation_version_request( create_documentation_version_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_documentation_version_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/versions"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_documentation_version_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21152). -spec parse_create_documentation_version_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_version()} | {error, binary()}. parse_create_documentation_version_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_documentation_version_output(<<"{}"/utf8>>); _ -> decode_create_documentation_version_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21167). -spec encode_create_domain_name_input(create_domain_name_request()) -> binary(). encode_create_domain_name_input(Input) -> gleam@json:to_string(encode_create_domain_name_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 21173). -spec decode_create_domain_name_input(binary()) -> {ok, create_domain_name_request()} | {error, binary()}. decode_create_domain_name_input(Body) -> case gleam@json:parse( Body, decode_create_domain_name_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21182). -spec decode_create_domain_name_output(binary()) -> {ok, domain_name()} | {error, binary()}. decode_create_domain_name_output(Body) -> case gleam@json:parse(Body, decode_domain_name_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21191). -spec encode_create_domain_name_body(create_domain_name_request()) -> gleam@json:json(). encode_create_domain_name_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"certificateArn"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"certificateBody"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"certificateChain"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"certificateName"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"certificatePrivateKey"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"domainName"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"endpointAccessMode"/utf8>>, encode_endpoint_access_mode_enum(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"endpointConfiguration"/utf8>>, encode_endpoint_configuration_struct(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"mutualTlsAuthentication"/utf8>>, encode_mutual_tls_authentication_input_struct(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"ownershipVerificationCertificateArn"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"policy"/utf8>>, gleam@json:string(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"regionalCertificateArn"/utf8>>, gleam@json:string(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"regionalCertificateName"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(15, Input) of {some, V@13} -> [{<<"routingMode"/utf8>>, encode_routing_mode_enum(V@13)} | Pairs@13]; none -> Pairs@13 end, Pairs@15 = case erlang:element(16, Input) of {some, V@14} -> [{<<"securityPolicy"/utf8>>, encode_security_policy_enum(V@14)} | Pairs@14]; none -> Pairs@14 end, Pairs@16 = case erlang:element(17, Input) of {some, V@15} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@15)} | Pairs@15]; none -> Pairs@15 end, gleam@json:object(Pairs@16). -file("src/aws/services/api_gateway.gleam", 21291). -spec build_create_domain_name_request(create_domain_name_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_domain_name_request(Input) -> Path = <<"/domainnames"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_domain_name_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21319). -spec parse_create_domain_name_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, domain_name()} | {error, binary()}. parse_create_domain_name_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_domain_name_output(<<"{}"/utf8>>); _ -> decode_create_domain_name_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21334). -spec encode_create_domain_name_access_association_input( create_domain_name_access_association_request() ) -> binary(). encode_create_domain_name_access_association_input(Input) -> gleam@json:to_string( encode_create_domain_name_access_association_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 21342). -spec decode_create_domain_name_access_association_input(binary()) -> {ok, create_domain_name_access_association_request()} | {error, binary()}. decode_create_domain_name_access_association_input(Body) -> case gleam@json:parse( Body, decode_create_domain_name_access_association_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21356). -spec decode_create_domain_name_access_association_output(binary()) -> {ok, domain_name_access_association()} | {error, binary()}. decode_create_domain_name_access_association_output(Body) -> case gleam@json:parse(Body, decode_domain_name_access_association_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21365). -spec encode_create_domain_name_access_association_body( create_domain_name_access_association_request() ) -> gleam@json:json(). encode_create_domain_name_access_association_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"accessAssociationSource"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"accessAssociationSourceType"/utf8>>, encode_access_association_source_type_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"domainNameArn"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 21405). -spec build_create_domain_name_access_association_request( create_domain_name_access_association_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_domain_name_access_association_request(Input) -> Path = <<"/domainnameaccessassociations"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_domain_name_access_association_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21433). -spec parse_create_domain_name_access_association_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, domain_name_access_association()} | {error, binary()}. parse_create_domain_name_access_association_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_domain_name_access_association_output( <<"{}"/utf8>> ); _ -> decode_create_domain_name_access_association_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21448). -spec encode_create_model_input(create_model_request()) -> binary(). encode_create_model_input(Input) -> gleam@json:to_string(encode_create_model_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 21452). -spec decode_create_model_input(binary()) -> {ok, create_model_request()} | {error, binary()}. decode_create_model_input(Body) -> case gleam@json:parse(Body, decode_create_model_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21461). -spec decode_create_model_output(binary()) -> {ok, model()} | {error, binary()}. decode_create_model_output(Body) -> case gleam@json:parse(Body, decode_model_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21468). -spec encode_create_model_body(create_model_request()) -> gleam@json:json(). encode_create_model_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"contentType"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"name"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(6, Input) of {some, V@3} -> [{<<"schema"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 21489). -spec build_create_model_request(create_model_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_model_request(Input) -> Path = <<"/restapis/{restApiId}/models"/utf8>>, Path@1 = case erlang:element(5, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_model_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21521). -spec parse_create_model_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, model()} | {error, binary()}. parse_create_model_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_model_output(<<"{}"/utf8>>); _ -> decode_create_model_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21536). -spec encode_create_request_validator_input(create_request_validator_request()) -> binary(). encode_create_request_validator_input(Input) -> gleam@json:to_string(encode_create_request_validator_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 21542). -spec decode_create_request_validator_input(binary()) -> {ok, create_request_validator_request()} | {error, binary()}. decode_create_request_validator_input(Body) -> case gleam@json:parse( Body, decode_create_request_validator_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21553). -spec decode_create_request_validator_output(binary()) -> {ok, request_validator()} | {error, binary()}. decode_create_request_validator_output(Body) -> case gleam@json:parse(Body, decode_request_validator_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21562). -spec encode_create_request_validator_body(create_request_validator_request()) -> gleam@json:json(). encode_create_request_validator_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"name"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(4, Input) of {some, V@1} -> [{<<"validateRequestBody"/utf8>>, gleam@json:bool(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(5, Input) of {some, V@2} -> [{<<"validateRequestParameters"/utf8>>, gleam@json:bool(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 21581). -spec build_create_request_validator_request(create_request_validator_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_request_validator_request(Input) -> Path = <<"/restapis/{restApiId}/requestvalidators"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_request_validator_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21613). -spec parse_create_request_validator_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, request_validator()} | {error, binary()}. parse_create_request_validator_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_request_validator_output(<<"{}"/utf8>>); _ -> decode_create_request_validator_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21628). -spec encode_create_resource_input(create_resource_request()) -> binary(). encode_create_resource_input(Input) -> gleam@json:to_string(encode_create_resource_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 21632). -spec decode_create_resource_input(binary()) -> {ok, create_resource_request()} | {error, binary()}. decode_create_resource_input(Body) -> case gleam@json:parse(Body, decode_create_resource_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21641). -spec decode_create_resource_output(binary()) -> {ok, resource()} | {error, binary()}. decode_create_resource_output(Body) -> case gleam@json:parse(Body, decode_resource_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21648). -spec encode_create_resource_body(create_resource_request()) -> gleam@json:json(). encode_create_resource_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"pathPart"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 21657). -spec build_create_resource_request(create_resource_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_resource_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{parentId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"parentId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_resource_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"POST"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21693). -spec parse_create_resource_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, resource()} | {error, binary()}. parse_create_resource_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_resource_output(<<"{}"/utf8>>); _ -> decode_create_resource_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21708). -spec encode_create_rest_api_input(create_rest_api_request()) -> binary(). encode_create_rest_api_input(Input) -> gleam@json:to_string(encode_create_rest_api_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 21712). -spec decode_create_rest_api_input(binary()) -> {ok, create_rest_api_request()} | {error, binary()}. decode_create_rest_api_input(Body) -> case gleam@json:parse(Body, decode_create_rest_api_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21721). -spec decode_create_rest_api_output(binary()) -> {ok, rest_api()} | {error, binary()}. decode_create_rest_api_output(Body) -> case gleam@json:parse(Body, decode_rest_api_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21728). -spec encode_create_rest_api_body(create_rest_api_request()) -> gleam@json:json(). encode_create_rest_api_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeySource"/utf8>>, encode_api_key_source_type_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"binaryMediaTypes"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"cloneFrom"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"description"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"disableExecuteApiEndpoint"/utf8>>, gleam@json:bool(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"endpointAccessMode"/utf8>>, encode_endpoint_access_mode_enum(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(8, Input) of {some, V@6} -> [{<<"endpointConfiguration"/utf8>>, encode_endpoint_configuration_struct(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(9, Input) of {some, V@7} -> [{<<"minimumCompressionSize"/utf8>>, gleam@json:int(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(10, Input) of {some, V@8} -> [{<<"name"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(11, Input) of {some, V@9} -> [{<<"policy"/utf8>>, gleam@json:string(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(12, Input) of {some, V@10} -> [{<<"securityPolicy"/utf8>>, encode_security_policy_enum(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(13, Input) of {some, V@11} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(14, Input) of {some, V@12} -> [{<<"version"/utf8>>, gleam@json:string(V@12)} | Pairs@12]; none -> Pairs@12 end, gleam@json:object(Pairs@13). -file("src/aws/services/api_gateway.gleam", 21811). -spec build_create_rest_api_request(create_rest_api_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_rest_api_request(Input) -> Path = <<"/restapis"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_rest_api_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21839). -spec parse_create_rest_api_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, rest_api()} | {error, binary()}. parse_create_rest_api_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_rest_api_output(<<"{}"/utf8>>); _ -> decode_create_rest_api_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21854). -spec encode_create_stage_input(create_stage_request()) -> binary(). encode_create_stage_input(Input) -> gleam@json:to_string(encode_create_stage_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 21858). -spec decode_create_stage_input(binary()) -> {ok, create_stage_request()} | {error, binary()}. decode_create_stage_input(Body) -> case gleam@json:parse(Body, decode_create_stage_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21867). -spec decode_create_stage_output(binary()) -> {ok, stage()} | {error, binary()}. decode_create_stage_output(Body) -> case gleam@json:parse(Body, decode_stage_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21874). -spec encode_create_stage_body(create_stage_request()) -> gleam@json:json(). encode_create_stage_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheClusterEnabled"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheClusterSize"/utf8>>, encode_cache_cluster_size_enum(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"canarySettings"/utf8>>, encode_canary_settings_struct(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"deploymentId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"description"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"documentationVersion"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(9, Input) of {some, V@6} -> [{<<"stageName"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(10, Input) of {some, V@7} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(11, Input) of {some, V@8} -> [{<<"tracingEnabled"/utf8>>, gleam@json:bool(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(12, Input) of {some, V@9} -> [{<<"variables"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@9)} | Pairs@9]; none -> Pairs@9 end, gleam@json:object(Pairs@10). -file("src/aws/services/api_gateway.gleam", 21947). -spec build_create_stage_request(create_stage_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_stage_request(Input) -> Path = <<"/restapis/{restApiId}/stages"/utf8>>, Path@1 = case erlang:element(8, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_stage_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 21979). -spec parse_create_stage_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, stage()} | {error, binary()}. parse_create_stage_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_stage_output(<<"{}"/utf8>>); _ -> decode_create_stage_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 21994). -spec encode_create_usage_plan_input(create_usage_plan_request()) -> binary(). encode_create_usage_plan_input(Input) -> gleam@json:to_string(encode_create_usage_plan_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 21998). -spec decode_create_usage_plan_input(binary()) -> {ok, create_usage_plan_request()} | {error, binary()}. decode_create_usage_plan_input(Body) -> case gleam@json:parse( Body, decode_create_usage_plan_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22007). -spec decode_create_usage_plan_output(binary()) -> {ok, usage_plan()} | {error, binary()}. decode_create_usage_plan_output(Body) -> case gleam@json:parse(Body, decode_usage_plan_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22016). -spec encode_create_usage_plan_body(create_usage_plan_request()) -> gleam@json:json(). encode_create_usage_plan_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiStages"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun encode_api_stage_struct/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"description"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"name"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"quota"/utf8>>, encode_quota_settings_struct(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"throttle"/utf8>>, encode_throttle_settings_struct(V@5)} | Pairs@5]; none -> Pairs@5 end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 22064). -spec build_create_usage_plan_request(create_usage_plan_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_usage_plan_request(Input) -> Path = <<"/usageplans"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_usage_plan_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22092). -spec parse_create_usage_plan_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage_plan()} | {error, binary()}. parse_create_usage_plan_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_usage_plan_output(<<"{}"/utf8>>); _ -> decode_create_usage_plan_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22107). -spec encode_create_usage_plan_key_input(create_usage_plan_key_request()) -> binary(). encode_create_usage_plan_key_input(Input) -> gleam@json:to_string(encode_create_usage_plan_key_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22113). -spec decode_create_usage_plan_key_input(binary()) -> {ok, create_usage_plan_key_request()} | {error, binary()}. decode_create_usage_plan_key_input(Body) -> case gleam@json:parse( Body, decode_create_usage_plan_key_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22122). -spec decode_create_usage_plan_key_output(binary()) -> {ok, usage_plan_key()} | {error, binary()}. decode_create_usage_plan_key_output(Body) -> case gleam@json:parse(Body, decode_usage_plan_key_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22131). -spec encode_create_usage_plan_key_body(create_usage_plan_key_request()) -> gleam@json:json(). encode_create_usage_plan_key_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"keyId"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"keyType"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 22146). -spec build_create_usage_plan_key_request(create_usage_plan_key_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_usage_plan_key_request(Input) -> Path = <<"/usageplans/{usagePlanId}/keys"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"usagePlanId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_usage_plan_key_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"POST"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22178). -spec parse_create_usage_plan_key_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage_plan_key()} | {error, binary()}. parse_create_usage_plan_key_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_usage_plan_key_output(<<"{}"/utf8>>); _ -> decode_create_usage_plan_key_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22193). -spec encode_create_vpc_link_input(create_vpc_link_request()) -> binary(). encode_create_vpc_link_input(Input) -> gleam@json:to_string(encode_create_vpc_link_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22197). -spec decode_create_vpc_link_input(binary()) -> {ok, create_vpc_link_request()} | {error, binary()}. decode_create_vpc_link_input(Body) -> case gleam@json:parse(Body, decode_create_vpc_link_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22206). -spec decode_create_vpc_link_output(binary()) -> {ok, vpc_link()} | {error, binary()}. decode_create_vpc_link_output(Body) -> case gleam@json:parse(Body, decode_vpc_link_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22213). -spec encode_create_vpc_link_body(create_vpc_link_request()) -> gleam@json:json(). encode_create_vpc_link_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"description"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"name"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"targetArns"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 22248). -spec build_create_vpc_link_request(create_vpc_link_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_create_vpc_link_request(Input) -> Path = <<"/vpclinks"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_create_vpc_link_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22276). -spec parse_create_vpc_link_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, vpc_link()} | {error, binary()}. parse_create_vpc_link_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_create_vpc_link_output(<<"{}"/utf8>>); _ -> decode_create_vpc_link_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22295). -spec encode_delete_api_key_output_struct(delete_api_key_output()) -> gleam@json:json(). encode_delete_api_key_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22301). -spec decode_delete_api_key_output_struct() -> gleam@dynamic@decode:decoder(delete_api_key_output()). decode_delete_api_key_output_struct() -> gleam@dynamic@decode:success(delete_api_key_output). -file("src/aws/services/api_gateway.gleam", 22307). -spec encode_delete_api_key_input(delete_api_key_request()) -> binary(). encode_delete_api_key_input(Input) -> gleam@json:to_string(encode_delete_api_key_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22311). -spec decode_delete_api_key_input(binary()) -> {ok, delete_api_key_request()} | {error, binary()}. decode_delete_api_key_input(Body) -> case gleam@json:parse(Body, decode_delete_api_key_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22320). -spec decode_delete_api_key_output(binary()) -> {ok, delete_api_key_output()} | {error, binary()}. decode_delete_api_key_output(Body) -> case gleam@json:parse(Body, decode_delete_api_key_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22329). -spec encode_delete_api_key_body(delete_api_key_request()) -> gleam@json:json(). encode_delete_api_key_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22333). -spec build_delete_api_key_request(delete_api_key_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_api_key_request(Input) -> Path = <<"/apikeys/{apiKey}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"apiKey"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22364). -spec parse_delete_api_key_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_api_key_output()} | {error, binary()}. parse_delete_api_key_response(_, _, _) -> {ok, delete_api_key_output}. -file("src/aws/services/api_gateway.gleam", 22376). -spec encode_delete_authorizer_output_struct(delete_authorizer_output()) -> gleam@json:json(). encode_delete_authorizer_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22382). -spec decode_delete_authorizer_output_struct() -> gleam@dynamic@decode:decoder(delete_authorizer_output()). decode_delete_authorizer_output_struct() -> gleam@dynamic@decode:success(delete_authorizer_output). -file("src/aws/services/api_gateway.gleam", 22388). -spec encode_delete_authorizer_input(delete_authorizer_request()) -> binary(). encode_delete_authorizer_input(Input) -> gleam@json:to_string(encode_delete_authorizer_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22394). -spec decode_delete_authorizer_input(binary()) -> {ok, delete_authorizer_request()} | {error, binary()}. decode_delete_authorizer_input(Body) -> case gleam@json:parse( Body, decode_delete_authorizer_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22403). -spec decode_delete_authorizer_output(binary()) -> {ok, delete_authorizer_output()} | {error, binary()}. decode_delete_authorizer_output(Body) -> case gleam@json:parse(Body, decode_delete_authorizer_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22412). -spec encode_delete_authorizer_body(delete_authorizer_request()) -> gleam@json:json(). encode_delete_authorizer_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22418). -spec build_delete_authorizer_request(delete_authorizer_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_authorizer_request(Input) -> Path = <<"/restapis/{restApiId}/authorizers/{authorizerId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"authorizerId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22453). -spec parse_delete_authorizer_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_authorizer_output()} | {error, binary()}. parse_delete_authorizer_response(_, _, _) -> {ok, delete_authorizer_output}. -file("src/aws/services/api_gateway.gleam", 22465). -spec encode_delete_base_path_mapping_output_struct( delete_base_path_mapping_output() ) -> gleam@json:json(). encode_delete_base_path_mapping_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22471). -spec decode_delete_base_path_mapping_output_struct() -> gleam@dynamic@decode:decoder(delete_base_path_mapping_output()). decode_delete_base_path_mapping_output_struct() -> gleam@dynamic@decode:success(delete_base_path_mapping_output). -file("src/aws/services/api_gateway.gleam", 22477). -spec encode_delete_base_path_mapping_input(delete_base_path_mapping_request()) -> binary(). encode_delete_base_path_mapping_input(Input) -> gleam@json:to_string(encode_delete_base_path_mapping_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22483). -spec decode_delete_base_path_mapping_input(binary()) -> {ok, delete_base_path_mapping_request()} | {error, binary()}. decode_delete_base_path_mapping_input(Body) -> case gleam@json:parse( Body, decode_delete_base_path_mapping_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22494). -spec decode_delete_base_path_mapping_output(binary()) -> {ok, delete_base_path_mapping_output()} | {error, binary()}. decode_delete_base_path_mapping_output(Body) -> case gleam@json:parse(Body, decode_delete_base_path_mapping_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22503). -spec encode_delete_base_path_mapping_body(delete_base_path_mapping_request()) -> gleam@json:json(). encode_delete_base_path_mapping_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22509). -spec build_delete_base_path_mapping_request(delete_base_path_mapping_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_base_path_mapping_request(Input) -> Path = <<"/domainnames/{domainName}/basepathmappings/{basePath}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"basePath"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"domainName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Query@1 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@2 ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query@1), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22548). -spec parse_delete_base_path_mapping_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_base_path_mapping_output()} | {error, binary()}. parse_delete_base_path_mapping_response(_, _, _) -> {ok, delete_base_path_mapping_output}. -file("src/aws/services/api_gateway.gleam", 22560). -spec encode_delete_client_certificate_output_struct( delete_client_certificate_output() ) -> gleam@json:json(). encode_delete_client_certificate_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22566). -spec decode_delete_client_certificate_output_struct() -> gleam@dynamic@decode:decoder(delete_client_certificate_output()). decode_delete_client_certificate_output_struct() -> gleam@dynamic@decode:success(delete_client_certificate_output). -file("src/aws/services/api_gateway.gleam", 22572). -spec encode_delete_client_certificate_input( delete_client_certificate_request() ) -> binary(). encode_delete_client_certificate_input(Input) -> gleam@json:to_string(encode_delete_client_certificate_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22578). -spec decode_delete_client_certificate_input(binary()) -> {ok, delete_client_certificate_request()} | {error, binary()}. decode_delete_client_certificate_input(Body) -> case gleam@json:parse( Body, decode_delete_client_certificate_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22589). -spec decode_delete_client_certificate_output(binary()) -> {ok, delete_client_certificate_output()} | {error, binary()}. decode_delete_client_certificate_output(Body) -> case gleam@json:parse( Body, decode_delete_client_certificate_output_struct() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22598). -spec encode_delete_client_certificate_body(delete_client_certificate_request()) -> gleam@json:json(). encode_delete_client_certificate_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22604). -spec build_delete_client_certificate_request( delete_client_certificate_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_client_certificate_request(Input) -> Path = <<"/clientcertificates/{clientCertificateId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"clientCertificateId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22636). -spec parse_delete_client_certificate_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_client_certificate_output()} | {error, binary()}. parse_delete_client_certificate_response(_, _, _) -> {ok, delete_client_certificate_output}. -file("src/aws/services/api_gateway.gleam", 22648). -spec encode_delete_deployment_output_struct(delete_deployment_output()) -> gleam@json:json(). encode_delete_deployment_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22654). -spec decode_delete_deployment_output_struct() -> gleam@dynamic@decode:decoder(delete_deployment_output()). decode_delete_deployment_output_struct() -> gleam@dynamic@decode:success(delete_deployment_output). -file("src/aws/services/api_gateway.gleam", 22660). -spec encode_delete_deployment_input(delete_deployment_request()) -> binary(). encode_delete_deployment_input(Input) -> gleam@json:to_string(encode_delete_deployment_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22666). -spec decode_delete_deployment_input(binary()) -> {ok, delete_deployment_request()} | {error, binary()}. decode_delete_deployment_input(Body) -> case gleam@json:parse( Body, decode_delete_deployment_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22675). -spec decode_delete_deployment_output(binary()) -> {ok, delete_deployment_output()} | {error, binary()}. decode_delete_deployment_output(Body) -> case gleam@json:parse(Body, decode_delete_deployment_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22684). -spec encode_delete_deployment_body(delete_deployment_request()) -> gleam@json:json(). encode_delete_deployment_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22690). -spec build_delete_deployment_request(delete_deployment_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_deployment_request(Input) -> Path = <<"/restapis/{restApiId}/deployments/{deploymentId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"deploymentId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22725). -spec parse_delete_deployment_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_deployment_output()} | {error, binary()}. parse_delete_deployment_response(_, _, _) -> {ok, delete_deployment_output}. -file("src/aws/services/api_gateway.gleam", 22737). -spec encode_delete_documentation_part_output_struct( delete_documentation_part_output() ) -> gleam@json:json(). encode_delete_documentation_part_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22743). -spec decode_delete_documentation_part_output_struct() -> gleam@dynamic@decode:decoder(delete_documentation_part_output()). decode_delete_documentation_part_output_struct() -> gleam@dynamic@decode:success(delete_documentation_part_output). -file("src/aws/services/api_gateway.gleam", 22749). -spec encode_delete_documentation_part_input( delete_documentation_part_request() ) -> binary(). encode_delete_documentation_part_input(Input) -> gleam@json:to_string(encode_delete_documentation_part_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22755). -spec decode_delete_documentation_part_input(binary()) -> {ok, delete_documentation_part_request()} | {error, binary()}. decode_delete_documentation_part_input(Body) -> case gleam@json:parse( Body, decode_delete_documentation_part_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22766). -spec decode_delete_documentation_part_output(binary()) -> {ok, delete_documentation_part_output()} | {error, binary()}. decode_delete_documentation_part_output(Body) -> case gleam@json:parse( Body, decode_delete_documentation_part_output_struct() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22775). -spec encode_delete_documentation_part_body(delete_documentation_part_request()) -> gleam@json:json(). encode_delete_documentation_part_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22781). -spec build_delete_documentation_part_request( delete_documentation_part_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_documentation_part_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/parts/{documentationPartId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"documentationPartId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22817). -spec parse_delete_documentation_part_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_documentation_part_output()} | {error, binary()}. parse_delete_documentation_part_response(_, _, _) -> {ok, delete_documentation_part_output}. -file("src/aws/services/api_gateway.gleam", 22829). -spec encode_delete_documentation_version_output_struct( delete_documentation_version_output() ) -> gleam@json:json(). encode_delete_documentation_version_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22835). -spec decode_delete_documentation_version_output_struct() -> gleam@dynamic@decode:decoder(delete_documentation_version_output()). decode_delete_documentation_version_output_struct() -> gleam@dynamic@decode:success(delete_documentation_version_output). -file("src/aws/services/api_gateway.gleam", 22841). -spec encode_delete_documentation_version_input( delete_documentation_version_request() ) -> binary(). encode_delete_documentation_version_input(Input) -> gleam@json:to_string( encode_delete_documentation_version_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 22847). -spec decode_delete_documentation_version_input(binary()) -> {ok, delete_documentation_version_request()} | {error, binary()}. decode_delete_documentation_version_input(Body) -> case gleam@json:parse( Body, decode_delete_documentation_version_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22861). -spec decode_delete_documentation_version_output(binary()) -> {ok, delete_documentation_version_output()} | {error, binary()}. decode_delete_documentation_version_output(Body) -> case gleam@json:parse( Body, decode_delete_documentation_version_output_struct() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22870). -spec encode_delete_documentation_version_body( delete_documentation_version_request() ) -> gleam@json:json(). encode_delete_documentation_version_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22876). -spec build_delete_documentation_version_request( delete_documentation_version_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_documentation_version_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/versions/{documentationVersion}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"documentationVersion"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 22913). -spec parse_delete_documentation_version_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_documentation_version_output()} | {error, binary()}. parse_delete_documentation_version_response(_, _, _) -> {ok, delete_documentation_version_output}. -file("src/aws/services/api_gateway.gleam", 22925). -spec encode_delete_domain_name_output_struct(delete_domain_name_output()) -> gleam@json:json(). encode_delete_domain_name_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22931). -spec decode_delete_domain_name_output_struct() -> gleam@dynamic@decode:decoder(delete_domain_name_output()). decode_delete_domain_name_output_struct() -> gleam@dynamic@decode:success(delete_domain_name_output). -file("src/aws/services/api_gateway.gleam", 22937). -spec encode_delete_domain_name_input(delete_domain_name_request()) -> binary(). encode_delete_domain_name_input(Input) -> gleam@json:to_string(encode_delete_domain_name_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 22943). -spec decode_delete_domain_name_input(binary()) -> {ok, delete_domain_name_request()} | {error, binary()}. decode_delete_domain_name_input(Body) -> case gleam@json:parse( Body, decode_delete_domain_name_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22952). -spec decode_delete_domain_name_output(binary()) -> {ok, delete_domain_name_output()} | {error, binary()}. decode_delete_domain_name_output(Body) -> case gleam@json:parse(Body, decode_delete_domain_name_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 22961). -spec encode_delete_domain_name_body(delete_domain_name_request()) -> gleam@json:json(). encode_delete_domain_name_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 22967). -spec build_delete_domain_name_request(delete_domain_name_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_domain_name_request(Input) -> Path = <<"/domainnames/{domainName}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"domainName"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@1 ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@1), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23002). -spec parse_delete_domain_name_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_domain_name_output()} | {error, binary()}. parse_delete_domain_name_response(_, _, _) -> {ok, delete_domain_name_output}. -file("src/aws/services/api_gateway.gleam", 23014). -spec encode_delete_domain_name_access_association_output_struct( delete_domain_name_access_association_output() ) -> gleam@json:json(). encode_delete_domain_name_access_association_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23020). -spec decode_delete_domain_name_access_association_output_struct() -> gleam@dynamic@decode:decoder(delete_domain_name_access_association_output()). decode_delete_domain_name_access_association_output_struct() -> gleam@dynamic@decode:success(delete_domain_name_access_association_output). -file("src/aws/services/api_gateway.gleam", 23026). -spec encode_delete_domain_name_access_association_input( delete_domain_name_access_association_request() ) -> binary(). encode_delete_domain_name_access_association_input(Input) -> gleam@json:to_string( encode_delete_domain_name_access_association_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 23034). -spec decode_delete_domain_name_access_association_input(binary()) -> {ok, delete_domain_name_access_association_request()} | {error, binary()}. decode_delete_domain_name_access_association_input(Body) -> case gleam@json:parse( Body, decode_delete_domain_name_access_association_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23048). -spec decode_delete_domain_name_access_association_output(binary()) -> {ok, delete_domain_name_access_association_output()} | {error, binary()}. decode_delete_domain_name_access_association_output(Body) -> case gleam@json:parse( Body, decode_delete_domain_name_access_association_output_struct() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23062). -spec encode_delete_domain_name_access_association_body( delete_domain_name_access_association_request() ) -> gleam@json:json(). encode_delete_domain_name_access_association_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23068). -spec build_delete_domain_name_access_association_request( delete_domain_name_access_association_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_domain_name_access_association_request(Input) -> Path = <<"/domainnameaccessassociations/{domainNameAccessAssociationArn}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"domainNameAccessAssociationArn"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23100). -spec parse_delete_domain_name_access_association_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_domain_name_access_association_output()} | {error, binary()}. parse_delete_domain_name_access_association_response(_, _, _) -> {ok, delete_domain_name_access_association_output}. -file("src/aws/services/api_gateway.gleam", 23112). -spec encode_delete_gateway_response_output_struct( delete_gateway_response_output() ) -> gleam@json:json(). encode_delete_gateway_response_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23118). -spec decode_delete_gateway_response_output_struct() -> gleam@dynamic@decode:decoder(delete_gateway_response_output()). decode_delete_gateway_response_output_struct() -> gleam@dynamic@decode:success(delete_gateway_response_output). -file("src/aws/services/api_gateway.gleam", 23124). -spec encode_delete_gateway_response_input(delete_gateway_response_request()) -> binary(). encode_delete_gateway_response_input(Input) -> gleam@json:to_string(encode_delete_gateway_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23130). -spec decode_delete_gateway_response_input(binary()) -> {ok, delete_gateway_response_request()} | {error, binary()}. decode_delete_gateway_response_input(Body) -> case gleam@json:parse( Body, decode_delete_gateway_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23141). -spec decode_delete_gateway_response_output(binary()) -> {ok, delete_gateway_response_output()} | {error, binary()}. decode_delete_gateway_response_output(Body) -> case gleam@json:parse(Body, decode_delete_gateway_response_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23150). -spec encode_delete_gateway_response_body(delete_gateway_response_request()) -> gleam@json:json(). encode_delete_gateway_response_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23156). -spec build_delete_gateway_response_request(delete_gateway_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_gateway_response_request(Input) -> Path = <<"/restapis/{restApiId}/gatewayresponses/{responseType}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"responseType"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_gateway_response_type_enum(V) ), false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23197). -spec parse_delete_gateway_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_gateway_response_output()} | {error, binary()}. parse_delete_gateway_response_response(_, _, _) -> {ok, delete_gateway_response_output}. -file("src/aws/services/api_gateway.gleam", 23209). -spec encode_delete_integration_output_struct(delete_integration_output()) -> gleam@json:json(). encode_delete_integration_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23215). -spec decode_delete_integration_output_struct() -> gleam@dynamic@decode:decoder(delete_integration_output()). decode_delete_integration_output_struct() -> gleam@dynamic@decode:success(delete_integration_output). -file("src/aws/services/api_gateway.gleam", 23221). -spec encode_delete_integration_input(delete_integration_request()) -> binary(). encode_delete_integration_input(Input) -> gleam@json:to_string(encode_delete_integration_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23227). -spec decode_delete_integration_input(binary()) -> {ok, delete_integration_request()} | {error, binary()}. decode_delete_integration_input(Body) -> case gleam@json:parse( Body, decode_delete_integration_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23236). -spec decode_delete_integration_output(binary()) -> {ok, delete_integration_output()} | {error, binary()}. decode_delete_integration_output(Body) -> case gleam@json:parse(Body, decode_delete_integration_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23245). -spec encode_delete_integration_body(delete_integration_request()) -> gleam@json:json(). encode_delete_integration_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23251). -spec build_delete_integration_request(delete_integration_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_integration_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"DELETE"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23291). -spec parse_delete_integration_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_integration_output()} | {error, binary()}. parse_delete_integration_response(_, _, _) -> {ok, delete_integration_output}. -file("src/aws/services/api_gateway.gleam", 23303). -spec encode_delete_integration_response_output_struct( delete_integration_response_output() ) -> gleam@json:json(). encode_delete_integration_response_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23309). -spec decode_delete_integration_response_output_struct() -> gleam@dynamic@decode:decoder(delete_integration_response_output()). decode_delete_integration_response_output_struct() -> gleam@dynamic@decode:success(delete_integration_response_output). -file("src/aws/services/api_gateway.gleam", 23315). -spec encode_delete_integration_response_input( delete_integration_response_request() ) -> binary(). encode_delete_integration_response_input(Input) -> gleam@json:to_string( encode_delete_integration_response_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 23321). -spec decode_delete_integration_response_input(binary()) -> {ok, delete_integration_response_request()} | {error, binary()}. decode_delete_integration_response_input(Body) -> case gleam@json:parse( Body, decode_delete_integration_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23332). -spec decode_delete_integration_response_output(binary()) -> {ok, delete_integration_response_output()} | {error, binary()}. decode_delete_integration_response_output(Body) -> case gleam@json:parse( Body, decode_delete_integration_response_output_struct() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23341). -spec encode_delete_integration_response_body( delete_integration_response_request() ) -> gleam@json:json(). encode_delete_integration_response_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23347). -spec build_delete_integration_response_request( delete_integration_response_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_integration_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(5, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"DELETE"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23391). -spec parse_delete_integration_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_integration_response_output()} | {error, binary()}. parse_delete_integration_response_response(_, _, _) -> {ok, delete_integration_response_output}. -file("src/aws/services/api_gateway.gleam", 23403). -spec encode_delete_method_output_struct(delete_method_output()) -> gleam@json:json(). encode_delete_method_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23407). -spec decode_delete_method_output_struct() -> gleam@dynamic@decode:decoder(delete_method_output()). decode_delete_method_output_struct() -> gleam@dynamic@decode:success(delete_method_output). -file("src/aws/services/api_gateway.gleam", 23413). -spec encode_delete_method_input(delete_method_request()) -> binary(). encode_delete_method_input(Input) -> gleam@json:to_string(encode_delete_method_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23417). -spec decode_delete_method_input(binary()) -> {ok, delete_method_request()} | {error, binary()}. decode_delete_method_input(Body) -> case gleam@json:parse(Body, decode_delete_method_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23426). -spec decode_delete_method_output(binary()) -> {ok, delete_method_output()} | {error, binary()}. decode_delete_method_output(Body) -> case gleam@json:parse(Body, decode_delete_method_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23435). -spec encode_delete_method_body(delete_method_request()) -> gleam@json:json(). encode_delete_method_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23439). -spec build_delete_method_request(delete_method_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_method_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"DELETE"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23478). -spec parse_delete_method_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_method_output()} | {error, binary()}. parse_delete_method_response(_, _, _) -> {ok, delete_method_output}. -file("src/aws/services/api_gateway.gleam", 23490). -spec encode_delete_method_response_output_struct( delete_method_response_output() ) -> gleam@json:json(). encode_delete_method_response_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23496). -spec decode_delete_method_response_output_struct() -> gleam@dynamic@decode:decoder(delete_method_response_output()). decode_delete_method_response_output_struct() -> gleam@dynamic@decode:success(delete_method_response_output). -file("src/aws/services/api_gateway.gleam", 23502). -spec encode_delete_method_response_input(delete_method_response_request()) -> binary(). encode_delete_method_response_input(Input) -> gleam@json:to_string(encode_delete_method_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23508). -spec decode_delete_method_response_input(binary()) -> {ok, delete_method_response_request()} | {error, binary()}. decode_delete_method_response_input(Body) -> case gleam@json:parse( Body, decode_delete_method_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23517). -spec decode_delete_method_response_output(binary()) -> {ok, delete_method_response_output()} | {error, binary()}. decode_delete_method_response_output(Body) -> case gleam@json:parse(Body, decode_delete_method_response_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23526). -spec encode_delete_method_response_body(delete_method_response_request()) -> gleam@json:json(). encode_delete_method_response_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23532). -spec build_delete_method_response_request(delete_method_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_method_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(5, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"DELETE"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23576). -spec parse_delete_method_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_method_response_output()} | {error, binary()}. parse_delete_method_response_response(_, _, _) -> {ok, delete_method_response_output}. -file("src/aws/services/api_gateway.gleam", 23588). -spec encode_delete_model_output_struct(delete_model_output()) -> gleam@json:json(). encode_delete_model_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23592). -spec decode_delete_model_output_struct() -> gleam@dynamic@decode:decoder(delete_model_output()). decode_delete_model_output_struct() -> gleam@dynamic@decode:success(delete_model_output). -file("src/aws/services/api_gateway.gleam", 23596). -spec encode_delete_model_input(delete_model_request()) -> binary(). encode_delete_model_input(Input) -> gleam@json:to_string(encode_delete_model_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23600). -spec decode_delete_model_input(binary()) -> {ok, delete_model_request()} | {error, binary()}. decode_delete_model_input(Body) -> case gleam@json:parse(Body, decode_delete_model_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23609). -spec decode_delete_model_output(binary()) -> {ok, delete_model_output()} | {error, binary()}. decode_delete_model_output(Body) -> case gleam@json:parse(Body, decode_delete_model_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23618). -spec encode_delete_model_body(delete_model_request()) -> gleam@json:json(). encode_delete_model_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23622). -spec build_delete_model_request(delete_model_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_model_request(Input) -> Path = <<"/restapis/{restApiId}/models/{modelName}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"modelName"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23657). -spec parse_delete_model_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_model_output()} | {error, binary()}. parse_delete_model_response(_, _, _) -> {ok, delete_model_output}. -file("src/aws/services/api_gateway.gleam", 23669). -spec encode_delete_request_validator_output_struct( delete_request_validator_output() ) -> gleam@json:json(). encode_delete_request_validator_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23675). -spec decode_delete_request_validator_output_struct() -> gleam@dynamic@decode:decoder(delete_request_validator_output()). decode_delete_request_validator_output_struct() -> gleam@dynamic@decode:success(delete_request_validator_output). -file("src/aws/services/api_gateway.gleam", 23681). -spec encode_delete_request_validator_input(delete_request_validator_request()) -> binary(). encode_delete_request_validator_input(Input) -> gleam@json:to_string(encode_delete_request_validator_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23687). -spec decode_delete_request_validator_input(binary()) -> {ok, delete_request_validator_request()} | {error, binary()}. decode_delete_request_validator_input(Body) -> case gleam@json:parse( Body, decode_delete_request_validator_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23698). -spec decode_delete_request_validator_output(binary()) -> {ok, delete_request_validator_output()} | {error, binary()}. decode_delete_request_validator_output(Body) -> case gleam@json:parse(Body, decode_delete_request_validator_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23707). -spec encode_delete_request_validator_body(delete_request_validator_request()) -> gleam@json:json(). encode_delete_request_validator_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23713). -spec build_delete_request_validator_request(delete_request_validator_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_request_validator_request(Input) -> Path = <<"/restapis/{restApiId}/requestvalidators/{requestValidatorId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"requestValidatorId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23749). -spec parse_delete_request_validator_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_request_validator_output()} | {error, binary()}. parse_delete_request_validator_response(_, _, _) -> {ok, delete_request_validator_output}. -file("src/aws/services/api_gateway.gleam", 23761). -spec encode_delete_resource_output_struct(delete_resource_output()) -> gleam@json:json(). encode_delete_resource_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23767). -spec decode_delete_resource_output_struct() -> gleam@dynamic@decode:decoder(delete_resource_output()). decode_delete_resource_output_struct() -> gleam@dynamic@decode:success(delete_resource_output). -file("src/aws/services/api_gateway.gleam", 23773). -spec encode_delete_resource_input(delete_resource_request()) -> binary(). encode_delete_resource_input(Input) -> gleam@json:to_string(encode_delete_resource_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23777). -spec decode_delete_resource_input(binary()) -> {ok, delete_resource_request()} | {error, binary()}. decode_delete_resource_input(Body) -> case gleam@json:parse(Body, decode_delete_resource_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23786). -spec decode_delete_resource_output(binary()) -> {ok, delete_resource_output()} | {error, binary()}. decode_delete_resource_output(Body) -> case gleam@json:parse(Body, decode_delete_resource_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23795). -spec encode_delete_resource_body(delete_resource_request()) -> gleam@json:json(). encode_delete_resource_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23799). -spec build_delete_resource_request(delete_resource_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_resource_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"resourceId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23834). -spec parse_delete_resource_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_resource_output()} | {error, binary()}. parse_delete_resource_response(_, _, _) -> {ok, delete_resource_output}. -file("src/aws/services/api_gateway.gleam", 23846). -spec encode_delete_rest_api_output_struct(delete_rest_api_output()) -> gleam@json:json(). encode_delete_rest_api_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23852). -spec decode_delete_rest_api_output_struct() -> gleam@dynamic@decode:decoder(delete_rest_api_output()). decode_delete_rest_api_output_struct() -> gleam@dynamic@decode:success(delete_rest_api_output). -file("src/aws/services/api_gateway.gleam", 23858). -spec encode_delete_rest_api_input(delete_rest_api_request()) -> binary(). encode_delete_rest_api_input(Input) -> gleam@json:to_string(encode_delete_rest_api_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23862). -spec decode_delete_rest_api_input(binary()) -> {ok, delete_rest_api_request()} | {error, binary()}. decode_delete_rest_api_input(Body) -> case gleam@json:parse(Body, decode_delete_rest_api_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23871). -spec decode_delete_rest_api_output(binary()) -> {ok, delete_rest_api_output()} | {error, binary()}. decode_delete_rest_api_output(Body) -> case gleam@json:parse(Body, decode_delete_rest_api_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23880). -spec encode_delete_rest_api_body(delete_rest_api_request()) -> gleam@json:json(). encode_delete_rest_api_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23884). -spec build_delete_rest_api_request(delete_rest_api_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_rest_api_request(Input) -> Path = <<"/restapis/{restApiId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23915). -spec parse_delete_rest_api_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_rest_api_output()} | {error, binary()}. parse_delete_rest_api_response(_, _, _) -> {ok, delete_rest_api_output}. -file("src/aws/services/api_gateway.gleam", 23927). -spec encode_delete_stage_output_struct(delete_stage_output()) -> gleam@json:json(). encode_delete_stage_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23931). -spec decode_delete_stage_output_struct() -> gleam@dynamic@decode:decoder(delete_stage_output()). decode_delete_stage_output_struct() -> gleam@dynamic@decode:success(delete_stage_output). -file("src/aws/services/api_gateway.gleam", 23935). -spec encode_delete_stage_input(delete_stage_request()) -> binary(). encode_delete_stage_input(Input) -> gleam@json:to_string(encode_delete_stage_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 23939). -spec decode_delete_stage_input(binary()) -> {ok, delete_stage_request()} | {error, binary()}. decode_delete_stage_input(Body) -> case gleam@json:parse(Body, decode_delete_stage_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23948). -spec decode_delete_stage_output(binary()) -> {ok, delete_stage_output()} | {error, binary()}. decode_delete_stage_output(Body) -> case gleam@json:parse(Body, decode_delete_stage_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 23957). -spec encode_delete_stage_body(delete_stage_request()) -> gleam@json:json(). encode_delete_stage_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 23961). -spec build_delete_stage_request(delete_stage_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_stage_request(Input) -> Path = <<"/restapis/{restApiId}/stages/{stageName}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"stageName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 23996). -spec parse_delete_stage_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_stage_output()} | {error, binary()}. parse_delete_stage_response(_, _, _) -> {ok, delete_stage_output}. -file("src/aws/services/api_gateway.gleam", 24008). -spec encode_delete_usage_plan_output_struct(delete_usage_plan_output()) -> gleam@json:json(). encode_delete_usage_plan_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24014). -spec decode_delete_usage_plan_output_struct() -> gleam@dynamic@decode:decoder(delete_usage_plan_output()). decode_delete_usage_plan_output_struct() -> gleam@dynamic@decode:success(delete_usage_plan_output). -file("src/aws/services/api_gateway.gleam", 24020). -spec encode_delete_usage_plan_input(delete_usage_plan_request()) -> binary(). encode_delete_usage_plan_input(Input) -> gleam@json:to_string(encode_delete_usage_plan_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24024). -spec decode_delete_usage_plan_input(binary()) -> {ok, delete_usage_plan_request()} | {error, binary()}. decode_delete_usage_plan_input(Body) -> case gleam@json:parse( Body, decode_delete_usage_plan_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24033). -spec decode_delete_usage_plan_output(binary()) -> {ok, delete_usage_plan_output()} | {error, binary()}. decode_delete_usage_plan_output(Body) -> case gleam@json:parse(Body, decode_delete_usage_plan_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24042). -spec encode_delete_usage_plan_body(delete_usage_plan_request()) -> gleam@json:json(). encode_delete_usage_plan_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24048). -spec build_delete_usage_plan_request(delete_usage_plan_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_usage_plan_request(Input) -> Path = <<"/usageplans/{usagePlanId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"usagePlanId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24079). -spec parse_delete_usage_plan_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_usage_plan_output()} | {error, binary()}. parse_delete_usage_plan_response(_, _, _) -> {ok, delete_usage_plan_output}. -file("src/aws/services/api_gateway.gleam", 24091). -spec encode_delete_usage_plan_key_output_struct(delete_usage_plan_key_output()) -> gleam@json:json(). encode_delete_usage_plan_key_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24097). -spec decode_delete_usage_plan_key_output_struct() -> gleam@dynamic@decode:decoder(delete_usage_plan_key_output()). decode_delete_usage_plan_key_output_struct() -> gleam@dynamic@decode:success(delete_usage_plan_key_output). -file("src/aws/services/api_gateway.gleam", 24103). -spec encode_delete_usage_plan_key_input(delete_usage_plan_key_request()) -> binary(). encode_delete_usage_plan_key_input(Input) -> gleam@json:to_string(encode_delete_usage_plan_key_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24109). -spec decode_delete_usage_plan_key_input(binary()) -> {ok, delete_usage_plan_key_request()} | {error, binary()}. decode_delete_usage_plan_key_input(Body) -> case gleam@json:parse( Body, decode_delete_usage_plan_key_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24118). -spec decode_delete_usage_plan_key_output(binary()) -> {ok, delete_usage_plan_key_output()} | {error, binary()}. decode_delete_usage_plan_key_output(Body) -> case gleam@json:parse(Body, decode_delete_usage_plan_key_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24127). -spec encode_delete_usage_plan_key_body(delete_usage_plan_key_request()) -> gleam@json:json(). encode_delete_usage_plan_key_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24133). -spec build_delete_usage_plan_key_request(delete_usage_plan_key_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_usage_plan_key_request(Input) -> Path = <<"/usageplans/{usagePlanId}/keys/{keyId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"keyId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"usagePlanId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24168). -spec parse_delete_usage_plan_key_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_usage_plan_key_output()} | {error, binary()}. parse_delete_usage_plan_key_response(_, _, _) -> {ok, delete_usage_plan_key_output}. -file("src/aws/services/api_gateway.gleam", 24180). -spec encode_delete_vpc_link_output_struct(delete_vpc_link_output()) -> gleam@json:json(). encode_delete_vpc_link_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24186). -spec decode_delete_vpc_link_output_struct() -> gleam@dynamic@decode:decoder(delete_vpc_link_output()). decode_delete_vpc_link_output_struct() -> gleam@dynamic@decode:success(delete_vpc_link_output). -file("src/aws/services/api_gateway.gleam", 24192). -spec encode_delete_vpc_link_input(delete_vpc_link_request()) -> binary(). encode_delete_vpc_link_input(Input) -> gleam@json:to_string(encode_delete_vpc_link_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24196). -spec decode_delete_vpc_link_input(binary()) -> {ok, delete_vpc_link_request()} | {error, binary()}. decode_delete_vpc_link_input(Body) -> case gleam@json:parse(Body, decode_delete_vpc_link_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24205). -spec decode_delete_vpc_link_output(binary()) -> {ok, delete_vpc_link_output()} | {error, binary()}. decode_delete_vpc_link_output(Body) -> case gleam@json:parse(Body, decode_delete_vpc_link_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24214). -spec encode_delete_vpc_link_body(delete_vpc_link_request()) -> gleam@json:json(). encode_delete_vpc_link_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24218). -spec build_delete_vpc_link_request(delete_vpc_link_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_delete_vpc_link_request(Input) -> Path = <<"/vpclinks/{vpcLinkId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"vpcLinkId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24249). -spec parse_delete_vpc_link_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, delete_vpc_link_output()} | {error, binary()}. parse_delete_vpc_link_response(_, _, _) -> {ok, delete_vpc_link_output}. -file("src/aws/services/api_gateway.gleam", 24261). -spec encode_flush_stage_authorizers_cache_output_struct( flush_stage_authorizers_cache_output() ) -> gleam@json:json(). encode_flush_stage_authorizers_cache_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24267). -spec decode_flush_stage_authorizers_cache_output_struct() -> gleam@dynamic@decode:decoder(flush_stage_authorizers_cache_output()). decode_flush_stage_authorizers_cache_output_struct() -> gleam@dynamic@decode:success(flush_stage_authorizers_cache_output). -file("src/aws/services/api_gateway.gleam", 24273). -spec encode_flush_stage_authorizers_cache_input( flush_stage_authorizers_cache_request() ) -> binary(). encode_flush_stage_authorizers_cache_input(Input) -> gleam@json:to_string( encode_flush_stage_authorizers_cache_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 24279). -spec decode_flush_stage_authorizers_cache_input(binary()) -> {ok, flush_stage_authorizers_cache_request()} | {error, binary()}. decode_flush_stage_authorizers_cache_input(Body) -> case gleam@json:parse( Body, decode_flush_stage_authorizers_cache_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24293). -spec decode_flush_stage_authorizers_cache_output(binary()) -> {ok, flush_stage_authorizers_cache_output()} | {error, binary()}. decode_flush_stage_authorizers_cache_output(Body) -> case gleam@json:parse( Body, decode_flush_stage_authorizers_cache_output_struct() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24302). -spec encode_flush_stage_authorizers_cache_body( flush_stage_authorizers_cache_request() ) -> gleam@json:json(). encode_flush_stage_authorizers_cache_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24308). -spec build_flush_stage_authorizers_cache_request( flush_stage_authorizers_cache_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_flush_stage_authorizers_cache_request(Input) -> Path = <<"/restapis/{restApiId}/stages/{stageName}/cache/authorizers"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"stageName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24343). -spec parse_flush_stage_authorizers_cache_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, flush_stage_authorizers_cache_output()} | {error, binary()}. parse_flush_stage_authorizers_cache_response(_, _, _) -> {ok, flush_stage_authorizers_cache_output}. -file("src/aws/services/api_gateway.gleam", 24355). -spec encode_flush_stage_cache_output_struct(flush_stage_cache_output()) -> gleam@json:json(). encode_flush_stage_cache_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24361). -spec decode_flush_stage_cache_output_struct() -> gleam@dynamic@decode:decoder(flush_stage_cache_output()). decode_flush_stage_cache_output_struct() -> gleam@dynamic@decode:success(flush_stage_cache_output). -file("src/aws/services/api_gateway.gleam", 24367). -spec encode_flush_stage_cache_input(flush_stage_cache_request()) -> binary(). encode_flush_stage_cache_input(Input) -> gleam@json:to_string(encode_flush_stage_cache_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24371). -spec decode_flush_stage_cache_input(binary()) -> {ok, flush_stage_cache_request()} | {error, binary()}. decode_flush_stage_cache_input(Body) -> case gleam@json:parse( Body, decode_flush_stage_cache_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24380). -spec decode_flush_stage_cache_output(binary()) -> {ok, flush_stage_cache_output()} | {error, binary()}. decode_flush_stage_cache_output(Body) -> case gleam@json:parse(Body, decode_flush_stage_cache_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24389). -spec encode_flush_stage_cache_body(flush_stage_cache_request()) -> gleam@json:json(). encode_flush_stage_cache_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24395). -spec build_flush_stage_cache_request(flush_stage_cache_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_flush_stage_cache_request(Input) -> Path = <<"/restapis/{restApiId}/stages/{stageName}/cache/data"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"stageName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"DELETE"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24430). -spec parse_flush_stage_cache_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, flush_stage_cache_output()} | {error, binary()}. parse_flush_stage_cache_response(_, _, _) -> {ok, flush_stage_cache_output}. -file("src/aws/services/api_gateway.gleam", 24438). -spec encode_generate_client_certificate_input( generate_client_certificate_request() ) -> binary(). encode_generate_client_certificate_input(Input) -> gleam@json:to_string( encode_generate_client_certificate_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 24444). -spec decode_generate_client_certificate_input(binary()) -> {ok, generate_client_certificate_request()} | {error, binary()}. decode_generate_client_certificate_input(Body) -> case gleam@json:parse( Body, decode_generate_client_certificate_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24455). -spec decode_generate_client_certificate_output(binary()) -> {ok, client_certificate()} | {error, binary()}. decode_generate_client_certificate_output(Body) -> case gleam@json:parse(Body, decode_client_certificate_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24464). -spec encode_generate_client_certificate_body( generate_client_certificate_request() ) -> gleam@json:json(). encode_generate_client_certificate_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"description"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 24490). -spec build_generate_client_certificate_request( generate_client_certificate_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_generate_client_certificate_request(Input) -> Path = <<"/clientcertificates"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_generate_client_certificate_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24518). -spec parse_generate_client_certificate_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, client_certificate()} | {error, binary()}. parse_generate_client_certificate_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_generate_client_certificate_output(<<"{}"/utf8>>); _ -> decode_generate_client_certificate_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24533). -spec encode_get_account_input(get_account_request()) -> binary(). encode_get_account_input(Input) -> gleam@json:to_string(encode_get_account_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24537). -spec decode_get_account_input(binary()) -> {ok, get_account_request()} | {error, binary()}. decode_get_account_input(Body) -> case gleam@json:parse(Body, decode_get_account_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24546). -spec decode_get_account_output(binary()) -> {ok, account()} | {error, binary()}. decode_get_account_output(Body) -> case gleam@json:parse(Body, decode_account_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24553). -spec encode_get_account_body(get_account_request()) -> gleam@json:json(). encode_get_account_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24557). -spec build_get_account_request(get_account_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_account_request(_) -> Path = <<"/account"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24584). -spec parse_get_account_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, account()} | {error, binary()}. parse_get_account_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_account_output(<<"{}"/utf8>>); _ -> decode_get_account_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24599). -spec encode_get_api_key_input(get_api_key_request()) -> binary(). encode_get_api_key_input(Input) -> gleam@json:to_string(encode_get_api_key_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24603). -spec decode_get_api_key_input(binary()) -> {ok, get_api_key_request()} | {error, binary()}. decode_get_api_key_input(Body) -> case gleam@json:parse(Body, decode_get_api_key_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24612). -spec decode_get_api_key_output(binary()) -> {ok, api_key()} | {error, binary()}. decode_get_api_key_output(Body) -> case gleam@json:parse(Body, decode_api_key_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24619). -spec encode_get_api_key_body(get_api_key_request()) -> gleam@json:json(). encode_get_api_key_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24623). -spec build_get_api_key_request(get_api_key_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_api_key_request(Input) -> Path = <<"/apikeys/{apiKey}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"apiKey"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"includeValue"/utf8>>, aws@internal@codec@rest:bool_to_query(V@1) ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@1), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24659). -spec parse_get_api_key_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, api_key()} | {error, binary()}. parse_get_api_key_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_api_key_output(<<"{}"/utf8>>); _ -> decode_get_api_key_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24674). -spec encode_get_api_keys_input(get_api_keys_request()) -> binary(). encode_get_api_keys_input(Input) -> gleam@json:to_string(encode_get_api_keys_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24678). -spec decode_get_api_keys_input(binary()) -> {ok, get_api_keys_request()} | {error, binary()}. decode_get_api_keys_input(Body) -> case gleam@json:parse(Body, decode_get_api_keys_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24687). -spec decode_get_api_keys_output(binary()) -> {ok, api_keys()} | {error, binary()}. decode_get_api_keys_output(Body) -> case gleam@json:parse(Body, decode_api_keys_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24694). -spec encode_get_api_keys_body(get_api_keys_request()) -> gleam@json:json(). encode_get_api_keys_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24698). -spec build_get_api_keys_request(get_api_keys_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_api_keys_request(Input) -> Path = <<"/apikeys"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query(Query, <<"customerId"/utf8>>, V); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query@1, <<"includeValues"/utf8>>, aws@internal@codec@rest:bool_to_query(V@1) ); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@2, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@2) ); none -> Query@2 end, Query@4 = case erlang:element(5, Input) of {some, V@3} -> aws@internal@codec@rest:add_query(Query@3, <<"name"/utf8>>, V@3); none -> Query@3 end, Query@5 = case erlang:element(6, Input) of {some, V@4} -> aws@internal@codec@rest:add_query(Query@4, <<"position"/utf8>>, V@4); none -> Query@4 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@5), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24746). -spec parse_get_api_keys_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, api_keys()} | {error, binary()}. parse_get_api_keys_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_api_keys_output(<<"{}"/utf8>>); _ -> decode_get_api_keys_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24761). -spec encode_get_authorizer_input(get_authorizer_request()) -> binary(). encode_get_authorizer_input(Input) -> gleam@json:to_string(encode_get_authorizer_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24765). -spec decode_get_authorizer_input(binary()) -> {ok, get_authorizer_request()} | {error, binary()}. decode_get_authorizer_input(Body) -> case gleam@json:parse(Body, decode_get_authorizer_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24774). -spec decode_get_authorizer_output(binary()) -> {ok, authorizer()} | {error, binary()}. decode_get_authorizer_output(Body) -> case gleam@json:parse(Body, decode_authorizer_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24783). -spec encode_get_authorizer_body(get_authorizer_request()) -> gleam@json:json(). encode_get_authorizer_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24787). -spec build_get_authorizer_request(get_authorizer_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_authorizer_request(Input) -> Path = <<"/restapis/{restApiId}/authorizers/{authorizerId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"authorizerId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24822). -spec parse_get_authorizer_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, authorizer()} | {error, binary()}. parse_get_authorizer_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_authorizer_output(<<"{}"/utf8>>); _ -> decode_get_authorizer_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24837). -spec encode_get_authorizers_input(get_authorizers_request()) -> binary(). encode_get_authorizers_input(Input) -> gleam@json:to_string(encode_get_authorizers_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24841). -spec decode_get_authorizers_input(binary()) -> {ok, get_authorizers_request()} | {error, binary()}. decode_get_authorizers_input(Body) -> case gleam@json:parse(Body, decode_get_authorizers_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24850). -spec decode_get_authorizers_output(binary()) -> {ok, authorizers()} | {error, binary()}. decode_get_authorizers_output(Body) -> case gleam@json:parse(Body, decode_authorizers_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24859). -spec encode_get_authorizers_body(get_authorizers_request()) -> gleam@json:json(). encode_get_authorizers_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24863). -spec build_get_authorizers_request(get_authorizers_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_authorizers_request(Input) -> Path = <<"/restapis/{restApiId}/authorizers"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@2); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24902). -spec parse_get_authorizers_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, authorizers()} | {error, binary()}. parse_get_authorizers_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_authorizers_output(<<"{}"/utf8>>); _ -> decode_get_authorizers_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24917). -spec encode_get_base_path_mapping_input(get_base_path_mapping_request()) -> binary(). encode_get_base_path_mapping_input(Input) -> gleam@json:to_string(encode_get_base_path_mapping_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 24923). -spec decode_get_base_path_mapping_input(binary()) -> {ok, get_base_path_mapping_request()} | {error, binary()}. decode_get_base_path_mapping_input(Body) -> case gleam@json:parse( Body, decode_get_base_path_mapping_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24932). -spec decode_get_base_path_mapping_output(binary()) -> {ok, base_path_mapping()} | {error, binary()}. decode_get_base_path_mapping_output(Body) -> case gleam@json:parse(Body, decode_base_path_mapping_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 24941). -spec encode_get_base_path_mapping_body(get_base_path_mapping_request()) -> gleam@json:json(). encode_get_base_path_mapping_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 24947). -spec build_get_base_path_mapping_request(get_base_path_mapping_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_base_path_mapping_request(Input) -> Path = <<"/domainnames/{domainName}/basepathmappings/{basePath}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"basePath"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"domainName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Query@1 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@2 ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query@1), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 24986). -spec parse_get_base_path_mapping_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, base_path_mapping()} | {error, binary()}. parse_get_base_path_mapping_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_base_path_mapping_output(<<"{}"/utf8>>); _ -> decode_get_base_path_mapping_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25001). -spec encode_get_base_path_mappings_input(get_base_path_mappings_request()) -> binary(). encode_get_base_path_mappings_input(Input) -> gleam@json:to_string(encode_get_base_path_mappings_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25007). -spec decode_get_base_path_mappings_input(binary()) -> {ok, get_base_path_mappings_request()} | {error, binary()}. decode_get_base_path_mappings_input(Body) -> case gleam@json:parse( Body, decode_get_base_path_mappings_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25016). -spec decode_get_base_path_mappings_output(binary()) -> {ok, base_path_mappings()} | {error, binary()}. decode_get_base_path_mappings_output(Body) -> case gleam@json:parse(Body, decode_base_path_mappings_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25025). -spec encode_get_base_path_mappings_body(get_base_path_mappings_request()) -> gleam@json:json(). encode_get_base_path_mappings_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25031). -spec build_get_base_path_mappings_request(get_base_path_mappings_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_base_path_mappings_request(Input) -> Path = <<"/domainnames/{domainName}/basepathmappings"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"domainName"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@1 ); none -> Query end, Query@2 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@1, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@2) ); none -> Query@1 end, Query@3 = case erlang:element(5, Input) of {some, V@3} -> aws@internal@codec@rest:add_query(Query@2, <<"position"/utf8>>, V@3); none -> Query@2 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@3), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25074). -spec parse_get_base_path_mappings_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, base_path_mappings()} | {error, binary()}. parse_get_base_path_mappings_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_base_path_mappings_output(<<"{}"/utf8>>); _ -> decode_get_base_path_mappings_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25089). -spec encode_get_client_certificate_input(get_client_certificate_request()) -> binary(). encode_get_client_certificate_input(Input) -> gleam@json:to_string(encode_get_client_certificate_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25095). -spec decode_get_client_certificate_input(binary()) -> {ok, get_client_certificate_request()} | {error, binary()}. decode_get_client_certificate_input(Body) -> case gleam@json:parse( Body, decode_get_client_certificate_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25104). -spec decode_get_client_certificate_output(binary()) -> {ok, client_certificate()} | {error, binary()}. decode_get_client_certificate_output(Body) -> case gleam@json:parse(Body, decode_client_certificate_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25113). -spec encode_get_client_certificate_body(get_client_certificate_request()) -> gleam@json:json(). encode_get_client_certificate_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25119). -spec build_get_client_certificate_request(get_client_certificate_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_client_certificate_request(Input) -> Path = <<"/clientcertificates/{clientCertificateId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"clientCertificateId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25151). -spec parse_get_client_certificate_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, client_certificate()} | {error, binary()}. parse_get_client_certificate_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_client_certificate_output(<<"{}"/utf8>>); _ -> decode_get_client_certificate_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25166). -spec encode_get_client_certificates_input(get_client_certificates_request()) -> binary(). encode_get_client_certificates_input(Input) -> gleam@json:to_string(encode_get_client_certificates_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25172). -spec decode_get_client_certificates_input(binary()) -> {ok, get_client_certificates_request()} | {error, binary()}. decode_get_client_certificates_input(Body) -> case gleam@json:parse( Body, decode_get_client_certificates_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25183). -spec decode_get_client_certificates_output(binary()) -> {ok, client_certificates()} | {error, binary()}. decode_get_client_certificates_output(Body) -> case gleam@json:parse(Body, decode_client_certificates_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25192). -spec encode_get_client_certificates_body(get_client_certificates_request()) -> gleam@json:json(). encode_get_client_certificates_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25198). -spec build_get_client_certificates_request(get_client_certificates_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_client_certificates_request(Input) -> Path = <<"/clientcertificates"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@1); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@2), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25233). -spec parse_get_client_certificates_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, client_certificates()} | {error, binary()}. parse_get_client_certificates_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_client_certificates_output(<<"{}"/utf8>>); _ -> decode_get_client_certificates_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25248). -spec encode_get_deployment_input(get_deployment_request()) -> binary(). encode_get_deployment_input(Input) -> gleam@json:to_string(encode_get_deployment_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25252). -spec decode_get_deployment_input(binary()) -> {ok, get_deployment_request()} | {error, binary()}. decode_get_deployment_input(Body) -> case gleam@json:parse(Body, decode_get_deployment_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25261). -spec decode_get_deployment_output(binary()) -> {ok, deployment()} | {error, binary()}. decode_get_deployment_output(Body) -> case gleam@json:parse(Body, decode_deployment_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25270). -spec encode_get_deployment_body(get_deployment_request()) -> gleam@json:json(). encode_get_deployment_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25274). -spec build_get_deployment_request(get_deployment_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_deployment_request(Input) -> Path = <<"/restapis/{restApiId}/deployments/{deploymentId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"deploymentId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, Xs} -> gleam@list:fold( Xs, Query, fun(Q, Item) -> begin V@2 = Item, aws@internal@codec@rest:add_query( Q, <<"embed"/utf8>>, V@2 ) end end ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query@1), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25319). -spec parse_get_deployment_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, deployment()} | {error, binary()}. parse_get_deployment_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_deployment_output(<<"{}"/utf8>>); _ -> decode_get_deployment_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25334). -spec encode_get_deployments_input(get_deployments_request()) -> binary(). encode_get_deployments_input(Input) -> gleam@json:to_string(encode_get_deployments_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25338). -spec decode_get_deployments_input(binary()) -> {ok, get_deployments_request()} | {error, binary()}. decode_get_deployments_input(Body) -> case gleam@json:parse(Body, decode_get_deployments_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25347). -spec decode_get_deployments_output(binary()) -> {ok, deployments()} | {error, binary()}. decode_get_deployments_output(Body) -> case gleam@json:parse(Body, decode_deployments_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25356). -spec encode_get_deployments_body(get_deployments_request()) -> gleam@json:json(). encode_get_deployments_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25360). -spec build_get_deployments_request(get_deployments_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_deployments_request(Input) -> Path = <<"/restapis/{restApiId}/deployments"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@2); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25399). -spec parse_get_deployments_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, deployments()} | {error, binary()}. parse_get_deployments_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_deployments_output(<<"{}"/utf8>>); _ -> decode_get_deployments_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25414). -spec encode_get_documentation_part_input(get_documentation_part_request()) -> binary(). encode_get_documentation_part_input(Input) -> gleam@json:to_string(encode_get_documentation_part_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25420). -spec decode_get_documentation_part_input(binary()) -> {ok, get_documentation_part_request()} | {error, binary()}. decode_get_documentation_part_input(Body) -> case gleam@json:parse( Body, decode_get_documentation_part_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25429). -spec decode_get_documentation_part_output(binary()) -> {ok, documentation_part()} | {error, binary()}. decode_get_documentation_part_output(Body) -> case gleam@json:parse(Body, decode_documentation_part_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25438). -spec encode_get_documentation_part_body(get_documentation_part_request()) -> gleam@json:json(). encode_get_documentation_part_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25444). -spec build_get_documentation_part_request(get_documentation_part_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_documentation_part_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/parts/{documentationPartId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"documentationPartId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25480). -spec parse_get_documentation_part_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_part()} | {error, binary()}. parse_get_documentation_part_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_documentation_part_output(<<"{}"/utf8>>); _ -> decode_get_documentation_part_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25495). -spec encode_get_documentation_parts_input(get_documentation_parts_request()) -> binary(). encode_get_documentation_parts_input(Input) -> gleam@json:to_string(encode_get_documentation_parts_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25501). -spec decode_get_documentation_parts_input(binary()) -> {ok, get_documentation_parts_request()} | {error, binary()}. decode_get_documentation_parts_input(Body) -> case gleam@json:parse( Body, decode_get_documentation_parts_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25512). -spec decode_get_documentation_parts_output(binary()) -> {ok, documentation_parts()} | {error, binary()}. decode_get_documentation_parts_output(Body) -> case gleam@json:parse(Body, decode_documentation_parts_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25521). -spec encode_get_documentation_parts_body(get_documentation_parts_request()) -> gleam@json:json(). encode_get_documentation_parts_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25527). -spec build_get_documentation_parts_request(get_documentation_parts_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_documentation_parts_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/parts"/utf8>>, Path@1 = case erlang:element(7, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@1, <<"locationStatus"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_location_status_type_enum(V@2) ) ); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@3} -> aws@internal@codec@rest:add_query(Query@2, <<"name"/utf8>>, V@3); none -> Query@2 end, Query@4 = case erlang:element(5, Input) of {some, V@4} -> aws@internal@codec@rest:add_query(Query@3, <<"path"/utf8>>, V@4); none -> Query@3 end, Query@5 = case erlang:element(6, Input) of {some, V@5} -> aws@internal@codec@rest:add_query(Query@4, <<"position"/utf8>>, V@5); none -> Query@4 end, Query@6 = case erlang:element(8, Input) of {some, V@6} -> aws@internal@codec@rest:add_query( Query@5, <<"type"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_documentation_part_type_enum(V@6) ) ); none -> Query@5 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@6), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25592). -spec parse_get_documentation_parts_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_parts()} | {error, binary()}. parse_get_documentation_parts_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_documentation_parts_output(<<"{}"/utf8>>); _ -> decode_get_documentation_parts_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25607). -spec encode_get_documentation_version_input( get_documentation_version_request() ) -> binary(). encode_get_documentation_version_input(Input) -> gleam@json:to_string(encode_get_documentation_version_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25613). -spec decode_get_documentation_version_input(binary()) -> {ok, get_documentation_version_request()} | {error, binary()}. decode_get_documentation_version_input(Body) -> case gleam@json:parse( Body, decode_get_documentation_version_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25624). -spec decode_get_documentation_version_output(binary()) -> {ok, documentation_version()} | {error, binary()}. decode_get_documentation_version_output(Body) -> case gleam@json:parse(Body, decode_documentation_version_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25633). -spec encode_get_documentation_version_body(get_documentation_version_request()) -> gleam@json:json(). encode_get_documentation_version_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25639). -spec build_get_documentation_version_request( get_documentation_version_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_documentation_version_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/versions/{documentationVersion}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"documentationVersion"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25676). -spec parse_get_documentation_version_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_version()} | {error, binary()}. parse_get_documentation_version_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_documentation_version_output(<<"{}"/utf8>>); _ -> decode_get_documentation_version_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25691). -spec encode_get_documentation_versions_input( get_documentation_versions_request() ) -> binary(). encode_get_documentation_versions_input(Input) -> gleam@json:to_string( encode_get_documentation_versions_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 25697). -spec decode_get_documentation_versions_input(binary()) -> {ok, get_documentation_versions_request()} | {error, binary()}. decode_get_documentation_versions_input(Body) -> case gleam@json:parse( Body, decode_get_documentation_versions_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25708). -spec decode_get_documentation_versions_output(binary()) -> {ok, documentation_versions()} | {error, binary()}. decode_get_documentation_versions_output(Body) -> case gleam@json:parse(Body, decode_documentation_versions_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25717). -spec encode_get_documentation_versions_body( get_documentation_versions_request() ) -> gleam@json:json(). encode_get_documentation_versions_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25723). -spec build_get_documentation_versions_request( get_documentation_versions_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_documentation_versions_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/versions"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@2); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25762). -spec parse_get_documentation_versions_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_versions()} | {error, binary()}. parse_get_documentation_versions_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_documentation_versions_output(<<"{}"/utf8>>); _ -> decode_get_documentation_versions_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25777). -spec encode_get_domain_name_input(get_domain_name_request()) -> binary(). encode_get_domain_name_input(Input) -> gleam@json:to_string(encode_get_domain_name_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25781). -spec decode_get_domain_name_input(binary()) -> {ok, get_domain_name_request()} | {error, binary()}. decode_get_domain_name_input(Body) -> case gleam@json:parse(Body, decode_get_domain_name_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25790). -spec decode_get_domain_name_output(binary()) -> {ok, domain_name()} | {error, binary()}. decode_get_domain_name_output(Body) -> case gleam@json:parse(Body, decode_domain_name_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25799). -spec encode_get_domain_name_body(get_domain_name_request()) -> gleam@json:json(). encode_get_domain_name_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25803). -spec build_get_domain_name_request(get_domain_name_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_domain_name_request(Input) -> Path = <<"/domainnames/{domainName}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"domainName"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@1 ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@1), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25838). -spec parse_get_domain_name_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, domain_name()} | {error, binary()}. parse_get_domain_name_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_domain_name_output(<<"{}"/utf8>>); _ -> decode_get_domain_name_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25853). -spec encode_get_domain_name_access_associations_input( get_domain_name_access_associations_request() ) -> binary(). encode_get_domain_name_access_associations_input(Input) -> gleam@json:to_string( encode_get_domain_name_access_associations_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 25861). -spec decode_get_domain_name_access_associations_input(binary()) -> {ok, get_domain_name_access_associations_request()} | {error, binary()}. decode_get_domain_name_access_associations_input(Body) -> case gleam@json:parse( Body, decode_get_domain_name_access_associations_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25875). -spec decode_get_domain_name_access_associations_output(binary()) -> {ok, domain_name_access_associations()} | {error, binary()}. decode_get_domain_name_access_associations_output(Body) -> case gleam@json:parse(Body, decode_domain_name_access_associations_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25884). -spec encode_get_domain_name_access_associations_body( get_domain_name_access_associations_request() ) -> gleam@json:json(). encode_get_domain_name_access_associations_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25890). -spec build_get_domain_name_access_associations_request( get_domain_name_access_associations_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_domain_name_access_associations_request(Input) -> Path = <<"/domainnameaccessassociations"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@1); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@2, <<"resourceOwner"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_resource_owner_enum(V@2) ) ); none -> Query@2 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@3), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 25934). -spec parse_get_domain_name_access_associations_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, domain_name_access_associations()} | {error, binary()}. parse_get_domain_name_access_associations_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_domain_name_access_associations_output( <<"{}"/utf8>> ); _ -> decode_get_domain_name_access_associations_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25949). -spec encode_get_domain_names_input(get_domain_names_request()) -> binary(). encode_get_domain_names_input(Input) -> gleam@json:to_string(encode_get_domain_names_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 25953). -spec decode_get_domain_names_input(binary()) -> {ok, get_domain_names_request()} | {error, binary()}. decode_get_domain_names_input(Body) -> case gleam@json:parse(Body, decode_get_domain_names_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25962). -spec decode_get_domain_names_output(binary()) -> {ok, domain_names()} | {error, binary()}. decode_get_domain_names_output(Body) -> case gleam@json:parse(Body, decode_domain_names_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 25971). -spec encode_get_domain_names_body(get_domain_names_request()) -> gleam@json:json(). encode_get_domain_names_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 25977). -spec build_get_domain_names_request(get_domain_names_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_domain_names_request(Input) -> Path = <<"/domainnames"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@1); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@2, <<"resourceOwner"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_resource_owner_enum(V@2) ) ); none -> Query@2 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@3), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26021). -spec parse_get_domain_names_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, domain_names()} | {error, binary()}. parse_get_domain_names_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_domain_names_output(<<"{}"/utf8>>); _ -> decode_get_domain_names_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26036). -spec encode_get_export_input(get_export_request()) -> binary(). encode_get_export_input(Input) -> gleam@json:to_string(encode_get_export_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26040). -spec decode_get_export_input(binary()) -> {ok, get_export_request()} | {error, binary()}. decode_get_export_input(Body) -> case gleam@json:parse(Body, decode_get_export_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26049). -spec decode_get_export_output(binary()) -> {ok, export_response()} | {error, binary()}. decode_get_export_output(Body) -> case gleam@json:parse(Body, decode_export_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26058). -spec encode_get_export_body(get_export_request()) -> gleam@json:json(). encode_get_export_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26062). -spec build_get_export_request(get_export_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_export_request(Input) -> Path = <<"/restapis/{restApiId}/stages/{stageName}/exports/{exportType}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"exportType"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(5, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(6, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"stageName"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Query@1 = case erlang:element(4, Input) of {some, M} -> aws@internal@codec@rest:add_query_params(Query, M); none -> Query end, Headers = maps:new(), Headers@1 = case erlang:element(2, Input) of {some, V@3} -> aws@internal@codec@rest:maybe_set_header( Headers, <<"Accept"/utf8>>, V@3 ); none -> Headers end, Body = <<>>, Content_type = <<""/utf8>>, Headers@2 = case {Content_type, gleam@dict:has_key(Headers@1, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers@1; {_, true} -> Headers@1; {_, false} -> gleam@dict:insert(Headers@1, <<"Content-Type"/utf8>>, Content_type) end, Headers@3 = case Content_type of <<""/utf8>> -> Headers@2; _ -> gleam@dict:insert( Headers@2, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@4 = aws@internal@codec@rest:set_default_header( Headers@3, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query@1), {<<"GET"/utf8>>, Path@4, Headers@4, Body}. -file("src/aws/services/api_gateway.gleam", 26109). -spec parse_get_export_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, export_response()} | {error, binary()}. parse_get_export_response(_, Headers, Body) -> Payload = {some, Body}, {ok, {export_response, Payload, aws@internal@codec@rest:string_header( Headers, <<"Content-Disposition"/utf8>> ), aws@internal@codec@rest:string_header( Headers, <<"Content-Type"/utf8>> )}}. -file("src/aws/services/api_gateway.gleam", 26122). -spec encode_get_gateway_response_input(get_gateway_response_request()) -> binary(). encode_get_gateway_response_input(Input) -> gleam@json:to_string(encode_get_gateway_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26128). -spec decode_get_gateway_response_input(binary()) -> {ok, get_gateway_response_request()} | {error, binary()}. decode_get_gateway_response_input(Body) -> case gleam@json:parse( Body, decode_get_gateway_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26137). -spec decode_get_gateway_response_output(binary()) -> {ok, gateway_response()} | {error, binary()}. decode_get_gateway_response_output(Body) -> case gleam@json:parse(Body, decode_gateway_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26146). -spec encode_get_gateway_response_body(get_gateway_response_request()) -> gleam@json:json(). encode_get_gateway_response_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26152). -spec build_get_gateway_response_request(get_gateway_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_gateway_response_request(Input) -> Path = <<"/restapis/{restApiId}/gatewayresponses/{responseType}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"responseType"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_gateway_response_type_enum(V) ), false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26193). -spec parse_get_gateway_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, gateway_response()} | {error, binary()}. parse_get_gateway_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_gateway_response_output(<<"{}"/utf8>>); _ -> decode_get_gateway_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26208). -spec encode_get_gateway_responses_input(get_gateway_responses_request()) -> binary(). encode_get_gateway_responses_input(Input) -> gleam@json:to_string(encode_get_gateway_responses_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26214). -spec decode_get_gateway_responses_input(binary()) -> {ok, get_gateway_responses_request()} | {error, binary()}. decode_get_gateway_responses_input(Body) -> case gleam@json:parse( Body, decode_get_gateway_responses_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26223). -spec decode_get_gateway_responses_output(binary()) -> {ok, gateway_responses()} | {error, binary()}. decode_get_gateway_responses_output(Body) -> case gleam@json:parse(Body, decode_gateway_responses_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26232). -spec encode_get_gateway_responses_body(get_gateway_responses_request()) -> gleam@json:json(). encode_get_gateway_responses_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26238). -spec build_get_gateway_responses_request(get_gateway_responses_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_gateway_responses_request(Input) -> Path = <<"/restapis/{restApiId}/gatewayresponses"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@2); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26277). -spec parse_get_gateway_responses_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, gateway_responses()} | {error, binary()}. parse_get_gateway_responses_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_gateway_responses_output(<<"{}"/utf8>>); _ -> decode_get_gateway_responses_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26292). -spec encode_get_integration_input(get_integration_request()) -> binary(). encode_get_integration_input(Input) -> gleam@json:to_string(encode_get_integration_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26296). -spec decode_get_integration_input(binary()) -> {ok, get_integration_request()} | {error, binary()}. decode_get_integration_input(Body) -> case gleam@json:parse(Body, decode_get_integration_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26305). -spec decode_get_integration_output(binary()) -> {ok, integration()} | {error, binary()}. decode_get_integration_output(Body) -> case gleam@json:parse(Body, decode_integration_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26314). -spec encode_get_integration_body(get_integration_request()) -> gleam@json:json(). encode_get_integration_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26318). -spec build_get_integration_request(get_integration_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_integration_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"GET"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26358). -spec parse_get_integration_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, integration()} | {error, binary()}. parse_get_integration_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_integration_output(<<"{}"/utf8>>); _ -> decode_get_integration_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26373). -spec encode_get_integration_response_input(get_integration_response_request()) -> binary(). encode_get_integration_response_input(Input) -> gleam@json:to_string(encode_get_integration_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26379). -spec decode_get_integration_response_input(binary()) -> {ok, get_integration_response_request()} | {error, binary()}. decode_get_integration_response_input(Body) -> case gleam@json:parse( Body, decode_get_integration_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26390). -spec decode_get_integration_response_output(binary()) -> {ok, integration_response()} | {error, binary()}. decode_get_integration_response_output(Body) -> case gleam@json:parse(Body, decode_integration_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26399). -spec encode_get_integration_response_body(get_integration_response_request()) -> gleam@json:json(). encode_get_integration_response_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26405). -spec build_get_integration_response_request(get_integration_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_integration_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(5, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"GET"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26449). -spec parse_get_integration_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, integration_response()} | {error, binary()}. parse_get_integration_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_integration_response_output(<<"{}"/utf8>>); _ -> decode_get_integration_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26464). -spec encode_get_method_input(get_method_request()) -> binary(). encode_get_method_input(Input) -> gleam@json:to_string(encode_get_method_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26468). -spec decode_get_method_input(binary()) -> {ok, get_method_request()} | {error, binary()}. decode_get_method_input(Body) -> case gleam@json:parse(Body, decode_get_method_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26477). -spec decode_get_method_output(binary()) -> {ok, method()} | {error, binary()}. decode_get_method_output(Body) -> case gleam@json:parse(Body, decode_method_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26484). -spec encode_get_method_body(get_method_request()) -> gleam@json:json(). encode_get_method_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26488). -spec build_get_method_request(get_method_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_method_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"GET"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26527). -spec parse_get_method_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, method()} | {error, binary()}. parse_get_method_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_method_output(<<"{}"/utf8>>); _ -> decode_get_method_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26542). -spec encode_get_method_response_input(get_method_response_request()) -> binary(). encode_get_method_response_input(Input) -> gleam@json:to_string(encode_get_method_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26548). -spec decode_get_method_response_input(binary()) -> {ok, get_method_response_request()} | {error, binary()}. decode_get_method_response_input(Body) -> case gleam@json:parse( Body, decode_get_method_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26557). -spec decode_get_method_response_output(binary()) -> {ok, method_response()} | {error, binary()}. decode_get_method_response_output(Body) -> case gleam@json:parse(Body, decode_method_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26566). -spec encode_get_method_response_body(get_method_response_request()) -> gleam@json:json(). encode_get_method_response_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26572). -spec build_get_method_response_request(get_method_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_method_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(5, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"GET"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26616). -spec parse_get_method_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, method_response()} | {error, binary()}. parse_get_method_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_method_response_output(<<"{}"/utf8>>); _ -> decode_get_method_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26631). -spec encode_get_model_input(get_model_request()) -> binary(). encode_get_model_input(Input) -> gleam@json:to_string(encode_get_model_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26635). -spec decode_get_model_input(binary()) -> {ok, get_model_request()} | {error, binary()}. decode_get_model_input(Body) -> case gleam@json:parse(Body, decode_get_model_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26642). -spec decode_get_model_output(binary()) -> {ok, model()} | {error, binary()}. decode_get_model_output(Body) -> case gleam@json:parse(Body, decode_model_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26649). -spec encode_get_model_body(get_model_request()) -> gleam@json:json(). encode_get_model_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26653). -spec build_get_model_request(get_model_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_model_request(Input) -> Path = <<"/restapis/{restApiId}/models/{modelName}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"modelName"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query, <<"flatten"/utf8>>, aws@internal@codec@rest:bool_to_query(V@2) ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query@1), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26692). -spec parse_get_model_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, model()} | {error, binary()}. parse_get_model_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_model_output(<<"{}"/utf8>>); _ -> decode_get_model_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26707). -spec encode_get_models_input(get_models_request()) -> binary(). encode_get_models_input(Input) -> gleam@json:to_string(encode_get_models_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26711). -spec decode_get_models_input(binary()) -> {ok, get_models_request()} | {error, binary()}. decode_get_models_input(Body) -> case gleam@json:parse(Body, decode_get_models_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26720). -spec decode_get_models_output(binary()) -> {ok, models()} | {error, binary()}. decode_get_models_output(Body) -> case gleam@json:parse(Body, decode_models_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26727). -spec encode_get_models_body(get_models_request()) -> gleam@json:json(). encode_get_models_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26731). -spec build_get_models_request(get_models_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_models_request(Input) -> Path = <<"/restapis/{restApiId}/models"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@2); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26770). -spec parse_get_models_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, models()} | {error, binary()}. parse_get_models_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_models_output(<<"{}"/utf8>>); _ -> decode_get_models_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26785). -spec encode_get_model_template_input(get_model_template_request()) -> binary(). encode_get_model_template_input(Input) -> gleam@json:to_string(encode_get_model_template_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26791). -spec decode_get_model_template_input(binary()) -> {ok, get_model_template_request()} | {error, binary()}. decode_get_model_template_input(Body) -> case gleam@json:parse( Body, decode_get_model_template_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26800). -spec decode_get_model_template_output(binary()) -> {ok, template()} | {error, binary()}. decode_get_model_template_output(Body) -> case gleam@json:parse(Body, decode_template_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26809). -spec encode_get_model_template_body(get_model_template_request()) -> gleam@json:json(). encode_get_model_template_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26815). -spec build_get_model_template_request(get_model_template_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_model_template_request(Input) -> Path = <<"/restapis/{restApiId}/models/{modelName}/default_template"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"modelName"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26850). -spec parse_get_model_template_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, template()} | {error, binary()}. parse_get_model_template_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_model_template_output(<<"{}"/utf8>>); _ -> decode_get_model_template_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26865). -spec encode_get_request_validator_input(get_request_validator_request()) -> binary(). encode_get_request_validator_input(Input) -> gleam@json:to_string(encode_get_request_validator_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26871). -spec decode_get_request_validator_input(binary()) -> {ok, get_request_validator_request()} | {error, binary()}. decode_get_request_validator_input(Body) -> case gleam@json:parse( Body, decode_get_request_validator_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26880). -spec decode_get_request_validator_output(binary()) -> {ok, request_validator()} | {error, binary()}. decode_get_request_validator_output(Body) -> case gleam@json:parse(Body, decode_request_validator_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26889). -spec encode_get_request_validator_body(get_request_validator_request()) -> gleam@json:json(). encode_get_request_validator_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26895). -spec build_get_request_validator_request(get_request_validator_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_request_validator_request(Input) -> Path = <<"/restapis/{restApiId}/requestvalidators/{requestValidatorId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"requestValidatorId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 26931). -spec parse_get_request_validator_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, request_validator()} | {error, binary()}. parse_get_request_validator_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_request_validator_output(<<"{}"/utf8>>); _ -> decode_get_request_validator_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26946). -spec encode_get_request_validators_input(get_request_validators_request()) -> binary(). encode_get_request_validators_input(Input) -> gleam@json:to_string(encode_get_request_validators_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 26952). -spec decode_get_request_validators_input(binary()) -> {ok, get_request_validators_request()} | {error, binary()}. decode_get_request_validators_input(Body) -> case gleam@json:parse( Body, decode_get_request_validators_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26961). -spec decode_get_request_validators_output(binary()) -> {ok, request_validators()} | {error, binary()}. decode_get_request_validators_output(Body) -> case gleam@json:parse(Body, decode_request_validators_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 26970). -spec encode_get_request_validators_body(get_request_validators_request()) -> gleam@json:json(). encode_get_request_validators_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 26976). -spec build_get_request_validators_request(get_request_validators_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_request_validators_request(Input) -> Path = <<"/restapis/{restApiId}/requestvalidators"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@2); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27015). -spec parse_get_request_validators_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, request_validators()} | {error, binary()}. parse_get_request_validators_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_request_validators_output(<<"{}"/utf8>>); _ -> decode_get_request_validators_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27030). -spec encode_get_resource_input(get_resource_request()) -> binary(). encode_get_resource_input(Input) -> gleam@json:to_string(encode_get_resource_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27034). -spec decode_get_resource_input(binary()) -> {ok, get_resource_request()} | {error, binary()}. decode_get_resource_input(Body) -> case gleam@json:parse(Body, decode_get_resource_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27043). -spec decode_get_resource_output(binary()) -> {ok, resource()} | {error, binary()}. decode_get_resource_output(Body) -> case gleam@json:parse(Body, decode_resource_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27050). -spec encode_get_resource_body(get_resource_request()) -> gleam@json:json(). encode_get_resource_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27054). -spec build_get_resource_request(get_resource_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_resource_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"resourceId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, Xs} -> gleam@list:fold( Xs, Query, fun(Q, Item) -> begin V@2 = Item, aws@internal@codec@rest:add_query( Q, <<"embed"/utf8>>, V@2 ) end end ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query@1), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27099). -spec parse_get_resource_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, resource()} | {error, binary()}. parse_get_resource_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_resource_output(<<"{}"/utf8>>); _ -> decode_get_resource_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27114). -spec encode_get_resources_input(get_resources_request()) -> binary(). encode_get_resources_input(Input) -> gleam@json:to_string(encode_get_resources_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27118). -spec decode_get_resources_input(binary()) -> {ok, get_resources_request()} | {error, binary()}. decode_get_resources_input(Body) -> case gleam@json:parse(Body, decode_get_resources_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27127). -spec decode_get_resources_output(binary()) -> {ok, resources()} | {error, binary()}. decode_get_resources_output(Body) -> case gleam@json:parse(Body, decode_resources_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27134). -spec encode_get_resources_body(get_resources_request()) -> gleam@json:json(). encode_get_resources_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27138). -spec build_get_resources_request(get_resources_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_resources_request(Input) -> Path = <<"/restapis/{restApiId}/resources"/utf8>>, Path@1 = case erlang:element(5, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, Xs} -> gleam@list:fold( Xs, Query, fun(Q, Item) -> begin V@1 = Item, aws@internal@codec@rest:add_query( Q, <<"embed"/utf8>>, V@1 ) end end ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@1, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@2) ); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@3} -> aws@internal@codec@rest:add_query(Query@2, <<"position"/utf8>>, V@3); none -> Query@2 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@3), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27187). -spec parse_get_resources_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, resources()} | {error, binary()}. parse_get_resources_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_resources_output(<<"{}"/utf8>>); _ -> decode_get_resources_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27202). -spec encode_get_rest_api_input(get_rest_api_request()) -> binary(). encode_get_rest_api_input(Input) -> gleam@json:to_string(encode_get_rest_api_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27206). -spec decode_get_rest_api_input(binary()) -> {ok, get_rest_api_request()} | {error, binary()}. decode_get_rest_api_input(Body) -> case gleam@json:parse(Body, decode_get_rest_api_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27215). -spec decode_get_rest_api_output(binary()) -> {ok, rest_api()} | {error, binary()}. decode_get_rest_api_output(Body) -> case gleam@json:parse(Body, decode_rest_api_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27222). -spec encode_get_rest_api_body(get_rest_api_request()) -> gleam@json:json(). encode_get_rest_api_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27226). -spec build_get_rest_api_request(get_rest_api_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_rest_api_request(Input) -> Path = <<"/restapis/{restApiId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27257). -spec parse_get_rest_api_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, rest_api()} | {error, binary()}. parse_get_rest_api_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_rest_api_output(<<"{}"/utf8>>); _ -> decode_get_rest_api_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27272). -spec encode_get_rest_apis_input(get_rest_apis_request()) -> binary(). encode_get_rest_apis_input(Input) -> gleam@json:to_string(encode_get_rest_apis_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27276). -spec decode_get_rest_apis_input(binary()) -> {ok, get_rest_apis_request()} | {error, binary()}. decode_get_rest_apis_input(Body) -> case gleam@json:parse(Body, decode_get_rest_apis_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27285). -spec decode_get_rest_apis_output(binary()) -> {ok, rest_apis()} | {error, binary()}. decode_get_rest_apis_output(Body) -> case gleam@json:parse(Body, decode_rest_apis_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27292). -spec encode_get_rest_apis_body(get_rest_apis_request()) -> gleam@json:json(). encode_get_rest_apis_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27296). -spec build_get_rest_apis_request(get_rest_apis_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_rest_apis_request(Input) -> Path = <<"/restapis"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@1); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@2), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27331). -spec parse_get_rest_apis_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, rest_apis()} | {error, binary()}. parse_get_rest_apis_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_rest_apis_output(<<"{}"/utf8>>); _ -> decode_get_rest_apis_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27346). -spec encode_get_sdk_input(get_sdk_request()) -> binary(). encode_get_sdk_input(Input) -> gleam@json:to_string(encode_get_sdk_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27350). -spec decode_get_sdk_input(binary()) -> {ok, get_sdk_request()} | {error, binary()}. decode_get_sdk_input(Body) -> case gleam@json:parse(Body, decode_get_sdk_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27357). -spec decode_get_sdk_output(binary()) -> {ok, sdk_response()} | {error, binary()}. decode_get_sdk_output(Body) -> case gleam@json:parse(Body, decode_sdk_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27364). -spec encode_get_sdk_body(get_sdk_request()) -> gleam@json:json(). encode_get_sdk_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27368). -spec build_get_sdk_request(get_sdk_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_sdk_request(Input) -> Path = <<"/restapis/{restApiId}/stages/{stageName}/sdks/{sdkType}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"sdkType"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(5, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"stageName"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, M} -> aws@internal@codec@rest:add_query_params(Query, M); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query@1), {<<"GET"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27411). -spec parse_get_sdk_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, sdk_response()} | {error, binary()}. parse_get_sdk_response(_, Headers, Body) -> Payload = {some, Body}, {ok, {sdk_response, Payload, aws@internal@codec@rest:string_header( Headers, <<"Content-Disposition"/utf8>> ), aws@internal@codec@rest:string_header( Headers, <<"Content-Type"/utf8>> )}}. -file("src/aws/services/api_gateway.gleam", 27424). -spec encode_get_sdk_type_input(get_sdk_type_request()) -> binary(). encode_get_sdk_type_input(Input) -> gleam@json:to_string(encode_get_sdk_type_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27428). -spec decode_get_sdk_type_input(binary()) -> {ok, get_sdk_type_request()} | {error, binary()}. decode_get_sdk_type_input(Body) -> case gleam@json:parse(Body, decode_get_sdk_type_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27437). -spec decode_get_sdk_type_output(binary()) -> {ok, sdk_type()} | {error, binary()}. decode_get_sdk_type_output(Body) -> case gleam@json:parse(Body, decode_sdk_type_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27444). -spec encode_get_sdk_type_body(get_sdk_type_request()) -> gleam@json:json(). encode_get_sdk_type_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27448). -spec build_get_sdk_type_request(get_sdk_type_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_sdk_type_request(Input) -> Path = <<"/sdktypes/{id}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"id"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27479). -spec parse_get_sdk_type_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, sdk_type()} | {error, binary()}. parse_get_sdk_type_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_sdk_type_output(<<"{}"/utf8>>); _ -> decode_get_sdk_type_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27494). -spec encode_get_sdk_types_input(get_sdk_types_request()) -> binary(). encode_get_sdk_types_input(Input) -> gleam@json:to_string(encode_get_sdk_types_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27498). -spec decode_get_sdk_types_input(binary()) -> {ok, get_sdk_types_request()} | {error, binary()}. decode_get_sdk_types_input(Body) -> case gleam@json:parse(Body, decode_get_sdk_types_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27507). -spec decode_get_sdk_types_output(binary()) -> {ok, sdk_types()} | {error, binary()}. decode_get_sdk_types_output(Body) -> case gleam@json:parse(Body, decode_sdk_types_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27514). -spec encode_get_sdk_types_body(get_sdk_types_request()) -> gleam@json:json(). encode_get_sdk_types_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27518). -spec build_get_sdk_types_request(get_sdk_types_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_sdk_types_request(Input) -> Path = <<"/sdktypes"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@1); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@2), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27553). -spec parse_get_sdk_types_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, sdk_types()} | {error, binary()}. parse_get_sdk_types_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_sdk_types_output(<<"{}"/utf8>>); _ -> decode_get_sdk_types_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27568). -spec encode_get_stage_input(get_stage_request()) -> binary(). encode_get_stage_input(Input) -> gleam@json:to_string(encode_get_stage_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27572). -spec decode_get_stage_input(binary()) -> {ok, get_stage_request()} | {error, binary()}. decode_get_stage_input(Body) -> case gleam@json:parse(Body, decode_get_stage_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27579). -spec decode_get_stage_output(binary()) -> {ok, stage()} | {error, binary()}. decode_get_stage_output(Body) -> case gleam@json:parse(Body, decode_stage_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27586). -spec encode_get_stage_body(get_stage_request()) -> gleam@json:json(). encode_get_stage_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27590). -spec build_get_stage_request(get_stage_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_stage_request(Input) -> Path = <<"/restapis/{restApiId}/stages/{stageName}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"stageName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27625). -spec parse_get_stage_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, stage()} | {error, binary()}. parse_get_stage_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_stage_output(<<"{}"/utf8>>); _ -> decode_get_stage_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27640). -spec encode_get_stages_input(get_stages_request()) -> binary(). encode_get_stages_input(Input) -> gleam@json:to_string(encode_get_stages_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27644). -spec decode_get_stages_input(binary()) -> {ok, get_stages_request()} | {error, binary()}. decode_get_stages_input(Body) -> case gleam@json:parse(Body, decode_get_stages_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27653). -spec decode_get_stages_output(binary()) -> {ok, stages()} | {error, binary()}. decode_get_stages_output(Body) -> case gleam@json:parse(Body, decode_stages_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27660). -spec encode_get_stages_body(get_stages_request()) -> gleam@json:json(). encode_get_stages_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27664). -spec build_get_stages_request(get_stages_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_stages_request(Input) -> Path = <<"/restapis/{restApiId}/stages"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"deploymentId"/utf8>>, V@1 ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@1), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27699). -spec parse_get_stages_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, stages()} | {error, binary()}. parse_get_stages_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_stages_output(<<"{}"/utf8>>); _ -> decode_get_stages_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27714). -spec encode_get_tags_input(get_tags_request()) -> binary(). encode_get_tags_input(Input) -> gleam@json:to_string(encode_get_tags_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27718). -spec decode_get_tags_input(binary()) -> {ok, get_tags_request()} | {error, binary()}. decode_get_tags_input(Body) -> case gleam@json:parse(Body, decode_get_tags_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27725). -spec decode_get_tags_output(binary()) -> {ok, tags()} | {error, binary()}. decode_get_tags_output(Body) -> case gleam@json:parse(Body, decode_tags_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27732). -spec encode_get_tags_body(get_tags_request()) -> gleam@json:json(). encode_get_tags_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27736). -spec build_get_tags_request(get_tags_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_tags_request(Input) -> Path = <<"/tags/{resourceArn}"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"resourceArn"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@2); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27775). -spec parse_get_tags_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, tags()} | {error, binary()}. parse_get_tags_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_tags_output(<<"{}"/utf8>>); _ -> decode_get_tags_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27790). -spec encode_get_usage_input(get_usage_request()) -> binary(). encode_get_usage_input(Input) -> gleam@json:to_string(encode_get_usage_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27794). -spec decode_get_usage_input(binary()) -> {ok, get_usage_request()} | {error, binary()}. decode_get_usage_input(Body) -> case gleam@json:parse(Body, decode_get_usage_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27801). -spec decode_get_usage_output(binary()) -> {ok, usage()} | {error, binary()}. decode_get_usage_output(Body) -> case gleam@json:parse(Body, decode_usage_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27808). -spec encode_get_usage_body(get_usage_request()) -> gleam@json:json(). encode_get_usage_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27812). -spec build_get_usage_request(get_usage_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_usage_request(Input) -> Path = <<"/usageplans/{usagePlanId}/usage"/utf8>>, Path@1 = case erlang:element(7, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"usagePlanId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query(Query, <<"endDate"/utf8>>, V@1); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"keyId"/utf8>>, V@2); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@3} -> aws@internal@codec@rest:add_query( Query@2, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@3) ); none -> Query@2 end, Query@4 = case erlang:element(5, Input) of {some, V@4} -> aws@internal@codec@rest:add_query(Query@3, <<"position"/utf8>>, V@4); none -> Query@3 end, Query@5 = case erlang:element(6, Input) of {some, V@5} -> aws@internal@codec@rest:add_query( Query@4, <<"startDate"/utf8>>, V@5 ); none -> Query@4 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@5), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27863). -spec parse_get_usage_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage()} | {error, binary()}. parse_get_usage_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_usage_output(<<"{}"/utf8>>); _ -> decode_get_usage_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27878). -spec encode_get_usage_plan_input(get_usage_plan_request()) -> binary(). encode_get_usage_plan_input(Input) -> gleam@json:to_string(encode_get_usage_plan_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27882). -spec decode_get_usage_plan_input(binary()) -> {ok, get_usage_plan_request()} | {error, binary()}. decode_get_usage_plan_input(Body) -> case gleam@json:parse(Body, decode_get_usage_plan_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27891). -spec decode_get_usage_plan_output(binary()) -> {ok, usage_plan()} | {error, binary()}. decode_get_usage_plan_output(Body) -> case gleam@json:parse(Body, decode_usage_plan_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27898). -spec encode_get_usage_plan_body(get_usage_plan_request()) -> gleam@json:json(). encode_get_usage_plan_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27902). -spec build_get_usage_plan_request(get_usage_plan_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_usage_plan_request(Input) -> Path = <<"/usageplans/{usagePlanId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"usagePlanId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 27933). -spec parse_get_usage_plan_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage_plan()} | {error, binary()}. parse_get_usage_plan_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_usage_plan_output(<<"{}"/utf8>>); _ -> decode_get_usage_plan_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27948). -spec encode_get_usage_plan_key_input(get_usage_plan_key_request()) -> binary(). encode_get_usage_plan_key_input(Input) -> gleam@json:to_string(encode_get_usage_plan_key_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 27954). -spec decode_get_usage_plan_key_input(binary()) -> {ok, get_usage_plan_key_request()} | {error, binary()}. decode_get_usage_plan_key_input(Body) -> case gleam@json:parse( Body, decode_get_usage_plan_key_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27963). -spec decode_get_usage_plan_key_output(binary()) -> {ok, usage_plan_key()} | {error, binary()}. decode_get_usage_plan_key_output(Body) -> case gleam@json:parse(Body, decode_usage_plan_key_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 27972). -spec encode_get_usage_plan_key_body(get_usage_plan_key_request()) -> gleam@json:json(). encode_get_usage_plan_key_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 27978). -spec build_get_usage_plan_key_request(get_usage_plan_key_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_usage_plan_key_request(Input) -> Path = <<"/usageplans/{usagePlanId}/keys/{keyId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"keyId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"usagePlanId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"GET"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28013). -spec parse_get_usage_plan_key_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage_plan_key()} | {error, binary()}. parse_get_usage_plan_key_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_usage_plan_key_output(<<"{}"/utf8>>); _ -> decode_get_usage_plan_key_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28028). -spec encode_get_usage_plan_keys_input(get_usage_plan_keys_request()) -> binary(). encode_get_usage_plan_keys_input(Input) -> gleam@json:to_string(encode_get_usage_plan_keys_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28034). -spec decode_get_usage_plan_keys_input(binary()) -> {ok, get_usage_plan_keys_request()} | {error, binary()}. decode_get_usage_plan_keys_input(Body) -> case gleam@json:parse( Body, decode_get_usage_plan_keys_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28043). -spec decode_get_usage_plan_keys_output(binary()) -> {ok, usage_plan_keys()} | {error, binary()}. decode_get_usage_plan_keys_output(Body) -> case gleam@json:parse(Body, decode_usage_plan_keys_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28052). -spec encode_get_usage_plan_keys_body(get_usage_plan_keys_request()) -> gleam@json:json(). encode_get_usage_plan_keys_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 28058). -spec build_get_usage_plan_keys_request(get_usage_plan_keys_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_usage_plan_keys_request(Input) -> Path = <<"/usageplans/{usagePlanId}/keys"/utf8>>, Path@1 = case erlang:element(5, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"usagePlanId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@1, <<"name"/utf8>>, V@2); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@3} -> aws@internal@codec@rest:add_query(Query@2, <<"position"/utf8>>, V@3); none -> Query@2 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@3), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28101). -spec parse_get_usage_plan_keys_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage_plan_keys()} | {error, binary()}. parse_get_usage_plan_keys_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_usage_plan_keys_output(<<"{}"/utf8>>); _ -> decode_get_usage_plan_keys_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28116). -spec encode_get_usage_plans_input(get_usage_plans_request()) -> binary(). encode_get_usage_plans_input(Input) -> gleam@json:to_string(encode_get_usage_plans_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28120). -spec decode_get_usage_plans_input(binary()) -> {ok, get_usage_plans_request()} | {error, binary()}. decode_get_usage_plans_input(Body) -> case gleam@json:parse(Body, decode_get_usage_plans_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28129). -spec decode_get_usage_plans_output(binary()) -> {ok, usage_plans()} | {error, binary()}. decode_get_usage_plans_output(Body) -> case gleam@json:parse(Body, decode_usage_plans_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28138). -spec encode_get_usage_plans_body(get_usage_plans_request()) -> gleam@json:json(). encode_get_usage_plans_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 28142). -spec build_get_usage_plans_request(get_usage_plans_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_usage_plans_request(Input) -> Path = <<"/usageplans"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query(Query, <<"keyId"/utf8>>, V); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query@1, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V@1) ); none -> Query@1 end, Query@3 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query(Query@2, <<"position"/utf8>>, V@2); none -> Query@2 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@3), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28181). -spec parse_get_usage_plans_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage_plans()} | {error, binary()}. parse_get_usage_plans_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_usage_plans_output(<<"{}"/utf8>>); _ -> decode_get_usage_plans_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28196). -spec encode_get_vpc_link_input(get_vpc_link_request()) -> binary(). encode_get_vpc_link_input(Input) -> gleam@json:to_string(encode_get_vpc_link_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28200). -spec decode_get_vpc_link_input(binary()) -> {ok, get_vpc_link_request()} | {error, binary()}. decode_get_vpc_link_input(Body) -> case gleam@json:parse(Body, decode_get_vpc_link_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28209). -spec decode_get_vpc_link_output(binary()) -> {ok, vpc_link()} | {error, binary()}. decode_get_vpc_link_output(Body) -> case gleam@json:parse(Body, decode_vpc_link_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28216). -spec encode_get_vpc_link_body(get_vpc_link_request()) -> gleam@json:json(). encode_get_vpc_link_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 28220). -spec build_get_vpc_link_request(get_vpc_link_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_vpc_link_request(Input) -> Path = <<"/vpclinks/{vpcLinkId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"vpcLinkId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"GET"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28251). -spec parse_get_vpc_link_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, vpc_link()} | {error, binary()}. parse_get_vpc_link_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_vpc_link_output(<<"{}"/utf8>>); _ -> decode_get_vpc_link_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28266). -spec encode_get_vpc_links_input(get_vpc_links_request()) -> binary(). encode_get_vpc_links_input(Input) -> gleam@json:to_string(encode_get_vpc_links_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28270). -spec decode_get_vpc_links_input(binary()) -> {ok, get_vpc_links_request()} | {error, binary()}. decode_get_vpc_links_input(Body) -> case gleam@json:parse(Body, decode_get_vpc_links_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28279). -spec decode_get_vpc_links_output(binary()) -> {ok, vpc_links()} | {error, binary()}. decode_get_vpc_links_output(Body) -> case gleam@json:parse(Body, decode_vpc_links_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28286). -spec encode_get_vpc_links_body(get_vpc_links_request()) -> gleam@json:json(). encode_get_vpc_links_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 28290). -spec build_get_vpc_links_request(get_vpc_links_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_get_vpc_links_request(Input) -> Path = <<"/vpclinks"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"limit"/utf8>>, aws@internal@codec@rest:int_to_query(V) ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query(Query@1, <<"position"/utf8>>, V@1); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@2), {<<"GET"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28325). -spec parse_get_vpc_links_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, vpc_links()} | {error, binary()}. parse_get_vpc_links_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_get_vpc_links_output(<<"{}"/utf8>>); _ -> decode_get_vpc_links_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28340). -spec encode_import_api_keys_input(import_api_keys_request()) -> binary(). encode_import_api_keys_input(Input) -> gleam@json:to_string(encode_import_api_keys_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28344). -spec decode_import_api_keys_input(binary()) -> {ok, import_api_keys_request()} | {error, binary()}. decode_import_api_keys_input(Body) -> case gleam@json:parse(Body, decode_import_api_keys_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28353). -spec decode_import_api_keys_output(binary()) -> {ok, api_key_ids()} | {error, binary()}. decode_import_api_keys_output(Body) -> case gleam@json:parse(Body, decode_api_key_ids_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28362). -spec encode_import_api_keys_body(import_api_keys_request()) -> gleam@json:json(). encode_import_api_keys_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 28366). -spec build_import_api_keys_request(import_api_keys_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_import_api_keys_request(Input) -> Path = <<"/apikeys?mode=import"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"failonwarnings"/utf8>>, aws@internal@codec@rest:bool_to_query(V) ); none -> Query end, Query@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query@1, <<"format"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_api_keys_format_enum(V@1) ) ); none -> Query@1 end, Headers = maps:new(), Body = case erlang:element(2, Input) of {some, V@2} -> V@2; none -> <<>> end, Content_type = <<"application/octet-stream"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@2), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28410). -spec parse_import_api_keys_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, api_key_ids()} | {error, binary()}. parse_import_api_keys_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_import_api_keys_output(<<"{}"/utf8>>); _ -> decode_import_api_keys_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28425). -spec encode_import_documentation_parts_input( import_documentation_parts_request() ) -> binary(). encode_import_documentation_parts_input(Input) -> gleam@json:to_string( encode_import_documentation_parts_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 28431). -spec decode_import_documentation_parts_input(binary()) -> {ok, import_documentation_parts_request()} | {error, binary()}. decode_import_documentation_parts_input(Body) -> case gleam@json:parse( Body, decode_import_documentation_parts_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28442). -spec decode_import_documentation_parts_output(binary()) -> {ok, documentation_part_ids()} | {error, binary()}. decode_import_documentation_parts_output(Body) -> case gleam@json:parse(Body, decode_documentation_part_ids_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28451). -spec encode_import_documentation_parts_body( import_documentation_parts_request() ) -> gleam@json:json(). encode_import_documentation_parts_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 28457). -spec build_import_documentation_parts_request( import_documentation_parts_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_import_documentation_parts_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/parts"/utf8>>, Path@1 = case erlang:element(5, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"failonwarnings"/utf8>>, aws@internal@codec@rest:bool_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@1, <<"mode"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_put_mode_enum(V@2) ) ); none -> Query@1 end, Headers = maps:new(), Body = case erlang:element(2, Input) of {some, V@3} -> V@3; none -> <<>> end, Content_type = <<"application/octet-stream"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@2), {<<"PUT"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28505). -spec parse_import_documentation_parts_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_part_ids()} | {error, binary()}. parse_import_documentation_parts_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_import_documentation_parts_output(<<"{}"/utf8>>); _ -> decode_import_documentation_parts_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28520). -spec encode_import_rest_api_input(import_rest_api_request()) -> binary(). encode_import_rest_api_input(Input) -> gleam@json:to_string(encode_import_rest_api_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28524). -spec decode_import_rest_api_input(binary()) -> {ok, import_rest_api_request()} | {error, binary()}. decode_import_rest_api_input(Body) -> case gleam@json:parse(Body, decode_import_rest_api_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28533). -spec decode_import_rest_api_output(binary()) -> {ok, rest_api()} | {error, binary()}. decode_import_rest_api_output(Body) -> case gleam@json:parse(Body, decode_rest_api_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28540). -spec encode_import_rest_api_body(import_rest_api_request()) -> gleam@json:json(). encode_import_rest_api_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 28544). -spec build_import_rest_api_request(import_rest_api_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_import_rest_api_request(Input) -> Path = <<"/restapis?mode=import"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"failonwarnings"/utf8>>, aws@internal@codec@rest:bool_to_query(V) ); none -> Query end, Query@2 = case erlang:element(4, Input) of {some, M} -> aws@internal@codec@rest:add_query_params(Query@1, M); none -> Query@1 end, Headers = maps:new(), Body = case erlang:element(2, Input) of {some, V@1} -> V@1; none -> <<>> end, Content_type = <<"application/octet-stream"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@2), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28583). -spec parse_import_rest_api_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, rest_api()} | {error, binary()}. parse_import_rest_api_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_import_rest_api_output(<<"{}"/utf8>>); _ -> decode_import_rest_api_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28598). -spec encode_put_gateway_response_input(put_gateway_response_request()) -> binary(). encode_put_gateway_response_input(Input) -> gleam@json:to_string(encode_put_gateway_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28604). -spec decode_put_gateway_response_input(binary()) -> {ok, put_gateway_response_request()} | {error, binary()}. decode_put_gateway_response_input(Body) -> case gleam@json:parse( Body, decode_put_gateway_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28613). -spec decode_put_gateway_response_output(binary()) -> {ok, gateway_response()} | {error, binary()}. decode_put_gateway_response_output(Body) -> case gleam@json:parse(Body, decode_gateway_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28622). -spec encode_put_gateway_response_body(put_gateway_response_request()) -> gleam@json:json(). encode_put_gateway_response_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"responseParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"responseTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(6, Input) of {some, V@2} -> [{<<"statusCode"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, gleam@json:object(Pairs@3). -file("src/aws/services/api_gateway.gleam", 28663). -spec build_put_gateway_response_request(put_gateway_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_put_gateway_response_request(Input) -> Path = <<"/restapis/{restApiId}/gatewayresponses/{responseType}"/utf8>>, Path@1 = case erlang:element(4, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"responseType"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_gateway_response_type_enum(V) ), false ); none -> Path end, Path@2 = case erlang:element(5, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_put_gateway_response_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PUT"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28705). -spec parse_put_gateway_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, gateway_response()} | {error, binary()}. parse_put_gateway_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_put_gateway_response_output(<<"{}"/utf8>>); _ -> decode_put_gateway_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28720). -spec encode_put_integration_input(put_integration_request()) -> binary(). encode_put_integration_input(Input) -> gleam@json:to_string(encode_put_integration_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28724). -spec decode_put_integration_input(binary()) -> {ok, put_integration_request()} | {error, binary()}. decode_put_integration_input(Body) -> case gleam@json:parse(Body, decode_put_integration_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28733). -spec decode_put_integration_output(binary()) -> {ok, integration()} | {error, binary()}. decode_put_integration_output(Body) -> case gleam@json:parse(Body, decode_integration_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28742). -spec encode_put_integration_body(put_integration_request()) -> gleam@json:json(). encode_put_integration_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"cacheKeyParameters"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"cacheNamespace"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"connectionId"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"connectionType"/utf8>>, encode_connection_type_enum(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(6, Input) of {some, V@4} -> [{<<"contentHandling"/utf8>>, encode_content_handling_strategy_enum(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(7, Input) of {some, V@5} -> [{<<"credentials"/utf8>>, gleam@json:string(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(9, Input) of {some, V@6} -> [{<<"httpMethod"/utf8>>, gleam@json:string(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(10, Input) of {some, V@7} -> [{<<"integrationTarget"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, Pairs@9 = case erlang:element(11, Input) of {some, V@8} -> [{<<"passthroughBehavior"/utf8>>, gleam@json:string(V@8)} | Pairs@8]; none -> Pairs@8 end, Pairs@10 = case erlang:element(12, Input) of {some, V@9} -> [{<<"requestParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@9)} | Pairs@9]; none -> Pairs@9 end, Pairs@11 = case erlang:element(13, Input) of {some, V@10} -> [{<<"requestTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@10)} | Pairs@10]; none -> Pairs@10 end, Pairs@12 = case erlang:element(15, Input) of {some, V@11} -> [{<<"responseTransferMode"/utf8>>, encode_response_transfer_mode_enum(V@11)} | Pairs@11]; none -> Pairs@11 end, Pairs@13 = case erlang:element(17, Input) of {some, V@12} -> [{<<"timeoutInMillis"/utf8>>, gleam@json:int(V@12)} | Pairs@12]; none -> Pairs@12 end, Pairs@14 = case erlang:element(18, Input) of {some, V@13} -> [{<<"tlsConfig"/utf8>>, encode_tls_config_struct(V@13)} | Pairs@13]; none -> Pairs@13 end, Pairs@15 = case erlang:element(19, Input) of {some, V@14} -> [{<<"type"/utf8>>, encode_integration_type_enum(V@14)} | Pairs@14]; none -> Pairs@14 end, Pairs@16 = case erlang:element(20, Input) of {some, V@15} -> [{<<"uri"/utf8>>, gleam@json:string(V@15)} | Pairs@15]; none -> Pairs@15 end, gleam@json:object(Pairs@16). -file("src/aws/services/api_gateway.gleam", 28845). -spec build_put_integration_request(put_integration_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_put_integration_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"/utf8>>, Path@1 = case erlang:element(8, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"requestHttpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(14, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(16, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_put_integration_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"PUT"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 28886). -spec parse_put_integration_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, integration()} | {error, binary()}. parse_put_integration_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_put_integration_output(<<"{}"/utf8>>); _ -> decode_put_integration_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28901). -spec encode_put_integration_response_input(put_integration_response_request()) -> binary(). encode_put_integration_response_input(Input) -> gleam@json:to_string(encode_put_integration_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 28907). -spec decode_put_integration_response_input(binary()) -> {ok, put_integration_response_request()} | {error, binary()}. decode_put_integration_response_input(Body) -> case gleam@json:parse( Body, decode_put_integration_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28918). -spec decode_put_integration_response_output(binary()) -> {ok, integration_response()} | {error, binary()}. decode_put_integration_response_output(Body) -> case gleam@json:parse(Body, decode_integration_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 28927). -spec encode_put_integration_response_body(put_integration_response_request()) -> gleam@json:json(). encode_put_integration_response_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"contentHandling"/utf8>>, encode_content_handling_strategy_enum(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(5, Input) of {some, V@1} -> [{<<"responseParameters"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(6, Input) of {some, V@2} -> [{<<"responseTemplates"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(8, Input) of {some, V@3} -> [{<<"selectionPattern"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, gleam@json:object(Pairs@4). -file("src/aws/services/api_gateway.gleam", 28975). -spec build_put_integration_response_request(put_integration_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_put_integration_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(7, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(9, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_put_integration_response_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"PUT"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29020). -spec parse_put_integration_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, integration_response()} | {error, binary()}. parse_put_integration_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_put_integration_response_output(<<"{}"/utf8>>); _ -> decode_put_integration_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29035). -spec encode_put_method_input(put_method_request()) -> binary(). encode_put_method_input(Input) -> gleam@json:to_string(encode_put_method_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29039). -spec decode_put_method_input(binary()) -> {ok, put_method_request()} | {error, binary()}. decode_put_method_input(Body) -> case gleam@json:parse(Body, decode_put_method_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29048). -spec decode_put_method_output(binary()) -> {ok, method()} | {error, binary()}. decode_put_method_output(Body) -> case gleam@json:parse(Body, decode_method_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29055). -spec encode_put_method_body(put_method_request()) -> gleam@json:json(). encode_put_method_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"apiKeyRequired"/utf8>>, gleam@json:bool(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"authorizationScopes"/utf8>>, (fun(Xs) -> gleam@json:array(Xs, fun gleam@json:string/1) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"authorizationType"/utf8>>, gleam@json:string(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(5, Input) of {some, V@3} -> [{<<"authorizerId"/utf8>>, gleam@json:string(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(7, Input) of {some, V@4} -> [{<<"operationName"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(8, Input) of {some, V@5} -> [{<<"requestModels"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@5)} | Pairs@5]; none -> Pairs@5 end, Pairs@7 = case erlang:element(9, Input) of {some, V@6} -> [{<<"requestParameters"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:bool( erlang:element(2, Pair@1) )} end ) end ) end)(V@6)} | Pairs@6]; none -> Pairs@6 end, Pairs@8 = case erlang:element(10, Input) of {some, V@7} -> [{<<"requestValidatorId"/utf8>>, gleam@json:string(V@7)} | Pairs@7]; none -> Pairs@7 end, gleam@json:object(Pairs@8). -file("src/aws/services/api_gateway.gleam", 29117). -spec build_put_method_request(put_method_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_put_method_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"/utf8>>, Path@1 = case erlang:element(6, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(11, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(12, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_put_method_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"PUT"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29157). -spec parse_put_method_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, method()} | {error, binary()}. parse_put_method_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_put_method_output(<<"{}"/utf8>>); _ -> decode_put_method_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29172). -spec encode_put_method_response_input(put_method_response_request()) -> binary(). encode_put_method_response_input(Input) -> gleam@json:to_string(encode_put_method_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29178). -spec decode_put_method_response_input(binary()) -> {ok, put_method_response_request()} | {error, binary()}. decode_put_method_response_input(Body) -> case gleam@json:parse( Body, decode_put_method_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29187). -spec decode_put_method_response_output(binary()) -> {ok, method_response()} | {error, binary()}. decode_put_method_response_output(Body) -> case gleam@json:parse(Body, decode_method_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29196). -spec encode_put_method_response_body(put_method_response_request()) -> gleam@json:json(). encode_put_method_response_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(4, Input) of {some, V} -> [{<<"responseModels"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(5, Input) of {some, V@1} -> [{<<"responseParameters"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:bool( erlang:element(2, Pair@1) )} end ) end ) end)(V@1)} | Pairs@1]; none -> Pairs@1 end, gleam@json:object(Pairs@2). -file("src/aws/services/api_gateway.gleam", 29233). -spec build_put_method_response_request(put_method_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_put_method_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(6, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(7, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_put_method_response_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"PUT"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29278). -spec parse_put_method_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, method_response()} | {error, binary()}. parse_put_method_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_put_method_response_output(<<"{}"/utf8>>); _ -> decode_put_method_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29293). -spec encode_put_rest_api_input(put_rest_api_request()) -> binary(). encode_put_rest_api_input(Input) -> gleam@json:to_string(encode_put_rest_api_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29297). -spec decode_put_rest_api_input(binary()) -> {ok, put_rest_api_request()} | {error, binary()}. decode_put_rest_api_input(Body) -> case gleam@json:parse(Body, decode_put_rest_api_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29306). -spec decode_put_rest_api_output(binary()) -> {ok, rest_api()} | {error, binary()}. decode_put_rest_api_output(Body) -> case gleam@json:parse(Body, decode_rest_api_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29313). -spec encode_put_rest_api_body(put_rest_api_request()) -> gleam@json:json(). encode_put_rest_api_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 29317). -spec build_put_rest_api_request(put_rest_api_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_put_rest_api_request(Input) -> Path = <<"/restapis/{restApiId}"/utf8>>, Path@1 = case erlang:element(6, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"failonwarnings"/utf8>>, aws@internal@codec@rest:bool_to_query(V@1) ); none -> Query end, Query@2 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query@1, <<"mode"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_put_mode_enum(V@2) ) ); none -> Query@1 end, Query@3 = case erlang:element(5, Input) of {some, M} -> aws@internal@codec@rest:add_query_params(Query@2, M); none -> Query@2 end, Headers = maps:new(), Body = case erlang:element(2, Input) of {some, V@3} -> V@3; none -> <<>> end, Content_type = <<"application/octet-stream"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@3), {<<"PUT"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29369). -spec parse_put_rest_api_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, rest_api()} | {error, binary()}. parse_put_rest_api_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_put_rest_api_output(<<"{}"/utf8>>); _ -> decode_put_rest_api_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29388). -spec encode_reject_domain_name_access_association_output_struct( reject_domain_name_access_association_output() ) -> gleam@json:json(). encode_reject_domain_name_access_association_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 29394). -spec decode_reject_domain_name_access_association_output_struct() -> gleam@dynamic@decode:decoder(reject_domain_name_access_association_output()). decode_reject_domain_name_access_association_output_struct() -> gleam@dynamic@decode:success(reject_domain_name_access_association_output). -file("src/aws/services/api_gateway.gleam", 29400). -spec encode_reject_domain_name_access_association_input( reject_domain_name_access_association_request() ) -> binary(). encode_reject_domain_name_access_association_input(Input) -> gleam@json:to_string( encode_reject_domain_name_access_association_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 29408). -spec decode_reject_domain_name_access_association_input(binary()) -> {ok, reject_domain_name_access_association_request()} | {error, binary()}. decode_reject_domain_name_access_association_input(Body) -> case gleam@json:parse( Body, decode_reject_domain_name_access_association_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29422). -spec decode_reject_domain_name_access_association_output(binary()) -> {ok, reject_domain_name_access_association_output()} | {error, binary()}. decode_reject_domain_name_access_association_output(Body) -> case gleam@json:parse( Body, decode_reject_domain_name_access_association_output_struct() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29436). -spec encode_reject_domain_name_access_association_body( reject_domain_name_access_association_request() ) -> gleam@json:json(). encode_reject_domain_name_access_association_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 29442). -spec build_reject_domain_name_access_association_request( reject_domain_name_access_association_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_reject_domain_name_access_association_request(Input) -> Path = <<"/rejectdomainnameaccessassociations"/utf8>>, Query = <<""/utf8>>, Query@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:add_query( Query, <<"domainNameAccessAssociationArn"/utf8>>, V ); none -> Query end, Query@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query@1, <<"domainNameArn"/utf8>>, V@1 ); none -> Query@1 end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query@2), {<<"POST"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29477). -spec parse_reject_domain_name_access_association_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, reject_domain_name_access_association_output()} | {error, binary()}. parse_reject_domain_name_access_association_response(_, _, _) -> {ok, reject_domain_name_access_association_output}. -file("src/aws/services/api_gateway.gleam", 29489). -spec encode_tag_resource_output_struct(tag_resource_output()) -> gleam@json:json(). encode_tag_resource_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 29493). -spec decode_tag_resource_output_struct() -> gleam@dynamic@decode:decoder(tag_resource_output()). decode_tag_resource_output_struct() -> gleam@dynamic@decode:success(tag_resource_output). -file("src/aws/services/api_gateway.gleam", 29497). -spec encode_tag_resource_input(tag_resource_request()) -> binary(). encode_tag_resource_input(Input) -> gleam@json:to_string(encode_tag_resource_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29501). -spec decode_tag_resource_input(binary()) -> {ok, tag_resource_request()} | {error, binary()}. decode_tag_resource_input(Body) -> case gleam@json:parse(Body, decode_tag_resource_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29510). -spec decode_tag_resource_output(binary()) -> {ok, tag_resource_output()} | {error, binary()}. decode_tag_resource_output(Body) -> case gleam@json:parse(Body, decode_tag_resource_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29519). -spec encode_tag_resource_body(tag_resource_request()) -> gleam@json:json(). encode_tag_resource_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"tags"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 29539). -spec build_tag_resource_request(tag_resource_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_tag_resource_request(Input) -> Path = <<"/tags/{resourceArn}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"resourceArn"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_tag_resource_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"PUT"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29571). -spec parse_tag_resource_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, tag_resource_output()} | {error, binary()}. parse_tag_resource_response(_, _, _) -> {ok, tag_resource_output}. -file("src/aws/services/api_gateway.gleam", 29579). -spec encode_test_invoke_authorizer_input(test_invoke_authorizer_request()) -> binary(). encode_test_invoke_authorizer_input(Input) -> gleam@json:to_string(encode_test_invoke_authorizer_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29585). -spec decode_test_invoke_authorizer_input(binary()) -> {ok, test_invoke_authorizer_request()} | {error, binary()}. decode_test_invoke_authorizer_input(Body) -> case gleam@json:parse( Body, decode_test_invoke_authorizer_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29594). -spec decode_test_invoke_authorizer_output(binary()) -> {ok, test_invoke_authorizer_response()} | {error, binary()}. decode_test_invoke_authorizer_output(Body) -> case gleam@json:parse(Body, decode_test_invoke_authorizer_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29603). -spec encode_test_invoke_authorizer_body(test_invoke_authorizer_request()) -> gleam@json:json(). encode_test_invoke_authorizer_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"additionalContext"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(4, Input) of {some, V@1} -> [{<<"body"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(5, Input) of {some, V@2} -> [{<<"headers"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), gleam@json:string( erlang:element(2, Pair@1) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(6, Input) of {some, V@3} -> [{<<"multiValueHeaders"/utf8>>, (fun(D@2) -> gleam@json:object( begin _pipe@2 = maps:to_list(D@2), gleam@list:map( _pipe@2, fun(Pair@2) -> {erlang:element(1, Pair@2), (fun(Xs) -> gleam@json:array( Xs, fun gleam@json:string/1 ) end)(erlang:element(2, Pair@2))} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(7, Input) of {some, V@4} -> [{<<"pathWithQueryString"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(9, Input) of {some, V@5} -> [{<<"stageVariables"/utf8>>, (fun(D@3) -> gleam@json:object( begin _pipe@3 = maps:to_list(D@3), gleam@list:map( _pipe@3, fun(Pair@3) -> {erlang:element(1, Pair@3), gleam@json:string( erlang:element(2, Pair@3) )} end ) end ) end)(V@5)} | Pairs@5]; none -> Pairs@5 end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 29680). -spec build_test_invoke_authorizer_request(test_invoke_authorizer_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_test_invoke_authorizer_request(Input) -> Path = <<"/restapis/{restApiId}/authorizers/{authorizerId}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"authorizerId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(8, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_test_invoke_authorizer_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"POST"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29716). -spec parse_test_invoke_authorizer_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, test_invoke_authorizer_response()} | {error, binary()}. parse_test_invoke_authorizer_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_test_invoke_authorizer_output(<<"{}"/utf8>>); _ -> decode_test_invoke_authorizer_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29731). -spec encode_test_invoke_method_input(test_invoke_method_request()) -> binary(). encode_test_invoke_method_input(Input) -> gleam@json:to_string(encode_test_invoke_method_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29737). -spec decode_test_invoke_method_input(binary()) -> {ok, test_invoke_method_request()} | {error, binary()}. decode_test_invoke_method_input(Body) -> case gleam@json:parse( Body, decode_test_invoke_method_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29746). -spec decode_test_invoke_method_output(binary()) -> {ok, test_invoke_method_response()} | {error, binary()}. decode_test_invoke_method_output(Body) -> case gleam@json:parse(Body, decode_test_invoke_method_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29755). -spec encode_test_invoke_method_body(test_invoke_method_request()) -> gleam@json:json(). encode_test_invoke_method_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"body"/utf8>>, gleam@json:string(V)} | Pairs]; none -> Pairs end, Pairs@2 = case erlang:element(3, Input) of {some, V@1} -> [{<<"clientCertificateId"/utf8>>, gleam@json:string(V@1)} | Pairs@1]; none -> Pairs@1 end, Pairs@3 = case erlang:element(4, Input) of {some, V@2} -> [{<<"headers"/utf8>>, (fun(D) -> gleam@json:object( begin _pipe = maps:to_list(D), gleam@list:map( _pipe, fun(Pair) -> {erlang:element(1, Pair), gleam@json:string( erlang:element(2, Pair) )} end ) end ) end)(V@2)} | Pairs@2]; none -> Pairs@2 end, Pairs@4 = case erlang:element(6, Input) of {some, V@3} -> [{<<"multiValueHeaders"/utf8>>, (fun(D@1) -> gleam@json:object( begin _pipe@1 = maps:to_list(D@1), gleam@list:map( _pipe@1, fun(Pair@1) -> {erlang:element(1, Pair@1), (fun(Xs) -> gleam@json:array( Xs, fun gleam@json:string/1 ) end)(erlang:element(2, Pair@1))} end ) end ) end)(V@3)} | Pairs@3]; none -> Pairs@3 end, Pairs@5 = case erlang:element(7, Input) of {some, V@4} -> [{<<"pathWithQueryString"/utf8>>, gleam@json:string(V@4)} | Pairs@4]; none -> Pairs@4 end, Pairs@6 = case erlang:element(10, Input) of {some, V@5} -> [{<<"stageVariables"/utf8>>, (fun(D@2) -> gleam@json:object( begin _pipe@2 = maps:to_list(D@2), gleam@list:map( _pipe@2, fun(Pair@2) -> {erlang:element(1, Pair@2), gleam@json:string( erlang:element(2, Pair@2) )} end ) end ) end)(V@5)} | Pairs@5]; none -> Pairs@5 end, gleam@json:object(Pairs@6). -file("src/aws/services/api_gateway.gleam", 29821). -spec build_test_invoke_method_request(test_invoke_method_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_test_invoke_method_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"/utf8>>, Path@1 = case erlang:element(5, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(8, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(9, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_test_invoke_method_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"POST"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29861). -spec parse_test_invoke_method_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, test_invoke_method_response()} | {error, binary()}. parse_test_invoke_method_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_test_invoke_method_output(<<"{}"/utf8>>); _ -> decode_test_invoke_method_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29880). -spec encode_untag_resource_output_struct(untag_resource_output()) -> gleam@json:json(). encode_untag_resource_output_struct(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 29886). -spec decode_untag_resource_output_struct() -> gleam@dynamic@decode:decoder(untag_resource_output()). decode_untag_resource_output_struct() -> gleam@dynamic@decode:success(untag_resource_output). -file("src/aws/services/api_gateway.gleam", 29892). -spec encode_untag_resource_input(untag_resource_request()) -> binary(). encode_untag_resource_input(Input) -> gleam@json:to_string(encode_untag_resource_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29896). -spec decode_untag_resource_input(binary()) -> {ok, untag_resource_request()} | {error, binary()}. decode_untag_resource_input(Body) -> case gleam@json:parse(Body, decode_untag_resource_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29905). -spec decode_untag_resource_output(binary()) -> {ok, untag_resource_output()} | {error, binary()}. decode_untag_resource_output(Body) -> case gleam@json:parse(Body, decode_untag_resource_output_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29914). -spec encode_untag_resource_body(untag_resource_request()) -> gleam@json:json(). encode_untag_resource_body(_) -> gleam@json:object([]). -file("src/aws/services/api_gateway.gleam", 29918). -spec build_untag_resource_request(untag_resource_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_untag_resource_request(Input) -> Path = <<"/tags/{resourceArn}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"resourceArn"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, Xs} -> gleam@list:fold( Xs, Query, fun(Q, Item) -> begin V@1 = Item, aws@internal@codec@rest:add_query( Q, <<"tagKeys"/utf8>>, V@1 ) end end ); none -> Query end, Headers = maps:new(), Body = <<>>, Content_type = <<""/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@1), {<<"DELETE"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 29959). -spec parse_untag_resource_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, untag_resource_output()} | {error, binary()}. parse_untag_resource_response(_, _, _) -> {ok, untag_resource_output}. -file("src/aws/services/api_gateway.gleam", 29967). -spec encode_update_account_input(update_account_request()) -> binary(). encode_update_account_input(Input) -> gleam@json:to_string(encode_update_account_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 29971). -spec decode_update_account_input(binary()) -> {ok, update_account_request()} | {error, binary()}. decode_update_account_input(Body) -> case gleam@json:parse(Body, decode_update_account_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29980). -spec decode_update_account_output(binary()) -> {ok, account()} | {error, binary()}. decode_update_account_output(Body) -> case gleam@json:parse(Body, decode_account_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 29987). -spec encode_update_account_body(update_account_request()) -> gleam@json:json(). encode_update_account_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30002). -spec build_update_account_request(update_account_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_account_request(Input) -> Path = <<"/account"/utf8>>, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_account_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@1 = aws@internal@codec@rest:build_path(Path, Query), {<<"PATCH"/utf8>>, Path@1, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30030). -spec parse_update_account_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, account()} | {error, binary()}. parse_update_account_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_account_output(<<"{}"/utf8>>); _ -> decode_update_account_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30045). -spec encode_update_api_key_input(update_api_key_request()) -> binary(). encode_update_api_key_input(Input) -> gleam@json:to_string(encode_update_api_key_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30049). -spec decode_update_api_key_input(binary()) -> {ok, update_api_key_request()} | {error, binary()}. decode_update_api_key_input(Body) -> case gleam@json:parse(Body, decode_update_api_key_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30058). -spec decode_update_api_key_output(binary()) -> {ok, api_key()} | {error, binary()}. decode_update_api_key_output(Body) -> case gleam@json:parse(Body, decode_api_key_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30065). -spec encode_update_api_key_body(update_api_key_request()) -> gleam@json:json(). encode_update_api_key_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30080). -spec build_update_api_key_request(update_api_key_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_api_key_request(Input) -> Path = <<"/apikeys/{apiKey}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"apiKey"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_api_key_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"PATCH"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30112). -spec parse_update_api_key_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, api_key()} | {error, binary()}. parse_update_api_key_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_api_key_output(<<"{}"/utf8>>); _ -> decode_update_api_key_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30127). -spec encode_update_authorizer_input(update_authorizer_request()) -> binary(). encode_update_authorizer_input(Input) -> gleam@json:to_string(encode_update_authorizer_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30133). -spec decode_update_authorizer_input(binary()) -> {ok, update_authorizer_request()} | {error, binary()}. decode_update_authorizer_input(Body) -> case gleam@json:parse( Body, decode_update_authorizer_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30142). -spec decode_update_authorizer_output(binary()) -> {ok, authorizer()} | {error, binary()}. decode_update_authorizer_output(Body) -> case gleam@json:parse(Body, decode_authorizer_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30151). -spec encode_update_authorizer_body(update_authorizer_request()) -> gleam@json:json(). encode_update_authorizer_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30168). -spec build_update_authorizer_request(update_authorizer_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_authorizer_request(Input) -> Path = <<"/restapis/{restApiId}/authorizers/{authorizerId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"authorizerId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_authorizer_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30204). -spec parse_update_authorizer_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, authorizer()} | {error, binary()}. parse_update_authorizer_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_authorizer_output(<<"{}"/utf8>>); _ -> decode_update_authorizer_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30219). -spec encode_update_base_path_mapping_input(update_base_path_mapping_request()) -> binary(). encode_update_base_path_mapping_input(Input) -> gleam@json:to_string(encode_update_base_path_mapping_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30225). -spec decode_update_base_path_mapping_input(binary()) -> {ok, update_base_path_mapping_request()} | {error, binary()}. decode_update_base_path_mapping_input(Body) -> case gleam@json:parse( Body, decode_update_base_path_mapping_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30236). -spec decode_update_base_path_mapping_output(binary()) -> {ok, base_path_mapping()} | {error, binary()}. decode_update_base_path_mapping_output(Body) -> case gleam@json:parse(Body, decode_base_path_mapping_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30245). -spec encode_update_base_path_mapping_body(update_base_path_mapping_request()) -> gleam@json:json(). encode_update_base_path_mapping_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(5, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30262). -spec build_update_base_path_mapping_request(update_base_path_mapping_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_base_path_mapping_request(Input) -> Path = <<"/domainnames/{domainName}/basepathmappings/{basePath}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"basePath"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"domainName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Query@1 = case erlang:element(4, Input) of {some, V@2} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@2 ); none -> Query end, Headers = maps:new(), Body_json = encode_update_base_path_mapping_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query@1), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30302). -spec parse_update_base_path_mapping_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, base_path_mapping()} | {error, binary()}. parse_update_base_path_mapping_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_base_path_mapping_output(<<"{}"/utf8>>); _ -> decode_update_base_path_mapping_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30317). -spec encode_update_client_certificate_input( update_client_certificate_request() ) -> binary(). encode_update_client_certificate_input(Input) -> gleam@json:to_string(encode_update_client_certificate_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30323). -spec decode_update_client_certificate_input(binary()) -> {ok, update_client_certificate_request()} | {error, binary()}. decode_update_client_certificate_input(Body) -> case gleam@json:parse( Body, decode_update_client_certificate_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30334). -spec decode_update_client_certificate_output(binary()) -> {ok, client_certificate()} | {error, binary()}. decode_update_client_certificate_output(Body) -> case gleam@json:parse(Body, decode_client_certificate_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30343). -spec encode_update_client_certificate_body(update_client_certificate_request()) -> gleam@json:json(). encode_update_client_certificate_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30360). -spec build_update_client_certificate_request( update_client_certificate_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_client_certificate_request(Input) -> Path = <<"/clientcertificates/{clientCertificateId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"clientCertificateId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_client_certificate_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"PATCH"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30393). -spec parse_update_client_certificate_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, client_certificate()} | {error, binary()}. parse_update_client_certificate_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_client_certificate_output(<<"{}"/utf8>>); _ -> decode_update_client_certificate_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30408). -spec encode_update_deployment_input(update_deployment_request()) -> binary(). encode_update_deployment_input(Input) -> gleam@json:to_string(encode_update_deployment_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30414). -spec decode_update_deployment_input(binary()) -> {ok, update_deployment_request()} | {error, binary()}. decode_update_deployment_input(Body) -> case gleam@json:parse( Body, decode_update_deployment_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30423). -spec decode_update_deployment_output(binary()) -> {ok, deployment()} | {error, binary()}. decode_update_deployment_output(Body) -> case gleam@json:parse(Body, decode_deployment_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30432). -spec encode_update_deployment_body(update_deployment_request()) -> gleam@json:json(). encode_update_deployment_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30449). -spec build_update_deployment_request(update_deployment_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_deployment_request(Input) -> Path = <<"/restapis/{restApiId}/deployments/{deploymentId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"deploymentId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_deployment_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30485). -spec parse_update_deployment_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, deployment()} | {error, binary()}. parse_update_deployment_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_deployment_output(<<"{}"/utf8>>); _ -> decode_update_deployment_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30500). -spec encode_update_documentation_part_input( update_documentation_part_request() ) -> binary(). encode_update_documentation_part_input(Input) -> gleam@json:to_string(encode_update_documentation_part_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30506). -spec decode_update_documentation_part_input(binary()) -> {ok, update_documentation_part_request()} | {error, binary()}. decode_update_documentation_part_input(Body) -> case gleam@json:parse( Body, decode_update_documentation_part_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30517). -spec decode_update_documentation_part_output(binary()) -> {ok, documentation_part()} | {error, binary()}. decode_update_documentation_part_output(Body) -> case gleam@json:parse(Body, decode_documentation_part_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30526). -spec encode_update_documentation_part_body(update_documentation_part_request()) -> gleam@json:json(). encode_update_documentation_part_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30543). -spec build_update_documentation_part_request( update_documentation_part_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_documentation_part_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/parts/{documentationPartId}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"documentationPartId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_documentation_part_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30580). -spec parse_update_documentation_part_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_part()} | {error, binary()}. parse_update_documentation_part_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_documentation_part_output(<<"{}"/utf8>>); _ -> decode_update_documentation_part_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30595). -spec encode_update_documentation_version_input( update_documentation_version_request() ) -> binary(). encode_update_documentation_version_input(Input) -> gleam@json:to_string( encode_update_documentation_version_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 30601). -spec decode_update_documentation_version_input(binary()) -> {ok, update_documentation_version_request()} | {error, binary()}. decode_update_documentation_version_input(Body) -> case gleam@json:parse( Body, decode_update_documentation_version_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30615). -spec decode_update_documentation_version_output(binary()) -> {ok, documentation_version()} | {error, binary()}. decode_update_documentation_version_output(Body) -> case gleam@json:parse(Body, decode_documentation_version_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30624). -spec encode_update_documentation_version_body( update_documentation_version_request() ) -> gleam@json:json(). encode_update_documentation_version_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30641). -spec build_update_documentation_version_request( update_documentation_version_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_documentation_version_request(Input) -> Path = <<"/restapis/{restApiId}/documentation/versions/{documentationVersion}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"documentationVersion"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_documentation_version_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30679). -spec parse_update_documentation_version_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, documentation_version()} | {error, binary()}. parse_update_documentation_version_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_documentation_version_output(<<"{}"/utf8>>); _ -> decode_update_documentation_version_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30694). -spec encode_update_domain_name_input(update_domain_name_request()) -> binary(). encode_update_domain_name_input(Input) -> gleam@json:to_string(encode_update_domain_name_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30700). -spec decode_update_domain_name_input(binary()) -> {ok, update_domain_name_request()} | {error, binary()}. decode_update_domain_name_input(Body) -> case gleam@json:parse( Body, decode_update_domain_name_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30709). -spec decode_update_domain_name_output(binary()) -> {ok, domain_name()} | {error, binary()}. decode_update_domain_name_output(Body) -> case gleam@json:parse(Body, decode_domain_name_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30718). -spec encode_update_domain_name_body(update_domain_name_request()) -> gleam@json:json(). encode_update_domain_name_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(4, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30735). -spec build_update_domain_name_request(update_domain_name_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_domain_name_request(Input) -> Path = <<"/domainnames/{domainName}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"domainName"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Query@1 = case erlang:element(3, Input) of {some, V@1} -> aws@internal@codec@rest:add_query( Query, <<"domainNameId"/utf8>>, V@1 ); none -> Query end, Headers = maps:new(), Body_json = encode_update_domain_name_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query@1), {<<"PATCH"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30771). -spec parse_update_domain_name_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, domain_name()} | {error, binary()}. parse_update_domain_name_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_domain_name_output(<<"{}"/utf8>>); _ -> decode_update_domain_name_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30786). -spec encode_update_gateway_response_input(update_gateway_response_request()) -> binary(). encode_update_gateway_response_input(Input) -> gleam@json:to_string(encode_update_gateway_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30792). -spec decode_update_gateway_response_input(binary()) -> {ok, update_gateway_response_request()} | {error, binary()}. decode_update_gateway_response_input(Body) -> case gleam@json:parse( Body, decode_update_gateway_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30803). -spec decode_update_gateway_response_output(binary()) -> {ok, gateway_response()} | {error, binary()}. decode_update_gateway_response_output(Body) -> case gleam@json:parse(Body, decode_gateway_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30812). -spec encode_update_gateway_response_body(update_gateway_response_request()) -> gleam@json:json(). encode_update_gateway_response_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30829). -spec build_update_gateway_response_request(update_gateway_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_gateway_response_request(Input) -> Path = <<"/restapis/{restApiId}/gatewayresponses/{responseType}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"responseType"/utf8>>, aws@internal@codec@rest:enum_wire_value( encode_gateway_response_type_enum(V) ), false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_gateway_response_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30871). -spec parse_update_gateway_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, gateway_response()} | {error, binary()}. parse_update_gateway_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_gateway_response_output(<<"{}"/utf8>>); _ -> decode_update_gateway_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30886). -spec encode_update_integration_input(update_integration_request()) -> binary(). encode_update_integration_input(Input) -> gleam@json:to_string(encode_update_integration_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 30892). -spec decode_update_integration_input(binary()) -> {ok, update_integration_request()} | {error, binary()}. decode_update_integration_input(Body) -> case gleam@json:parse( Body, decode_update_integration_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30901). -spec decode_update_integration_output(binary()) -> {ok, integration()} | {error, binary()}. decode_update_integration_output(Body) -> case gleam@json:parse(Body, decode_integration_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30910). -spec encode_update_integration_body(update_integration_request()) -> gleam@json:json(). encode_update_integration_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 30927). -spec build_update_integration_request(update_integration_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_integration_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(5, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_integration_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"PATCH"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 30968). -spec parse_update_integration_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, integration()} | {error, binary()}. parse_update_integration_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_integration_output(<<"{}"/utf8>>); _ -> decode_update_integration_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 30983). -spec encode_update_integration_response_input( update_integration_response_request() ) -> binary(). encode_update_integration_response_input(Input) -> gleam@json:to_string( encode_update_integration_response_request_struct(Input) ). -file("src/aws/services/api_gateway.gleam", 30989). -spec decode_update_integration_response_input(binary()) -> {ok, update_integration_response_request()} | {error, binary()}. decode_update_integration_response_input(Body) -> case gleam@json:parse( Body, decode_update_integration_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31000). -spec decode_update_integration_response_output(binary()) -> {ok, integration_response()} | {error, binary()}. decode_update_integration_response_output(Body) -> case gleam@json:parse(Body, decode_integration_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31009). -spec encode_update_integration_response_body( update_integration_response_request() ) -> gleam@json:json(). encode_update_integration_response_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31026). -spec build_update_integration_response_request( update_integration_response_request() ) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_integration_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(5, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(6, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_integration_response_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"PATCH"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31071). -spec parse_update_integration_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, integration_response()} | {error, binary()}. parse_update_integration_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_integration_response_output(<<"{}"/utf8>>); _ -> decode_update_integration_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31086). -spec encode_update_method_input(update_method_request()) -> binary(). encode_update_method_input(Input) -> gleam@json:to_string(encode_update_method_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31090). -spec decode_update_method_input(binary()) -> {ok, update_method_request()} | {error, binary()}. decode_update_method_input(Body) -> case gleam@json:parse(Body, decode_update_method_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31099). -spec decode_update_method_output(binary()) -> {ok, method()} | {error, binary()}. decode_update_method_output(Body) -> case gleam@json:parse(Body, decode_method_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31106). -spec encode_update_method_body(update_method_request()) -> gleam@json:json(). encode_update_method_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31121). -spec build_update_method_request(update_method_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_method_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(5, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_method_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@4 = aws@internal@codec@rest:build_path(Path@3, Query), {<<"PATCH"/utf8>>, Path@4, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31161). -spec parse_update_method_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, method()} | {error, binary()}. parse_update_method_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_method_output(<<"{}"/utf8>>); _ -> decode_update_method_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31176). -spec encode_update_method_response_input(update_method_response_request()) -> binary(). encode_update_method_response_input(Input) -> gleam@json:to_string(encode_update_method_response_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31182). -spec decode_update_method_response_input(binary()) -> {ok, update_method_response_request()} | {error, binary()}. decode_update_method_response_input(Body) -> case gleam@json:parse( Body, decode_update_method_response_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31191). -spec decode_update_method_response_output(binary()) -> {ok, method_response()} | {error, binary()}. decode_update_method_response_output(Body) -> case gleam@json:parse(Body, decode_method_response_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31200). -spec encode_update_method_response_body(update_method_response_request()) -> gleam@json:json(). encode_update_method_response_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31217). -spec build_update_method_response_request(update_method_response_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_method_response_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"httpMethod"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"resourceId"/utf8>>, V@1, false ); none -> Path@1 end, Path@3 = case erlang:element(5, Input) of {some, V@2} -> aws@internal@codec@rest:substitute_label( Path@2, <<"restApiId"/utf8>>, V@2, false ); none -> Path@2 end, Path@4 = case erlang:element(6, Input) of {some, V@3} -> aws@internal@codec@rest:substitute_label( Path@3, <<"statusCode"/utf8>>, V@3, false ); none -> Path@3 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_method_response_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@5 = aws@internal@codec@rest:build_path(Path@4, Query), {<<"PATCH"/utf8>>, Path@5, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31262). -spec parse_update_method_response_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, method_response()} | {error, binary()}. parse_update_method_response_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_method_response_output(<<"{}"/utf8>>); _ -> decode_update_method_response_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31277). -spec encode_update_model_input(update_model_request()) -> binary(). encode_update_model_input(Input) -> gleam@json:to_string(encode_update_model_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31281). -spec decode_update_model_input(binary()) -> {ok, update_model_request()} | {error, binary()}. decode_update_model_input(Body) -> case gleam@json:parse(Body, decode_update_model_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31290). -spec decode_update_model_output(binary()) -> {ok, model()} | {error, binary()}. decode_update_model_output(Body) -> case gleam@json:parse(Body, decode_model_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31297). -spec encode_update_model_body(update_model_request()) -> gleam@json:json(). encode_update_model_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31312). -spec build_update_model_request(update_model_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_model_request(Input) -> Path = <<"/restapis/{restApiId}/models/{modelName}"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"modelName"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_model_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31348). -spec parse_update_model_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, model()} | {error, binary()}. parse_update_model_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_model_output(<<"{}"/utf8>>); _ -> decode_update_model_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31363). -spec encode_update_request_validator_input(update_request_validator_request()) -> binary(). encode_update_request_validator_input(Input) -> gleam@json:to_string(encode_update_request_validator_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31369). -spec decode_update_request_validator_input(binary()) -> {ok, update_request_validator_request()} | {error, binary()}. decode_update_request_validator_input(Body) -> case gleam@json:parse( Body, decode_update_request_validator_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31380). -spec decode_update_request_validator_output(binary()) -> {ok, request_validator()} | {error, binary()}. decode_update_request_validator_output(Body) -> case gleam@json:parse(Body, decode_request_validator_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31389). -spec encode_update_request_validator_body(update_request_validator_request()) -> gleam@json:json(). encode_update_request_validator_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31406). -spec build_update_request_validator_request(update_request_validator_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_request_validator_request(Input) -> Path = <<"/restapis/{restApiId}/requestvalidators/{requestValidatorId}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"requestValidatorId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_request_validator_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31443). -spec parse_update_request_validator_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, request_validator()} | {error, binary()}. parse_update_request_validator_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_request_validator_output(<<"{}"/utf8>>); _ -> decode_update_request_validator_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31458). -spec encode_update_resource_input(update_resource_request()) -> binary(). encode_update_resource_input(Input) -> gleam@json:to_string(encode_update_resource_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31462). -spec decode_update_resource_input(binary()) -> {ok, update_resource_request()} | {error, binary()}. decode_update_resource_input(Body) -> case gleam@json:parse(Body, decode_update_resource_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31471). -spec decode_update_resource_output(binary()) -> {ok, resource()} | {error, binary()}. decode_update_resource_output(Body) -> case gleam@json:parse(Body, decode_resource_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31478). -spec encode_update_resource_body(update_resource_request()) -> gleam@json:json(). encode_update_resource_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31493). -spec build_update_resource_request(update_resource_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_resource_request(Input) -> Path = <<"/restapis/{restApiId}/resources/{resourceId}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"resourceId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"restApiId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_resource_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31529). -spec parse_update_resource_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, resource()} | {error, binary()}. parse_update_resource_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_resource_output(<<"{}"/utf8>>); _ -> decode_update_resource_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31544). -spec encode_update_rest_api_input(update_rest_api_request()) -> binary(). encode_update_rest_api_input(Input) -> gleam@json:to_string(encode_update_rest_api_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31548). -spec decode_update_rest_api_input(binary()) -> {ok, update_rest_api_request()} | {error, binary()}. decode_update_rest_api_input(Body) -> case gleam@json:parse(Body, decode_update_rest_api_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31557). -spec decode_update_rest_api_output(binary()) -> {ok, rest_api()} | {error, binary()}. decode_update_rest_api_output(Body) -> case gleam@json:parse(Body, decode_rest_api_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31564). -spec encode_update_rest_api_body(update_rest_api_request()) -> gleam@json:json(). encode_update_rest_api_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31579). -spec build_update_rest_api_request(update_rest_api_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_rest_api_request(Input) -> Path = <<"/restapis/{restApiId}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_rest_api_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"PATCH"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31611). -spec parse_update_rest_api_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, rest_api()} | {error, binary()}. parse_update_rest_api_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_rest_api_output(<<"{}"/utf8>>); _ -> decode_update_rest_api_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31626). -spec encode_update_stage_input(update_stage_request()) -> binary(). encode_update_stage_input(Input) -> gleam@json:to_string(encode_update_stage_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31630). -spec decode_update_stage_input(binary()) -> {ok, update_stage_request()} | {error, binary()}. decode_update_stage_input(Body) -> case gleam@json:parse(Body, decode_update_stage_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31639). -spec decode_update_stage_output(binary()) -> {ok, stage()} | {error, binary()}. decode_update_stage_output(Body) -> case gleam@json:parse(Body, decode_stage_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31646). -spec encode_update_stage_body(update_stage_request()) -> gleam@json:json(). encode_update_stage_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31661). -spec build_update_stage_request(update_stage_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_stage_request(Input) -> Path = <<"/restapis/{restApiId}/stages/{stageName}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"restApiId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"stageName"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_stage_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31697). -spec parse_update_stage_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, stage()} | {error, binary()}. parse_update_stage_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_stage_output(<<"{}"/utf8>>); _ -> decode_update_stage_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31712). -spec encode_update_usage_input(update_usage_request()) -> binary(). encode_update_usage_input(Input) -> gleam@json:to_string(encode_update_usage_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31716). -spec decode_update_usage_input(binary()) -> {ok, update_usage_request()} | {error, binary()}. decode_update_usage_input(Body) -> case gleam@json:parse(Body, decode_update_usage_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31725). -spec decode_update_usage_output(binary()) -> {ok, usage()} | {error, binary()}. decode_update_usage_output(Body) -> case gleam@json:parse(Body, decode_usage_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31732). -spec encode_update_usage_body(update_usage_request()) -> gleam@json:json(). encode_update_usage_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(3, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31747). -spec build_update_usage_request(update_usage_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_usage_request(Input) -> Path = <<"/usageplans/{usagePlanId}/keys/{keyId}/usage"/utf8>>, Path@1 = case erlang:element(2, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"keyId"/utf8>>, V, false ); none -> Path end, Path@2 = case erlang:element(4, Input) of {some, V@1} -> aws@internal@codec@rest:substitute_label( Path@1, <<"usagePlanId"/utf8>>, V@1, false ); none -> Path@1 end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_usage_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@3 = aws@internal@codec@rest:build_path(Path@2, Query), {<<"PATCH"/utf8>>, Path@3, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31783). -spec parse_update_usage_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage()} | {error, binary()}. parse_update_usage_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_usage_output(<<"{}"/utf8>>); _ -> decode_update_usage_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31798). -spec encode_update_usage_plan_input(update_usage_plan_request()) -> binary(). encode_update_usage_plan_input(Input) -> gleam@json:to_string(encode_update_usage_plan_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31802). -spec decode_update_usage_plan_input(binary()) -> {ok, update_usage_plan_request()} | {error, binary()}. decode_update_usage_plan_input(Body) -> case gleam@json:parse( Body, decode_update_usage_plan_request_struct_params() ) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31811). -spec decode_update_usage_plan_output(binary()) -> {ok, usage_plan()} | {error, binary()}. decode_update_usage_plan_output(Body) -> case gleam@json:parse(Body, decode_usage_plan_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31820). -spec encode_update_usage_plan_body(update_usage_plan_request()) -> gleam@json:json(). encode_update_usage_plan_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31837). -spec build_update_usage_plan_request(update_usage_plan_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_usage_plan_request(Input) -> Path = <<"/usageplans/{usagePlanId}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"usagePlanId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_usage_plan_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"PATCH"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31869). -spec parse_update_usage_plan_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, usage_plan()} | {error, binary()}. parse_update_usage_plan_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_usage_plan_output(<<"{}"/utf8>>); _ -> decode_update_usage_plan_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31884). -spec encode_update_vpc_link_input(update_vpc_link_request()) -> binary(). encode_update_vpc_link_input(Input) -> gleam@json:to_string(encode_update_vpc_link_request_struct(Input)). -file("src/aws/services/api_gateway.gleam", 31888). -spec decode_update_vpc_link_input(binary()) -> {ok, update_vpc_link_request()} | {error, binary()}. decode_update_vpc_link_input(Body) -> case gleam@json:parse(Body, decode_update_vpc_link_request_struct_params()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31897). -spec decode_update_vpc_link_output(binary()) -> {ok, vpc_link()} | {error, binary()}. decode_update_vpc_link_output(Body) -> case gleam@json:parse(Body, decode_vpc_link_struct()) of {ok, V} -> {ok, V}; {error, _} -> {error, <<"decode failed"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31904). -spec encode_update_vpc_link_body(update_vpc_link_request()) -> gleam@json:json(). encode_update_vpc_link_body(Input) -> Pairs = [], Pairs@1 = case erlang:element(2, Input) of {some, V} -> [{<<"patchOperations"/utf8>>, (fun(Xs) -> gleam@json:array( Xs, fun encode_patch_operation_struct/1 ) end)(V)} | Pairs]; none -> Pairs end, gleam@json:object(Pairs@1). -file("src/aws/services/api_gateway.gleam", 31919). -spec build_update_vpc_link_request(update_vpc_link_request()) -> {binary(), binary(), gleam@dict:dict(binary(), binary()), bitstring()}. build_update_vpc_link_request(Input) -> Path = <<"/vpclinks/{vpcLinkId}"/utf8>>, Path@1 = case erlang:element(3, Input) of {some, V} -> aws@internal@codec@rest:substitute_label( Path, <<"vpcLinkId"/utf8>>, V, false ); none -> Path end, Query = <<""/utf8>>, Headers = maps:new(), Body_json = encode_update_vpc_link_body(Input), Body = gleam_stdlib:identity(gleam@json:to_string(Body_json)), Content_type = <<"application/json"/utf8>>, Headers@1 = case {Content_type, gleam@dict:has_key(Headers, <<"Content-Type"/utf8>>)} of {<<""/utf8>>, _} -> Headers; {_, true} -> Headers; {_, false} -> gleam@dict:insert(Headers, <<"Content-Type"/utf8>>, Content_type) end, Headers@2 = case Content_type of <<""/utf8>> -> Headers@1; _ -> gleam@dict:insert( Headers@1, <<"Content-Length"/utf8>>, erlang:integer_to_binary(erlang:byte_size(Body)) ) end, Headers@3 = aws@internal@codec@rest:set_default_header( Headers@2, <<"Accept"/utf8>>, <<"application/json"/utf8>> ), Path@2 = aws@internal@codec@rest:build_path(Path@1, Query), {<<"PATCH"/utf8>>, Path@2, Headers@3, Body}. -file("src/aws/services/api_gateway.gleam", 31951). -spec parse_update_vpc_link_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, vpc_link()} | {error, binary()}. parse_update_vpc_link_response(_, _, Body) -> case gleam@bit_array:to_string(Body) of {ok, Text} -> case Text of <<""/utf8>> -> decode_update_vpc_link_output(<<"{}"/utf8>>); _ -> decode_update_vpc_link_output(Text) end; {error, _} -> {error, <<"non-utf8 body"/utf8>>} end. -file("src/aws/services/api_gateway.gleam", 31977). -spec create_api_key_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_api_key_error()} | {error, nil})}). create_api_key_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_api_key_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_api_key_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_api_key_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_api_key_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_api_key_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_api_key_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32018). -spec translate_create_api_key_error(aws@internal@client@runtime:client_error()) -> create_api_key_error(). translate_create_api_key_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_api_key_error_decoders(), fun(Reason) -> {create_api_key_error_transport, Reason} end, fun(Et, S, Body) -> {create_api_key_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32042). -spec create_authorizer_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_authorizer_error()} | {error, nil})}). create_authorizer_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_authorizer_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_authorizer_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_authorizer_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_authorizer_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_authorizer_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_authorizer_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32083). -spec translate_create_authorizer_error( aws@internal@client@runtime:client_error() ) -> create_authorizer_error(). translate_create_authorizer_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_authorizer_error_decoders(), fun(Reason) -> {create_authorizer_error_transport, Reason} end, fun(Et, S, Body) -> {create_authorizer_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32115). -spec create_base_path_mapping_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_base_path_mapping_error()} | {error, nil})}). create_base_path_mapping_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_base_path_mapping_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_base_path_mapping_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_base_path_mapping_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_base_path_mapping_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_base_path_mapping_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_base_path_mapping_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32157). -spec translate_create_base_path_mapping_error( aws@internal@client@runtime:client_error() ) -> create_base_path_mapping_error(). translate_create_base_path_mapping_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_base_path_mapping_error_decoders(), fun(Reason) -> {create_base_path_mapping_error_transport, Reason} end, fun(Et, S, Body) -> {create_base_path_mapping_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32184). -spec create_deployment_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_deployment_error()} | {error, nil})}). create_deployment_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_deployment_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_deployment_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_deployment_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_deployment_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"ServiceUnavailableException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_service_unavailable_exception_struct() ) of {ok, V@4} -> {ok, {create_deployment_error_service_unavailable_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_too_many_requests_exception_struct() ) of {ok, V@5} -> {ok, {create_deployment_error_too_many_requests_exception, V@5}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@6) -> case gleam@json:parse( Body@6, decode_unauthorized_exception_struct() ) of {ok, V@6} -> {ok, {create_deployment_error_unauthorized_exception, V@6}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32231). -spec translate_create_deployment_error( aws@internal@client@runtime:client_error() ) -> create_deployment_error(). translate_create_deployment_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_deployment_error_decoders(), fun(Reason) -> {create_deployment_error_transport, Reason} end, fun(Et, S, Body) -> {create_deployment_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32265). -spec create_documentation_part_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_documentation_part_error()} | {error, nil})}). create_documentation_part_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_documentation_part_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_documentation_part_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_documentation_part_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_documentation_part_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_documentation_part_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_documentation_part_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32308). -spec translate_create_documentation_part_error( aws@internal@client@runtime:client_error() ) -> create_documentation_part_error(). translate_create_documentation_part_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_documentation_part_error_decoders(), fun(Reason) -> {create_documentation_part_error_transport, Reason} end, fun(Et, S, Body) -> {create_documentation_part_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32342). -spec create_documentation_version_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_documentation_version_error()} | {error, nil})}). create_documentation_version_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_documentation_version_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_documentation_version_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_documentation_version_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_documentation_version_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_documentation_version_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_documentation_version_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32387). -spec translate_create_documentation_version_error( aws@internal@client@runtime:client_error() ) -> create_documentation_version_error(). translate_create_documentation_version_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_documentation_version_error_decoders(), fun(Reason) -> {create_documentation_version_error_transport, Reason} end, fun(Et, S, Body) -> {create_documentation_version_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32414). -spec create_domain_name_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_domain_name_error()} | {error, nil})}). create_domain_name_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_domain_name_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_domain_name_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_domain_name_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {create_domain_name_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {create_domain_name_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32449). -spec translate_create_domain_name_error( aws@internal@client@runtime:client_error() ) -> create_domain_name_error(). translate_create_domain_name_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_domain_name_error_decoders(), fun(Reason) -> {create_domain_name_error_transport, Reason} end, fun(Et, S, Body) -> {create_domain_name_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32486). -spec create_domain_name_access_association_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_domain_name_access_association_error()} | {error, nil})}). create_domain_name_access_association_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_domain_name_access_association_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_domain_name_access_association_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_domain_name_access_association_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {create_domain_name_access_association_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {create_domain_name_access_association_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32532). -spec translate_create_domain_name_access_association_error( aws@internal@client@runtime:client_error() ) -> create_domain_name_access_association_error(). translate_create_domain_name_access_association_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_domain_name_access_association_error_decoders(), fun(Reason) -> {create_domain_name_access_association_error_transport, Reason} end, fun(Et, S, Body) -> {create_domain_name_access_association_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32562). -spec create_model_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_model_error()} | {error, nil})}). create_model_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_model_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_model_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_model_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_model_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_model_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_model_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32603). -spec translate_create_model_error(aws@internal@client@runtime:client_error()) -> create_model_error(). translate_create_model_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_model_error_decoders(), fun(Reason) -> {create_model_error_transport, Reason} end, fun(Et, S, Body) -> {create_model_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32633). -spec create_request_validator_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_request_validator_error()} | {error, nil})}). create_request_validator_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_request_validator_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_request_validator_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_request_validator_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_request_validator_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_request_validator_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_request_validator_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32675). -spec translate_create_request_validator_error( aws@internal@client@runtime:client_error() ) -> create_request_validator_error(). translate_create_request_validator_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_request_validator_error_decoders(), fun(Reason) -> {create_request_validator_error_transport, Reason} end, fun(Et, S, Body) -> {create_request_validator_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32699). -spec create_resource_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_resource_error()} | {error, nil})}). create_resource_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_resource_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_resource_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_resource_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_resource_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_resource_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_resource_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32740). -spec translate_create_resource_error( aws@internal@client@runtime:client_error() ) -> create_resource_error(). translate_create_resource_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_resource_error_decoders(), fun(Reason) -> {create_resource_error_transport, Reason} end, fun(Et, S, Body) -> {create_resource_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32763). -spec create_rest_api_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_rest_api_error()} | {error, nil})}). create_rest_api_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_rest_api_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_rest_api_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_rest_api_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {create_rest_api_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {create_rest_api_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32798). -spec translate_create_rest_api_error( aws@internal@client@runtime:client_error() ) -> create_rest_api_error(). translate_create_rest_api_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_rest_api_error_decoders(), fun(Reason) -> {create_rest_api_error_transport, Reason} end, fun(Et, S, Body) -> {create_rest_api_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32822). -spec create_stage_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_stage_error()} | {error, nil})}). create_stage_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_stage_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_stage_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_stage_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_stage_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_stage_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_stage_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32863). -spec translate_create_stage_error(aws@internal@client@runtime:client_error()) -> create_stage_error(). translate_create_stage_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_stage_error_decoders(), fun(Reason) -> {create_stage_error_transport, Reason} end, fun(Et, S, Body) -> {create_stage_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32885). -spec create_usage_plan_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_usage_plan_error()} | {error, nil})}). create_usage_plan_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_usage_plan_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_usage_plan_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_usage_plan_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_usage_plan_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_usage_plan_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_usage_plan_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32926). -spec translate_create_usage_plan_error( aws@internal@client@runtime:client_error() ) -> create_usage_plan_error(). translate_create_usage_plan_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_usage_plan_error_decoders(), fun(Reason) -> {create_usage_plan_error_transport, Reason} end, fun(Et, S, Body) -> {create_usage_plan_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 32952). -spec create_usage_plan_key_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_usage_plan_key_error()} | {error, nil})}). create_usage_plan_key_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_usage_plan_key_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_usage_plan_key_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_usage_plan_key_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {create_usage_plan_key_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {create_usage_plan_key_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {create_usage_plan_key_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 32993). -spec translate_create_usage_plan_key_error( aws@internal@client@runtime:client_error() ) -> create_usage_plan_key_error(). translate_create_usage_plan_key_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_usage_plan_key_error_decoders(), fun(Reason) -> {create_usage_plan_key_error_transport, Reason} end, fun(Et, S, Body) -> {create_usage_plan_key_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33016). -spec create_vpc_link_error_decoders() -> list({binary(), fun((binary()) -> {ok, create_vpc_link_error()} | {error, nil})}). create_vpc_link_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {create_vpc_link_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {create_vpc_link_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {create_vpc_link_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {create_vpc_link_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {create_vpc_link_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33051). -spec translate_create_vpc_link_error( aws@internal@client@runtime:client_error() ) -> create_vpc_link_error(). translate_create_vpc_link_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, create_vpc_link_error_decoders(), fun(Reason) -> {create_vpc_link_error_transport, Reason} end, fun(Et, S, Body) -> {create_vpc_link_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33074). -spec delete_api_key_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_api_key_error()} | {error, nil})}). delete_api_key_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_api_key_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_api_key_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_api_key_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_api_key_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_api_key_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33109). -spec translate_delete_api_key_error(aws@internal@client@runtime:client_error()) -> delete_api_key_error(). translate_delete_api_key_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_api_key_error_decoders(), fun(Reason) -> {delete_api_key_error_transport, Reason} end, fun(Et, S, Body) -> {delete_api_key_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33132). -spec delete_authorizer_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_authorizer_error()} | {error, nil})}). delete_authorizer_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_authorizer_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_authorizer_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_authorizer_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_authorizer_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_authorizer_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33167). -spec translate_delete_authorizer_error( aws@internal@client@runtime:client_error() ) -> delete_authorizer_error(). translate_delete_authorizer_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_authorizer_error_decoders(), fun(Reason) -> {delete_authorizer_error_transport, Reason} end, fun(Et, S, Body) -> {delete_authorizer_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33196). -spec delete_base_path_mapping_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_base_path_mapping_error()} | {error, nil})}). delete_base_path_mapping_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_base_path_mapping_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_base_path_mapping_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_base_path_mapping_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_base_path_mapping_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_base_path_mapping_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33232). -spec translate_delete_base_path_mapping_error( aws@internal@client@runtime:client_error() ) -> delete_base_path_mapping_error(). translate_delete_base_path_mapping_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_base_path_mapping_error_decoders(), fun(Reason) -> {delete_base_path_mapping_error_transport, Reason} end, fun(Et, S, Body) -> {delete_base_path_mapping_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33263). -spec delete_client_certificate_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_client_certificate_error()} | {error, nil})}). delete_client_certificate_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_client_certificate_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_client_certificate_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_client_certificate_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_client_certificate_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_client_certificate_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33299). -spec translate_delete_client_certificate_error( aws@internal@client@runtime:client_error() ) -> delete_client_certificate_error(). translate_delete_client_certificate_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_client_certificate_error_decoders(), fun(Reason) -> {delete_client_certificate_error_transport, Reason} end, fun(Et, S, Body) -> {delete_client_certificate_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33323). -spec delete_deployment_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_deployment_error()} | {error, nil})}). delete_deployment_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_deployment_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_deployment_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {delete_deployment_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {delete_deployment_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {delete_deployment_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {delete_deployment_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33364). -spec translate_delete_deployment_error( aws@internal@client@runtime:client_error() ) -> delete_deployment_error(). translate_delete_deployment_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_deployment_error_decoders(), fun(Reason) -> {delete_deployment_error_transport, Reason} end, fun(Et, S, Body) -> {delete_deployment_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33395). -spec delete_documentation_part_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_documentation_part_error()} | {error, nil})}). delete_documentation_part_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_documentation_part_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_documentation_part_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_documentation_part_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_documentation_part_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_documentation_part_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33431). -spec translate_delete_documentation_part_error( aws@internal@client@runtime:client_error() ) -> delete_documentation_part_error(). translate_delete_documentation_part_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_documentation_part_error_decoders(), fun(Reason) -> {delete_documentation_part_error_transport, Reason} end, fun(Et, S, Body) -> {delete_documentation_part_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33462). -spec delete_documentation_version_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_documentation_version_error()} | {error, nil})}). delete_documentation_version_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_documentation_version_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_documentation_version_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_documentation_version_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_documentation_version_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_documentation_version_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33500). -spec translate_delete_documentation_version_error( aws@internal@client@runtime:client_error() ) -> delete_documentation_version_error(). translate_delete_documentation_version_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_documentation_version_error_decoders(), fun(Reason) -> {delete_documentation_version_error_transport, Reason} end, fun(Et, S, Body) -> {delete_documentation_version_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33527). -spec delete_domain_name_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_domain_name_error()} | {error, nil})}). delete_domain_name_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_domain_name_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_domain_name_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_domain_name_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_domain_name_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_domain_name_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33562). -spec translate_delete_domain_name_error( aws@internal@client@runtime:client_error() ) -> delete_domain_name_error(). translate_delete_domain_name_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_domain_name_error_decoders(), fun(Reason) -> {delete_domain_name_error_transport, Reason} end, fun(Et, S, Body) -> {delete_domain_name_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33599). -spec delete_domain_name_access_association_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_domain_name_access_association_error()} | {error, nil})}). delete_domain_name_access_association_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_domain_name_access_association_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_domain_name_access_association_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_domain_name_access_association_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_domain_name_access_association_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_domain_name_access_association_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33643). -spec translate_delete_domain_name_access_association_error( aws@internal@client@runtime:client_error() ) -> delete_domain_name_access_association_error(). translate_delete_domain_name_access_association_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_domain_name_access_association_error_decoders(), fun(Reason) -> {delete_domain_name_access_association_error_transport, Reason} end, fun(Et, S, Body) -> {delete_domain_name_access_association_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33678). -spec delete_gateway_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_gateway_response_error()} | {error, nil})}). delete_gateway_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_gateway_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_gateway_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_gateway_response_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_gateway_response_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_gateway_response_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33714). -spec translate_delete_gateway_response_error( aws@internal@client@runtime:client_error() ) -> delete_gateway_response_error(). translate_delete_gateway_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_gateway_response_error_decoders(), fun(Reason) -> {delete_gateway_response_error_transport, Reason} end, fun(Et, S, Body) -> {delete_gateway_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33739). -spec delete_integration_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_integration_error()} | {error, nil})}). delete_integration_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_integration_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_integration_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_integration_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_integration_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_integration_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33774). -spec translate_delete_integration_error( aws@internal@client@runtime:client_error() ) -> delete_integration_error(). translate_delete_integration_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_integration_error_decoders(), fun(Reason) -> {delete_integration_error_transport, Reason} end, fun(Et, S, Body) -> {delete_integration_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33805). -spec delete_integration_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_integration_response_error()} | {error, nil})}). delete_integration_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_integration_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_integration_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_integration_response_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_integration_response_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_integration_response_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33842). -spec translate_delete_integration_response_error( aws@internal@client@runtime:client_error() ) -> delete_integration_response_error(). translate_delete_integration_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_integration_response_error_decoders(), fun(Reason) -> {delete_integration_response_error_transport, Reason} end, fun(Et, S, Body) -> {delete_integration_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33868). -spec delete_method_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_method_error()} | {error, nil})}). delete_method_error_decoders() -> [{<<"ConflictException"/utf8>>, fun(Body) -> case gleam@json:parse(Body, decode_conflict_exception_struct()) of {ok, V} -> {ok, {delete_method_error_conflict_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {delete_method_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {delete_method_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {delete_method_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33897). -spec translate_delete_method_error(aws@internal@client@runtime:client_error()) -> delete_method_error(). translate_delete_method_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_method_error_decoders(), fun(Reason) -> {delete_method_error_transport, Reason} end, fun(Et, S, Body) -> {delete_method_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33926). -spec delete_method_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_method_response_error()} | {error, nil})}). delete_method_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_method_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_method_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_method_response_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_method_response_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_method_response_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 33961). -spec translate_delete_method_response_error( aws@internal@client@runtime:client_error() ) -> delete_method_response_error(). translate_delete_method_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_method_response_error_decoders(), fun(Reason) -> {delete_method_response_error_transport, Reason} end, fun(Et, S, Body) -> {delete_method_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 33984). -spec delete_model_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_model_error()} | {error, nil})}). delete_model_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_model_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_model_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_model_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_model_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_model_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34019). -spec translate_delete_model_error(aws@internal@client@runtime:client_error()) -> delete_model_error(). translate_delete_model_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_model_error_decoders(), fun(Reason) -> {delete_model_error_transport, Reason} end, fun(Et, S, Body) -> {delete_model_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34046). -spec delete_request_validator_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_request_validator_error()} | {error, nil})}). delete_request_validator_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_request_validator_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_request_validator_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_request_validator_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_request_validator_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_request_validator_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34082). -spec translate_delete_request_validator_error( aws@internal@client@runtime:client_error() ) -> delete_request_validator_error(). translate_delete_request_validator_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_request_validator_error_decoders(), fun(Reason) -> {delete_request_validator_error_transport, Reason} end, fun(Et, S, Body) -> {delete_request_validator_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34105). -spec delete_resource_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_resource_error()} | {error, nil})}). delete_resource_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_resource_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_resource_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_resource_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_resource_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_resource_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34140). -spec translate_delete_resource_error( aws@internal@client@runtime:client_error() ) -> delete_resource_error(). translate_delete_resource_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_resource_error_decoders(), fun(Reason) -> {delete_resource_error_transport, Reason} end, fun(Et, S, Body) -> {delete_resource_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34163). -spec delete_rest_api_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_rest_api_error()} | {error, nil})}). delete_rest_api_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_rest_api_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_rest_api_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_rest_api_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_rest_api_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_rest_api_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34198). -spec translate_delete_rest_api_error( aws@internal@client@runtime:client_error() ) -> delete_rest_api_error(). translate_delete_rest_api_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_rest_api_error_decoders(), fun(Reason) -> {delete_rest_api_error_transport, Reason} end, fun(Et, S, Body) -> {delete_rest_api_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34222). -spec delete_stage_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_stage_error()} | {error, nil})}). delete_stage_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_stage_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_stage_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {delete_stage_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {delete_stage_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {delete_stage_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {delete_stage_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34263). -spec translate_delete_stage_error(aws@internal@client@runtime:client_error()) -> delete_stage_error(). translate_delete_stage_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_stage_error_decoders(), fun(Reason) -> {delete_stage_error_transport, Reason} end, fun(Et, S, Body) -> {delete_stage_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34284). -spec delete_usage_plan_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_usage_plan_error()} | {error, nil})}). delete_usage_plan_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_usage_plan_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_usage_plan_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_usage_plan_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_usage_plan_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_usage_plan_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34319). -spec translate_delete_usage_plan_error( aws@internal@client@runtime:client_error() ) -> delete_usage_plan_error(). translate_delete_usage_plan_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_usage_plan_error_decoders(), fun(Reason) -> {delete_usage_plan_error_transport, Reason} end, fun(Et, S, Body) -> {delete_usage_plan_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34344). -spec delete_usage_plan_key_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_usage_plan_key_error()} | {error, nil})}). delete_usage_plan_key_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_usage_plan_key_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_usage_plan_key_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_usage_plan_key_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_usage_plan_key_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_usage_plan_key_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34379). -spec translate_delete_usage_plan_key_error( aws@internal@client@runtime:client_error() ) -> delete_usage_plan_key_error(). translate_delete_usage_plan_key_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_usage_plan_key_error_decoders(), fun(Reason) -> {delete_usage_plan_key_error_transport, Reason} end, fun(Et, S, Body) -> {delete_usage_plan_key_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34402). -spec delete_vpc_link_error_decoders() -> list({binary(), fun((binary()) -> {ok, delete_vpc_link_error()} | {error, nil})}). delete_vpc_link_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {delete_vpc_link_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {delete_vpc_link_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {delete_vpc_link_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {delete_vpc_link_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {delete_vpc_link_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34437). -spec translate_delete_vpc_link_error( aws@internal@client@runtime:client_error() ) -> delete_vpc_link_error(). translate_delete_vpc_link_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, delete_vpc_link_error_decoders(), fun(Reason) -> {delete_vpc_link_error_transport, Reason} end, fun(Et, S, Body) -> {delete_vpc_link_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34471). -spec flush_stage_authorizers_cache_error_decoders() -> list({binary(), fun((binary()) -> {ok, flush_stage_authorizers_cache_error()} | {error, nil})}). flush_stage_authorizers_cache_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {flush_stage_authorizers_cache_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {flush_stage_authorizers_cache_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {flush_stage_authorizers_cache_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {flush_stage_authorizers_cache_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {flush_stage_authorizers_cache_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {flush_stage_authorizers_cache_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34516). -spec translate_flush_stage_authorizers_cache_error( aws@internal@client@runtime:client_error() ) -> flush_stage_authorizers_cache_error(). translate_flush_stage_authorizers_cache_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, flush_stage_authorizers_cache_error_decoders(), fun(Reason) -> {flush_stage_authorizers_cache_error_transport, Reason} end, fun(Et, S, Body) -> {flush_stage_authorizers_cache_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34544). -spec flush_stage_cache_error_decoders() -> list({binary(), fun((binary()) -> {ok, flush_stage_cache_error()} | {error, nil})}). flush_stage_cache_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {flush_stage_cache_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {flush_stage_cache_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {flush_stage_cache_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {flush_stage_cache_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {flush_stage_cache_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {flush_stage_cache_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34585). -spec translate_flush_stage_cache_error( aws@internal@client@runtime:client_error() ) -> flush_stage_cache_error(). translate_flush_stage_cache_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, flush_stage_cache_error_decoders(), fun(Reason) -> {flush_stage_cache_error_transport, Reason} end, fun(Et, S, Body) -> {flush_stage_cache_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34618). -spec generate_client_certificate_error_decoders() -> list({binary(), fun((binary()) -> {ok, generate_client_certificate_error()} | {error, nil})}). generate_client_certificate_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {generate_client_certificate_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {generate_client_certificate_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {generate_client_certificate_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {generate_client_certificate_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {generate_client_certificate_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34656). -spec translate_generate_client_certificate_error( aws@internal@client@runtime:client_error() ) -> generate_client_certificate_error(). translate_generate_client_certificate_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, generate_client_certificate_error_decoders(), fun(Reason) -> {generate_client_certificate_error_transport, Reason} end, fun(Et, S, Body) -> {generate_client_certificate_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34682). -spec get_account_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_account_error()} | {error, nil})}). get_account_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_account_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_account_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_account_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_account_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34711). -spec translate_get_account_error(aws@internal@client@runtime:client_error()) -> get_account_error(). translate_get_account_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_account_error_decoders(), fun(Reason) -> {get_account_error_transport, Reason} end, fun(Et, S, Body) -> {get_account_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34731). -spec get_api_key_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_api_key_error()} | {error, nil})}). get_api_key_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_api_key_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_api_key_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_api_key_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_api_key_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34760). -spec translate_get_api_key_error(aws@internal@client@runtime:client_error()) -> get_api_key_error(). translate_get_api_key_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_api_key_error_decoders(), fun(Reason) -> {get_api_key_error_transport, Reason} end, fun(Et, S, Body) -> {get_api_key_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34780). -spec get_api_keys_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_api_keys_error()} | {error, nil})}). get_api_keys_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_api_keys_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_api_keys_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_api_keys_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_api_keys_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34809). -spec translate_get_api_keys_error(aws@internal@client@runtime:client_error()) -> get_api_keys_error(). translate_get_api_keys_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_api_keys_error_decoders(), fun(Reason) -> {get_api_keys_error_transport, Reason} end, fun(Et, S, Body) -> {get_api_keys_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34829). -spec get_authorizer_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_authorizer_error()} | {error, nil})}). get_authorizer_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_authorizer_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_authorizer_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_authorizer_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_authorizer_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34858). -spec translate_get_authorizer_error(aws@internal@client@runtime:client_error()) -> get_authorizer_error(). translate_get_authorizer_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_authorizer_error_decoders(), fun(Reason) -> {get_authorizer_error_transport, Reason} end, fun(Et, S, Body) -> {get_authorizer_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34880). -spec get_authorizers_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_authorizers_error()} | {error, nil})}). get_authorizers_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_authorizers_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_authorizers_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_authorizers_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_authorizers_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34909). -spec translate_get_authorizers_error( aws@internal@client@runtime:client_error() ) -> get_authorizers_error(). translate_get_authorizers_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_authorizers_error_decoders(), fun(Reason) -> {get_authorizers_error_transport, Reason} end, fun(Et, S, Body) -> {get_authorizers_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34933). -spec get_base_path_mapping_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_base_path_mapping_error()} | {error, nil})}). get_base_path_mapping_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_base_path_mapping_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_base_path_mapping_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_base_path_mapping_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_base_path_mapping_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 34962). -spec translate_get_base_path_mapping_error( aws@internal@client@runtime:client_error() ) -> get_base_path_mapping_error(). translate_get_base_path_mapping_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_base_path_mapping_error_decoders(), fun(Reason) -> {get_base_path_mapping_error_transport, Reason} end, fun(Et, S, Body) -> {get_base_path_mapping_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 34986). -spec get_base_path_mappings_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_base_path_mappings_error()} | {error, nil})}). get_base_path_mappings_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_base_path_mappings_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_base_path_mappings_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_base_path_mappings_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_base_path_mappings_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35015). -spec translate_get_base_path_mappings_error( aws@internal@client@runtime:client_error() ) -> get_base_path_mappings_error(). translate_get_base_path_mappings_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_base_path_mappings_error_decoders(), fun(Reason) -> {get_base_path_mappings_error_transport, Reason} end, fun(Et, S, Body) -> {get_base_path_mappings_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35043). -spec get_client_certificate_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_client_certificate_error()} | {error, nil})}). get_client_certificate_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_client_certificate_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_client_certificate_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_client_certificate_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_client_certificate_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35072). -spec translate_get_client_certificate_error( aws@internal@client@runtime:client_error() ) -> get_client_certificate_error(). translate_get_client_certificate_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_client_certificate_error_decoders(), fun(Reason) -> {get_client_certificate_error_transport, Reason} end, fun(Et, S, Body) -> {get_client_certificate_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35100). -spec get_client_certificates_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_client_certificates_error()} | {error, nil})}). get_client_certificates_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_client_certificates_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_client_certificates_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_client_certificates_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_client_certificates_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35130). -spec translate_get_client_certificates_error( aws@internal@client@runtime:client_error() ) -> get_client_certificates_error(). translate_get_client_certificates_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_client_certificates_error_decoders(), fun(Reason) -> {get_client_certificates_error_transport, Reason} end, fun(Et, S, Body) -> {get_client_certificates_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35155). -spec get_deployment_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_deployment_error()} | {error, nil})}). get_deployment_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_deployment_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_deployment_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"ServiceUnavailableException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_service_unavailable_exception_struct() ) of {ok, V@2} -> {ok, {get_deployment_error_service_unavailable_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {get_deployment_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {get_deployment_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35190). -spec translate_get_deployment_error(aws@internal@client@runtime:client_error()) -> get_deployment_error(). translate_get_deployment_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_deployment_error_decoders(), fun(Reason) -> {get_deployment_error_transport, Reason} end, fun(Et, S, Body) -> {get_deployment_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35215). -spec get_deployments_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_deployments_error()} | {error, nil})}). get_deployments_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_deployments_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_deployments_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"ServiceUnavailableException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_service_unavailable_exception_struct() ) of {ok, V@2} -> {ok, {get_deployments_error_service_unavailable_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {get_deployments_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {get_deployments_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35250). -spec translate_get_deployments_error( aws@internal@client@runtime:client_error() ) -> get_deployments_error(). translate_get_deployments_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_deployments_error_decoders(), fun(Reason) -> {get_deployments_error_transport, Reason} end, fun(Et, S, Body) -> {get_deployments_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35278). -spec get_documentation_part_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_documentation_part_error()} | {error, nil})}). get_documentation_part_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_documentation_part_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_documentation_part_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_documentation_part_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_documentation_part_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35307). -spec translate_get_documentation_part_error( aws@internal@client@runtime:client_error() ) -> get_documentation_part_error(). translate_get_documentation_part_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_documentation_part_error_decoders(), fun(Reason) -> {get_documentation_part_error_transport, Reason} end, fun(Et, S, Body) -> {get_documentation_part_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35335). -spec get_documentation_parts_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_documentation_parts_error()} | {error, nil})}). get_documentation_parts_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_documentation_parts_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_documentation_parts_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_documentation_parts_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_documentation_parts_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35365). -spec translate_get_documentation_parts_error( aws@internal@client@runtime:client_error() ) -> get_documentation_parts_error(). translate_get_documentation_parts_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_documentation_parts_error_decoders(), fun(Reason) -> {get_documentation_parts_error_transport, Reason} end, fun(Et, S, Body) -> {get_documentation_parts_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35394). -spec get_documentation_version_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_documentation_version_error()} | {error, nil})}). get_documentation_version_error_decoders() -> [{<<"NotFoundException"/utf8>>, fun(Body) -> case gleam@json:parse(Body, decode_not_found_exception_struct()) of {ok, V} -> {ok, {get_documentation_version_error_not_found_exception, V}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_too_many_requests_exception_struct() ) of {ok, V@1} -> {ok, {get_documentation_version_error_too_many_requests_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_unauthorized_exception_struct() ) of {ok, V@2} -> {ok, {get_documentation_version_error_unauthorized_exception, V@2}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35418). -spec translate_get_documentation_version_error( aws@internal@client@runtime:client_error() ) -> get_documentation_version_error(). translate_get_documentation_version_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_documentation_version_error_decoders(), fun(Reason) -> {get_documentation_version_error_transport, Reason} end, fun(Et, S, Body) -> {get_documentation_version_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35448). -spec get_documentation_versions_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_documentation_versions_error()} | {error, nil})}). get_documentation_versions_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_documentation_versions_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_documentation_versions_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_documentation_versions_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_documentation_versions_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35479). -spec translate_get_documentation_versions_error( aws@internal@client@runtime:client_error() ) -> get_documentation_versions_error(). translate_get_documentation_versions_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_documentation_versions_error_decoders(), fun(Reason) -> {get_documentation_versions_error_transport, Reason} end, fun(Et, S, Body) -> {get_documentation_versions_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35505). -spec get_domain_name_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_domain_name_error()} | {error, nil})}). get_domain_name_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_domain_name_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_domain_name_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_domain_name_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_domain_name_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35534). -spec translate_get_domain_name_error( aws@internal@client@runtime:client_error() ) -> get_domain_name_error(). translate_get_domain_name_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_domain_name_error_decoders(), fun(Reason) -> {get_domain_name_error_transport, Reason} end, fun(Et, S, Body) -> {get_domain_name_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35568). -spec get_domain_name_access_associations_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_domain_name_access_associations_error()} | {error, nil})}). get_domain_name_access_associations_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_domain_name_access_associations_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_domain_name_access_associations_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_domain_name_access_associations_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_domain_name_access_associations_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35603). -spec translate_get_domain_name_access_associations_error( aws@internal@client@runtime:client_error() ) -> get_domain_name_access_associations_error(). translate_get_domain_name_access_associations_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_domain_name_access_associations_error_decoders(), fun(Reason) -> {get_domain_name_access_associations_error_transport, Reason} end, fun(Et, S, Body) -> {get_domain_name_access_associations_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35629). -spec get_domain_names_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_domain_names_error()} | {error, nil})}). get_domain_names_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_domain_names_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_domain_names_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_domain_names_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_domain_names_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35658). -spec translate_get_domain_names_error( aws@internal@client@runtime:client_error() ) -> get_domain_names_error(). translate_get_domain_names_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_domain_names_error_decoders(), fun(Reason) -> {get_domain_names_error_transport, Reason} end, fun(Et, S, Body) -> {get_domain_names_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35682). -spec get_export_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_export_error()} | {error, nil})}). get_export_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_export_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {get_export_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {get_export_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {get_export_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {get_export_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {get_export_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35723). -spec translate_get_export_error(aws@internal@client@runtime:client_error()) -> get_export_error(). translate_get_export_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_export_error_decoders(), fun(Reason) -> {get_export_error_transport, Reason} end, fun(Et, S, Body) -> {get_export_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35745). -spec get_gateway_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_gateway_response_error()} | {error, nil})}). get_gateway_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_gateway_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_gateway_response_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_gateway_response_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_gateway_response_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35774). -spec translate_get_gateway_response_error( aws@internal@client@runtime:client_error() ) -> get_gateway_response_error(). translate_get_gateway_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_gateway_response_error_decoders(), fun(Reason) -> {get_gateway_response_error_transport, Reason} end, fun(Et, S, Body) -> {get_gateway_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35798). -spec get_gateway_responses_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_gateway_responses_error()} | {error, nil})}). get_gateway_responses_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_gateway_responses_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_gateway_responses_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_gateway_responses_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_gateway_responses_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35827). -spec translate_get_gateway_responses_error( aws@internal@client@runtime:client_error() ) -> get_gateway_responses_error(). translate_get_gateway_responses_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_gateway_responses_error_decoders(), fun(Reason) -> {get_gateway_responses_error_transport, Reason} end, fun(Et, S, Body) -> {get_gateway_responses_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35849). -spec get_integration_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_integration_error()} | {error, nil})}). get_integration_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_integration_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_integration_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_integration_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_integration_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35878). -spec translate_get_integration_error( aws@internal@client@runtime:client_error() ) -> get_integration_error(). translate_get_integration_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_integration_error_decoders(), fun(Reason) -> {get_integration_error_transport, Reason} end, fun(Et, S, Body) -> {get_integration_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35906). -spec get_integration_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_integration_response_error()} | {error, nil})}). get_integration_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_integration_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_integration_response_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_integration_response_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_integration_response_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35936). -spec translate_get_integration_response_error( aws@internal@client@runtime:client_error() ) -> get_integration_response_error(). translate_get_integration_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_integration_response_error_decoders(), fun(Reason) -> {get_integration_response_error_transport, Reason} end, fun(Et, S, Body) -> {get_integration_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 35957). -spec get_method_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_method_error()} | {error, nil})}). get_method_error_decoders() -> [{<<"NotFoundException"/utf8>>, fun(Body) -> case gleam@json:parse(Body, decode_not_found_exception_struct()) of {ok, V} -> {ok, {get_method_error_not_found_exception, V}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_too_many_requests_exception_struct() ) of {ok, V@1} -> {ok, {get_method_error_too_many_requests_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_unauthorized_exception_struct() ) of {ok, V@2} -> {ok, {get_method_error_unauthorized_exception, V@2}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 35980). -spec translate_get_method_error(aws@internal@client@runtime:client_error()) -> get_method_error(). translate_get_method_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_method_error_decoders(), fun(Reason) -> {get_method_error_transport, Reason} end, fun(Et, S, Body) -> {get_method_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36001). -spec get_method_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_method_response_error()} | {error, nil})}). get_method_response_error_decoders() -> [{<<"NotFoundException"/utf8>>, fun(Body) -> case gleam@json:parse(Body, decode_not_found_exception_struct()) of {ok, V} -> {ok, {get_method_response_error_not_found_exception, V}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_too_many_requests_exception_struct() ) of {ok, V@1} -> {ok, {get_method_response_error_too_many_requests_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_unauthorized_exception_struct() ) of {ok, V@2} -> {ok, {get_method_response_error_unauthorized_exception, V@2}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36024). -spec translate_get_method_response_error( aws@internal@client@runtime:client_error() ) -> get_method_response_error(). translate_get_method_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_method_response_error_decoders(), fun(Reason) -> {get_method_response_error_transport, Reason} end, fun(Et, S, Body) -> {get_method_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36046). -spec get_model_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_model_error()} | {error, nil})}). get_model_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_model_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_model_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_model_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_model_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36075). -spec translate_get_model_error(aws@internal@client@runtime:client_error()) -> get_model_error(). translate_get_model_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_model_error_decoders(), fun(Reason) -> {get_model_error_transport, Reason} end, fun(Et, S, Body) -> {get_model_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36095). -spec get_models_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_models_error()} | {error, nil})}). get_models_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_models_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_models_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_models_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_models_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36124). -spec translate_get_models_error(aws@internal@client@runtime:client_error()) -> get_models_error(). translate_get_models_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_models_error_decoders(), fun(Reason) -> {get_models_error_transport, Reason} end, fun(Et, S, Body) -> {get_models_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36144). -spec get_model_template_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_model_template_error()} | {error, nil})}). get_model_template_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_model_template_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_model_template_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_model_template_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_model_template_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36173). -spec translate_get_model_template_error( aws@internal@client@runtime:client_error() ) -> get_model_template_error(). translate_get_model_template_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_model_template_error_decoders(), fun(Reason) -> {get_model_template_error_transport, Reason} end, fun(Et, S, Body) -> {get_model_template_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36197). -spec get_request_validator_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_request_validator_error()} | {error, nil})}). get_request_validator_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_request_validator_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_request_validator_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_request_validator_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_request_validator_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36226). -spec translate_get_request_validator_error( aws@internal@client@runtime:client_error() ) -> get_request_validator_error(). translate_get_request_validator_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_request_validator_error_decoders(), fun(Reason) -> {get_request_validator_error_transport, Reason} end, fun(Et, S, Body) -> {get_request_validator_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36254). -spec get_request_validators_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_request_validators_error()} | {error, nil})}). get_request_validators_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_request_validators_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_request_validators_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_request_validators_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_request_validators_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36283). -spec translate_get_request_validators_error( aws@internal@client@runtime:client_error() ) -> get_request_validators_error(). translate_get_request_validators_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_request_validators_error_decoders(), fun(Reason) -> {get_request_validators_error_transport, Reason} end, fun(Et, S, Body) -> {get_request_validators_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36304). -spec get_resource_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_resource_error()} | {error, nil})}). get_resource_error_decoders() -> [{<<"NotFoundException"/utf8>>, fun(Body) -> case gleam@json:parse(Body, decode_not_found_exception_struct()) of {ok, V} -> {ok, {get_resource_error_not_found_exception, V}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_too_many_requests_exception_struct() ) of {ok, V@1} -> {ok, {get_resource_error_too_many_requests_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_unauthorized_exception_struct() ) of {ok, V@2} -> {ok, {get_resource_error_unauthorized_exception, V@2}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36327). -spec translate_get_resource_error(aws@internal@client@runtime:client_error()) -> get_resource_error(). translate_get_resource_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_resource_error_decoders(), fun(Reason) -> {get_resource_error_transport, Reason} end, fun(Et, S, Body) -> {get_resource_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36347). -spec get_resources_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_resources_error()} | {error, nil})}). get_resources_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_resources_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_resources_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_resources_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_resources_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36376). -spec translate_get_resources_error(aws@internal@client@runtime:client_error()) -> get_resources_error(). translate_get_resources_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_resources_error_decoders(), fun(Reason) -> {get_resources_error_transport, Reason} end, fun(Et, S, Body) -> {get_resources_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36398). -spec get_rest_api_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_rest_api_error()} | {error, nil})}). get_rest_api_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_rest_api_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_rest_api_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_rest_api_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_rest_api_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36427). -spec translate_get_rest_api_error(aws@internal@client@runtime:client_error()) -> get_rest_api_error(). translate_get_rest_api_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_rest_api_error_decoders(), fun(Reason) -> {get_rest_api_error_transport, Reason} end, fun(Et, S, Body) -> {get_rest_api_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36447). -spec get_rest_apis_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_rest_apis_error()} | {error, nil})}). get_rest_apis_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_rest_apis_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_rest_apis_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_rest_apis_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_rest_apis_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36476). -spec translate_get_rest_apis_error(aws@internal@client@runtime:client_error()) -> get_rest_apis_error(). translate_get_rest_apis_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_rest_apis_error_decoders(), fun(Reason) -> {get_rest_apis_error_transport, Reason} end, fun(Et, S, Body) -> {get_rest_apis_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36498). -spec get_sdk_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_sdk_error()} | {error, nil})}). get_sdk_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_sdk_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {get_sdk_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {get_sdk_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {get_sdk_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {get_sdk_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {get_sdk_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36539). -spec translate_get_sdk_error(aws@internal@client@runtime:client_error()) -> get_sdk_error(). translate_get_sdk_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_sdk_error_decoders(), fun(Reason) -> {get_sdk_error_transport, Reason} end, fun(Et, S, Body) -> {get_sdk_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36559). -spec get_sdk_type_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_sdk_type_error()} | {error, nil})}). get_sdk_type_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_sdk_type_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_sdk_type_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_sdk_type_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_sdk_type_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36588). -spec translate_get_sdk_type_error(aws@internal@client@runtime:client_error()) -> get_sdk_type_error(). translate_get_sdk_type_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_sdk_type_error_decoders(), fun(Reason) -> {get_sdk_type_error_transport, Reason} end, fun(Et, S, Body) -> {get_sdk_type_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36608). -spec get_sdk_types_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_sdk_types_error()} | {error, nil})}). get_sdk_types_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_sdk_types_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_sdk_types_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_sdk_types_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_sdk_types_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36637). -spec translate_get_sdk_types_error(aws@internal@client@runtime:client_error()) -> get_sdk_types_error(). translate_get_sdk_types_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_sdk_types_error_decoders(), fun(Reason) -> {get_sdk_types_error_transport, Reason} end, fun(Et, S, Body) -> {get_sdk_types_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36659). -spec get_stage_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_stage_error()} | {error, nil})}). get_stage_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_stage_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {get_stage_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {get_stage_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {get_stage_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {get_stage_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {get_stage_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36700). -spec translate_get_stage_error(aws@internal@client@runtime:client_error()) -> get_stage_error(). translate_get_stage_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_stage_error_decoders(), fun(Reason) -> {get_stage_error_transport, Reason} end, fun(Et, S, Body) -> {get_stage_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36722). -spec get_stages_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_stages_error()} | {error, nil})}). get_stages_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_stages_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {get_stages_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {get_stages_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {get_stages_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {get_stages_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {get_stages_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36763). -spec translate_get_stages_error(aws@internal@client@runtime:client_error()) -> get_stages_error(). translate_get_stages_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_stages_error_decoders(), fun(Reason) -> {get_stages_error_transport, Reason} end, fun(Et, S, Body) -> {get_stages_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36783). -spec get_tags_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_tags_error()} | {error, nil})}). get_tags_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_tags_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_tags_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_tags_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_tags_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36812). -spec translate_get_tags_error(aws@internal@client@runtime:client_error()) -> get_tags_error(). translate_get_tags_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_tags_error_decoders(), fun(Reason) -> {get_tags_error_transport, Reason} end, fun(Et, S, Body) -> {get_tags_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36832). -spec get_usage_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_usage_error()} | {error, nil})}). get_usage_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_usage_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_usage_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_usage_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_usage_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36861). -spec translate_get_usage_error(aws@internal@client@runtime:client_error()) -> get_usage_error(). translate_get_usage_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_usage_error_decoders(), fun(Reason) -> {get_usage_error_transport, Reason} end, fun(Et, S, Body) -> {get_usage_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36881). -spec get_usage_plan_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_usage_plan_error()} | {error, nil})}). get_usage_plan_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_usage_plan_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_usage_plan_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_usage_plan_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_usage_plan_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36910). -spec translate_get_usage_plan_error(aws@internal@client@runtime:client_error()) -> get_usage_plan_error(). translate_get_usage_plan_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_usage_plan_error_decoders(), fun(Reason) -> {get_usage_plan_error_transport, Reason} end, fun(Et, S, Body) -> {get_usage_plan_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36932). -spec get_usage_plan_key_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_usage_plan_key_error()} | {error, nil})}). get_usage_plan_key_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_usage_plan_key_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_usage_plan_key_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_usage_plan_key_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_usage_plan_key_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 36961). -spec translate_get_usage_plan_key_error( aws@internal@client@runtime:client_error() ) -> get_usage_plan_key_error(). translate_get_usage_plan_key_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_usage_plan_key_error_decoders(), fun(Reason) -> {get_usage_plan_key_error_transport, Reason} end, fun(Et, S, Body) -> {get_usage_plan_key_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 36983). -spec get_usage_plan_keys_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_usage_plan_keys_error()} | {error, nil})}). get_usage_plan_keys_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_usage_plan_keys_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_usage_plan_keys_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_usage_plan_keys_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_usage_plan_keys_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37012). -spec translate_get_usage_plan_keys_error( aws@internal@client@runtime:client_error() ) -> get_usage_plan_keys_error(). translate_get_usage_plan_keys_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_usage_plan_keys_error_decoders(), fun(Reason) -> {get_usage_plan_keys_error_transport, Reason} end, fun(Et, S, Body) -> {get_usage_plan_keys_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37034). -spec get_usage_plans_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_usage_plans_error()} | {error, nil})}). get_usage_plans_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_usage_plans_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_usage_plans_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_usage_plans_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_usage_plans_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37063). -spec translate_get_usage_plans_error( aws@internal@client@runtime:client_error() ) -> get_usage_plans_error(). translate_get_usage_plans_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_usage_plans_error_decoders(), fun(Reason) -> {get_usage_plans_error_transport, Reason} end, fun(Et, S, Body) -> {get_usage_plans_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37085). -spec get_vpc_link_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_vpc_link_error()} | {error, nil})}). get_vpc_link_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_vpc_link_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_vpc_link_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_vpc_link_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_vpc_link_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37114). -spec translate_get_vpc_link_error(aws@internal@client@runtime:client_error()) -> get_vpc_link_error(). translate_get_vpc_link_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_vpc_link_error_decoders(), fun(Reason) -> {get_vpc_link_error_transport, Reason} end, fun(Et, S, Body) -> {get_vpc_link_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37134). -spec get_vpc_links_error_decoders() -> list({binary(), fun((binary()) -> {ok, get_vpc_links_error()} | {error, nil})}). get_vpc_links_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {get_vpc_links_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {get_vpc_links_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {get_vpc_links_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {get_vpc_links_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37163). -spec translate_get_vpc_links_error(aws@internal@client@runtime:client_error()) -> get_vpc_links_error(). translate_get_vpc_links_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, get_vpc_links_error_decoders(), fun(Reason) -> {get_vpc_links_error_transport, Reason} end, fun(Et, S, Body) -> {get_vpc_links_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37185). -spec import_api_keys_error_decoders() -> list({binary(), fun((binary()) -> {ok, import_api_keys_error()} | {error, nil})}). import_api_keys_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {import_api_keys_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {import_api_keys_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {import_api_keys_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {import_api_keys_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {import_api_keys_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {import_api_keys_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37226). -spec translate_import_api_keys_error( aws@internal@client@runtime:client_error() ) -> import_api_keys_error(). translate_import_api_keys_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, import_api_keys_error_decoders(), fun(Reason) -> {import_api_keys_error_transport, Reason} end, fun(Et, S, Body) -> {import_api_keys_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37260). -spec import_documentation_parts_error_decoders() -> list({binary(), fun((binary()) -> {ok, import_documentation_parts_error()} | {error, nil})}). import_documentation_parts_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {import_documentation_parts_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {import_documentation_parts_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {import_documentation_parts_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {import_documentation_parts_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {import_documentation_parts_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {import_documentation_parts_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37304). -spec translate_import_documentation_parts_error( aws@internal@client@runtime:client_error() ) -> import_documentation_parts_error(). translate_import_documentation_parts_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, import_documentation_parts_error_decoders(), fun(Reason) -> {import_documentation_parts_error_transport, Reason} end, fun(Et, S, Body) -> {import_documentation_parts_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37332). -spec import_rest_api_error_decoders() -> list({binary(), fun((binary()) -> {ok, import_rest_api_error()} | {error, nil})}). import_rest_api_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {import_rest_api_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {import_rest_api_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {import_rest_api_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {import_rest_api_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {import_rest_api_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {import_rest_api_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37373). -spec translate_import_rest_api_error( aws@internal@client@runtime:client_error() ) -> import_rest_api_error(). translate_import_rest_api_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, import_rest_api_error_decoders(), fun(Reason) -> {import_rest_api_error_transport, Reason} end, fun(Et, S, Body) -> {import_rest_api_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37399). -spec put_gateway_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, put_gateway_response_error()} | {error, nil})}). put_gateway_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {put_gateway_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {put_gateway_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {put_gateway_response_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {put_gateway_response_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {put_gateway_response_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {put_gateway_response_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37440). -spec translate_put_gateway_response_error( aws@internal@client@runtime:client_error() ) -> put_gateway_response_error(). translate_put_gateway_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, put_gateway_response_error_decoders(), fun(Reason) -> {put_gateway_response_error_transport, Reason} end, fun(Et, S, Body) -> {put_gateway_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37464). -spec put_integration_error_decoders() -> list({binary(), fun((binary()) -> {ok, put_integration_error()} | {error, nil})}). put_integration_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {put_integration_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {put_integration_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {put_integration_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {put_integration_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {put_integration_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {put_integration_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37505). -spec translate_put_integration_error( aws@internal@client@runtime:client_error() ) -> put_integration_error(). translate_put_integration_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, put_integration_error_decoders(), fun(Reason) -> {put_integration_error_transport, Reason} end, fun(Et, S, Body) -> {put_integration_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37537). -spec put_integration_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, put_integration_response_error()} | {error, nil})}). put_integration_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {put_integration_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {put_integration_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {put_integration_response_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {put_integration_response_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {put_integration_response_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {put_integration_response_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37579). -spec translate_put_integration_response_error( aws@internal@client@runtime:client_error() ) -> put_integration_response_error(). translate_put_integration_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, put_integration_response_error_decoders(), fun(Reason) -> {put_integration_response_error_transport, Reason} end, fun(Et, S, Body) -> {put_integration_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37603). -spec put_method_error_decoders() -> list({binary(), fun((binary()) -> {ok, put_method_error()} | {error, nil})}). put_method_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {put_method_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {put_method_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {put_method_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {put_method_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {put_method_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {put_method_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37644). -spec translate_put_method_error(aws@internal@client@runtime:client_error()) -> put_method_error(). translate_put_method_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, put_method_error_decoders(), fun(Reason) -> {put_method_error_transport, Reason} end, fun(Et, S, Body) -> {put_method_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37668). -spec put_method_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, put_method_response_error()} | {error, nil})}). put_method_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {put_method_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {put_method_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {put_method_response_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {put_method_response_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {put_method_response_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {put_method_response_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37709). -spec translate_put_method_response_error( aws@internal@client@runtime:client_error() ) -> put_method_response_error(). translate_put_method_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, put_method_response_error_decoders(), fun(Reason) -> {put_method_response_error_transport, Reason} end, fun(Et, S, Body) -> {put_method_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37733). -spec put_rest_api_error_decoders() -> list({binary(), fun((binary()) -> {ok, put_rest_api_error()} | {error, nil})}). put_rest_api_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {put_rest_api_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {put_rest_api_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {put_rest_api_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {put_rest_api_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {put_rest_api_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {put_rest_api_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37774). -spec translate_put_rest_api_error(aws@internal@client@runtime:client_error()) -> put_rest_api_error(). translate_put_rest_api_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, put_rest_api_error_decoders(), fun(Reason) -> {put_rest_api_error_transport, Reason} end, fun(Et, S, Body) -> {put_rest_api_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37809). -spec reject_domain_name_access_association_error_decoders() -> list({binary(), fun((binary()) -> {ok, reject_domain_name_access_association_error()} | {error, nil})}). reject_domain_name_access_association_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {reject_domain_name_access_association_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {reject_domain_name_access_association_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {reject_domain_name_access_association_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {reject_domain_name_access_association_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {reject_domain_name_access_association_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37853). -spec translate_reject_domain_name_access_association_error( aws@internal@client@runtime:client_error() ) -> reject_domain_name_access_association_error(). translate_reject_domain_name_access_association_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, reject_domain_name_access_association_error_decoders(), fun(Reason) -> {reject_domain_name_access_association_error_transport, Reason} end, fun(Et, S, Body) -> {reject_domain_name_access_association_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37883). -spec tag_resource_error_decoders() -> list({binary(), fun((binary()) -> {ok, tag_resource_error()} | {error, nil})}). tag_resource_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {tag_resource_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {tag_resource_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {tag_resource_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {tag_resource_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {tag_resource_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {tag_resource_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37924). -spec translate_tag_resource_error(aws@internal@client@runtime:client_error()) -> tag_resource_error(). translate_tag_resource_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, tag_resource_error_decoders(), fun(Reason) -> {tag_resource_error_transport, Reason} end, fun(Et, S, Body) -> {tag_resource_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 37950). -spec test_invoke_authorizer_error_decoders() -> list({binary(), fun((binary()) -> {ok, test_invoke_authorizer_error()} | {error, nil})}). test_invoke_authorizer_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {test_invoke_authorizer_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {test_invoke_authorizer_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {test_invoke_authorizer_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {test_invoke_authorizer_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 37979). -spec translate_test_invoke_authorizer_error( aws@internal@client@runtime:client_error() ) -> test_invoke_authorizer_error(). translate_test_invoke_authorizer_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, test_invoke_authorizer_error_decoders(), fun(Reason) -> {test_invoke_authorizer_error_transport, Reason} end, fun(Et, S, Body) -> {test_invoke_authorizer_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38001). -spec test_invoke_method_error_decoders() -> list({binary(), fun((binary()) -> {ok, test_invoke_method_error()} | {error, nil})}). test_invoke_method_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {test_invoke_method_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_not_found_exception_struct() ) of {ok, V@1} -> {ok, {test_invoke_method_error_not_found_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_too_many_requests_exception_struct() ) of {ok, V@2} -> {ok, {test_invoke_method_error_too_many_requests_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_unauthorized_exception_struct() ) of {ok, V@3} -> {ok, {test_invoke_method_error_unauthorized_exception, V@3}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38030). -spec translate_test_invoke_method_error( aws@internal@client@runtime:client_error() ) -> test_invoke_method_error(). translate_test_invoke_method_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, test_invoke_method_error_decoders(), fun(Reason) -> {test_invoke_method_error_transport, Reason} end, fun(Et, S, Body) -> {test_invoke_method_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38054). -spec untag_resource_error_decoders() -> list({binary(), fun((binary()) -> {ok, untag_resource_error()} | {error, nil})}). untag_resource_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {untag_resource_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {untag_resource_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {untag_resource_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {untag_resource_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {untag_resource_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {untag_resource_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38095). -spec translate_untag_resource_error(aws@internal@client@runtime:client_error()) -> untag_resource_error(). translate_untag_resource_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, untag_resource_error_decoders(), fun(Reason) -> {untag_resource_error_transport, Reason} end, fun(Et, S, Body) -> {untag_resource_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38119). -spec update_account_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_account_error()} | {error, nil})}). update_account_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_account_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_account_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_account_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_account_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_account_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_account_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38160). -spec translate_update_account_error(aws@internal@client@runtime:client_error()) -> update_account_error(). translate_update_account_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_account_error_decoders(), fun(Reason) -> {update_account_error_transport, Reason} end, fun(Et, S, Body) -> {update_account_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38184). -spec update_api_key_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_api_key_error()} | {error, nil})}). update_api_key_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_api_key_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_api_key_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_api_key_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_api_key_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_api_key_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_api_key_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38225). -spec translate_update_api_key_error(aws@internal@client@runtime:client_error()) -> update_api_key_error(). translate_update_api_key_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_api_key_error_decoders(), fun(Reason) -> {update_api_key_error_transport, Reason} end, fun(Et, S, Body) -> {update_api_key_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38249). -spec update_authorizer_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_authorizer_error()} | {error, nil})}). update_authorizer_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_authorizer_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_authorizer_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_authorizer_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_authorizer_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_authorizer_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_authorizer_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38290). -spec translate_update_authorizer_error( aws@internal@client@runtime:client_error() ) -> update_authorizer_error(). translate_update_authorizer_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_authorizer_error_decoders(), fun(Reason) -> {update_authorizer_error_transport, Reason} end, fun(Et, S, Body) -> {update_authorizer_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38322). -spec update_base_path_mapping_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_base_path_mapping_error()} | {error, nil})}). update_base_path_mapping_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_base_path_mapping_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_base_path_mapping_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_base_path_mapping_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_base_path_mapping_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_base_path_mapping_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_base_path_mapping_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38364). -spec translate_update_base_path_mapping_error( aws@internal@client@runtime:client_error() ) -> update_base_path_mapping_error(). translate_update_base_path_mapping_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_base_path_mapping_error_decoders(), fun(Reason) -> {update_base_path_mapping_error_transport, Reason} end, fun(Et, S, Body) -> {update_base_path_mapping_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38398). -spec update_client_certificate_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_client_certificate_error()} | {error, nil})}). update_client_certificate_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_client_certificate_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_client_certificate_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_client_certificate_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_client_certificate_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_client_certificate_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_client_certificate_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38441). -spec translate_update_client_certificate_error( aws@internal@client@runtime:client_error() ) -> update_client_certificate_error(). translate_update_client_certificate_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_client_certificate_error_decoders(), fun(Reason) -> {update_client_certificate_error_transport, Reason} end, fun(Et, S, Body) -> {update_client_certificate_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38468). -spec update_deployment_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_deployment_error()} | {error, nil})}). update_deployment_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_deployment_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_deployment_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_deployment_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_deployment_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"ServiceUnavailableException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_service_unavailable_exception_struct() ) of {ok, V@4} -> {ok, {update_deployment_error_service_unavailable_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_too_many_requests_exception_struct() ) of {ok, V@5} -> {ok, {update_deployment_error_too_many_requests_exception, V@5}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@6) -> case gleam@json:parse( Body@6, decode_unauthorized_exception_struct() ) of {ok, V@6} -> {ok, {update_deployment_error_unauthorized_exception, V@6}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38515). -spec translate_update_deployment_error( aws@internal@client@runtime:client_error() ) -> update_deployment_error(). translate_update_deployment_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_deployment_error_decoders(), fun(Reason) -> {update_deployment_error_transport, Reason} end, fun(Et, S, Body) -> {update_deployment_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38549). -spec update_documentation_part_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_documentation_part_error()} | {error, nil})}). update_documentation_part_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_documentation_part_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_documentation_part_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_documentation_part_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_documentation_part_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_documentation_part_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_documentation_part_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38592). -spec translate_update_documentation_part_error( aws@internal@client@runtime:client_error() ) -> update_documentation_part_error(). translate_update_documentation_part_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_documentation_part_error_decoders(), fun(Reason) -> {update_documentation_part_error_transport, Reason} end, fun(Et, S, Body) -> {update_documentation_part_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38626). -spec update_documentation_version_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_documentation_version_error()} | {error, nil})}). update_documentation_version_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_documentation_version_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_documentation_version_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_documentation_version_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_documentation_version_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_documentation_version_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_documentation_version_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38671). -spec translate_update_documentation_version_error( aws@internal@client@runtime:client_error() ) -> update_documentation_version_error(). translate_update_documentation_version_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_documentation_version_error_decoders(), fun(Reason) -> {update_documentation_version_error_transport, Reason} end, fun(Et, S, Body) -> {update_documentation_version_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38699). -spec update_domain_name_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_domain_name_error()} | {error, nil})}). update_domain_name_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_domain_name_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_domain_name_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_domain_name_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_domain_name_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_domain_name_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_domain_name_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38740). -spec translate_update_domain_name_error( aws@internal@client@runtime:client_error() ) -> update_domain_name_error(). translate_update_domain_name_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_domain_name_error_decoders(), fun(Reason) -> {update_domain_name_error_transport, Reason} end, fun(Et, S, Body) -> {update_domain_name_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38772). -spec update_gateway_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_gateway_response_error()} | {error, nil})}). update_gateway_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_gateway_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_gateway_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_gateway_response_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_gateway_response_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_gateway_response_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_gateway_response_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38814). -spec translate_update_gateway_response_error( aws@internal@client@runtime:client_error() ) -> update_gateway_response_error(). translate_update_gateway_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_gateway_response_error_decoders(), fun(Reason) -> {update_gateway_response_error_transport, Reason} end, fun(Et, S, Body) -> {update_gateway_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38840). -spec update_integration_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_integration_error()} | {error, nil})}). update_integration_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_integration_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_integration_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_integration_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_integration_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_integration_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_integration_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38881). -spec translate_update_integration_error( aws@internal@client@runtime:client_error() ) -> update_integration_error(). translate_update_integration_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_integration_error_decoders(), fun(Reason) -> {update_integration_error_transport, Reason} end, fun(Et, S, Body) -> {update_integration_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38915). -spec update_integration_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_integration_response_error()} | {error, nil})}). update_integration_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_integration_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_integration_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_integration_response_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_integration_response_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_integration_response_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_integration_response_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 38959). -spec translate_update_integration_response_error( aws@internal@client@runtime:client_error() ) -> update_integration_response_error(). translate_update_integration_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_integration_response_error_decoders(), fun(Reason) -> {update_integration_response_error_transport, Reason} end, fun(Et, S, Body) -> {update_integration_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 38986). -spec update_method_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_method_error()} | {error, nil})}). update_method_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_method_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_method_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {update_method_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {update_method_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {update_method_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39021). -spec translate_update_method_error(aws@internal@client@runtime:client_error()) -> update_method_error(). translate_update_method_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_method_error_decoders(), fun(Reason) -> {update_method_error_transport, Reason} end, fun(Et, S, Body) -> {update_method_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39051). -spec update_method_response_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_method_response_error()} | {error, nil})}). update_method_response_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_method_response_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_method_response_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_method_response_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_method_response_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_method_response_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_method_response_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39092). -spec translate_update_method_response_error( aws@internal@client@runtime:client_error() ) -> update_method_response_error(). translate_update_method_response_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_method_response_error_decoders(), fun(Reason) -> {update_method_response_error_transport, Reason} end, fun(Et, S, Body) -> {update_method_response_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39116). -spec update_model_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_model_error()} | {error, nil})}). update_model_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_model_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_model_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_model_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_model_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_model_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_model_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39157). -spec translate_update_model_error(aws@internal@client@runtime:client_error()) -> update_model_error(). translate_update_model_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_model_error_decoders(), fun(Reason) -> {update_model_error_transport, Reason} end, fun(Et, S, Body) -> {update_model_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39187). -spec update_request_validator_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_request_validator_error()} | {error, nil})}). update_request_validator_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_request_validator_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_request_validator_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_request_validator_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_request_validator_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_request_validator_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_request_validator_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39229). -spec translate_update_request_validator_error( aws@internal@client@runtime:client_error() ) -> update_request_validator_error(). translate_update_request_validator_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_request_validator_error_decoders(), fun(Reason) -> {update_request_validator_error_transport, Reason} end, fun(Et, S, Body) -> {update_request_validator_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39252). -spec update_resource_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_resource_error()} | {error, nil})}). update_resource_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_resource_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_resource_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_not_found_exception_struct() ) of {ok, V@2} -> {ok, {update_resource_error_not_found_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_too_many_requests_exception_struct() ) of {ok, V@3} -> {ok, {update_resource_error_too_many_requests_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_unauthorized_exception_struct() ) of {ok, V@4} -> {ok, {update_resource_error_unauthorized_exception, V@4}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39287). -spec translate_update_resource_error( aws@internal@client@runtime:client_error() ) -> update_resource_error(). translate_update_resource_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_resource_error_decoders(), fun(Reason) -> {update_resource_error_transport, Reason} end, fun(Et, S, Body) -> {update_resource_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39311). -spec update_rest_api_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_rest_api_error()} | {error, nil})}). update_rest_api_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_rest_api_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_rest_api_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_rest_api_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_rest_api_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_rest_api_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_rest_api_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39352). -spec translate_update_rest_api_error( aws@internal@client@runtime:client_error() ) -> update_rest_api_error(). translate_update_rest_api_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_rest_api_error_decoders(), fun(Reason) -> {update_rest_api_error_transport, Reason} end, fun(Et, S, Body) -> {update_rest_api_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39376). -spec update_stage_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_stage_error()} | {error, nil})}). update_stage_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_stage_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_stage_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_stage_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_stage_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_stage_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_stage_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39417). -spec translate_update_stage_error(aws@internal@client@runtime:client_error()) -> update_stage_error(). translate_update_stage_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_stage_error_decoders(), fun(Reason) -> {update_stage_error_transport, Reason} end, fun(Et, S, Body) -> {update_stage_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39439). -spec update_usage_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_usage_error()} | {error, nil})}). update_usage_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_usage_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_usage_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_usage_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_usage_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_usage_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_usage_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39480). -spec translate_update_usage_error(aws@internal@client@runtime:client_error()) -> update_usage_error(). translate_update_usage_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_usage_error_decoders(), fun(Reason) -> {update_usage_error_transport, Reason} end, fun(Et, S, Body) -> {update_usage_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39502). -spec update_usage_plan_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_usage_plan_error()} | {error, nil})}). update_usage_plan_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_usage_plan_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_usage_plan_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_usage_plan_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_usage_plan_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_usage_plan_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_usage_plan_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39543). -spec translate_update_usage_plan_error( aws@internal@client@runtime:client_error() ) -> update_usage_plan_error(). translate_update_usage_plan_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_usage_plan_error_decoders(), fun(Reason) -> {update_usage_plan_error_transport, Reason} end, fun(Et, S, Body) -> {update_usage_plan_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39567). -spec update_vpc_link_error_decoders() -> list({binary(), fun((binary()) -> {ok, update_vpc_link_error()} | {error, nil})}). update_vpc_link_error_decoders() -> [{<<"BadRequestException"/utf8>>, fun(Body) -> case gleam@json:parse( Body, decode_bad_request_exception_struct() ) of {ok, V} -> {ok, {update_vpc_link_error_bad_request_exception, V}}; {error, _} -> {error, nil} end end}, {<<"ConflictException"/utf8>>, fun(Body@1) -> case gleam@json:parse( Body@1, decode_conflict_exception_struct() ) of {ok, V@1} -> {ok, {update_vpc_link_error_conflict_exception, V@1}}; {error, _} -> {error, nil} end end}, {<<"LimitExceededException"/utf8>>, fun(Body@2) -> case gleam@json:parse( Body@2, decode_limit_exceeded_exception_struct() ) of {ok, V@2} -> {ok, {update_vpc_link_error_limit_exceeded_exception, V@2}}; {error, _} -> {error, nil} end end}, {<<"NotFoundException"/utf8>>, fun(Body@3) -> case gleam@json:parse( Body@3, decode_not_found_exception_struct() ) of {ok, V@3} -> {ok, {update_vpc_link_error_not_found_exception, V@3}}; {error, _} -> {error, nil} end end}, {<<"TooManyRequestsException"/utf8>>, fun(Body@4) -> case gleam@json:parse( Body@4, decode_too_many_requests_exception_struct() ) of {ok, V@4} -> {ok, {update_vpc_link_error_too_many_requests_exception, V@4}}; {error, _} -> {error, nil} end end}, {<<"UnauthorizedException"/utf8>>, fun(Body@5) -> case gleam@json:parse( Body@5, decode_unauthorized_exception_struct() ) of {ok, V@5} -> {ok, {update_vpc_link_error_unauthorized_exception, V@5}}; {error, _} -> {error, nil} end end}]. -file("src/aws/services/api_gateway.gleam", 39608). -spec translate_update_vpc_link_error( aws@internal@client@runtime:client_error() ) -> update_vpc_link_error(). translate_update_vpc_link_error(Err) -> aws@internal@client@runtime:translate_service_error( Err, update_vpc_link_error_decoders(), fun(Reason) -> {update_vpc_link_error_transport, Reason} end, fun(Et, S, Body) -> {update_vpc_link_error_unknown, Et, S, Body} end ). -file("src/aws/services/api_gateway.gleam", 39621). -spec parse_bad_request_exception_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, nil} | {error, binary()}. parse_bad_request_exception_response(_, Headers, Body) -> aws@internal@client@runtime:check_error_type_matches( Headers, Body, <<"BadRequestException"/utf8>> ). -file("src/aws/services/api_gateway.gleam", 39629). -spec parse_conflict_exception_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, nil} | {error, binary()}. parse_conflict_exception_response(_, Headers, Body) -> aws@internal@client@runtime:check_error_type_matches( Headers, Body, <<"ConflictException"/utf8>> ). -file("src/aws/services/api_gateway.gleam", 39637). -spec parse_limit_exceeded_exception_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, nil} | {error, binary()}. parse_limit_exceeded_exception_response(_, Headers, Body) -> aws@internal@client@runtime:check_error_type_matches( Headers, Body, <<"LimitExceededException"/utf8>> ). -file("src/aws/services/api_gateway.gleam", 39645). -spec parse_not_found_exception_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, nil} | {error, binary()}. parse_not_found_exception_response(_, Headers, Body) -> aws@internal@client@runtime:check_error_type_matches( Headers, Body, <<"NotFoundException"/utf8>> ). -file("src/aws/services/api_gateway.gleam", 39653). -spec parse_too_many_requests_exception_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, nil} | {error, binary()}. parse_too_many_requests_exception_response(_, Headers, Body) -> aws@internal@client@runtime:check_error_type_matches( Headers, Body, <<"TooManyRequestsException"/utf8>> ). -file("src/aws/services/api_gateway.gleam", 39661). -spec parse_unauthorized_exception_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, nil} | {error, binary()}. parse_unauthorized_exception_response(_, Headers, Body) -> aws@internal@client@runtime:check_error_type_matches( Headers, Body, <<"UnauthorizedException"/utf8>> ). -file("src/aws/services/api_gateway.gleam", 39669). -spec parse_service_unavailable_exception_response( integer(), gleam@dict:dict(binary(), binary()), bitstring() ) -> {ok, nil} | {error, binary()}. parse_service_unavailable_exception_response(_, Headers, Body) -> aws@internal@client@runtime:check_error_type_matches( Headers, Body, <<"ServiceUnavailableException"/utf8>> ). -file("src/aws/services/api_gateway.gleam", 39677). -spec create_api_key(client(), create_api_key_request()) -> {ok, api_key()} | {error, create_api_key_error()}. create_api_key(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_api_key_request(Input), fun parse_create_api_key_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_api_key_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39693). -spec create_authorizer(client(), create_authorizer_request()) -> {ok, authorizer()} | {error, create_authorizer_error()}. create_authorizer(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_authorizer_request(Input), fun parse_create_authorizer_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_authorizer_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39709). -spec create_base_path_mapping(client(), create_base_path_mapping_request()) -> {ok, base_path_mapping()} | {error, create_base_path_mapping_error()}. create_base_path_mapping(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_base_path_mapping_request(Input), fun parse_create_base_path_mapping_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_base_path_mapping_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39725). -spec create_deployment(client(), create_deployment_request()) -> {ok, deployment()} | {error, create_deployment_error()}. create_deployment(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_deployment_request(Input), fun parse_create_deployment_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_deployment_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39741). -spec create_documentation_part(client(), create_documentation_part_request()) -> {ok, documentation_part()} | {error, create_documentation_part_error()}. create_documentation_part(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_documentation_part_request(Input), fun parse_create_documentation_part_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_documentation_part_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39757). -spec create_documentation_version( client(), create_documentation_version_request() ) -> {ok, documentation_version()} | {error, create_documentation_version_error()}. create_documentation_version(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_documentation_version_request(Input), fun parse_create_documentation_version_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_documentation_version_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39773). -spec create_domain_name(client(), create_domain_name_request()) -> {ok, domain_name()} | {error, create_domain_name_error()}. create_domain_name(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_domain_name_request(Input), fun parse_create_domain_name_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_domain_name_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39789). -spec create_domain_name_access_association( client(), create_domain_name_access_association_request() ) -> {ok, domain_name_access_association()} | {error, create_domain_name_access_association_error()}. create_domain_name_access_association(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_domain_name_access_association_request(Input), fun parse_create_domain_name_access_association_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_domain_name_access_association_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39806). -spec create_model(client(), create_model_request()) -> {ok, model()} | {error, create_model_error()}. create_model(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_model_request(Input), fun parse_create_model_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_model_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39822). -spec create_request_validator(client(), create_request_validator_request()) -> {ok, request_validator()} | {error, create_request_validator_error()}. create_request_validator(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_request_validator_request(Input), fun parse_create_request_validator_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_request_validator_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39838). -spec create_resource(client(), create_resource_request()) -> {ok, resource()} | {error, create_resource_error()}. create_resource(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_resource_request(Input), fun parse_create_resource_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_resource_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39854). -spec create_rest_api(client(), create_rest_api_request()) -> {ok, rest_api()} | {error, create_rest_api_error()}. create_rest_api(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_rest_api_request(Input), fun parse_create_rest_api_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_rest_api_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39870). -spec create_stage(client(), create_stage_request()) -> {ok, stage()} | {error, create_stage_error()}. create_stage(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_stage_request(Input), fun parse_create_stage_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_stage_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39886). -spec create_usage_plan(client(), create_usage_plan_request()) -> {ok, usage_plan()} | {error, create_usage_plan_error()}. create_usage_plan(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_usage_plan_request(Input), fun parse_create_usage_plan_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_usage_plan_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39902). -spec create_usage_plan_key(client(), create_usage_plan_key_request()) -> {ok, usage_plan_key()} | {error, create_usage_plan_key_error()}. create_usage_plan_key(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_usage_plan_key_request(Input), fun parse_create_usage_plan_key_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_usage_plan_key_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39918). -spec create_vpc_link(client(), create_vpc_link_request()) -> {ok, vpc_link()} | {error, create_vpc_link_error()}. create_vpc_link(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_create_vpc_link_request(Input), fun parse_create_vpc_link_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_create_vpc_link_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39934). -spec delete_api_key(client(), delete_api_key_request()) -> {ok, delete_api_key_output()} | {error, delete_api_key_error()}. delete_api_key(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_api_key_request(Input), fun parse_delete_api_key_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_api_key_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39950). -spec delete_authorizer(client(), delete_authorizer_request()) -> {ok, delete_authorizer_output()} | {error, delete_authorizer_error()}. delete_authorizer(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_authorizer_request(Input), fun parse_delete_authorizer_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_authorizer_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39966). -spec delete_base_path_mapping(client(), delete_base_path_mapping_request()) -> {ok, delete_base_path_mapping_output()} | {error, delete_base_path_mapping_error()}. delete_base_path_mapping(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_base_path_mapping_request(Input), fun parse_delete_base_path_mapping_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_base_path_mapping_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39982). -spec delete_client_certificate(client(), delete_client_certificate_request()) -> {ok, delete_client_certificate_output()} | {error, delete_client_certificate_error()}. delete_client_certificate(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_client_certificate_request(Input), fun parse_delete_client_certificate_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_client_certificate_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 39998). -spec delete_deployment(client(), delete_deployment_request()) -> {ok, delete_deployment_output()} | {error, delete_deployment_error()}. delete_deployment(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_deployment_request(Input), fun parse_delete_deployment_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_deployment_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40014). -spec delete_documentation_part(client(), delete_documentation_part_request()) -> {ok, delete_documentation_part_output()} | {error, delete_documentation_part_error()}. delete_documentation_part(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_documentation_part_request(Input), fun parse_delete_documentation_part_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_documentation_part_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40030). -spec delete_documentation_version( client(), delete_documentation_version_request() ) -> {ok, delete_documentation_version_output()} | {error, delete_documentation_version_error()}. delete_documentation_version(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_documentation_version_request(Input), fun parse_delete_documentation_version_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_documentation_version_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40046). -spec delete_domain_name(client(), delete_domain_name_request()) -> {ok, delete_domain_name_output()} | {error, delete_domain_name_error()}. delete_domain_name(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_domain_name_request(Input), fun parse_delete_domain_name_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_domain_name_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40062). -spec delete_domain_name_access_association( client(), delete_domain_name_access_association_request() ) -> {ok, delete_domain_name_access_association_output()} | {error, delete_domain_name_access_association_error()}. delete_domain_name_access_association(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_domain_name_access_association_request(Input), fun parse_delete_domain_name_access_association_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_domain_name_access_association_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40082). -spec delete_gateway_response(client(), delete_gateway_response_request()) -> {ok, delete_gateway_response_output()} | {error, delete_gateway_response_error()}. delete_gateway_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_gateway_response_request(Input), fun parse_delete_gateway_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_gateway_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40098). -spec delete_integration(client(), delete_integration_request()) -> {ok, delete_integration_output()} | {error, delete_integration_error()}. delete_integration(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_integration_request(Input), fun parse_delete_integration_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_integration_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40114). -spec delete_integration_response( client(), delete_integration_response_request() ) -> {ok, delete_integration_response_output()} | {error, delete_integration_response_error()}. delete_integration_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_integration_response_request(Input), fun parse_delete_integration_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_integration_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40130). -spec delete_method(client(), delete_method_request()) -> {ok, delete_method_output()} | {error, delete_method_error()}. delete_method(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_method_request(Input), fun parse_delete_method_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_method_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40146). -spec delete_method_response(client(), delete_method_response_request()) -> {ok, delete_method_response_output()} | {error, delete_method_response_error()}. delete_method_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_method_response_request(Input), fun parse_delete_method_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_method_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40162). -spec delete_model(client(), delete_model_request()) -> {ok, delete_model_output()} | {error, delete_model_error()}. delete_model(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_model_request(Input), fun parse_delete_model_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_model_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40178). -spec delete_request_validator(client(), delete_request_validator_request()) -> {ok, delete_request_validator_output()} | {error, delete_request_validator_error()}. delete_request_validator(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_request_validator_request(Input), fun parse_delete_request_validator_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_request_validator_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40194). -spec delete_resource(client(), delete_resource_request()) -> {ok, delete_resource_output()} | {error, delete_resource_error()}. delete_resource(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_resource_request(Input), fun parse_delete_resource_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_resource_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40210). -spec delete_rest_api(client(), delete_rest_api_request()) -> {ok, delete_rest_api_output()} | {error, delete_rest_api_error()}. delete_rest_api(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_rest_api_request(Input), fun parse_delete_rest_api_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_rest_api_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40226). -spec delete_stage(client(), delete_stage_request()) -> {ok, delete_stage_output()} | {error, delete_stage_error()}. delete_stage(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_stage_request(Input), fun parse_delete_stage_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_stage_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40242). -spec delete_usage_plan(client(), delete_usage_plan_request()) -> {ok, delete_usage_plan_output()} | {error, delete_usage_plan_error()}. delete_usage_plan(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_usage_plan_request(Input), fun parse_delete_usage_plan_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_usage_plan_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40258). -spec delete_usage_plan_key(client(), delete_usage_plan_key_request()) -> {ok, delete_usage_plan_key_output()} | {error, delete_usage_plan_key_error()}. delete_usage_plan_key(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_usage_plan_key_request(Input), fun parse_delete_usage_plan_key_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_usage_plan_key_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40274). -spec delete_vpc_link(client(), delete_vpc_link_request()) -> {ok, delete_vpc_link_output()} | {error, delete_vpc_link_error()}. delete_vpc_link(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_delete_vpc_link_request(Input), fun parse_delete_vpc_link_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_delete_vpc_link_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40290). -spec flush_stage_authorizers_cache( client(), flush_stage_authorizers_cache_request() ) -> {ok, flush_stage_authorizers_cache_output()} | {error, flush_stage_authorizers_cache_error()}. flush_stage_authorizers_cache(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_flush_stage_authorizers_cache_request(Input), fun parse_flush_stage_authorizers_cache_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_flush_stage_authorizers_cache_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40306). -spec flush_stage_cache(client(), flush_stage_cache_request()) -> {ok, flush_stage_cache_output()} | {error, flush_stage_cache_error()}. flush_stage_cache(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_flush_stage_cache_request(Input), fun parse_flush_stage_cache_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_flush_stage_cache_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40322). -spec generate_client_certificate( client(), generate_client_certificate_request() ) -> {ok, client_certificate()} | {error, generate_client_certificate_error()}. generate_client_certificate(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_generate_client_certificate_request(Input), fun parse_generate_client_certificate_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_generate_client_certificate_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40338). -spec get_account(client(), get_account_request()) -> {ok, account()} | {error, get_account_error()}. get_account(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_account_request(Input), fun parse_get_account_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_account_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40354). -spec get_api_key(client(), get_api_key_request()) -> {ok, api_key()} | {error, get_api_key_error()}. get_api_key(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_api_key_request(Input), fun parse_get_api_key_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_api_key_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40370). -spec get_api_keys(client(), get_api_keys_request()) -> {ok, api_keys()} | {error, get_api_keys_error()}. get_api_keys(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_api_keys_request(Input), fun parse_get_api_keys_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_api_keys_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40386). -spec get_authorizer(client(), get_authorizer_request()) -> {ok, authorizer()} | {error, get_authorizer_error()}. get_authorizer(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_authorizer_request(Input), fun parse_get_authorizer_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_authorizer_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40402). -spec get_authorizers(client(), get_authorizers_request()) -> {ok, authorizers()} | {error, get_authorizers_error()}. get_authorizers(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_authorizers_request(Input), fun parse_get_authorizers_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_authorizers_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40418). -spec get_base_path_mapping(client(), get_base_path_mapping_request()) -> {ok, base_path_mapping()} | {error, get_base_path_mapping_error()}. get_base_path_mapping(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_base_path_mapping_request(Input), fun parse_get_base_path_mapping_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_base_path_mapping_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40434). -spec get_base_path_mappings(client(), get_base_path_mappings_request()) -> {ok, base_path_mappings()} | {error, get_base_path_mappings_error()}. get_base_path_mappings(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_base_path_mappings_request(Input), fun parse_get_base_path_mappings_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_base_path_mappings_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40450). -spec get_client_certificate(client(), get_client_certificate_request()) -> {ok, client_certificate()} | {error, get_client_certificate_error()}. get_client_certificate(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_client_certificate_request(Input), fun parse_get_client_certificate_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_client_certificate_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40466). -spec get_client_certificates(client(), get_client_certificates_request()) -> {ok, client_certificates()} | {error, get_client_certificates_error()}. get_client_certificates(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_client_certificates_request(Input), fun parse_get_client_certificates_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_client_certificates_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40482). -spec get_deployment(client(), get_deployment_request()) -> {ok, deployment()} | {error, get_deployment_error()}. get_deployment(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_deployment_request(Input), fun parse_get_deployment_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_deployment_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40498). -spec get_deployments(client(), get_deployments_request()) -> {ok, deployments()} | {error, get_deployments_error()}. get_deployments(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_deployments_request(Input), fun parse_get_deployments_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_deployments_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40514). -spec get_documentation_part(client(), get_documentation_part_request()) -> {ok, documentation_part()} | {error, get_documentation_part_error()}. get_documentation_part(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_documentation_part_request(Input), fun parse_get_documentation_part_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_documentation_part_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40530). -spec get_documentation_parts(client(), get_documentation_parts_request()) -> {ok, documentation_parts()} | {error, get_documentation_parts_error()}. get_documentation_parts(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_documentation_parts_request(Input), fun parse_get_documentation_parts_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_documentation_parts_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40546). -spec get_documentation_version(client(), get_documentation_version_request()) -> {ok, documentation_version()} | {error, get_documentation_version_error()}. get_documentation_version(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_documentation_version_request(Input), fun parse_get_documentation_version_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_documentation_version_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40562). -spec get_documentation_versions(client(), get_documentation_versions_request()) -> {ok, documentation_versions()} | {error, get_documentation_versions_error()}. get_documentation_versions(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_documentation_versions_request(Input), fun parse_get_documentation_versions_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_documentation_versions_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40578). -spec get_domain_name(client(), get_domain_name_request()) -> {ok, domain_name()} | {error, get_domain_name_error()}. get_domain_name(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_domain_name_request(Input), fun parse_get_domain_name_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_domain_name_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40594). -spec get_domain_name_access_associations( client(), get_domain_name_access_associations_request() ) -> {ok, domain_name_access_associations()} | {error, get_domain_name_access_associations_error()}. get_domain_name_access_associations(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_domain_name_access_associations_request(Input), fun parse_get_domain_name_access_associations_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_domain_name_access_associations_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40611). -spec get_domain_names(client(), get_domain_names_request()) -> {ok, domain_names()} | {error, get_domain_names_error()}. get_domain_names(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_domain_names_request(Input), fun parse_get_domain_names_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_domain_names_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40627). -spec get_export(client(), get_export_request()) -> {ok, export_response()} | {error, get_export_error()}. get_export(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_export_request(Input), fun parse_get_export_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_export_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40643). -spec get_gateway_response(client(), get_gateway_response_request()) -> {ok, gateway_response()} | {error, get_gateway_response_error()}. get_gateway_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_gateway_response_request(Input), fun parse_get_gateway_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_gateway_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40659). -spec get_gateway_responses(client(), get_gateway_responses_request()) -> {ok, gateway_responses()} | {error, get_gateway_responses_error()}. get_gateway_responses(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_gateway_responses_request(Input), fun parse_get_gateway_responses_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_gateway_responses_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40675). -spec get_integration(client(), get_integration_request()) -> {ok, integration()} | {error, get_integration_error()}. get_integration(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_integration_request(Input), fun parse_get_integration_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_integration_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40691). -spec get_integration_response(client(), get_integration_response_request()) -> {ok, integration_response()} | {error, get_integration_response_error()}. get_integration_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_integration_response_request(Input), fun parse_get_integration_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_integration_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40707). -spec get_method(client(), get_method_request()) -> {ok, method()} | {error, get_method_error()}. get_method(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_method_request(Input), fun parse_get_method_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_method_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40723). -spec get_method_response(client(), get_method_response_request()) -> {ok, method_response()} | {error, get_method_response_error()}. get_method_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_method_response_request(Input), fun parse_get_method_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_method_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40739). -spec get_model(client(), get_model_request()) -> {ok, model()} | {error, get_model_error()}. get_model(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_model_request(Input), fun parse_get_model_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_model_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40755). -spec get_models(client(), get_models_request()) -> {ok, models()} | {error, get_models_error()}. get_models(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_models_request(Input), fun parse_get_models_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_models_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40771). -spec get_model_template(client(), get_model_template_request()) -> {ok, template()} | {error, get_model_template_error()}. get_model_template(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_model_template_request(Input), fun parse_get_model_template_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_model_template_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40787). -spec get_request_validator(client(), get_request_validator_request()) -> {ok, request_validator()} | {error, get_request_validator_error()}. get_request_validator(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_request_validator_request(Input), fun parse_get_request_validator_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_request_validator_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40803). -spec get_request_validators(client(), get_request_validators_request()) -> {ok, request_validators()} | {error, get_request_validators_error()}. get_request_validators(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_request_validators_request(Input), fun parse_get_request_validators_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_request_validators_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40819). -spec get_resource(client(), get_resource_request()) -> {ok, resource()} | {error, get_resource_error()}. get_resource(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_resource_request(Input), fun parse_get_resource_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_resource_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40835). -spec get_resources(client(), get_resources_request()) -> {ok, resources()} | {error, get_resources_error()}. get_resources(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_resources_request(Input), fun parse_get_resources_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_resources_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40851). -spec get_rest_api(client(), get_rest_api_request()) -> {ok, rest_api()} | {error, get_rest_api_error()}. get_rest_api(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_rest_api_request(Input), fun parse_get_rest_api_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_rest_api_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40867). -spec get_rest_apis(client(), get_rest_apis_request()) -> {ok, rest_apis()} | {error, get_rest_apis_error()}. get_rest_apis(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_rest_apis_request(Input), fun parse_get_rest_apis_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_rest_apis_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40883). -spec get_sdk(client(), get_sdk_request()) -> {ok, sdk_response()} | {error, get_sdk_error()}. get_sdk(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_sdk_request(Input), fun parse_get_sdk_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_sdk_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40899). -spec get_sdk_type(client(), get_sdk_type_request()) -> {ok, sdk_type()} | {error, get_sdk_type_error()}. get_sdk_type(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_sdk_type_request(Input), fun parse_get_sdk_type_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_sdk_type_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40915). -spec get_sdk_types(client(), get_sdk_types_request()) -> {ok, sdk_types()} | {error, get_sdk_types_error()}. get_sdk_types(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_sdk_types_request(Input), fun parse_get_sdk_types_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_sdk_types_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40931). -spec get_stage(client(), get_stage_request()) -> {ok, stage()} | {error, get_stage_error()}. get_stage(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_stage_request(Input), fun parse_get_stage_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_stage_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40947). -spec get_stages(client(), get_stages_request()) -> {ok, stages()} | {error, get_stages_error()}. get_stages(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_stages_request(Input), fun parse_get_stages_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_stages_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40963). -spec get_tags(client(), get_tags_request()) -> {ok, tags()} | {error, get_tags_error()}. get_tags(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_tags_request(Input), fun parse_get_tags_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_tags_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40979). -spec get_usage(client(), get_usage_request()) -> {ok, usage()} | {error, get_usage_error()}. get_usage(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_usage_request(Input), fun parse_get_usage_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_usage_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 40995). -spec get_usage_plan(client(), get_usage_plan_request()) -> {ok, usage_plan()} | {error, get_usage_plan_error()}. get_usage_plan(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_usage_plan_request(Input), fun parse_get_usage_plan_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_usage_plan_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41011). -spec get_usage_plan_key(client(), get_usage_plan_key_request()) -> {ok, usage_plan_key()} | {error, get_usage_plan_key_error()}. get_usage_plan_key(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_usage_plan_key_request(Input), fun parse_get_usage_plan_key_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_usage_plan_key_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41027). -spec get_usage_plan_keys(client(), get_usage_plan_keys_request()) -> {ok, usage_plan_keys()} | {error, get_usage_plan_keys_error()}. get_usage_plan_keys(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_usage_plan_keys_request(Input), fun parse_get_usage_plan_keys_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_usage_plan_keys_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41043). -spec get_usage_plans(client(), get_usage_plans_request()) -> {ok, usage_plans()} | {error, get_usage_plans_error()}. get_usage_plans(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_usage_plans_request(Input), fun parse_get_usage_plans_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_usage_plans_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41059). -spec get_vpc_link(client(), get_vpc_link_request()) -> {ok, vpc_link()} | {error, get_vpc_link_error()}. get_vpc_link(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_vpc_link_request(Input), fun parse_get_vpc_link_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_vpc_link_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41075). -spec get_vpc_links(client(), get_vpc_links_request()) -> {ok, vpc_links()} | {error, get_vpc_links_error()}. get_vpc_links(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_get_vpc_links_request(Input), fun parse_get_vpc_links_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_get_vpc_links_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41091). -spec import_api_keys(client(), import_api_keys_request()) -> {ok, api_key_ids()} | {error, import_api_keys_error()}. import_api_keys(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_import_api_keys_request(Input), fun parse_import_api_keys_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_import_api_keys_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41107). -spec import_documentation_parts(client(), import_documentation_parts_request()) -> {ok, documentation_part_ids()} | {error, import_documentation_parts_error()}. import_documentation_parts(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_import_documentation_parts_request(Input), fun parse_import_documentation_parts_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_import_documentation_parts_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41123). -spec import_rest_api(client(), import_rest_api_request()) -> {ok, rest_api()} | {error, import_rest_api_error()}. import_rest_api(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_import_rest_api_request(Input), fun parse_import_rest_api_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_import_rest_api_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41139). -spec put_gateway_response(client(), put_gateway_response_request()) -> {ok, gateway_response()} | {error, put_gateway_response_error()}. put_gateway_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_put_gateway_response_request(Input), fun parse_put_gateway_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_put_gateway_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41155). -spec put_integration(client(), put_integration_request()) -> {ok, integration()} | {error, put_integration_error()}. put_integration(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_put_integration_request(Input), fun parse_put_integration_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_put_integration_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41171). -spec put_integration_response(client(), put_integration_response_request()) -> {ok, integration_response()} | {error, put_integration_response_error()}. put_integration_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_put_integration_response_request(Input), fun parse_put_integration_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_put_integration_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41187). -spec put_method(client(), put_method_request()) -> {ok, method()} | {error, put_method_error()}. put_method(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_put_method_request(Input), fun parse_put_method_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_put_method_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41203). -spec put_method_response(client(), put_method_response_request()) -> {ok, method_response()} | {error, put_method_response_error()}. put_method_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_put_method_response_request(Input), fun parse_put_method_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_put_method_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41219). -spec put_rest_api(client(), put_rest_api_request()) -> {ok, rest_api()} | {error, put_rest_api_error()}. put_rest_api(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_put_rest_api_request(Input), fun parse_put_rest_api_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_put_rest_api_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41235). -spec reject_domain_name_access_association( client(), reject_domain_name_access_association_request() ) -> {ok, reject_domain_name_access_association_output()} | {error, reject_domain_name_access_association_error()}. reject_domain_name_access_association(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_reject_domain_name_access_association_request(Input), fun parse_reject_domain_name_access_association_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_reject_domain_name_access_association_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41255). -spec tag_resource(client(), tag_resource_request()) -> {ok, tag_resource_output()} | {error, tag_resource_error()}. tag_resource(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_tag_resource_request(Input), fun parse_tag_resource_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_tag_resource_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41271). -spec test_invoke_authorizer(client(), test_invoke_authorizer_request()) -> {ok, test_invoke_authorizer_response()} | {error, test_invoke_authorizer_error()}. test_invoke_authorizer(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_test_invoke_authorizer_request(Input), fun parse_test_invoke_authorizer_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_test_invoke_authorizer_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41287). -spec test_invoke_method(client(), test_invoke_method_request()) -> {ok, test_invoke_method_response()} | {error, test_invoke_method_error()}. test_invoke_method(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_test_invoke_method_request(Input), fun parse_test_invoke_method_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_test_invoke_method_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41303). -spec untag_resource(client(), untag_resource_request()) -> {ok, untag_resource_output()} | {error, untag_resource_error()}. untag_resource(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_untag_resource_request(Input), fun parse_untag_resource_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_untag_resource_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41319). -spec update_account(client(), update_account_request()) -> {ok, account()} | {error, update_account_error()}. update_account(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_account_request(Input), fun parse_update_account_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_account_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41335). -spec update_api_key(client(), update_api_key_request()) -> {ok, api_key()} | {error, update_api_key_error()}. update_api_key(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_api_key_request(Input), fun parse_update_api_key_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_api_key_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41351). -spec update_authorizer(client(), update_authorizer_request()) -> {ok, authorizer()} | {error, update_authorizer_error()}. update_authorizer(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_authorizer_request(Input), fun parse_update_authorizer_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_authorizer_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41367). -spec update_base_path_mapping(client(), update_base_path_mapping_request()) -> {ok, base_path_mapping()} | {error, update_base_path_mapping_error()}. update_base_path_mapping(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_base_path_mapping_request(Input), fun parse_update_base_path_mapping_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_base_path_mapping_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41383). -spec update_client_certificate(client(), update_client_certificate_request()) -> {ok, client_certificate()} | {error, update_client_certificate_error()}. update_client_certificate(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_client_certificate_request(Input), fun parse_update_client_certificate_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_client_certificate_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41399). -spec update_deployment(client(), update_deployment_request()) -> {ok, deployment()} | {error, update_deployment_error()}. update_deployment(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_deployment_request(Input), fun parse_update_deployment_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_deployment_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41415). -spec update_documentation_part(client(), update_documentation_part_request()) -> {ok, documentation_part()} | {error, update_documentation_part_error()}. update_documentation_part(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_documentation_part_request(Input), fun parse_update_documentation_part_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_documentation_part_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41431). -spec update_documentation_version( client(), update_documentation_version_request() ) -> {ok, documentation_version()} | {error, update_documentation_version_error()}. update_documentation_version(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_documentation_version_request(Input), fun parse_update_documentation_version_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_documentation_version_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41447). -spec update_domain_name(client(), update_domain_name_request()) -> {ok, domain_name()} | {error, update_domain_name_error()}. update_domain_name(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_domain_name_request(Input), fun parse_update_domain_name_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_domain_name_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41463). -spec update_gateway_response(client(), update_gateway_response_request()) -> {ok, gateway_response()} | {error, update_gateway_response_error()}. update_gateway_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_gateway_response_request(Input), fun parse_update_gateway_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_gateway_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41479). -spec update_integration(client(), update_integration_request()) -> {ok, integration()} | {error, update_integration_error()}. update_integration(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_integration_request(Input), fun parse_update_integration_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_integration_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41495). -spec update_integration_response( client(), update_integration_response_request() ) -> {ok, integration_response()} | {error, update_integration_response_error()}. update_integration_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_integration_response_request(Input), fun parse_update_integration_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_integration_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41511). -spec update_method(client(), update_method_request()) -> {ok, method()} | {error, update_method_error()}. update_method(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_method_request(Input), fun parse_update_method_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_method_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41527). -spec update_method_response(client(), update_method_response_request()) -> {ok, method_response()} | {error, update_method_response_error()}. update_method_response(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_method_response_request(Input), fun parse_update_method_response_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_method_response_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41543). -spec update_model(client(), update_model_request()) -> {ok, model()} | {error, update_model_error()}. update_model(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_model_request(Input), fun parse_update_model_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_model_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41559). -spec update_request_validator(client(), update_request_validator_request()) -> {ok, request_validator()} | {error, update_request_validator_error()}. update_request_validator(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_request_validator_request(Input), fun parse_update_request_validator_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_request_validator_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41575). -spec update_resource(client(), update_resource_request()) -> {ok, resource()} | {error, update_resource_error()}. update_resource(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_resource_request(Input), fun parse_update_resource_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_resource_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41591). -spec update_rest_api(client(), update_rest_api_request()) -> {ok, rest_api()} | {error, update_rest_api_error()}. update_rest_api(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_rest_api_request(Input), fun parse_update_rest_api_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_rest_api_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41607). -spec update_stage(client(), update_stage_request()) -> {ok, stage()} | {error, update_stage_error()}. update_stage(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_stage_request(Input), fun parse_update_stage_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_stage_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41623). -spec update_usage(client(), update_usage_request()) -> {ok, usage()} | {error, update_usage_error()}. update_usage(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_usage_request(Input), fun parse_update_usage_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_usage_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41639). -spec update_usage_plan(client(), update_usage_plan_request()) -> {ok, usage_plan()} | {error, update_usage_plan_error()}. update_usage_plan(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_usage_plan_request(Input), fun parse_update_usage_plan_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_usage_plan_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41655). -spec update_vpc_link(client(), update_vpc_link_request()) -> {ok, vpc_link()} | {error, update_vpc_link_error()}. update_vpc_link(Client, Input) -> case aws@internal@client@runtime:invoke( erlang:element(2, Client), build_update_vpc_link_request(Input), fun parse_update_vpc_link_response/3 ) of {ok, Out} -> {ok, Out}; {error, Err} -> {error, translate_update_vpc_link_error(Err)} end. -file("src/aws/services/api_gateway.gleam", 41671). -spec paginate_get_api_keys( client(), get_api_keys_request(), QRO, fun((QRO, list(api_key())) -> QRO) ) -> {ok, QRO} | {error, get_api_keys_error()}. paginate_get_api_keys(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_api_keys_request, erlang:element(2, Input), erlang:element(3, Input), erlang:element(4, Input), erlang:element(5, Input), Cursor}; none -> Input end, case get_api_keys(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41692). -spec paginate_get_base_path_mappings( client(), get_base_path_mappings_request(), QRS, fun((QRS, list(base_path_mapping())) -> QRS) ) -> {ok, QRS} | {error, get_base_path_mappings_error()}. paginate_get_base_path_mappings(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_base_path_mappings_request, erlang:element(2, Input), erlang:element(3, Input), erlang:element(4, Input), Cursor}; none -> Input end, case get_base_path_mappings(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41713). -spec paginate_get_client_certificates( client(), get_client_certificates_request(), QRW, fun((QRW, list(client_certificate())) -> QRW) ) -> {ok, QRW} | {error, get_client_certificates_error()}. paginate_get_client_certificates(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_client_certificates_request, erlang:element(2, Input), Cursor}; none -> Input end, case get_client_certificates(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41735). -spec paginate_get_deployments( client(), get_deployments_request(), QSA, fun((QSA, list(deployment())) -> QSA) ) -> {ok, QSA} | {error, get_deployments_error()}. paginate_get_deployments(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_deployments_request, erlang:element(2, Input), Cursor, erlang:element(4, Input)}; none -> Input end, case get_deployments(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41756). -spec paginate_get_domain_names( client(), get_domain_names_request(), QSE, fun((QSE, list(domain_name())) -> QSE) ) -> {ok, QSE} | {error, get_domain_names_error()}. paginate_get_domain_names(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_domain_names_request, erlang:element(2, Input), Cursor, erlang:element(4, Input)}; none -> Input end, case get_domain_names(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41777). -spec paginate_get_models( client(), get_models_request(), QSI, fun((QSI, list(model())) -> QSI) ) -> {ok, QSI} | {error, get_models_error()}. paginate_get_models(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_models_request, erlang:element(2, Input), Cursor, erlang:element(4, Input)}; none -> Input end, case get_models(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41798). -spec paginate_get_resources( client(), get_resources_request(), QSM, fun((QSM, list(resource())) -> QSM) ) -> {ok, QSM} | {error, get_resources_error()}. paginate_get_resources(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_resources_request, erlang:element(2, Input), erlang:element(3, Input), Cursor, erlang:element(5, Input)}; none -> Input end, case get_resources(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41819). -spec paginate_get_rest_apis( client(), get_rest_apis_request(), QSQ, fun((QSQ, list(rest_api())) -> QSQ) ) -> {ok, QSQ} | {error, get_rest_apis_error()}. paginate_get_rest_apis(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_rest_apis_request, erlang:element(2, Input), Cursor}; none -> Input end, case get_rest_apis(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41840). -spec paginate_get_usage_plan_keys( client(), get_usage_plan_keys_request(), QSU, fun((QSU, list(usage_plan_key())) -> QSU) ) -> {ok, QSU} | {error, get_usage_plan_keys_error()}. paginate_get_usage_plan_keys(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_usage_plan_keys_request, erlang:element(2, Input), erlang:element(3, Input), Cursor, erlang:element(5, Input)}; none -> Input end, case get_usage_plan_keys(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41861). -spec paginate_get_usage_plans( client(), get_usage_plans_request(), QSY, fun((QSY, list(usage_plan())) -> QSY) ) -> {ok, QSY} | {error, get_usage_plans_error()}. paginate_get_usage_plans(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_usage_plans_request, erlang:element(2, Input), erlang:element(3, Input), Cursor}; none -> Input end, case get_usage_plans(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer). -file("src/aws/services/api_gateway.gleam", 41882). -spec paginate_get_vpc_links( client(), get_vpc_links_request(), QTC, fun((QTC, list(vpc_link())) -> QTC) ) -> {ok, QTC} | {error, get_vpc_links_error()}. paginate_get_vpc_links(Client, Input, Acc, Reducer) -> Step = fun(Cursor) -> begin Input@1 = case Cursor of {some, _} -> {get_vpc_links_request, erlang:element(2, Input), Cursor}; none -> Input end, case get_vpc_links(Client, Input@1) of {ok, Out} -> {ok, {gleam@option:unwrap(erlang:element(2, Out), []), erlang:element(3, Out)}}; {error, E} -> {error, E} end end end, aws@pagination:fold(Acc, Step, Reducer).