%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! %% See https://github.com/aws-beam/aws-codegen for more details. %% @doc Welcome to the Amazon Bedrock AgentCore Control plane API reference. %% %% Control plane actions configure, create, modify, and monitor Amazon Web %% Services resources. -module(aws_bedrock_agentcore_control). -export([add_dataset_examples/3, add_dataset_examples/4, create_agent_runtime/2, create_agent_runtime/3, create_agent_runtime_endpoint/3, create_agent_runtime_endpoint/4, create_api_key_credential_provider/2, create_api_key_credential_provider/3, create_browser/2, create_browser/3, create_browser_profile/2, create_browser_profile/3, create_code_interpreter/2, create_code_interpreter/3, create_configuration_bundle/2, create_configuration_bundle/3, create_dataset/2, create_dataset/3, create_dataset_version/3, create_dataset_version/4, create_evaluator/2, create_evaluator/3, create_gateway/2, create_gateway/3, create_gateway_rule/3, create_gateway_rule/4, create_gateway_target/3, create_gateway_target/4, create_harness/2, create_harness/3, create_memory/2, create_memory/3, create_oauth2_credential_provider/2, create_oauth2_credential_provider/3, create_online_evaluation_config/2, create_online_evaluation_config/3, create_payment_connector/3, create_payment_connector/4, create_payment_credential_provider/2, create_payment_credential_provider/3, create_payment_manager/2, create_payment_manager/3, create_policy/3, create_policy/4, create_policy_engine/2, create_policy_engine/3, create_registry/2, create_registry/3, create_registry_record/3, create_registry_record/4, create_workload_identity/2, create_workload_identity/3, delete_agent_runtime/3, delete_agent_runtime/4, delete_agent_runtime_endpoint/4, delete_agent_runtime_endpoint/5, delete_api_key_credential_provider/2, delete_api_key_credential_provider/3, delete_browser/3, delete_browser/4, delete_browser_profile/3, delete_browser_profile/4, delete_code_interpreter/3, delete_code_interpreter/4, delete_configuration_bundle/3, delete_configuration_bundle/4, delete_dataset/3, delete_dataset/4, delete_dataset_examples/3, delete_dataset_examples/4, delete_evaluator/3, delete_evaluator/4, delete_gateway/3, delete_gateway/4, delete_gateway_rule/4, delete_gateway_rule/5, delete_gateway_target/4, delete_gateway_target/5, delete_harness/3, delete_harness/4, delete_memory/3, delete_memory/4, delete_oauth2_credential_provider/2, delete_oauth2_credential_provider/3, delete_online_evaluation_config/3, delete_online_evaluation_config/4, delete_payment_connector/4, delete_payment_connector/5, delete_payment_credential_provider/2, delete_payment_credential_provider/3, delete_payment_manager/3, delete_payment_manager/4, delete_policy/4, delete_policy/5, delete_policy_engine/3, delete_policy_engine/4, delete_registry/3, delete_registry/4, delete_registry_record/4, delete_registry_record/5, delete_resource_policy/3, delete_resource_policy/4, delete_workload_identity/2, delete_workload_identity/3, get_agent_runtime/2, get_agent_runtime/4, get_agent_runtime/5, get_agent_runtime_endpoint/3, get_agent_runtime_endpoint/5, get_agent_runtime_endpoint/6, get_api_key_credential_provider/2, get_api_key_credential_provider/3, get_browser/2, get_browser/4, get_browser/5, get_browser_profile/2, get_browser_profile/4, get_browser_profile/5, get_code_interpreter/2, get_code_interpreter/4, get_code_interpreter/5, get_configuration_bundle/2, get_configuration_bundle/4, get_configuration_bundle/5, get_configuration_bundle_version/3, get_configuration_bundle_version/5, get_configuration_bundle_version/6, get_dataset/2, get_dataset/4, get_dataset/5, get_evaluator/2, get_evaluator/4, get_evaluator/5, get_gateway/2, get_gateway/4, get_gateway/5, get_gateway_rule/3, get_gateway_rule/5, get_gateway_rule/6, get_gateway_target/3, get_gateway_target/5, get_gateway_target/6, get_harness/2, get_harness/4, get_harness/5, get_memory/2, get_memory/4, get_memory/5, get_oauth2_credential_provider/2, get_oauth2_credential_provider/3, get_online_evaluation_config/2, get_online_evaluation_config/4, get_online_evaluation_config/5, get_payment_connector/3, get_payment_connector/5, get_payment_connector/6, get_payment_credential_provider/2, get_payment_credential_provider/3, get_payment_manager/2, get_payment_manager/4, get_payment_manager/5, get_policy/3, get_policy/5, get_policy/6, get_policy_engine/2, get_policy_engine/4, get_policy_engine/5, get_policy_engine_summary/2, get_policy_engine_summary/4, get_policy_engine_summary/5, get_policy_generation/3, get_policy_generation/5, get_policy_generation/6, get_policy_generation_summary/3, get_policy_generation_summary/5, get_policy_generation_summary/6, get_policy_summary/3, get_policy_summary/5, get_policy_summary/6, get_registry/2, get_registry/4, get_registry/5, get_registry_record/3, get_registry_record/5, get_registry_record/6, get_resource_policy/2, get_resource_policy/4, get_resource_policy/5, get_token_vault/2, get_token_vault/3, get_workload_identity/2, get_workload_identity/3, list_agent_runtime_endpoints/3, list_agent_runtime_endpoints/4, list_agent_runtime_versions/3, list_agent_runtime_versions/4, list_agent_runtimes/2, list_agent_runtimes/3, list_api_key_credential_providers/2, list_api_key_credential_providers/3, list_browser_profiles/2, list_browser_profiles/3, list_browsers/2, list_browsers/3, list_code_interpreters/2, list_code_interpreters/3, list_configuration_bundle_versions/3, list_configuration_bundle_versions/4, list_configuration_bundles/2, list_configuration_bundles/3, list_dataset_examples/2, list_dataset_examples/4, list_dataset_examples/5, list_dataset_versions/2, list_dataset_versions/4, list_dataset_versions/5, list_datasets/1, list_datasets/3, list_datasets/4, list_evaluators/2, list_evaluators/3, list_gateway_rules/2, list_gateway_rules/4, list_gateway_rules/5, list_gateway_targets/2, list_gateway_targets/4, list_gateway_targets/5, list_gateways/1, list_gateways/3, list_gateways/4, list_harnesses/1, list_harnesses/3, list_harnesses/4, list_memories/2, list_memories/3, list_oauth2_credential_providers/2, list_oauth2_credential_providers/3, list_online_evaluation_configs/2, list_online_evaluation_configs/3, list_payment_connectors/3, list_payment_connectors/4, list_payment_credential_providers/2, list_payment_credential_providers/3, list_payment_managers/2, list_payment_managers/3, list_policies/2, list_policies/4, list_policies/5, list_policy_engine_summaries/1, list_policy_engine_summaries/3, list_policy_engine_summaries/4, list_policy_engines/1, list_policy_engines/3, list_policy_engines/4, list_policy_generation_assets/3, list_policy_generation_assets/5, list_policy_generation_assets/6, list_policy_generation_summaries/2, list_policy_generation_summaries/4, list_policy_generation_summaries/5, list_policy_generations/2, list_policy_generations/4, list_policy_generations/5, list_policy_summaries/2, list_policy_summaries/4, list_policy_summaries/5, list_registries/1, list_registries/3, list_registries/4, list_registry_records/2, list_registry_records/4, list_registry_records/5, list_tags_for_resource/2, list_tags_for_resource/4, list_tags_for_resource/5, list_workload_identities/2, list_workload_identities/3, put_resource_policy/3, put_resource_policy/4, set_token_vault_cm_k/2, set_token_vault_cm_k/3, start_policy_generation/3, start_policy_generation/4, submit_registry_record_for_approval/4, submit_registry_record_for_approval/5, synchronize_gateway_targets/3, synchronize_gateway_targets/4, tag_resource/3, tag_resource/4, untag_resource/3, untag_resource/4, update_agent_runtime/3, update_agent_runtime/4, update_agent_runtime_endpoint/4, update_agent_runtime_endpoint/5, update_api_key_credential_provider/2, update_api_key_credential_provider/3, update_configuration_bundle/3, update_configuration_bundle/4, update_dataset/3, update_dataset/4, update_dataset_examples/3, update_dataset_examples/4, update_evaluator/3, update_evaluator/4, update_gateway/3, update_gateway/4, update_gateway_rule/4, update_gateway_rule/5, update_gateway_target/4, update_gateway_target/5, update_harness/3, update_harness/4, update_memory/3, update_memory/4, update_oauth2_credential_provider/2, update_oauth2_credential_provider/3, update_online_evaluation_config/3, update_online_evaluation_config/4, update_payment_connector/4, update_payment_connector/5, update_payment_credential_provider/2, update_payment_credential_provider/3, update_payment_manager/3, update_payment_manager/4, update_policy/4, update_policy/5, update_policy_engine/3, update_policy_engine/4, update_registry/3, update_registry/4, update_registry_record/4, update_registry_record/5, update_registry_record_status/4, update_registry_record_status/5, update_workload_identity/2, update_workload_identity/3]). -include_lib("hackney/include/hackney_lib.hrl"). %% Example: %% custom_claim_validation_type() :: #{ %% <<"authorizingClaimMatchValue">> => authorizing_claim_match_value_type(), %% <<"inboundTokenClaimName">> => string(), %% <<"inboundTokenClaimValueType">> => list(any()) %% } -type custom_claim_validation_type() :: #{binary() => any()}. %% Example: %% browser_enterprise_policy() :: #{ %% <<"location">> => list(), %% <<"type">> => list(any()) %% } -type browser_enterprise_policy() :: #{binary() => any()}. %% Example: %% harness_remote_mcp_config() :: #{ %% <<"headers">> => map(), %% <<"url">> => string() %% } -type harness_remote_mcp_config() :: #{binary() => any()}. %% Example: %% update_gateway_request() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> := list(any()), %% <<"description">> => string(), %% <<"exceptionLevel">> => list(any()), %% <<"interceptorConfigurations">> => list(gateway_interceptor_configuration()), %% <<"kmsKeyArn">> => string(), %% <<"name">> := string(), %% <<"policyEngineConfiguration">> => gateway_policy_engine_configuration(), %% <<"protocolConfiguration">> => list(), %% <<"protocolType">> => list(any()), %% <<"roleArn">> := string() %% } -type update_gateway_request() :: #{binary() => any()}. %% Example: %% update_payment_manager_request() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"roleArn">> => string() %% } -type update_payment_manager_request() :: #{binary() => any()}. %% Example: %% streaming_configuration() :: #{ %% <<"enableResponseStreaming">> => [boolean()] %% } -type streaming_configuration() :: #{binary() => any()}. %% Example: %% lambda_interceptor_configuration() :: #{ %% <<"arn">> => string() %% } -type lambda_interceptor_configuration() :: #{binary() => any()}. %% Example: %% iam_principal() :: #{ %% <<"arn">> => string(), %% <<"operator">> => list(any()) %% } -type iam_principal() :: #{binary() => any()}. %% Example: %% modify_strategy_configuration() :: #{ %% <<"consolidation">> => list(), %% <<"extraction">> => list(), %% <<"reflection">> => list(), %% <<"selfManagedConfiguration">> => modify_self_managed_configuration() %% } -type modify_strategy_configuration() :: #{binary() => any()}. %% Example: %% api_gateway_tool_configuration() :: #{ %% <<"toolFilters">> => list(api_gateway_tool_filter()), %% <<"toolOverrides">> => list(api_gateway_tool_override()) %% } -type api_gateway_tool_configuration() :: #{binary() => any()}. %% Example: %% list_gateway_targets_response() :: #{ %% <<"items">> => list(target_summary()), %% <<"nextToken">> => string() %% } -type list_gateway_targets_response() :: #{binary() => any()}. %% Example: %% create_payment_manager_request() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> := list(any()), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"name">> := string(), %% <<"roleArn">> := string(), %% <<"tags">> => map() %% } -type create_payment_manager_request() :: #{binary() => any()}. %% Example: %% create_agent_runtime_endpoint_request() :: #{ %% <<"agentRuntimeVersion">> => string(), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"name">> := string(), %% <<"tags">> => map() %% } -type create_agent_runtime_endpoint_request() :: #{binary() => any()}. %% Example: %% delete_gateway_target_request() :: #{} -type delete_gateway_target_request() :: #{}. %% Example: %% create_registry_record_request() :: #{ %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"descriptorType">> := list(any()), %% <<"descriptors">> => descriptors(), %% <<"name">> := string(), %% <<"recordVersion">> => string(), %% <<"synchronizationConfiguration">> => synchronization_configuration(), %% <<"synchronizationType">> => list(any()) %% } -type create_registry_record_request() :: #{binary() => any()}. %% Example: %% time_based_trigger_input() :: #{ %% <<"idleSessionTimeout">> => [integer()] %% } -type time_based_trigger_input() :: #{binary() => any()}. %% Example: %% payment_credential_provider_item() :: #{ %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"credentialProviderVendor">> => list(any()), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string() %% } -type payment_credential_provider_item() :: #{binary() => any()}. %% Example: %% list_registry_records_response() :: #{ %% <<"nextToken">> => string(), %% <<"registryRecords">> => list(registry_record_summary()) %% } -type list_registry_records_response() :: #{binary() => any()}. %% Example: %% updated_mcp_descriptor() :: #{ %% <<"optionalValue">> => updated_mcp_descriptor_fields() %% } -type updated_mcp_descriptor() :: #{binary() => any()}. %% Example: %% stripe_privy_configuration_input() :: #{ %% <<"appId">> => string(), %% <<"appSecret">> => string(), %% <<"appSecretConfig">> => secret_reference(), %% <<"appSecretSource">> => list(any()), %% <<"authorizationId">> => string(), %% <<"authorizationPrivateKey">> => string(), %% <<"authorizationPrivateKeyConfig">> => secret_reference(), %% <<"authorizationPrivateKeySource">> => list(any()) %% } -type stripe_privy_configuration_input() :: #{binary() => any()}. %% Example: %% harness_agent_core_memory_configuration() :: #{ %% <<"actorId">> => [string()], %% <<"arn">> => string(), %% <<"messagesCount">> => [integer()], %% <<"retrievalConfig">> => map() %% } -type harness_agent_core_memory_configuration() :: #{binary() => any()}. %% Example: %% list_policy_generation_summaries_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_policy_generation_summaries_request() :: #{binary() => any()}. %% Example: %% delete_configuration_bundle_request() :: #{} -type delete_configuration_bundle_request() :: #{}. %% Example: %% list_payment_connectors_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_payment_connectors_request() :: #{binary() => any()}. %% Example: %% create_oauth2_credential_provider_response() :: #{ %% <<"callbackUrl">> => [string()], %% <<"clientSecretArn">> => secret(), %% <<"clientSecretJsonKey">> => string(), %% <<"clientSecretSource">> => list(any()), %% <<"credentialProviderArn">> => string(), %% <<"name">> => string(), %% <<"oauth2ProviderConfigOutput">> => list(), %% <<"status">> => list(any()) %% } -type create_oauth2_credential_provider_response() :: #{binary() => any()}. %% Example: %% memory_strategy() :: #{ %% <<"configuration">> => strategy_configuration(), %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"name">> => string(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()), %% <<"status">> => list(any()), %% <<"strategyId">> => string(), %% <<"type">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type memory_strategy() :: #{binary() => any()}. %% Example: %% a2a_descriptor() :: #{ %% <<"agentCard">> => agent_card_definition() %% } -type a2a_descriptor() :: #{binary() => any()}. %% Example: %% tag_resource_request() :: #{ %% <<"tags">> := map() %% } -type tag_resource_request() :: #{binary() => any()}. %% Example: %% update_payment_manager_response() :: #{ %% <<"authorizerType">> => list(any()), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"paymentManagerArn">> => string(), %% <<"paymentManagerId">> => string(), %% <<"roleArn">> => string(), %% <<"status">> => list(any()), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type update_payment_manager_response() :: #{binary() => any()}. %% Example: %% get_harness_request() :: #{} -type get_harness_request() :: #{}. %% Example: %% harness_sliding_window_configuration() :: #{ %% <<"messagesCount">> => [integer()] %% } -type harness_sliding_window_configuration() :: #{binary() => any()}. %% Example: %% get_api_key_credential_provider_response() :: #{ %% <<"apiKeySecretArn">> => secret(), %% <<"apiKeySecretJsonKey">> => string(), %% <<"apiKeySecretSource">> => list(any()), %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string() %% } -type get_api_key_credential_provider_response() :: #{binary() => any()}. %% Example: %% included_oauth2_provider_config_input() :: #{ %% <<"authorizationEndpoint">> => string(), %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()), %% <<"issuer">> => string(), %% <<"tokenEndpoint">> => string() %% } -type included_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% get_registry_record_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"descriptorType">> => list(any()), %% <<"descriptors">> => descriptors(), %% <<"name">> => string(), %% <<"recordArn">> => string(), %% <<"recordId">> => string(), %% <<"recordVersion">> => string(), %% <<"registryArn">> => string(), %% <<"status">> => list(any()), %% <<"statusReason">> => [string()], %% <<"synchronizationConfiguration">> => synchronization_configuration(), %% <<"synchronizationType">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type get_registry_record_response() :: #{binary() => any()}. %% Example: %% submit_registry_record_for_approval_request() :: #{} -type submit_registry_record_for_approval_request() :: #{}. %% Example: %% delete_resource_policy_response() :: #{} -type delete_resource_policy_response() :: #{}. %% Example: %% o_auth2_authorization_data() :: #{ %% <<"authorizationUrl">> => [string()], %% <<"userId">> => [string()] %% } -type o_auth2_authorization_data() :: #{binary() => any()}. %% Example: %% configuration_bundle_reference() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleVersion">> => [string()] %% } -type configuration_bundle_reference() :: #{binary() => any()}. %% Example: %% browser_summary() :: #{ %% <<"browserArn">> => string(), %% <<"browserId">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"status">> => list(any()) %% } -type browser_summary() :: #{binary() => any()}. %% Example: %% summary_override_consolidation_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type summary_override_consolidation_configuration_input() :: #{binary() => any()}. %% Example: %% s3_source() :: #{ %% <<"s3Uri">> => string() %% } -type s3_source() :: #{binary() => any()}. %% Example: %% memory_summary() :: #{ %% <<"arn">> => string(), %% <<"createdAt">> => [non_neg_integer()], %% <<"id">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type memory_summary() :: #{binary() => any()}. %% Example: %% gateway_rule_detail() :: #{ %% <<"actions">> => list(list()), %% <<"conditions">> => list(list()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"priority">> => integer(), %% <<"ruleId">> => string(), %% <<"status">> => list(any()), %% <<"system">> => system_managed_block(), %% <<"updatedAt">> => non_neg_integer() %% } -type gateway_rule_detail() :: #{binary() => any()}. %% Example: %% code_configuration() :: #{ %% <<"code">> => list(), %% <<"entryPoint">> => list(string()), %% <<"runtime">> => list(any()) %% } -type code_configuration() :: #{binary() => any()}. %% Example: %% get_harness_response() :: #{ %% <<"harness">> => harness() %% } -type get_harness_response() :: #{binary() => any()}. %% Example: %% delete_dataset_response() :: #{ %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"datasetVersion">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type delete_dataset_response() :: #{binary() => any()}. %% Example: %% numerical_scale_definition() :: #{ %% <<"definition">> => [string()], %% <<"label">> => [string()], %% <<"value">> => [float()] %% } -type numerical_scale_definition() :: #{binary() => any()}. %% Example: %% update_policy_engine_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type update_policy_engine_response() :: #{binary() => any()}. %% Example: %% unauthorized_exception() :: #{ %% <<"message">> => string() %% } -type unauthorized_exception() :: #{binary() => any()}. %% Example: %% secret_reference() :: #{ %% <<"jsonKey">> => string(), %% <<"secretId">> => string() %% } -type secret_reference() :: #{binary() => any()}. %% Example: %% list_code_interpreters_response() :: #{ %% <<"codeInterpreterSummaries">> => list(code_interpreter_summary()), %% <<"nextToken">> => string() %% } -type list_code_interpreters_response() :: #{binary() => any()}. %% Example: %% create_memory_input() :: #{ %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"eventExpiryDuration">> := [integer()], %% <<"indexedKeys">> => list(indexed_key()), %% <<"memoryExecutionRoleArn">> => string(), %% <<"memoryStrategies">> => list(list()), %% <<"name">> := string(), %% <<"streamDeliveryResources">> => stream_delivery_resources(), %% <<"tags">> => map() %% } -type create_memory_input() :: #{binary() => any()}. %% Example: %% get_policy_summary_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"policyArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyId">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type get_policy_summary_response() :: #{binary() => any()}. %% Example: %% summary_memory_strategy_input() :: #{ %% <<"description">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"name">> => string(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type summary_memory_strategy_input() :: #{binary() => any()}. %% Example: %% update_dataset_response() :: #{ %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"updatedAt">> => [non_neg_integer()] %% } -type update_dataset_response() :: #{binary() => any()}. %% Example: %% update_payment_credential_provider_request() :: #{ %% <<"credentialProviderVendor">> := list(any()), %% <<"name">> := string(), %% <<"providerConfigurationInput">> := list() %% } -type update_payment_credential_provider_request() :: #{binary() => any()}. %% Example: %% kms_configuration() :: #{ %% <<"keyType">> => list(any()), %% <<"kmsKeyArn">> => string() %% } -type kms_configuration() :: #{binary() => any()}. %% Example: %% get_evaluator_request() :: #{ %% <<"includedData">> => list(any()) %% } -type get_evaluator_request() :: #{binary() => any()}. %% Example: %% list_policies_response() :: #{ %% <<"nextToken">> => string(), %% <<"policies">> => list(policy()) %% } -type list_policies_response() :: #{binary() => any()}. %% Example: %% updated_descriptors() :: #{ %% <<"optionalValue">> => updated_descriptors_union() %% } -type updated_descriptors() :: #{binary() => any()}. %% Example: %% custom_descriptor() :: #{ %% <<"inlineContent">> => string() %% } -type custom_descriptor() :: #{binary() => any()}. %% Example: %% delete_payment_credential_provider_response() :: #{} -type delete_payment_credential_provider_response() :: #{}. %% Example: %% list_browser_profiles_request() :: #{ %% <<"maxResults">> => integer(), %% <<"name">> => string(), %% <<"nextToken">> => string() %% } -type list_browser_profiles_request() :: #{binary() => any()}. %% Example: %% get_payment_manager_response() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"paymentManagerArn">> => string(), %% <<"paymentManagerId">> => string(), %% <<"roleArn">> => string(), %% <<"status">> => list(any()), %% <<"tags">> => map(), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type get_payment_manager_response() :: #{binary() => any()}. %% Example: %% schema_definition() :: #{ %% <<"description">> => [string()], %% <<"items">> => schema_definition(), %% <<"properties">> => map(), %% <<"required">> => list([string()]()), %% <<"type">> => list(any()) %% } -type schema_definition() :: #{binary() => any()}. %% Example: %% match_paths() :: #{ %% <<"anyOf">> => list(string()) %% } -type match_paths() :: #{binary() => any()}. %% Example: %% untag_resource_response() :: #{} -type untag_resource_response() :: #{}. %% Example: %% list_agent_runtime_versions_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_agent_runtime_versions_request() :: #{binary() => any()}. %% Example: %% create_gateway_response() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"exceptionLevel">> => list(any()), %% <<"gatewayArn">> => string(), %% <<"gatewayId">> => string(), %% <<"gatewayUrl">> => string(), %% <<"interceptorConfigurations">> => list(gateway_interceptor_configuration()), %% <<"kmsKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineConfiguration">> => gateway_policy_engine_configuration(), %% <<"protocolConfiguration">> => list(), %% <<"protocolType">> => list(any()), %% <<"roleArn">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer(), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type create_gateway_response() :: #{binary() => any()}. %% Example: %% registry_record_iam_credential_provider() :: #{ %% <<"region">> => string(), %% <<"roleArn">> => string(), %% <<"service">> => string() %% } -type registry_record_iam_credential_provider() :: #{binary() => any()}. %% Example: %% stream_delivery_resources() :: #{ %% <<"resources">> => list(list()) %% } -type stream_delivery_resources() :: #{binary() => any()}. %% Example: %% api_gateway_tool_override() :: #{ %% <<"description">> => [string()], %% <<"method">> => list(any()), %% <<"name">> => [string()], %% <<"path">> => [string()] %% } -type api_gateway_tool_override() :: #{binary() => any()}. %% Example: %% salesforce_oauth2_provider_config_input() :: #{ %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()) %% } -type salesforce_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% inference_configuration() :: #{ %% <<"maxTokens">> => [integer()], %% <<"stopSequences">> => list(string()), %% <<"temperature">> => [float()], %% <<"topP">> => [float()] %% } -type inference_configuration() :: #{binary() => any()}. %% Example: %% list_gateways_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_gateways_request() :: #{binary() => any()}. %% Example: %% cloud_watch_output_config() :: #{ %% <<"logGroupName">> => string() %% } -type cloud_watch_output_config() :: #{binary() => any()}. %% Example: %% get_oauth2_credential_provider_request() :: #{ %% <<"name">> := string() %% } -type get_oauth2_credential_provider_request() :: #{binary() => any()}. %% Example: %% indexed_key() :: #{ %% <<"key">> => string(), %% <<"type">> => list(any()) %% } -type indexed_key() :: #{binary() => any()}. %% Example: %% delete_registry_request() :: #{} -type delete_registry_request() :: #{}. %% Example: %% update_online_evaluation_config_response() :: #{ %% <<"executionStatus">> => list(any()), %% <<"failureReason">> => [string()], %% <<"onlineEvaluationConfigArn">> => string(), %% <<"onlineEvaluationConfigId">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type update_online_evaluation_config_response() :: #{binary() => any()}. %% Example: %% list_evaluators_response() :: #{ %% <<"evaluators">> => list(evaluator_summary()), %% <<"nextToken">> => [string()] %% } -type list_evaluators_response() :: #{binary() => any()}. %% Example: %% get_workload_identity_request() :: #{ %% <<"name">> := string() %% } -type get_workload_identity_request() :: #{binary() => any()}. %% Example: %% string_list_validation() :: #{ %% <<"allowedValues">> => list(string()), %% <<"maxItems">> => [integer()] %% } -type string_list_validation() :: #{binary() => any()}. %% Example: %% get_registry_record_request() :: #{} -type get_registry_record_request() :: #{}. %% Example: %% update_evaluator_request() :: #{ %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"evaluatorConfig">> => list(), %% <<"kmsKeyArn">> => string(), %% <<"level">> => list(any()) %% } -type update_evaluator_request() :: #{binary() => any()}. %% Example: %% list_policies_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string(), %% <<"targetResourceScope">> => string() %% } -type list_policies_request() :: #{binary() => any()}. %% Example: %% message_based_trigger_input() :: #{ %% <<"messageCount">> => [integer()] %% } -type message_based_trigger_input() :: #{binary() => any()}. %% Example: %% get_policy_request() :: #{} -type get_policy_request() :: #{}. %% Example: %% api_gateway_target_configuration() :: #{ %% <<"apiGatewayToolConfiguration">> => api_gateway_tool_configuration(), %% <<"restApiId">> => [string()], %% <<"stage">> => [string()] %% } -type api_gateway_target_configuration() :: #{binary() => any()}. %% Example: %% string_validation() :: #{ %% <<"allowedValues">> => list(string()) %% } -type string_validation() :: #{binary() => any()}. %% Example: %% list_policy_generation_assets_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_policy_generation_assets_request() :: #{binary() => any()}. %% Example: %% delete_gateway_target_response() :: #{ %% <<"gatewayArn">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"targetId">> => string() %% } -type delete_gateway_target_response() :: #{binary() => any()}. %% Example: %% list_dataset_examples_request() :: #{ %% <<"datasetVersion">> => string(), %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_dataset_examples_request() :: #{binary() => any()}. %% Example: %% api_gateway_tool_filter() :: #{ %% <<"filterPath">> => [string()], %% <<"methods">> => list(list(any())()) %% } -type api_gateway_tool_filter() :: #{binary() => any()}. %% Example: %% create_harness_response() :: #{ %% <<"harness">> => harness() %% } -type create_harness_response() :: #{binary() => any()}. %% Example: %% delete_payment_credential_provider_request() :: #{ %% <<"name">> := string() %% } -type delete_payment_credential_provider_request() :: #{binary() => any()}. %% Example: %% weighted_route() :: #{ %% <<"trafficSplit">> => list(target_traffic_split_entry()) %% } -type weighted_route() :: #{binary() => any()}. %% Example: %% lifecycle_configuration() :: #{ %% <<"idleRuntimeSessionTimeout">> => [integer()], %% <<"maxLifetime">> => [integer()] %% } -type lifecycle_configuration() :: #{binary() => any()}. %% Example: %% tool_definition() :: #{ %% <<"description">> => [string()], %% <<"inputSchema">> => schema_definition(), %% <<"name">> => [string()], %% <<"outputSchema">> => schema_definition() %% } -type tool_definition() :: #{binary() => any()}. %% Example: %% update_registry_record_status_response() :: #{ %% <<"recordArn">> => string(), %% <<"recordId">> => string(), %% <<"registryArn">> => string(), %% <<"status">> => list(any()), %% <<"statusReason">> => [string()], %% <<"updatedAt">> => non_neg_integer() %% } -type update_registry_record_status_response() :: #{binary() => any()}. %% Example: %% iam_credential_provider() :: #{ %% <<"region">> => [string()], %% <<"service">> => [string()] %% } -type iam_credential_provider() :: #{binary() => any()}. %% Example: %% create_registry_response() :: #{ %% <<"registryArn">> => string() %% } -type create_registry_response() :: #{binary() => any()}. %% Example: %% decryption_failure() :: #{ %% <<"message">> => [string()] %% } -type decryption_failure() :: #{binary() => any()}. %% Example: %% code_interpreter_summary() :: #{ %% <<"codeInterpreterArn">> => string(), %% <<"codeInterpreterId">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"status">> => list(any()) %% } -type code_interpreter_summary() :: #{binary() => any()}. %% Example: %% get_registry_request() :: #{} -type get_registry_request() :: #{}. %% Example: %% update_gateway_rule_request() :: #{ %% <<"actions">> => list(list()), %% <<"conditions">> => list(list()), %% <<"description">> => string(), %% <<"priority">> => integer() %% } -type update_gateway_rule_request() :: #{binary() => any()}. %% Example: %% get_policy_engine_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type get_policy_engine_response() :: #{binary() => any()}. %% Example: %% create_browser_response() :: #{ %% <<"browserArn">> => string(), %% <<"browserId">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"status">> => list(any()) %% } -type create_browser_response() :: #{binary() => any()}. %% Example: %% modify_self_managed_configuration() :: #{ %% <<"historicalContextWindowSize">> => [integer()], %% <<"invocationConfiguration">> => modify_invocation_configuration_input(), %% <<"triggerConditions">> => list(list()) %% } -type modify_self_managed_configuration() :: #{binary() => any()}. %% Example: %% harness_skill_s3_source() :: #{ %% <<"uri">> => string() %% } -type harness_skill_s3_source() :: #{binary() => any()}. %% Example: %% encryption_failure() :: #{ %% <<"message">> => [string()] %% } -type encryption_failure() :: #{binary() => any()}. %% Example: %% create_payment_connector_request() :: #{ %% <<"clientToken">> => string(), %% <<"credentialProviderConfigurations">> := list(list()), %% <<"description">> => string(), %% <<"name">> := string(), %% <<"type">> := list(any()) %% } -type create_payment_connector_request() :: #{binary() => any()}. %% Example: %% policy_generation_asset() :: #{ %% <<"definition">> => list(), %% <<"findings">> => list(finding()), %% <<"policyGenerationAssetId">> => string(), %% <<"rawTextFragment">> => string() %% } -type policy_generation_asset() :: #{binary() => any()}. %% Example: %% delete_browser_response() :: #{ %% <<"browserId">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"status">> => list(any()) %% } -type delete_browser_response() :: #{binary() => any()}. %% Example: %% get_online_evaluation_config_request() :: #{} -type get_online_evaluation_config_request() :: #{}. %% Example: %% updated_tools_definition() :: #{ %% <<"optionalValue">> => tools_definition() %% } -type updated_tools_definition() :: #{binary() => any()}. %% Example: %% create_policy_request() :: #{ %% <<"clientToken">> => string(), %% <<"definition">> := list(), %% <<"description">> => string(), %% <<"name">> := string(), %% <<"validationMode">> => list(any()) %% } -type create_policy_request() :: #{binary() => any()}. %% Example: %% get_agent_runtime_request() :: #{ %% <<"agentRuntimeVersion">> => string() %% } -type get_agent_runtime_request() :: #{binary() => any()}. %% Example: %% get_memory_input() :: #{ %% <<"view">> => list(any()) %% } -type get_memory_input() :: #{binary() => any()}. %% Example: %% semantic_memory_strategy_input() :: #{ %% <<"description">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"name">> => string(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type semantic_memory_strategy_input() :: #{binary() => any()}. %% Example: %% harness_truncation_configuration() :: #{ %% <<"config">> => list(), %% <<"strategy">> => list(any()) %% } -type harness_truncation_configuration() :: #{binary() => any()}. %% Example: %% delete_memory_input() :: #{ %% <<"clientToken">> => string() %% } -type delete_memory_input() :: #{binary() => any()}. %% Example: %% list_datasets_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_datasets_request() :: #{binary() => any()}. %% Example: %% delete_gateway_response() :: #{ %% <<"gatewayId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()) %% } -type delete_gateway_response() :: #{binary() => any()}. %% Example: %% add_dataset_examples_request() :: #{ %% <<"clientToken">> => string(), %% <<"source">> := list() %% } -type add_dataset_examples_request() :: #{binary() => any()}. %% Example: %% registry_record_o_auth_credential_provider() :: #{ %% <<"customParameters">> => map(), %% <<"grantType">> => list(any()), %% <<"providerArn">> => string(), %% <<"scopes">> => list([string()]()) %% } -type registry_record_o_auth_credential_provider() :: #{binary() => any()}. %% Example: %% summary_consolidation_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type summary_consolidation_override() :: #{binary() => any()}. %% Example: %% create_api_key_credential_provider_response() :: #{ %% <<"apiKeySecretArn">> => secret(), %% <<"apiKeySecretJsonKey">> => string(), %% <<"apiKeySecretSource">> => list(any()), %% <<"credentialProviderArn">> => string(), %% <<"name">> => string() %% } -type create_api_key_credential_provider_response() :: #{binary() => any()}. %% Example: %% custom_memory_strategy_input() :: #{ %% <<"configuration">> => list(), %% <<"description">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"name">> => string(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type custom_memory_strategy_input() :: #{binary() => any()}. %% Example: %% updated_skill_md_definition() :: #{ %% <<"optionalValue">> => skill_md_definition() %% } -type updated_skill_md_definition() :: #{binary() => any()}. %% Example: %% episodic_override_reflection_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"modelId">> => [string()], %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type episodic_override_reflection_configuration_input() :: #{binary() => any()}. %% Example: %% lambda_evaluator_config() :: #{ %% <<"lambdaArn">> => string(), %% <<"lambdaTimeoutInSeconds">> => [integer()] %% } -type lambda_evaluator_config() :: #{binary() => any()}. %% Example: %% updated_a2a_descriptor() :: #{ %% <<"optionalValue">> => a2a_descriptor() %% } -type updated_a2a_descriptor() :: #{binary() => any()}. %% Example: %% get_resource_policy_response() :: #{ %% <<"policy">> => string() %% } -type get_resource_policy_response() :: #{binary() => any()}. %% Example: %% user_preference_override_configuration_input() :: #{ %% <<"consolidation">> => user_preference_override_consolidation_configuration_input(), %% <<"extraction">> => user_preference_override_extraction_configuration_input() %% } -type user_preference_override_configuration_input() :: #{binary() => any()}. %% Example: %% harness_agent_core_gateway_config() :: #{ %% <<"gatewayArn">> => string(), %% <<"outboundAuth">> => list() %% } -type harness_agent_core_gateway_config() :: #{binary() => any()}. %% Example: %% harness_skill_git_source() :: #{ %% <<"auth">> => harness_skill_git_auth(), %% <<"path">> => [string()], %% <<"url">> => string() %% } -type harness_skill_git_source() :: #{binary() => any()}. %% Example: %% episodic_reflection_configuration() :: #{ %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type episodic_reflection_configuration() :: #{binary() => any()}. %% Example: %% get_gateway_target_response() :: #{ %% <<"authorizationData">> => list(), %% <<"createdAt">> => non_neg_integer(), %% <<"credentialProviderConfigurations">> => list(credential_provider_configuration()), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"lastSynchronizedAt">> => non_neg_integer(), %% <<"metadataConfiguration">> => metadata_configuration(), %% <<"name">> => string(), %% <<"privateEndpoint">> => list(), %% <<"privateEndpointManagedResources">> => list(managed_resource_details()), %% <<"protocolType">> => list(any()), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"targetConfiguration">> => list(), %% <<"targetId">> => string(), %% <<"updatedAt">> => non_neg_integer() %% } -type get_gateway_target_response() :: #{binary() => any()}. %% Example: %% submit_registry_record_for_approval_response() :: #{ %% <<"recordArn">> => string(), %% <<"recordId">> => string(), %% <<"registryArn">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type submit_registry_record_for_approval_response() :: #{binary() => any()}. %% Example: %% episodic_override_configuration_input() :: #{ %% <<"consolidation">> => episodic_override_consolidation_configuration_input(), %% <<"extraction">> => episodic_override_extraction_configuration_input(), %% <<"reflection">> => episodic_override_reflection_configuration_input() %% } -type episodic_override_configuration_input() :: #{binary() => any()}. %% Example: %% stripe_privy_configuration_output() :: #{ %% <<"appId">> => string(), %% <<"appSecretArn">> => secret(), %% <<"appSecretJsonKey">> => string(), %% <<"appSecretSource">> => list(any()), %% <<"authorizationId">> => string(), %% <<"authorizationPrivateKeyArn">> => secret(), %% <<"authorizationPrivateKeyJsonKey">> => string(), %% <<"authorizationPrivateKeySource">> => list(any()) %% } -type stripe_privy_configuration_output() :: #{binary() => any()}. %% Example: %% update_online_evaluation_config_request() :: #{ %% <<"clientToken">> => string(), %% <<"dataSourceConfig">> => list(), %% <<"description">> => string(), %% <<"evaluationExecutionRoleArn">> => string(), %% <<"evaluators">> => list(list()), %% <<"executionStatus">> => list(any()), %% <<"rule">> => rule() %% } -type update_online_evaluation_config_request() :: #{binary() => any()}. %% Example: %% get_policy_generation_summary_request() :: #{} -type get_policy_generation_summary_request() :: #{}. %% Example: %% delete_evaluator_response() :: #{ %% <<"evaluatorArn">> => string(), %% <<"evaluatorId">> => string(), %% <<"status">> => list(any()) %% } -type delete_evaluator_response() :: #{binary() => any()}. %% Example: %% online_evaluation_config_summary() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string(), %% <<"executionStatus">> => list(any()), %% <<"failureReason">> => [string()], %% <<"onlineEvaluationConfigArn">> => string(), %% <<"onlineEvaluationConfigId">> => string(), %% <<"onlineEvaluationConfigName">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type online_evaluation_config_summary() :: #{binary() => any()}. %% Example: %% update_registry_request() :: #{ %% <<"approvalConfiguration">> => updated_approval_configuration(), %% <<"authorizerConfiguration">> => updated_authorizer_configuration(), %% <<"description">> => updated_description(), %% <<"name">> => string() %% } -type update_registry_request() :: #{binary() => any()}. %% Example: %% harness_agent_core_memory_retrieval_config() :: #{ %% <<"relevanceScore">> => [float()], %% <<"strategyId">> => [string()], %% <<"topK">> => [integer()] %% } -type harness_agent_core_memory_retrieval_config() :: #{binary() => any()}. %% Example: %% update_registry_record_request() :: #{ %% <<"description">> => updated_description(), %% <<"descriptorType">> => list(any()), %% <<"descriptors">> => updated_descriptors(), %% <<"name">> => string(), %% <<"recordVersion">> => string(), %% <<"synchronizationConfiguration">> => updated_synchronization_configuration(), %% <<"synchronizationType">> => updated_synchronization_type(), %% <<"triggerSynchronization">> => [boolean()] %% } -type update_registry_record_request() :: #{binary() => any()}. %% Example: %% delete_workload_identity_response() :: #{} -type delete_workload_identity_response() :: #{}. %% Example: %% semantic_extraction_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type semantic_extraction_override() :: #{binary() => any()}. %% Example: %% linkedin_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type linkedin_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% gateway_policy_engine_configuration() :: #{ %% <<"arn">> => string(), %% <<"mode">> => list(any()) %% } -type gateway_policy_engine_configuration() :: #{binary() => any()}. %% Example: %% kinesis_resource() :: #{ %% <<"contentConfigurations">> => list(content_configuration()), %% <<"dataStreamArn">> => string() %% } -type kinesis_resource() :: #{binary() => any()}. %% Example: %% semantic_override_consolidation_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type semantic_override_consolidation_configuration_input() :: #{binary() => any()}. %% Example: %% list_policy_summaries_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string(), %% <<"targetResourceScope">> => string() %% } -type list_policy_summaries_request() :: #{binary() => any()}. %% Example: %% delete_policy_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"definition">> => list(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"policyArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type delete_policy_response() :: #{binary() => any()}. %% Example: %% create_gateway_rule_request() :: #{ %% <<"actions">> := list(list()), %% <<"clientToken">> => string(), %% <<"conditions">> => list(list()), %% <<"description">> => string(), %% <<"priority">> := integer() %% } -type create_gateway_rule_request() :: #{binary() => any()}. %% Example: %% create_agent_runtime_endpoint_response() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeEndpointArn">> => string(), %% <<"agentRuntimeId">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"endpointName">> => string(), %% <<"status">> => list(any()), %% <<"targetVersion">> => string() %% } -type create_agent_runtime_endpoint_response() :: #{binary() => any()}. %% Example: %% self_managed_configuration_input() :: #{ %% <<"historicalContextWindowSize">> => [integer()], %% <<"invocationConfiguration">> => invocation_configuration_input(), %% <<"triggerConditions">> => list(list()) %% } -type self_managed_configuration_input() :: #{binary() => any()}. %% Example: %% update_policy_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"definition">> => list(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"policyArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type update_policy_response() :: #{binary() => any()}. %% Example: %% harness() :: #{ %% <<"allowedTools">> => list(string()), %% <<"arn">> => string(), %% <<"authorizerConfiguration">> => list(), %% <<"createdAt">> => non_neg_integer(), %% <<"environment">> => list(), %% <<"environmentArtifact">> => list(), %% <<"environmentVariables">> => map(), %% <<"executionRoleArn">> => string(), %% <<"failureReason">> => [string()], %% <<"harnessId">> => string(), %% <<"harnessName">> => string(), %% <<"maxIterations">> => [integer()], %% <<"maxTokens">> => [integer()], %% <<"memory">> => list(), %% <<"model">> => list(), %% <<"skills">> => list(list()), %% <<"status">> => list(any()), %% <<"systemPrompt">> => list(list()), %% <<"timeoutSeconds">> => [integer()], %% <<"tools">> => list(harness_tool()), %% <<"truncation">> => harness_truncation_configuration(), %% <<"updatedAt">> => non_neg_integer() %% } -type harness() :: #{binary() => any()}. %% Example: %% create_api_key_credential_provider_request() :: #{ %% <<"apiKey">> => string(), %% <<"apiKeySecretConfig">> => secret_reference(), %% <<"apiKeySecretSource">> => list(any()), %% <<"name">> := string(), %% <<"tags">> => map() %% } -type create_api_key_credential_provider_request() :: #{binary() => any()}. %% Example: %% get_browser_response() :: #{ %% <<"browserArn">> => string(), %% <<"browserId">> => string(), %% <<"browserSigning">> => browser_signing_config_output(), %% <<"certificates">> => list(certificate()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"enterprisePolicies">> => list(browser_enterprise_policy()), %% <<"executionRoleArn">> => string(), %% <<"failureReason">> => [string()], %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"networkConfiguration">> => browser_network_configuration(), %% <<"recording">> => recording_config(), %% <<"status">> => list(any()) %% } -type get_browser_response() :: #{binary() => any()}. %% Example: %% workload_identity_details() :: #{ %% <<"workloadIdentityArn">> => string() %% } -type workload_identity_details() :: #{binary() => any()}. %% Example: %% untag_resource_request() :: #{ %% <<"tagKeys">> := list(string()) %% } -type untag_resource_request() :: #{binary() => any()}. %% Example: %% synchronize_gateway_targets_request() :: #{ %% <<"targetIdList">> := list(string()) %% } -type synchronize_gateway_targets_request() :: #{binary() => any()}. %% Example: %% create_gateway_target_request() :: #{ %% <<"clientToken">> => string(), %% <<"credentialProviderConfigurations">> => list(credential_provider_configuration()), %% <<"description">> => string(), %% <<"metadataConfiguration">> => metadata_configuration(), %% <<"name">> := string(), %% <<"privateEndpoint">> => list(), %% <<"targetConfiguration">> := list() %% } -type create_gateway_target_request() :: #{binary() => any()}. %% Example: %% semantic_consolidation_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type semantic_consolidation_override() :: #{binary() => any()}. %% Example: %% create_harness_request() :: #{ %% <<"allowedTools">> => list(string()), %% <<"authorizerConfiguration">> => list(), %% <<"clientToken">> => string(), %% <<"environment">> => list(), %% <<"environmentArtifact">> => list(), %% <<"environmentVariables">> => map(), %% <<"executionRoleArn">> := string(), %% <<"harnessName">> := string(), %% <<"maxIterations">> => [integer()], %% <<"maxTokens">> => [integer()], %% <<"memory">> => list(), %% <<"model">> => list(), %% <<"skills">> => list(list()), %% <<"systemPrompt">> => list(list()), %% <<"tags">> => map(), %% <<"timeoutSeconds">> => [integer()], %% <<"tools">> => list(harness_tool()), %% <<"truncation">> => harness_truncation_configuration() %% } -type create_harness_request() :: #{binary() => any()}. %% Example: %% get_payment_manager_request() :: #{} -type get_payment_manager_request() :: #{}. %% Example: %% update_memory_input() :: #{ %% <<"addIndexedKeys">> => list(indexed_key()), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"eventExpiryDuration">> => [integer()], %% <<"memoryExecutionRoleArn">> => string(), %% <<"memoryStrategies">> => modify_memory_strategies(), %% <<"streamDeliveryResources">> => stream_delivery_resources() %% } -type update_memory_input() :: #{binary() => any()}. %% Example: %% delete_oauth2_credential_provider_request() :: #{ %% <<"name">> := string() %% } -type delete_oauth2_credential_provider_request() :: #{binary() => any()}. %% Example: %% payment_connector_summary() :: #{ %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"paymentConnectorId">> => string(), %% <<"status">> => list(any()), %% <<"type">> => list(any()) %% } -type payment_connector_summary() :: #{binary() => any()}. %% Example: %% session_configuration() :: #{ %% <<"sessionTimeoutInSeconds">> => [integer()] %% } -type session_configuration() :: #{binary() => any()}. %% Example: %% policy_generation_summary() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"findings">> => string(), %% <<"name">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyGenerationArn">> => string(), %% <<"policyGenerationId">> => string(), %% <<"resource">> => list(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type policy_generation_summary() :: #{binary() => any()}. %% Example: %% delete_harness_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_harness_request() :: #{binary() => any()}. %% Example: %% approval_configuration() :: #{ %% <<"autoApproval">> => [boolean()] %% } -type approval_configuration() :: #{binary() => any()}. %% Example: %% create_gateway_target_response() :: #{ %% <<"authorizationData">> => list(), %% <<"createdAt">> => non_neg_integer(), %% <<"credentialProviderConfigurations">> => list(credential_provider_configuration()), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"lastSynchronizedAt">> => non_neg_integer(), %% <<"metadataConfiguration">> => metadata_configuration(), %% <<"name">> => string(), %% <<"privateEndpoint">> => list(), %% <<"privateEndpointManagedResources">> => list(managed_resource_details()), %% <<"protocolType">> => list(any()), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"targetConfiguration">> => list(), %% <<"targetId">> => string(), %% <<"updatedAt">> => non_neg_integer() %% } -type create_gateway_target_response() :: #{binary() => any()}. %% Example: %% github_oauth2_provider_config_input() :: #{ %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()) %% } -type github_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% get_browser_profile_request() :: #{} -type get_browser_profile_request() :: #{}. %% Example: %% list_policy_engines_response() :: #{ %% <<"nextToken">> => string(), %% <<"policyEngines">> => list(policy_engine()) %% } -type list_policy_engines_response() :: #{binary() => any()}. %% Example: %% get_policy_engine_request() :: #{} -type get_policy_engine_request() :: #{}. %% Example: %% get_configuration_bundle_response() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleId">> => string(), %% <<"bundleName">> => string(), %% <<"components">> => map(), %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string(), %% <<"lineageMetadata">> => version_lineage_metadata(), %% <<"updatedAt">> => [non_neg_integer()], %% <<"versionId">> => string() %% } -type get_configuration_bundle_response() :: #{binary() => any()}. %% Example: %% updated_agent_skills_descriptor_fields() :: #{ %% <<"skillDefinition">> => updated_skill_definition(), %% <<"skillMd">> => updated_skill_md_definition() %% } -type updated_agent_skills_descriptor_fields() :: #{binary() => any()}. %% Example: %% create_payment_credential_provider_request() :: #{ %% <<"credentialProviderVendor">> := list(any()), %% <<"name">> := string(), %% <<"providerConfigurationInput">> := list(), %% <<"tags">> => map() %% } -type create_payment_credential_provider_request() :: #{binary() => any()}. %% Example: %% list_online_evaluation_configs_response() :: #{ %% <<"nextToken">> => [string()], %% <<"onlineEvaluationConfigs">> => list(online_evaluation_config_summary()) %% } -type list_online_evaluation_configs_response() :: #{binary() => any()}. %% Example: %% oauth2_authorization_server_metadata() :: #{ %% <<"authorizationEndpoint">> => string(), %% <<"issuer">> => string(), %% <<"responseTypes">> => list(string()), %% <<"tokenEndpoint">> => string(), %% <<"tokenEndpointAuthMethods">> => list(string()) %% } -type oauth2_authorization_server_metadata() :: #{binary() => any()}. %% Example: %% get_gateway_target_request() :: #{} -type get_gateway_target_request() :: #{}. %% Example: %% delete_payment_connector_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_payment_connector_request() :: #{binary() => any()}. %% Example: %% github_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type github_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% delete_browser_profile_response() :: #{ %% <<"lastSavedAt">> => non_neg_integer(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"profileArn">> => string(), %% <<"profileId">> => string(), %% <<"status">> => list(any()) %% } -type delete_browser_profile_response() :: #{binary() => any()}. %% Example: %% delete_evaluator_request() :: #{} -type delete_evaluator_request() :: #{}. %% Example: %% update_configuration_bundle_request() :: #{ %% <<"branchName">> => string(), %% <<"bundleName">> => string(), %% <<"clientToken">> => string(), %% <<"commitMessage">> => [string()], %% <<"components">> => map(), %% <<"createdBy">> => version_created_by_source(), %% <<"description">> => string(), %% <<"parentVersionIds">> => list(string()) %% } -type update_configuration_bundle_request() :: #{binary() => any()}. %% Example: %% version_created_by_source() :: #{ %% <<"arn">> => [string()], %% <<"name">> => [string()] %% } -type version_created_by_source() :: #{binary() => any()}. %% Example: %% updated_harness_memory_configuration() :: #{ %% <<"optionalValue">> => list() %% } -type updated_harness_memory_configuration() :: #{binary() => any()}. %% Example: %% get_api_key_credential_provider_request() :: #{ %% <<"name">> := string() %% } -type get_api_key_credential_provider_request() :: #{binary() => any()}. %% Example: %% create_agent_runtime_request() :: #{ %% <<"agentRuntimeArtifact">> := list(), %% <<"agentRuntimeName">> := string(), %% <<"authorizerConfiguration">> => list(), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"environmentVariables">> => map(), %% <<"filesystemConfigurations">> => list(list()), %% <<"lifecycleConfiguration">> => lifecycle_configuration(), %% <<"networkConfiguration">> := network_configuration(), %% <<"protocolConfiguration">> => protocol_configuration(), %% <<"requestHeaderConfiguration">> => list(), %% <<"roleArn">> := string(), %% <<"tags">> => map() %% } -type create_agent_runtime_request() :: #{binary() => any()}. %% Example: %% create_payment_connector_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"credentialProviderConfigurations">> => list(list()), %% <<"name">> => string(), %% <<"paymentConnectorId">> => string(), %% <<"paymentManagerId">> => string(), %% <<"status">> => list(any()), %% <<"type">> => list(any()) %% } -type create_payment_connector_response() :: #{binary() => any()}. %% Example: %% gateway_summary() :: #{ %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"gatewayId">> => string(), %% <<"name">> => string(), %% <<"protocolType">> => list(any()), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type gateway_summary() :: #{binary() => any()}. %% Example: %% list_dataset_examples_response() :: #{ %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"datasetVersion">> => string(), %% <<"examples">> => list(any()), %% <<"nextToken">> => [string()] %% } -type list_dataset_examples_response() :: #{binary() => any()}. %% Example: %% create_dataset_version_request() :: #{ %% <<"clientToken">> => string() %% } -type create_dataset_version_request() :: #{binary() => any()}. %% Example: %% episodic_memory_strategy_input() :: #{ %% <<"description">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"name">> => string(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()), %% <<"reflectionConfiguration">> => episodic_reflection_configuration_input() %% } -type episodic_memory_strategy_input() :: #{binary() => any()}. %% Example: %% harness_summary() :: #{ %% <<"arn">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"harnessId">> => string(), %% <<"harnessName">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type harness_summary() :: #{binary() => any()}. %% Example: %% create_dataset_response() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"status">> => list(any()) %% } -type create_dataset_response() :: #{binary() => any()}. %% Example: %% create_gateway_rule_response() :: #{ %% <<"actions">> => list(list()), %% <<"conditions">> => list(list()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"priority">> => integer(), %% <<"ruleId">> => string(), %% <<"status">> => list(any()), %% <<"system">> => system_managed_block() %% } -type create_gateway_rule_response() :: #{binary() => any()}. %% Example: %% runtime_metadata_configuration() :: #{ %% <<"requireMMDSV2">> => [boolean()] %% } -type runtime_metadata_configuration() :: #{binary() => any()}. %% Example: %% delete_agent_runtime_endpoint_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_agent_runtime_endpoint_request() :: #{binary() => any()}. %% Example: %% get_agent_runtime_endpoint_response() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeEndpointArn">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"failureReason">> => [string()], %% <<"id">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"liveVersion">> => string(), %% <<"name">> => string(), %% <<"status">> => list(any()), %% <<"targetVersion">> => string() %% } -type get_agent_runtime_endpoint_response() :: #{binary() => any()}. %% Example: %% update_agent_runtime_request() :: #{ %% <<"agentRuntimeArtifact">> := list(), %% <<"authorizerConfiguration">> => list(), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"environmentVariables">> => map(), %% <<"filesystemConfigurations">> => list(list()), %% <<"lifecycleConfiguration">> => lifecycle_configuration(), %% <<"metadataConfiguration">> => runtime_metadata_configuration(), %% <<"networkConfiguration">> := network_configuration(), %% <<"protocolConfiguration">> => protocol_configuration(), %% <<"requestHeaderConfiguration">> => list(), %% <<"roleArn">> := string() %% } -type update_agent_runtime_request() :: #{binary() => any()}. %% Example: %% harness_inline_function_config() :: #{ %% <<"description">> => string(), %% <<"inputSchema">> => any() %% } -type harness_inline_function_config() :: #{binary() => any()}. %% Example: %% update_agent_runtime_response() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeId">> => string(), %% <<"agentRuntimeVersion">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"status">> => list(any()), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type update_agent_runtime_response() :: #{binary() => any()}. %% Example: %% delete_api_key_credential_provider_request() :: #{ %% <<"name">> := string() %% } -type delete_api_key_credential_provider_request() :: #{binary() => any()}. %% Example: %% version_lineage_metadata() :: #{ %% <<"branchName">> => string(), %% <<"commitMessage">> => [string()], %% <<"createdBy">> => version_created_by_source(), %% <<"parentVersionIds">> => list(string()) %% } -type version_lineage_metadata() :: #{binary() => any()}. %% Example: %% throttled_exception() :: #{ %% <<"message">> => [string()] %% } -type throttled_exception() :: #{binary() => any()}. %% Example: %% create_registry_record_response() :: #{ %% <<"recordArn">> => string(), %% <<"status">> => list(any()) %% } -type create_registry_record_response() :: #{binary() => any()}. %% Example: %% llm_extraction_config() :: #{ %% <<"definition">> => string(), %% <<"llmExtractionInstruction">> => string(), %% <<"validation">> => list() %% } -type llm_extraction_config() :: #{binary() => any()}. %% Example: %% delete_gateway_rule_response() :: #{ %% <<"ruleId">> => string(), %% <<"status">> => list(any()) %% } -type delete_gateway_rule_response() :: #{binary() => any()}. %% Example: %% create_online_evaluation_config_request() :: #{ %% <<"clientToken">> => string(), %% <<"dataSourceConfig">> := list(), %% <<"description">> => string(), %% <<"enableOnCreate">> := [boolean()], %% <<"evaluationExecutionRoleArn">> := string(), %% <<"evaluators">> := list(list()), %% <<"onlineEvaluationConfigName">> := string(), %% <<"rule">> := rule(), %% <<"tags">> => map() %% } -type create_online_evaluation_config_request() :: #{binary() => any()}. %% Example: %% create_browser_request() :: #{ %% <<"browserSigning">> => browser_signing_config_input(), %% <<"certificates">> => list(certificate()), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"enterprisePolicies">> => list(browser_enterprise_policy()), %% <<"executionRoleArn">> => string(), %% <<"name">> := string(), %% <<"networkConfiguration">> := browser_network_configuration(), %% <<"recording">> => recording_config(), %% <<"tags">> => map() %% } -type create_browser_request() :: #{binary() => any()}. %% Example: %% update_workload_identity_request() :: #{ %% <<"allowedResourceOauth2ReturnUrls">> => list(string()), %% <<"name">> := string() %% } -type update_workload_identity_request() :: #{binary() => any()}. %% Example: %% update_gateway_target_response() :: #{ %% <<"authorizationData">> => list(), %% <<"createdAt">> => non_neg_integer(), %% <<"credentialProviderConfigurations">> => list(credential_provider_configuration()), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"lastSynchronizedAt">> => non_neg_integer(), %% <<"metadataConfiguration">> => metadata_configuration(), %% <<"name">> => string(), %% <<"privateEndpoint">> => list(), %% <<"privateEndpointManagedResources">> => list(managed_resource_details()), %% <<"protocolType">> => list(any()), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"targetConfiguration">> => list(), %% <<"targetId">> => string(), %% <<"updatedAt">> => non_neg_integer() %% } -type update_gateway_target_response() :: #{binary() => any()}. %% Example: %% list_browser_profiles_response() :: #{ %% <<"nextToken">> => string(), %% <<"profileSummaries">> => list(browser_profile_summary()) %% } -type list_browser_profiles_response() :: #{binary() => any()}. %% Example: %% conflict_exception() :: #{ %% <<"message">> => string() %% } -type conflict_exception() :: #{binary() => any()}. %% Example: %% resource_not_found_exception() :: #{ %% <<"message">> => string() %% } -type resource_not_found_exception() :: #{binary() => any()}. %% Example: %% get_policy_engine_summary_request() :: #{} -type get_policy_engine_summary_request() :: #{}. %% Example: %% create_online_evaluation_config_response() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"executionStatus">> => list(any()), %% <<"failureReason">> => [string()], %% <<"onlineEvaluationConfigArn">> => string(), %% <<"onlineEvaluationConfigId">> => string(), %% <<"outputConfig">> => output_config(), %% <<"status">> => list(any()) %% } -type create_online_evaluation_config_response() :: #{binary() => any()}. %% Example: %% update_payment_connector_request() :: #{ %% <<"clientToken">> => string(), %% <<"credentialProviderConfigurations">> => list(list()), %% <<"description">> => string(), %% <<"type">> => list(any()) %% } -type update_payment_connector_request() :: #{binary() => any()}. %% Example: %% on_behalf_of_token_exchange_config_type() :: #{ %% <<"grantType">> => list(any()), %% <<"tokenExchangeGrantTypeConfig">> => token_exchange_grant_type_config_type() %% } -type on_behalf_of_token_exchange_config_type() :: #{binary() => any()}. %% Example: %% create_workload_identity_request() :: #{ %% <<"allowedResourceOauth2ReturnUrls">> => list(string()), %% <<"name">> := string(), %% <<"tags">> => map() %% } -type create_workload_identity_request() :: #{binary() => any()}. %% Example: %% policy_generation_details() :: #{ %% <<"policyGenerationAssetId">> => string(), %% <<"policyGenerationId">> => string() %% } -type policy_generation_details() :: #{binary() => any()}. %% Example: %% coinbase_cdp_configuration_input() :: #{ %% <<"apiKeyId">> => string(), %% <<"apiKeySecret">> => string(), %% <<"apiKeySecretConfig">> => secret_reference(), %% <<"apiKeySecretSource">> => list(any()), %% <<"walletSecret">> => string(), %% <<"walletSecretConfig">> => secret_reference(), %% <<"walletSecretSource">> => list(any()) %% } -type coinbase_cdp_configuration_input() :: #{binary() => any()}. %% Example: %% get_gateway_response() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"exceptionLevel">> => list(any()), %% <<"gatewayArn">> => string(), %% <<"gatewayId">> => string(), %% <<"gatewayUrl">> => string(), %% <<"interceptorConfigurations">> => list(gateway_interceptor_configuration()), %% <<"kmsKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineConfiguration">> => gateway_policy_engine_configuration(), %% <<"protocolConfiguration">> => list(), %% <<"protocolType">> => list(any()), %% <<"roleArn">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer(), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type get_gateway_response() :: #{binary() => any()}. %% Example: %% episodic_reflection_configuration_input() :: #{ %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type episodic_reflection_configuration_input() :: #{binary() => any()}. %% Example: %% dataset_summary() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"datasetName">> => string(), %% <<"description">> => [string()], %% <<"draftStatus">> => list(any()), %% <<"exampleCount">> => [float()], %% <<"schemaType">> => list(any()), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type dataset_summary() :: #{binary() => any()}. %% Example: %% create_browser_profile_request() :: #{ %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"name">> := string(), %% <<"tags">> => map() %% } -type create_browser_profile_request() :: #{binary() => any()}. %% Example: %% target_traffic_split_entry() :: #{ %% <<"description">> => [string()], %% <<"metadata">> => map(), %% <<"name">> => [string()], %% <<"targetName">> => string(), %% <<"weight">> => [integer()] %% } -type target_traffic_split_entry() :: #{binary() => any()}. %% Example: %% registry_record_summary() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"descriptorType">> => list(any()), %% <<"name">> => string(), %% <<"recordArn">> => string(), %% <<"recordId">> => string(), %% <<"recordVersion">> => string(), %% <<"registryArn">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type registry_record_summary() :: #{binary() => any()}. %% Example: %% included_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type included_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% llm_as_a_judge_evaluator_config() :: #{ %% <<"instructions">> => string(), %% <<"modelConfig">> => list(), %% <<"ratingScale">> => list() %% } -type llm_as_a_judge_evaluator_config() :: #{binary() => any()}. %% Example: %% create_memory_output() :: #{ %% <<"memory">> => memory() %% } -type create_memory_output() :: #{binary() => any()}. %% Example: %% authorizing_claim_match_value_type() :: #{ %% <<"claimMatchOperator">> => list(any()), %% <<"claimMatchValue">> => list() %% } -type authorizing_claim_match_value_type() :: #{binary() => any()}. %% Example: %% episodic_reflection_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"modelId">> => [string()], %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type episodic_reflection_override() :: #{binary() => any()}. %% Example: %% runtime_target_configuration() :: #{ %% <<"arn">> => string(), %% <<"qualifier">> => string() %% } -type runtime_target_configuration() :: #{binary() => any()}. %% Example: %% episodic_override_consolidation_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type episodic_override_consolidation_configuration_input() :: #{binary() => any()}. %% Example: %% delete_code_interpreter_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_code_interpreter_request() :: #{binary() => any()}. %% Example: %% list_registry_records_request() :: #{ %% <<"descriptorType">> => list(any()), %% <<"maxResults">> => integer(), %% <<"name">> => string(), %% <<"nextToken">> => string(), %% <<"status">> => list(any()) %% } -type list_registry_records_request() :: #{binary() => any()}. %% Example: %% service_quota_exceeded_exception() :: #{ %% <<"message">> => string() %% } -type service_quota_exceeded_exception() :: #{binary() => any()}. %% Example: %% target_summary() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"resourcePriority">> => integer(), %% <<"status">> => list(any()), %% <<"targetId">> => string(), %% <<"updatedAt">> => non_neg_integer() %% } -type target_summary() :: #{binary() => any()}. %% Example: %% update_harness_response() :: #{ %% <<"harness">> => harness() %% } -type update_harness_response() :: #{binary() => any()}. %% Example: %% content_configuration() :: #{ %% <<"level">> => list(any()), %% <<"type">> => list(any()) %% } -type content_configuration() :: #{binary() => any()}. %% Example: %% set_token_vault_cm_k_response() :: #{ %% <<"kmsConfiguration">> => kms_configuration(), %% <<"lastModifiedDate">> => [non_neg_integer()], %% <<"tokenVaultId">> => string() %% } -type set_token_vault_cm_k_response() :: #{binary() => any()}. %% Example: %% bedrock_evaluator_model_config() :: #{ %% <<"additionalModelRequestFields">> => any(), %% <<"inferenceConfig">> => inference_configuration(), %% <<"modelId">> => string() %% } -type bedrock_evaluator_model_config() :: #{binary() => any()}. %% Example: %% delete_payment_manager_response() :: #{ %% <<"paymentManagerId">> => string(), %% <<"status">> => list(any()) %% } -type delete_payment_manager_response() :: #{binary() => any()}. %% Example: %% oauth2_credential_provider_item() :: #{ %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"credentialProviderVendor">> => list(any()), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string() %% } -type oauth2_credential_provider_item() :: #{binary() => any()}. %% Example: %% resource_limit_exceeded_exception() :: #{ %% <<"message">> => [string()] %% } -type resource_limit_exceeded_exception() :: #{binary() => any()}. %% Example: %% payment_credential_provider_configuration() :: #{ %% <<"credentialProviderArn">> => string() %% } -type payment_credential_provider_configuration() :: #{binary() => any()}. %% Example: %% harness_agent_core_browser_config() :: #{ %% <<"browserArn">> => string() %% } -type harness_agent_core_browser_config() :: #{binary() => any()}. %% Example: %% traffic_split_entry() :: #{ %% <<"configurationBundle">> => configuration_bundle_reference(), %% <<"description">> => [string()], %% <<"metadata">> => map(), %% <<"name">> => [string()], %% <<"weight">> => [integer()] %% } -type traffic_split_entry() :: #{binary() => any()}. %% Example: %% workload_identity_type() :: #{ %% <<"name">> => string(), %% <<"workloadIdentityArn">> => string() %% } -type workload_identity_type() :: #{binary() => any()}. %% Example: %% custom_oauth2_provider_config_input() :: #{ %% <<"clientAuthenticationMethod">> => list(any()), %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()), %% <<"oauthDiscovery">> => list(), %% <<"onBehalfOfTokenExchangeConfig">> => on_behalf_of_token_exchange_config_type(), %% <<"privateEndpoint">> => list(), %% <<"privateEndpointOverrides">> => list(private_endpoint_override()) %% } -type custom_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% create_oauth2_credential_provider_request() :: #{ %% <<"credentialProviderVendor">> := list(any()), %% <<"name">> := string(), %% <<"oauth2ProviderConfigInput">> := list(), %% <<"tags">> => map() %% } -type create_oauth2_credential_provider_request() :: #{binary() => any()}. %% Example: %% gateway_api_key_credential_provider() :: #{ %% <<"credentialLocation">> => list(any()), %% <<"credentialParameterName">> => string(), %% <<"credentialPrefix">> => string(), %% <<"providerArn">> => string() %% } -type gateway_api_key_credential_provider() :: #{binary() => any()}. %% Example: %% get_workload_identity_response() :: #{ %% <<"allowedResourceOauth2ReturnUrls">> => list(string()), %% <<"createdTime">> => [non_neg_integer()], %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string(), %% <<"workloadIdentityArn">> => string() %% } -type get_workload_identity_response() :: #{binary() => any()}. %% Example: %% get_payment_credential_provider_response() :: #{ %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"credentialProviderVendor">> => list(any()), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string(), %% <<"providerConfigurationOutput">> => list(), %% <<"tags">> => map() %% } -type get_payment_credential_provider_response() :: #{binary() => any()}. %% Example: %% get_agent_runtime_endpoint_request() :: #{} -type get_agent_runtime_endpoint_request() :: #{}. %% Example: %% s3_files_access_point_configuration() :: #{ %% <<"accessPointArn">> => string(), %% <<"mountPath">> => string() %% } -type s3_files_access_point_configuration() :: #{binary() => any()}. %% Example: %% configuration_bundle_summary() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleId">> => string(), %% <<"bundleName">> => string(), %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string() %% } -type configuration_bundle_summary() :: #{binary() => any()}. %% Example: %% custom_oauth2_provider_config_output() :: #{ %% <<"clientAuthenticationMethod">> => list(any()), %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list(), %% <<"onBehalfOfTokenExchangeConfig">> => on_behalf_of_token_exchange_config_type(), %% <<"privateEndpoint">> => list(), %% <<"privateEndpointOverrides">> => list(private_endpoint_override()) %% } -type custom_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% delete_dataset_examples_request() :: #{ %% <<"clientToken">> => string(), %% <<"exampleIds">> := list(string()) %% } -type delete_dataset_examples_request() :: #{binary() => any()}. %% Example: %% get_code_interpreter_response() :: #{ %% <<"certificates">> => list(certificate()), %% <<"codeInterpreterArn">> => string(), %% <<"codeInterpreterId">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"executionRoleArn">> => string(), %% <<"failureReason">> => [string()], %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"networkConfiguration">> => code_interpreter_network_configuration(), %% <<"status">> => list(any()) %% } -type get_code_interpreter_response() :: #{binary() => any()}. %% Example: %% get_online_evaluation_config_response() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"dataSourceConfig">> => list(), %% <<"description">> => string(), %% <<"evaluationExecutionRoleArn">> => string(), %% <<"evaluators">> => list(list()), %% <<"executionStatus">> => list(any()), %% <<"failureReason">> => [string()], %% <<"onlineEvaluationConfigArn">> => string(), %% <<"onlineEvaluationConfigId">> => string(), %% <<"onlineEvaluationConfigName">> => string(), %% <<"outputConfig">> => output_config(), %% <<"rule">> => rule(), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type get_online_evaluation_config_response() :: #{binary() => any()}. %% Example: %% delete_payment_manager_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_payment_manager_request() :: #{binary() => any()}. %% Example: %% vpc_config() :: #{ %% <<"requireServiceS3Endpoint">> => [boolean()], %% <<"securityGroups">> => list(string()), %% <<"subnets">> => list(string()) %% } -type vpc_config() :: #{binary() => any()}. %% Example: %% list_payment_credential_providers_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_payment_credential_providers_request() :: #{binary() => any()}. %% Example: %% modify_memory_strategies() :: #{ %% <<"addMemoryStrategies">> => list(list()), %% <<"deleteMemoryStrategies">> => list(delete_memory_strategy_input()), %% <<"modifyMemoryStrategies">> => list(modify_memory_strategy_input()) %% } -type modify_memory_strategies() :: #{binary() => any()}. %% Example: %% service_exception() :: #{ %% <<"message">> => [string()] %% } -type service_exception() :: #{binary() => any()}. %% Example: %% finding() :: #{ %% <<"description">> => string(), %% <<"type">> => list(any()) %% } -type finding() :: #{binary() => any()}. %% Example: %% self_managed_configuration() :: #{ %% <<"historicalContextWindowSize">> => [integer()], %% <<"invocationConfiguration">> => invocation_configuration(), %% <<"triggerConditions">> => list(list()) %% } -type self_managed_configuration() :: #{binary() => any()}. %% Example: %% invocation_configuration_input() :: #{ %% <<"payloadDeliveryBucketName">> => [string()], %% <<"topicArn">> => string() %% } -type invocation_configuration_input() :: #{binary() => any()}. %% Example: %% list_harnesses_response() :: #{ %% <<"harnesses">> => list(harness_summary()), %% <<"nextToken">> => string() %% } -type list_harnesses_response() :: #{binary() => any()}. %% Example: %% secret() :: #{ %% <<"secretArn">> => string() %% } -type secret() :: #{binary() => any()}. %% Example: %% episodic_override_extraction_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type episodic_override_extraction_configuration_input() :: #{binary() => any()}. %% Example: %% managed_resource_details() :: #{ %% <<"domain">> => string(), %% <<"resourceAssociationArn">> => string(), %% <<"resourceGatewayArn">> => string() %% } -type managed_resource_details() :: #{binary() => any()}. %% Example: %% update_oauth2_credential_provider_request() :: #{ %% <<"credentialProviderVendor">> := list(any()), %% <<"name">> := string(), %% <<"oauth2ProviderConfigInput">> := list() %% } -type update_oauth2_credential_provider_request() :: #{binary() => any()}. %% Example: %% session_config() :: #{ %% <<"sessionTimeoutMinutes">> => [integer()] %% } -type session_config() :: #{binary() => any()}. %% Example: %% list_agent_runtimes_response() :: #{ %% <<"agentRuntimes">> => list(agent_runtime()), %% <<"nextToken">> => string() %% } -type list_agent_runtimes_response() :: #{binary() => any()}. %% Example: %% list_tags_for_resource_response() :: #{ %% <<"tags">> => map() %% } -type list_tags_for_resource_response() :: #{binary() => any()}. %% Example: %% update_policy_request() :: #{ %% <<"definition">> => list(), %% <<"description">> => updated_description(), %% <<"validationMode">> => list(any()) %% } -type update_policy_request() :: #{binary() => any()}. %% Example: %% updated_server_definition() :: #{ %% <<"optionalValue">> => server_definition() %% } -type updated_server_definition() :: #{binary() => any()}. %% Example: %% list_policy_generations_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_policy_generations_request() :: #{binary() => any()}. %% Example: %% list_workload_identities_response() :: #{ %% <<"nextToken">> => [string()], %% <<"workloadIdentities">> => list(workload_identity_type()) %% } -type list_workload_identities_response() :: #{binary() => any()}. %% Example: %% get_code_interpreter_request() :: #{} -type get_code_interpreter_request() :: #{}. %% Example: %% create_evaluator_response() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"evaluatorArn">> => string(), %% <<"evaluatorId">> => string(), %% <<"status">> => list(any()) %% } -type create_evaluator_response() :: #{binary() => any()}. %% Example: %% user_preference_extraction_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type user_preference_extraction_override() :: #{binary() => any()}. %% Example: %% list_gateway_rules_response() :: #{ %% <<"gatewayRules">> => list(gateway_rule_detail()), %% <<"nextToken">> => string() %% } -type list_gateway_rules_response() :: #{binary() => any()}. %% Example: %% token_based_trigger() :: #{ %% <<"tokenCount">> => [integer()] %% } -type token_based_trigger() :: #{binary() => any()}. %% Example: %% validation_exception_field() :: #{ %% <<"message">> => [string()], %% <<"name">> => [string()] %% } -type validation_exception_field() :: #{binary() => any()}. %% Example: %% update_registry_record_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"descriptorType">> => list(any()), %% <<"descriptors">> => descriptors(), %% <<"name">> => string(), %% <<"recordArn">> => string(), %% <<"recordId">> => string(), %% <<"recordVersion">> => string(), %% <<"registryArn">> => string(), %% <<"status">> => list(any()), %% <<"statusReason">> => [string()], %% <<"synchronizationConfiguration">> => synchronization_configuration(), %% <<"synchronizationType">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type update_registry_record_response() :: #{binary() => any()}. %% Example: %% get_gateway_rule_request() :: #{} -type get_gateway_rule_request() :: #{}. %% Example: %% harness_gemini_model_config() :: #{ %% <<"apiKeyArn">> => string(), %% <<"maxTokens">> => integer(), %% <<"modelId">> => string(), %% <<"temperature">> => float(), %% <<"topK">> => integer(), %% <<"topP">> => float() %% } -type harness_gemini_model_config() :: #{binary() => any()}. %% Example: %% delete_online_evaluation_config_response() :: #{ %% <<"onlineEvaluationConfigArn">> => string(), %% <<"onlineEvaluationConfigId">> => string(), %% <<"status">> => list(any()) %% } -type delete_online_evaluation_config_response() :: #{binary() => any()}. %% Example: %% cedar_policy() :: #{ %% <<"statement">> => string() %% } -type cedar_policy() :: #{binary() => any()}. %% Example: %% private_endpoint_override() :: #{ %% <<"domain">> => string(), %% <<"privateEndpoint">> => list() %% } -type private_endpoint_override() :: #{binary() => any()}. %% Example: %% list_policy_generation_assets_response() :: #{ %% <<"nextToken">> => string(), %% <<"policyGenerationAssets">> => list(policy_generation_asset()) %% } -type list_policy_generation_assets_response() :: #{binary() => any()}. %% Example: %% policy_generation() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"findings">> => string(), %% <<"name">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyGenerationArn">> => string(), %% <<"policyGenerationId">> => string(), %% <<"resource">> => list(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type policy_generation() :: #{binary() => any()}. %% Example: %% harness_skill_git_auth() :: #{ %% <<"credentialArn">> => string(), %% <<"username">> => [string()] %% } -type harness_skill_git_auth() :: #{binary() => any()}. %% Example: %% s3_location() :: #{ %% <<"bucket">> => [string()], %% <<"prefix">> => [string()], %% <<"versionId">> => [string()] %% } -type s3_location() :: #{binary() => any()}. %% Example: %% update_dataset_request() :: #{ %% <<"clientToken">> => string(), %% <<"description">> => [string()] %% } -type update_dataset_request() :: #{binary() => any()}. %% Example: %% container_configuration() :: #{ %% <<"containerUri">> => string() %% } -type container_configuration() :: #{binary() => any()}. %% Example: %% list_policy_generations_response() :: #{ %% <<"nextToken">> => string(), %% <<"policyGenerations">> => list(policy_generation()) %% } -type list_policy_generations_response() :: #{binary() => any()}. %% Example: %% update_configuration_bundle_response() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleId">> => string(), %% <<"updatedAt">> => [non_neg_integer()], %% <<"versionId">> => string() %% } -type update_configuration_bundle_response() :: #{binary() => any()}. %% Example: %% create_dataset_version_response() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"datasetVersion">> => string(), %% <<"status">> => list(any()) %% } -type create_dataset_version_response() :: #{binary() => any()}. %% Example: %% delete_memory_strategy_input() :: #{ %% <<"memoryStrategyId">> => [string()] %% } -type delete_memory_strategy_input() :: #{binary() => any()}. %% Example: %% update_gateway_response() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"exceptionLevel">> => list(any()), %% <<"gatewayArn">> => string(), %% <<"gatewayId">> => string(), %% <<"gatewayUrl">> => string(), %% <<"interceptorConfigurations">> => list(gateway_interceptor_configuration()), %% <<"kmsKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineConfiguration">> => gateway_policy_engine_configuration(), %% <<"protocolConfiguration">> => list(), %% <<"protocolType">> => list(any()), %% <<"roleArn">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer(), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type update_gateway_response() :: #{binary() => any()}. %% Example: %% delete_workload_identity_request() :: #{ %% <<"name">> := string() %% } -type delete_workload_identity_request() :: #{binary() => any()}. %% Example: %% get_resource_policy_request() :: #{} -type get_resource_policy_request() :: #{}. %% Example: %% updated_synchronization_type() :: #{ %% <<"optionalValue">> => list(any()) %% } -type updated_synchronization_type() :: #{binary() => any()}. %% Example: %% salesforce_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type salesforce_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% update_oauth2_credential_provider_response() :: #{ %% <<"callbackUrl">> => [string()], %% <<"clientSecretArn">> => secret(), %% <<"clientSecretJsonKey">> => string(), %% <<"clientSecretSource">> => list(any()), %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"credentialProviderVendor">> => list(any()), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string(), %% <<"oauth2ProviderConfigOutput">> => list(), %% <<"status">> => list(any()) %% } -type update_oauth2_credential_provider_response() :: #{binary() => any()}. %% Example: %% delete_harness_response() :: #{ %% <<"harness">> => harness() %% } -type delete_harness_response() :: #{binary() => any()}. %% Example: %% get_policy_generation_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"findings">> => string(), %% <<"name">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyGenerationArn">> => string(), %% <<"policyGenerationId">> => string(), %% <<"resource">> => list(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type get_policy_generation_response() :: #{binary() => any()}. %% Example: %% filter() :: #{ %% <<"key">> => [string()], %% <<"operator">> => list(any()), %% <<"value">> => list() %% } -type filter() :: #{binary() => any()}. %% Example: %% rule() :: #{ %% <<"filters">> => list(filter()), %% <<"samplingConfig">> => sampling_config(), %% <<"sessionConfig">> => session_config() %% } -type rule() :: #{binary() => any()}. %% Example: %% create_policy_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"definition">> => list(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"policyArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type create_policy_response() :: #{binary() => any()}. %% Example: %% cloud_watch_logs_input_config() :: #{ %% <<"logGroupNames">> => list(string()), %% <<"serviceNames">> => list(string()) %% } -type cloud_watch_logs_input_config() :: #{binary() => any()}. %% Example: %% user_preference_override_extraction_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type user_preference_override_extraction_configuration_input() :: #{binary() => any()}. %% Example: %% microsoft_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type microsoft_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% tools_definition() :: #{ %% <<"inlineContent">> => string(), %% <<"protocolVersion">> => string() %% } -type tools_definition() :: #{binary() => any()}. %% Example: %% o_auth_credential_provider() :: #{ %% <<"customParameters">> => map(), %% <<"defaultReturnUrl">> => string(), %% <<"grantType">> => list(any()), %% <<"providerArn">> => string(), %% <<"scopes">> => list(string()) %% } -type o_auth_credential_provider() :: #{binary() => any()}. %% Example: %% update_payment_credential_provider_response() :: #{ %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"credentialProviderVendor">> => list(any()), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string(), %% <<"providerConfigurationOutput">> => list() %% } -type update_payment_credential_provider_response() :: #{binary() => any()}. %% Example: %% slack_oauth2_provider_config_input() :: #{ %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()) %% } -type slack_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% update_gateway_rule_response() :: #{ %% <<"actions">> => list(list()), %% <<"conditions">> => list(list()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"priority">> => integer(), %% <<"ruleId">> => string(), %% <<"status">> => list(any()), %% <<"system">> => system_managed_block(), %% <<"updatedAt">> => non_neg_integer() %% } -type update_gateway_rule_response() :: #{binary() => any()}. %% Example: %% update_memory_output() :: #{ %% <<"memory">> => memory() %% } -type update_memory_output() :: #{binary() => any()}. %% Example: %% configuration_bundle_version_summary() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleId">> => string(), %% <<"lineageMetadata">> => version_lineage_metadata(), %% <<"versionCreatedAt">> => [non_neg_integer()], %% <<"versionId">> => string() %% } -type configuration_bundle_version_summary() :: #{binary() => any()}. %% Example: %% create_code_interpreter_response() :: #{ %% <<"codeInterpreterArn">> => string(), %% <<"codeInterpreterId">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"status">> => list(any()) %% } -type create_code_interpreter_response() :: #{binary() => any()}. %% Example: %% list_agent_runtime_versions_response() :: #{ %% <<"agentRuntimes">> => list(agent_runtime()), %% <<"nextToken">> => string() %% } -type list_agent_runtime_versions_response() :: #{binary() => any()}. %% Example: %% get_policy_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"definition">> => list(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"policyArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type get_policy_response() :: #{binary() => any()}. %% Example: %% server_definition() :: #{ %% <<"inlineContent">> => string(), %% <<"schemaVersion">> => string() %% } -type server_definition() :: #{binary() => any()}. %% Example: %% update_registry_response() :: #{ %% <<"approvalConfiguration">> => approval_configuration(), %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"registryArn">> => string(), %% <<"registryId">> => string(), %% <<"status">> => list(any()), %% <<"statusReason">> => [string()], %% <<"updatedAt">> => non_neg_integer() %% } -type update_registry_response() :: #{binary() => any()}. %% Example: %% create_browser_profile_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"profileArn">> => string(), %% <<"profileId">> => string(), %% <<"status">> => list(any()) %% } -type create_browser_profile_response() :: #{binary() => any()}. %% Example: %% update_harness_request() :: #{ %% <<"allowedTools">> => list(string()), %% <<"authorizerConfiguration">> => updated_authorizer_configuration(), %% <<"clientToken">> => string(), %% <<"environment">> => list(), %% <<"environmentArtifact">> => updated_harness_environment_artifact(), %% <<"environmentVariables">> => map(), %% <<"executionRoleArn">> => string(), %% <<"maxIterations">> => [integer()], %% <<"maxTokens">> => [integer()], %% <<"memory">> => updated_harness_memory_configuration(), %% <<"model">> => list(), %% <<"skills">> => list(list()), %% <<"systemPrompt">> => list(list()), %% <<"timeoutSeconds">> => [integer()], %% <<"tools">> => list(harness_tool()), %% <<"truncation">> => harness_truncation_configuration() %% } -type update_harness_request() :: #{binary() => any()}. %% Example: %% get_memory_output() :: #{ %% <<"memory">> => memory() %% } -type get_memory_output() :: #{binary() => any()}. %% Example: %% delete_memory_output() :: #{ %% <<"memoryId">> => string(), %% <<"status">> => list(any()) %% } -type delete_memory_output() :: #{binary() => any()}. %% Example: %% delete_online_evaluation_config_request() :: #{} -type delete_online_evaluation_config_request() :: #{}. %% Example: %% list_api_key_credential_providers_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => [string()] %% } -type list_api_key_credential_providers_request() :: #{binary() => any()}. %% Example: %% mcp_descriptor() :: #{ %% <<"server">> => server_definition(), %% <<"tools">> => tools_definition() %% } -type mcp_descriptor() :: #{binary() => any()}. %% Example: %% user_preference_memory_strategy_input() :: #{ %% <<"description">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"name">> => string(), %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type user_preference_memory_strategy_input() :: #{binary() => any()}. %% Example: %% memory_record_schema() :: #{ %% <<"metadataSchema">> => list(metadata_schema_entry()) %% } -type memory_record_schema() :: #{binary() => any()}. %% Example: %% harness_tool() :: #{ %% <<"config">> => list(), %% <<"name">> => string(), %% <<"type">> => list(any()) %% } -type harness_tool() :: #{binary() => any()}. %% Example: %% get_policy_summary_request() :: #{} -type get_policy_summary_request() :: #{}. %% Example: %% internal_server_exception() :: #{ %% <<"message">> => string() %% } -type internal_server_exception() :: #{binary() => any()}. %% Example: %% update_payment_connector_response() :: #{ %% <<"credentialProviderConfigurations">> => list(list()), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"paymentConnectorId">> => string(), %% <<"paymentManagerId">> => string(), %% <<"status">> => list(any()), %% <<"type">> => list(any()) %% } -type update_payment_connector_response() :: #{binary() => any()}. %% Example: %% microsoft_oauth2_provider_config_input() :: #{ %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()), %% <<"tenantId">> => string() %% } -type microsoft_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% list_browsers_response() :: #{ %% <<"browserSummaries">> => list(browser_summary()), %% <<"nextToken">> => string() %% } -type list_browsers_response() :: #{binary() => any()}. %% Example: %% get_configuration_bundle_version_response() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleId">> => string(), %% <<"bundleName">> => string(), %% <<"components">> => map(), %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string(), %% <<"lineageMetadata">> => version_lineage_metadata(), %% <<"versionCreatedAt">> => [non_neg_integer()], %% <<"versionId">> => string() %% } -type get_configuration_bundle_version_response() :: #{binary() => any()}. %% Example: %% inline_examples_source() :: #{ %% <<"examples">> => list(any()) %% } -type inline_examples_source() :: #{binary() => any()}. %% Example: %% list_dataset_versions_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_dataset_versions_request() :: #{binary() => any()}. %% Example: %% delete_policy_request() :: #{} -type delete_policy_request() :: #{}. %% Example: %% list_policy_summaries_response() :: #{ %% <<"nextToken">> => string(), %% <<"policies">> => list(policy_summary()) %% } -type list_policy_summaries_response() :: #{binary() => any()}. %% Example: %% updated_synchronization_configuration() :: #{ %% <<"optionalValue">> => synchronization_configuration() %% } -type updated_synchronization_configuration() :: #{binary() => any()}. %% Example: %% get_policy_generation_request() :: #{} -type get_policy_generation_request() :: #{}. %% Example: %% delete_browser_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_browser_request() :: #{binary() => any()}. %% Example: %% certificate() :: #{ %% <<"location">> => list() %% } -type certificate() :: #{binary() => any()}. %% Example: %% list_payment_credential_providers_response() :: #{ %% <<"credentialProviders">> => list(payment_credential_provider_item()), %% <<"nextToken">> => [string()] %% } -type list_payment_credential_providers_response() :: #{binary() => any()}. %% Example: %% sampling_config() :: #{ %% <<"samplingPercentage">> => float() %% } -type sampling_config() :: #{binary() => any()}. %% Example: %% harness_agent_core_runtime_environment_request() :: #{ %% <<"filesystemConfigurations">> => list(list()), %% <<"lifecycleConfiguration">> => lifecycle_configuration(), %% <<"networkConfiguration">> => network_configuration() %% } -type harness_agent_core_runtime_environment_request() :: #{binary() => any()}. %% Example: %% create_code_interpreter_request() :: #{ %% <<"certificates">> => list(certificate()), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"executionRoleArn">> => string(), %% <<"name">> := string(), %% <<"networkConfiguration">> := code_interpreter_network_configuration(), %% <<"tags">> => map() %% } -type create_code_interpreter_request() :: #{binary() => any()}. %% Example: %% list_memories_input() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_memories_input() :: #{binary() => any()}. %% Example: %% metadata_configuration() :: #{ %% <<"allowedQueryParameters">> => list(string()), %% <<"allowedRequestHeaders">> => list(string()), %% <<"allowedResponseHeaders">> => list(string()) %% } -type metadata_configuration() :: #{binary() => any()}. %% Example: %% modify_memory_strategy_input() :: #{ %% <<"configuration">> => modify_strategy_configuration(), %% <<"description">> => string(), %% <<"memoryRecordSchema">> => memory_record_schema(), %% <<"memoryStrategyId">> => [string()], %% <<"namespaceTemplates">> => list(string()), %% <<"namespaces">> => list(string()) %% } -type modify_memory_strategy_input() :: #{binary() => any()}. %% Example: %% create_gateway_request() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> := list(any()), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"exceptionLevel">> => list(any()), %% <<"interceptorConfigurations">> => list(gateway_interceptor_configuration()), %% <<"kmsKeyArn">> => string(), %% <<"name">> := string(), %% <<"policyEngineConfiguration">> => gateway_policy_engine_configuration(), %% <<"protocolConfiguration">> => list(), %% <<"protocolType">> => list(any()), %% <<"roleArn">> := string(), %% <<"tags">> => map() %% } -type create_gateway_request() :: #{binary() => any()}. %% Example: %% atlassian_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type atlassian_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% gateway_target() :: #{ %% <<"authorizationData">> => list(), %% <<"createdAt">> => non_neg_integer(), %% <<"credentialProviderConfigurations">> => list(credential_provider_configuration()), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"lastSynchronizedAt">> => non_neg_integer(), %% <<"metadataConfiguration">> => metadata_configuration(), %% <<"name">> => string(), %% <<"privateEndpoint">> => list(), %% <<"privateEndpointManagedResources">> => list(managed_resource_details()), %% <<"protocolType">> => list(any()), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"targetConfiguration">> => list(), %% <<"targetId">> => string(), %% <<"updatedAt">> => non_neg_integer() %% } -type gateway_target() :: #{binary() => any()}. %% Example: %% get_agent_runtime_response() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeArtifact">> => list(), %% <<"agentRuntimeId">> => string(), %% <<"agentRuntimeName">> => string(), %% <<"agentRuntimeVersion">> => string(), %% <<"authorizerConfiguration">> => list(), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"environmentVariables">> => map(), %% <<"failureReason">> => [string()], %% <<"filesystemConfigurations">> => list(list()), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"lifecycleConfiguration">> => lifecycle_configuration(), %% <<"metadataConfiguration">> => runtime_metadata_configuration(), %% <<"networkConfiguration">> => network_configuration(), %% <<"protocolConfiguration">> => protocol_configuration(), %% <<"requestHeaderConfiguration">> => list(), %% <<"roleArn">> => string(), %% <<"status">> => list(any()), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type get_agent_runtime_response() :: #{binary() => any()}. %% Example: %% updated_custom_descriptor() :: #{ %% <<"optionalValue">> => custom_descriptor() %% } -type updated_custom_descriptor() :: #{binary() => any()}. %% Example: %% update_api_key_credential_provider_request() :: #{ %% <<"apiKey">> => string(), %% <<"apiKeySecretConfig">> => secret_reference(), %% <<"apiKeySecretSource">> => list(any()), %% <<"name">> := string() %% } -type update_api_key_credential_provider_request() :: #{binary() => any()}. %% Example: %% create_payment_manager_response() :: #{ %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"paymentManagerArn">> => string(), %% <<"paymentManagerId">> => string(), %% <<"roleArn">> => string(), %% <<"status">> => list(any()), %% <<"tags">> => map(), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type create_payment_manager_response() :: #{binary() => any()}. %% Example: %% updated_agent_skills_descriptor() :: #{ %% <<"optionalValue">> => updated_agent_skills_descriptor_fields() %% } -type updated_agent_skills_descriptor() :: #{binary() => any()}. %% Example: %% list_workload_identities_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_workload_identities_request() :: #{binary() => any()}. %% Example: %% list_configuration_bundles_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_configuration_bundles_request() :: #{binary() => any()}. %% Example: %% delete_browser_profile_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_browser_profile_request() :: #{binary() => any()}. %% Example: %% network_configuration() :: #{ %% <<"networkMode">> => list(any()), %% <<"networkModeConfig">> => vpc_config() %% } -type network_configuration() :: #{binary() => any()}. %% Example: %% skill_definition() :: #{ %% <<"inlineContent">> => string(), %% <<"schemaVersion">> => string() %% } -type skill_definition() :: #{binary() => any()}. %% Example: %% message_based_trigger() :: #{ %% <<"messageCount">> => [integer()] %% } -type message_based_trigger() :: #{binary() => any()}. %% Example: %% list_configuration_bundle_versions_response() :: #{ %% <<"nextToken">> => [string()], %% <<"versions">> => list(configuration_bundle_version_summary()) %% } -type list_configuration_bundle_versions_response() :: #{binary() => any()}. %% Example: %% slack_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type slack_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% policy() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"definition">> => list(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"policyArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type policy() :: #{binary() => any()}. %% Example: %% list_registries_response() :: #{ %% <<"nextToken">> => string(), %% <<"registries">> => list(registry_summary()) %% } -type list_registries_response() :: #{binary() => any()}. %% Example: %% episodic_consolidation_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type episodic_consolidation_override() :: #{binary() => any()}. %% Example: %% put_resource_policy_request() :: #{ %% <<"policy">> := string() %% } -type put_resource_policy_request() :: #{binary() => any()}. %% Example: %% start_policy_generation_request() :: #{ %% <<"clientToken">> => string(), %% <<"content">> := list(), %% <<"name">> := string(), %% <<"resource">> := list() %% } -type start_policy_generation_request() :: #{binary() => any()}. %% Example: %% set_token_vault_cm_k_request() :: #{ %% <<"kmsConfiguration">> := kms_configuration(), %% <<"tokenVaultId">> => string() %% } -type set_token_vault_cm_k_request() :: #{binary() => any()}. %% Example: %% delete_agent_runtime_endpoint_response() :: #{ %% <<"agentRuntimeId">> => string(), %% <<"endpointName">> => string(), %% <<"status">> => list(any()) %% } -type delete_agent_runtime_endpoint_response() :: #{binary() => any()}. %% Example: %% get_oauth2_credential_provider_response() :: #{ %% <<"callbackUrl">> => [string()], %% <<"clientSecretArn">> => secret(), %% <<"clientSecretJsonKey">> => string(), %% <<"clientSecretSource">> => list(any()), %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"credentialProviderVendor">> => list(any()), %% <<"failureReason">> => [string()], %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string(), %% <<"oauth2ProviderConfigOutput">> => list(), %% <<"status">> => list(any()) %% } -type get_oauth2_credential_provider_response() :: #{binary() => any()}. %% Example: %% create_policy_engine_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type create_policy_engine_response() :: #{binary() => any()}. %% Example: %% get_token_vault_response() :: #{ %% <<"kmsConfiguration">> => kms_configuration(), %% <<"lastModifiedDate">> => [non_neg_integer()], %% <<"tokenVaultId">> => string() %% } -type get_token_vault_response() :: #{binary() => any()}. %% Example: %% categorical_scale_definition() :: #{ %% <<"definition">> => [string()], %% <<"label">> => [string()] %% } -type categorical_scale_definition() :: #{binary() => any()}. %% Example: %% summary_override_configuration_input() :: #{ %% <<"consolidation">> => summary_override_consolidation_configuration_input() %% } -type summary_override_configuration_input() :: #{binary() => any()}. %% Example: %% get_policy_generation_summary_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"findings">> => string(), %% <<"name">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyGenerationArn">> => string(), %% <<"policyGenerationId">> => string(), %% <<"resource">> => list(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type get_policy_generation_summary_response() :: #{binary() => any()}. %% Example: %% update_registry_record_status_request() :: #{ %% <<"status">> := list(any()), %% <<"statusReason">> := [string()] %% } -type update_registry_record_status_request() :: #{binary() => any()}. %% Example: %% get_evaluator_response() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string(), %% <<"evaluatorArn">> => string(), %% <<"evaluatorConfig">> => list(), %% <<"evaluatorId">> => string(), %% <<"evaluatorName">> => string(), %% <<"kmsKeyArn">> => string(), %% <<"level">> => list(any()), %% <<"lockedForModification">> => [boolean()], %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type get_evaluator_response() :: #{binary() => any()}. %% Example: %% delete_agent_runtime_request() :: #{ %% <<"clientToken">> => string() %% } -type delete_agent_runtime_request() :: #{binary() => any()}. %% Example: %% strategy_configuration() :: #{ %% <<"consolidation">> => list(), %% <<"extraction">> => list(), %% <<"reflection">> => list(), %% <<"selfManagedConfiguration">> => self_managed_configuration(), %% <<"type">> => list(any()) %% } -type strategy_configuration() :: #{binary() => any()}. %% Example: %% access_denied_exception() :: #{ %% <<"message">> => string() %% } -type access_denied_exception() :: #{binary() => any()}. %% Example: %% policy_engine_summary() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type policy_engine_summary() :: #{binary() => any()}. %% Example: %% browser_signing_config_output() :: #{ %% <<"enabled">> => [boolean()] %% } -type browser_signing_config_output() :: #{binary() => any()}. %% Example: %% semantic_override_extraction_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type semantic_override_extraction_configuration_input() :: #{binary() => any()}. %% Example: %% create_policy_engine_request() :: #{ %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> := string(), %% <<"tags">> => map() %% } -type create_policy_engine_request() :: #{binary() => any()}. %% Example: %% list_registries_request() :: #{ %% <<"authorizerType">> => list(any()), %% <<"maxResults">> => integer(), %% <<"nextToken">> => string(), %% <<"status">> => list(any()) %% } -type list_registries_request() :: #{binary() => any()}. %% Example: %% tag_resource_response() :: #{} -type tag_resource_response() :: #{}. %% Example: %% delete_payment_connector_response() :: #{ %% <<"paymentConnectorId">> => string(), %% <<"status">> => list(any()) %% } -type delete_payment_connector_response() :: #{binary() => any()}. %% Example: %% custom_j_w_t_authorizer_configuration() :: #{ %% <<"allowedAudience">> => list(string()), %% <<"allowedClients">> => list(string()), %% <<"allowedScopes">> => list(string()), %% <<"customClaims">> => list(custom_claim_validation_type()), %% <<"discoveryUrl">> => string(), %% <<"privateEndpoint">> => list(), %% <<"privateEndpointOverrides">> => list(private_endpoint_override()) %% } -type custom_j_w_t_authorizer_configuration() :: #{binary() => any()}. %% Example: %% list_policy_engines_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_policy_engines_request() :: #{binary() => any()}. %% Example: %% browser_network_configuration() :: #{ %% <<"networkMode">> => list(any()), %% <<"vpcConfig">> => vpc_config() %% } -type browser_network_configuration() :: #{binary() => any()}. %% Example: %% delete_api_key_credential_provider_response() :: #{} -type delete_api_key_credential_provider_response() :: #{}. %% Example: %% list_agent_runtime_endpoints_response() :: #{ %% <<"nextToken">> => string(), %% <<"runtimeEndpoints">> => list(agent_runtime_endpoint()) %% } -type list_agent_runtime_endpoints_response() :: #{binary() => any()}. %% Example: %% delete_registry_record_request() :: #{} -type delete_registry_record_request() :: #{}. %% Example: %% secrets_manager_location() :: #{ %% <<"secretArn">> => string() %% } -type secrets_manager_location() :: #{binary() => any()}. %% Example: %% updated_skill_definition() :: #{ %% <<"optionalValue">> => skill_definition() %% } -type updated_skill_definition() :: #{binary() => any()}. %% Example: %% get_dataset_request() :: #{ %% <<"datasetVersion">> => string() %% } -type get_dataset_request() :: #{binary() => any()}. %% Example: %% output_config() :: #{ %% <<"cloudWatchConfig">> => cloud_watch_output_config() %% } -type output_config() :: #{binary() => any()}. %% Example: %% updated_mcp_descriptor_fields() :: #{ %% <<"server">> => updated_server_definition(), %% <<"tools">> => updated_tools_definition() %% } -type updated_mcp_descriptor_fields() :: #{binary() => any()}. %% Example: %% agent_runtime_endpoint() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeEndpointArn">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"id">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"liveVersion">> => string(), %% <<"name">> => string(), %% <<"status">> => list(any()), %% <<"targetVersion">> => string() %% } -type agent_runtime_endpoint() :: #{binary() => any()}. %% Example: %% registry_record_credential_provider_configuration() :: #{ %% <<"credentialProvider">> => list(), %% <<"credentialProviderType">> => list(any()) %% } -type registry_record_credential_provider_configuration() :: #{binary() => any()}. %% Example: %% get_browser_profile_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"lastSavedAt">> => non_neg_integer(), %% <<"lastSavedBrowserId">> => string(), %% <<"lastSavedBrowserSessionId">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"profileArn">> => string(), %% <<"profileId">> => string(), %% <<"status">> => list(any()) %% } -type get_browser_profile_response() :: #{binary() => any()}. %% Example: %% delete_gateway_request() :: #{} -type delete_gateway_request() :: #{}. %% Example: %% concurrent_modification_exception() :: #{ %% <<"message">> => [string()] %% } -type concurrent_modification_exception() :: #{binary() => any()}. %% Example: %% delete_code_interpreter_response() :: #{ %% <<"codeInterpreterId">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"status">> => list(any()) %% } -type delete_code_interpreter_response() :: #{binary() => any()}. %% Example: %% list_online_evaluation_configs_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_online_evaluation_configs_request() :: #{binary() => any()}. %% Example: %% efs_access_point_configuration() :: #{ %% <<"accessPointArn">> => string(), %% <<"mountPath">> => string() %% } -type efs_access_point_configuration() :: #{binary() => any()}. %% Example: %% component_configuration() :: #{ %% <<"configuration">> => [any()] %% } -type component_configuration() :: #{binary() => any()}. %% Example: %% update_evaluator_response() :: #{ %% <<"evaluatorArn">> => string(), %% <<"evaluatorId">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type update_evaluator_response() :: #{binary() => any()}. %% Example: %% create_payment_credential_provider_response() :: #{ %% <<"credentialProviderArn">> => string(), %% <<"credentialProviderVendor">> => list(any()), %% <<"name">> => string(), %% <<"providerConfigurationOutput">> => list() %% } -type create_payment_credential_provider_response() :: #{binary() => any()}. %% Example: %% coinbase_cdp_configuration_output() :: #{ %% <<"apiKeyId">> => string(), %% <<"apiKeySecretArn">> => secret(), %% <<"apiKeySecretJsonKey">> => string(), %% <<"apiKeySecretSource">> => list(any()), %% <<"walletSecretArn">> => secret(), %% <<"walletSecretJsonKey">> => string(), %% <<"walletSecretSource">> => list(any()) %% } -type coinbase_cdp_configuration_output() :: #{binary() => any()}. %% Example: %% delete_agent_runtime_response() :: #{ %% <<"agentRuntimeId">> => string(), %% <<"status">> => list(any()) %% } -type delete_agent_runtime_response() :: #{binary() => any()}. %% Example: %% list_evaluators_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_evaluators_request() :: #{binary() => any()}. %% Example: %% delete_registry_response() :: #{ %% <<"status">> => list(any()) %% } -type delete_registry_response() :: #{binary() => any()}. %% Example: %% time_based_trigger() :: #{ %% <<"idleSessionTimeout">> => [integer()] %% } -type time_based_trigger() :: #{binary() => any()}. %% Example: %% get_dataset_response() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"datasetName">> => string(), %% <<"datasetVersion">> => string(), %% <<"description">> => [string()], %% <<"downloadUrl">> => string(), %% <<"downloadUrlExpiresAt">> => [non_neg_integer()], %% <<"draftStatus">> => list(any()), %% <<"exampleCount">> => [float()], %% <<"failureReason">> => [string()], %% <<"kmsKeyArn">> => string(), %% <<"schemaType">> => list(any()), %% <<"status">> => list(any()), %% <<"tags">> => map(), %% <<"updatedAt">> => [non_neg_integer()] %% } -type get_dataset_response() :: #{binary() => any()}. %% Example: %% delete_policy_engine_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type delete_policy_engine_response() :: #{binary() => any()}. %% Example: %% delete_oauth2_credential_provider_response() :: #{} -type delete_oauth2_credential_provider_response() :: #{}. %% Example: %% harness_lite_llm_model_config() :: #{ %% <<"additionalParams">> => [any()], %% <<"apiBase">> => string(), %% <<"apiKeyArn">> => string(), %% <<"maxTokens">> => integer(), %% <<"modelId">> => string(), %% <<"temperature">> => float(), %% <<"topP">> => float() %% } -type harness_lite_llm_model_config() :: #{binary() => any()}. %% Example: %% validation_exception() :: #{ %% <<"fieldList">> => list(validation_exception_field()), %% <<"message">> => [string()], %% <<"reason">> => list(any()) %% } -type validation_exception() :: #{binary() => any()}. %% Example: %% list_tags_for_resource_request() :: #{} -type list_tags_for_resource_request() :: #{}. %% Example: %% list_policy_engine_summaries_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_policy_engine_summaries_request() :: #{binary() => any()}. %% Example: %% create_dataset_request() :: #{ %% <<"clientToken">> => string(), %% <<"datasetName">> := string(), %% <<"description">> => [string()], %% <<"kmsKeyArn">> => string(), %% <<"schemaType">> := list(any()), %% <<"source">> := list(), %% <<"tags">> => map() %% } -type create_dataset_request() :: #{binary() => any()}. %% Example: %% update_dataset_examples_request() :: #{ %% <<"clientToken">> => string(), %% <<"examples">> := list(any()) %% } -type update_dataset_examples_request() :: #{binary() => any()}. %% Example: %% get_gateway_rule_response() :: #{ %% <<"actions">> => list(list()), %% <<"conditions">> => list(list()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"gatewayArn">> => string(), %% <<"priority">> => integer(), %% <<"ruleId">> => string(), %% <<"status">> => list(any()), %% <<"system">> => system_managed_block(), %% <<"updatedAt">> => non_neg_integer() %% } -type get_gateway_rule_response() :: #{binary() => any()}. %% Example: %% episodic_extraction_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type episodic_extraction_override() :: #{binary() => any()}. %% Example: %% harness_bedrock_model_config() :: #{ %% <<"additionalParams">> => [any()], %% <<"apiFormat">> => list(any()), %% <<"maxTokens">> => integer(), %% <<"modelId">> => string(), %% <<"temperature">> => float(), %% <<"topP">> => float() %% } -type harness_bedrock_model_config() :: #{binary() => any()}. %% Example: %% throttling_exception() :: #{ %% <<"message">> => string() %% } -type throttling_exception() :: #{binary() => any()}. %% Example: %% atlassian_oauth2_provider_config_input() :: #{ %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()) %% } -type atlassian_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% m_c_p_gateway_configuration() :: #{ %% <<"instructions">> => string(), %% <<"searchType">> => list(any()), %% <<"sessionConfiguration">> => session_configuration(), %% <<"streamingConfiguration">> => streaming_configuration(), %% <<"supportedVersions">> => list(string()) %% } -type m_c_p_gateway_configuration() :: #{binary() => any()}. %% Example: %% harness_open_ai_model_config() :: #{ %% <<"additionalParams">> => [any()], %% <<"apiFormat">> => list(any()), %% <<"apiKeyArn">> => string(), %% <<"maxTokens">> => integer(), %% <<"modelId">> => string(), %% <<"temperature">> => float(), %% <<"topP">> => float() %% } -type harness_open_ai_model_config() :: #{binary() => any()}. %% Example: %% update_workload_identity_response() :: #{ %% <<"allowedResourceOauth2ReturnUrls">> => list(string()), %% <<"createdTime">> => [non_neg_integer()], %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string(), %% <<"workloadIdentityArn">> => string() %% } -type update_workload_identity_response() :: #{binary() => any()}. %% Example: %% api_key_credential_provider_item() :: #{ %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string() %% } -type api_key_credential_provider_item() :: #{binary() => any()}. %% Example: %% delete_gateway_rule_request() :: #{} -type delete_gateway_rule_request() :: #{}. %% Example: %% list_oauth2_credential_providers_request() :: #{ %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_oauth2_credential_providers_request() :: #{binary() => any()}. %% Example: %% weighted_override() :: #{ %% <<"trafficSplit">> => list(traffic_split_entry()) %% } -type weighted_override() :: #{binary() => any()}. %% Example: %% policy_summary() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"policyArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyId">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type policy_summary() :: #{binary() => any()}. %% Example: %% delete_configuration_bundle_response() :: #{ %% <<"bundleId">> => string(), %% <<"status">> => list(any()) %% } -type delete_configuration_bundle_response() :: #{binary() => any()}. %% Example: %% interceptor_input_configuration() :: #{ %% <<"passRequestHeaders">> => [boolean()] %% } -type interceptor_input_configuration() :: #{binary() => any()}. %% Example: %% s3_configuration() :: #{ %% <<"bucketOwnerAccountId">> => string(), %% <<"uri">> => string() %% } -type s3_configuration() :: #{binary() => any()}. %% Example: %% dataset_version_summary() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"datasetVersion">> => string(), %% <<"exampleCount">> => [float()] %% } -type dataset_version_summary() :: #{binary() => any()}. %% Example: %% get_configuration_bundle_version_request() :: #{} -type get_configuration_bundle_version_request() :: #{}. %% Example: %% harness_summarization_configuration() :: #{ %% <<"preserveRecentMessages">> => [integer()], %% <<"summarizationSystemPrompt">> => [string()], %% <<"summaryRatio">> => [float()] %% } -type harness_summarization_configuration() :: #{binary() => any()}. %% Example: %% list_configuration_bundle_versions_request() :: #{ %% <<"filter">> => version_filter(), %% <<"maxResults">> => [integer()], %% <<"nextToken">> => [string()] %% } -type list_configuration_bundle_versions_request() :: #{binary() => any()}. %% Example: %% list_code_interpreters_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string(), %% <<"type">> => list(any()) %% } -type list_code_interpreters_request() :: #{binary() => any()}. %% Example: %% get_payment_credential_provider_request() :: #{ %% <<"name">> := string() %% } -type get_payment_credential_provider_request() :: #{binary() => any()}. %% Example: %% create_registry_request() :: #{ %% <<"approvalConfiguration">> => approval_configuration(), %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"name">> := string() %% } -type create_registry_request() :: #{binary() => any()}. %% Example: %% delete_registry_record_response() :: #{} -type delete_registry_record_response() :: #{}. %% Example: %% get_registry_response() :: #{ %% <<"approvalConfiguration">> => approval_configuration(), %% <<"authorizerConfiguration">> => list(), %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"registryArn">> => string(), %% <<"registryId">> => string(), %% <<"status">> => list(any()), %% <<"statusReason">> => [string()], %% <<"updatedAt">> => non_neg_integer() %% } -type get_registry_response() :: #{binary() => any()}. %% Example: %% put_resource_policy_response() :: #{ %% <<"policy">> => string() %% } -type put_resource_policy_response() :: #{binary() => any()}. %% Example: %% match_principals() :: #{ %% <<"anyOf">> => list(list()) %% } -type match_principals() :: #{binary() => any()}. %% Example: %% agent_runtime() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeId">> => string(), %% <<"agentRuntimeName">> => string(), %% <<"agentRuntimeVersion">> => string(), %% <<"description">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"status">> => list(any()) %% } -type agent_runtime() :: #{binary() => any()}. %% Example: %% get_policy_engine_summary_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => non_neg_integer() %% } -type get_policy_engine_summary_response() :: #{binary() => any()}. %% Example: %% get_payment_connector_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"credentialProviderConfigurations">> => list(list()), %% <<"description">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"paymentConnectorId">> => string(), %% <<"status">> => list(any()), %% <<"type">> => list(any()) %% } -type get_payment_connector_response() :: #{binary() => any()}. %% Example: %% invocation_configuration() :: #{ %% <<"payloadDeliveryBucketName">> => [string()], %% <<"topicArn">> => string() %% } -type invocation_configuration() :: #{binary() => any()}. %% Example: %% list_gateway_rules_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_gateway_rules_request() :: #{binary() => any()}. %% Example: %% protocol_configuration() :: #{ %% <<"serverProtocol">> => list(any()) %% } -type protocol_configuration() :: #{binary() => any()}. %% Example: %% agent_card_definition() :: #{ %% <<"inlineContent">> => string(), %% <<"schemaVersion">> => string() %% } -type agent_card_definition() :: #{binary() => any()}. %% Example: %% version_filter() :: #{ %% <<"branchName">> => string(), %% <<"createdByName">> => [string()], %% <<"latestPerBranch">> => [boolean()] %% } -type version_filter() :: #{binary() => any()}. %% Example: %% mcp_server_target_configuration() :: #{ %% <<"endpoint">> => [string()], %% <<"listingMode">> => list(any()), %% <<"mcpToolSchema">> => list(), %% <<"resourcePriority">> => integer() %% } -type mcp_server_target_configuration() :: #{binary() => any()}. %% Example: %% google_oauth2_provider_config_output() :: #{ %% <<"clientId">> => string(), %% <<"oauthDiscovery">> => list() %% } -type google_oauth2_provider_config_output() :: #{binary() => any()}. %% Example: %% list_payment_connectors_response() :: #{ %% <<"nextToken">> => string(), %% <<"paymentConnectors">> => list(payment_connector_summary()) %% } -type list_payment_connectors_response() :: #{binary() => any()}. %% Example: %% delete_resource_policy_request() :: #{} -type delete_resource_policy_request() :: #{}. %% Example: %% semantic_override_configuration_input() :: #{ %% <<"consolidation">> => semantic_override_consolidation_configuration_input(), %% <<"extraction">> => semantic_override_extraction_configuration_input() %% } -type semantic_override_configuration_input() :: #{binary() => any()}. %% Example: %% metadata_schema_entry() :: #{ %% <<"extractionConfig">> => list(), %% <<"key">> => string(), %% <<"type">> => list(any()) %% } -type metadata_schema_entry() :: #{binary() => any()}. %% Example: %% token_exchange_grant_type_config_type() :: #{ %% <<"actorTokenContent">> => list(any()), %% <<"actorTokenScopes">> => list(string()) %% } -type token_exchange_grant_type_config_type() :: #{binary() => any()}. %% Example: %% user_preference_consolidation_override() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type user_preference_consolidation_override() :: #{binary() => any()}. %% Example: %% synchronize_gateway_targets_response() :: #{ %% <<"targets">> => list(gateway_target()) %% } -type synchronize_gateway_targets_response() :: #{binary() => any()}. %% Example: %% code_interpreter_network_configuration() :: #{ %% <<"networkMode">> => list(any()), %% <<"vpcConfig">> => vpc_config() %% } -type code_interpreter_network_configuration() :: #{binary() => any()}. %% Example: %% session_storage_configuration() :: #{ %% <<"mountPath">> => string() %% } -type session_storage_configuration() :: #{binary() => any()}. %% Example: %% delete_dataset_request() :: #{ %% <<"datasetVersion">> => string() %% } -type delete_dataset_request() :: #{binary() => any()}. %% Example: %% list_datasets_response() :: #{ %% <<"datasets">> => list(dataset_summary()), %% <<"nextToken">> => [string()] %% } -type list_datasets_response() :: #{binary() => any()}. %% Example: %% updated_authorizer_configuration() :: #{ %% <<"optionalValue">> => list() %% } -type updated_authorizer_configuration() :: #{binary() => any()}. %% Example: %% get_browser_request() :: #{} -type get_browser_request() :: #{}. %% Example: %% browser_signing_config_input() :: #{ %% <<"enabled">> => [boolean()] %% } -type browser_signing_config_input() :: #{binary() => any()}. %% Example: %% system_managed_block() :: #{ %% <<"managedBy">> => [string()] %% } -type system_managed_block() :: #{binary() => any()}. %% Example: %% policy_engine() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"name">> => string(), %% <<"policyEngineArn">> => string(), %% <<"policyEngineId">> => string(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type policy_engine() :: #{binary() => any()}. %% Example: %% list_policy_generation_summaries_response() :: #{ %% <<"nextToken">> => string(), %% <<"policyGenerations">> => list(policy_generation_summary()) %% } -type list_policy_generation_summaries_response() :: #{binary() => any()}. %% Example: %% skill_md_definition() :: #{ %% <<"inlineContent">> => string() %% } -type skill_md_definition() :: #{binary() => any()}. %% Example: %% static_route() :: #{ %% <<"targetName">> => string() %% } -type static_route() :: #{binary() => any()}. %% Example: %% mcp_lambda_target_configuration() :: #{ %% <<"lambdaArn">> => string(), %% <<"toolSchema">> => list() %% } -type mcp_lambda_target_configuration() :: #{binary() => any()}. %% Example: %% memory() :: #{ %% <<"arn">> => string(), %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string(), %% <<"encryptionKeyArn">> => string(), %% <<"eventExpiryDuration">> => [integer()], %% <<"failureReason">> => [string()], %% <<"id">> => string(), %% <<"indexedKeys">> => list(indexed_key()), %% <<"memoryExecutionRoleArn">> => string(), %% <<"name">> => string(), %% <<"status">> => list(any()), %% <<"strategies">> => list(memory_strategy()), %% <<"streamDeliveryResources">> => stream_delivery_resources(), %% <<"updatedAt">> => [non_neg_integer()] %% } -type memory() :: #{binary() => any()}. %% Example: %% number_validation() :: #{ %% <<"maxValue">> => [float()], %% <<"minValue">> => [float()] %% } -type number_validation() :: #{binary() => any()}. %% Example: %% create_agent_runtime_response() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeId">> => string(), %% <<"agentRuntimeVersion">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"status">> => list(any()), %% <<"workloadIdentityDetails">> => workload_identity_details() %% } -type create_agent_runtime_response() :: #{binary() => any()}. %% Example: %% credential_provider_configuration() :: #{ %% <<"credentialProvider">> => list(), %% <<"credentialProviderType">> => list(any()) %% } -type credential_provider_configuration() :: #{binary() => any()}. %% Example: %% update_agent_runtime_endpoint_response() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeEndpointArn">> => string(), %% <<"createdAt">> => non_neg_integer(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"liveVersion">> => string(), %% <<"status">> => list(any()), %% <<"targetVersion">> => string() %% } -type update_agent_runtime_endpoint_response() :: #{binary() => any()}. %% Example: %% create_configuration_bundle_response() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleId">> => string(), %% <<"createdAt">> => [non_neg_integer()], %% <<"versionId">> => string() %% } -type create_configuration_bundle_response() :: #{binary() => any()}. %% Example: %% list_agent_runtime_endpoints_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_agent_runtime_endpoints_request() :: #{binary() => any()}. %% Example: %% get_payment_connector_request() :: #{} -type get_payment_connector_request() :: #{}. %% Example: %% list_agent_runtimes_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_agent_runtimes_request() :: #{binary() => any()}. %% Example: %% descriptors() :: #{ %% <<"a2a">> => a2a_descriptor(), %% <<"agentSkills">> => agent_skills_descriptor(), %% <<"custom">> => custom_descriptor(), %% <<"mcp">> => mcp_descriptor() %% } -type descriptors() :: #{binary() => any()}. %% Example: %% get_token_vault_request() :: #{ %% <<"tokenVaultId">> => string() %% } -type get_token_vault_request() :: #{binary() => any()}. %% Example: %% browser_profile_summary() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"lastSavedAt">> => non_neg_integer(), %% <<"lastSavedBrowserId">> => string(), %% <<"lastSavedBrowserSessionId">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"profileArn">> => string(), %% <<"profileId">> => string(), %% <<"status">> => list(any()) %% } -type browser_profile_summary() :: #{binary() => any()}. %% Example: %% create_evaluator_request() :: #{ %% <<"clientToken">> => string(), %% <<"description">> => string(), %% <<"evaluatorConfig">> := list(), %% <<"evaluatorName">> := string(), %% <<"kmsKeyArn">> => string(), %% <<"level">> := list(any()), %% <<"tags">> => map() %% } -type create_evaluator_request() :: #{binary() => any()}. %% Example: %% update_agent_runtime_endpoint_request() :: #{ %% <<"agentRuntimeVersion">> => string(), %% <<"clientToken">> => string(), %% <<"description">> => string() %% } -type update_agent_runtime_endpoint_request() :: #{binary() => any()}. %% Example: %% updated_approval_configuration() :: #{ %% <<"optionalValue">> => approval_configuration() %% } -type updated_approval_configuration() :: #{binary() => any()}. %% Example: %% update_gateway_target_request() :: #{ %% <<"credentialProviderConfigurations">> => list(credential_provider_configuration()), %% <<"description">> => string(), %% <<"metadataConfiguration">> => metadata_configuration(), %% <<"name">> := string(), %% <<"privateEndpoint">> => list(), %% <<"targetConfiguration">> := list() %% } -type update_gateway_target_request() :: #{binary() => any()}. %% Example: %% create_workload_identity_response() :: #{ %% <<"allowedResourceOauth2ReturnUrls">> => list(string()), %% <<"name">> => string(), %% <<"workloadIdentityArn">> => string() %% } -type create_workload_identity_response() :: #{binary() => any()}. %% Example: %% start_policy_generation_response() :: #{ %% <<"createdAt">> => non_neg_integer(), %% <<"findings">> => string(), %% <<"name">> => string(), %% <<"policyEngineId">> => string(), %% <<"policyGenerationArn">> => string(), %% <<"policyGenerationId">> => string(), %% <<"resource">> => list(), %% <<"status">> => list(any()), %% <<"statusReasons">> => list(string()), %% <<"updatedAt">> => non_neg_integer() %% } -type start_policy_generation_response() :: #{binary() => any()}. %% Example: %% list_oauth2_credential_providers_response() :: #{ %% <<"credentialProviders">> => list(oauth2_credential_provider_item()), %% <<"nextToken">> => [string()] %% } -type list_oauth2_credential_providers_response() :: #{binary() => any()}. %% Example: %% from_url_synchronization_configuration() :: #{ %% <<"credentialProviderConfigurations">> => list(registry_record_credential_provider_configuration()), %% <<"url">> => string() %% } -type from_url_synchronization_configuration() :: #{binary() => any()}. %% Example: %% list_harnesses_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_harnesses_request() :: #{binary() => any()}. %% Example: %% managed_vpc_resource() :: #{ %% <<"endpointIpAddressType">> => list(any()), %% <<"routingDomain">> => string(), %% <<"securityGroupIds">> => list(string()), %% <<"subnetIds">> => list(string()), %% <<"tags">> => map(), %% <<"vpcIdentifier">> => string() %% } -type managed_vpc_resource() :: #{binary() => any()}. %% Example: %% list_gateways_response() :: #{ %% <<"items">> => list(gateway_summary()), %% <<"nextToken">> => string() %% } -type list_gateways_response() :: #{binary() => any()}. %% Example: %% harness_agent_core_runtime_environment() :: #{ %% <<"agentRuntimeArn">> => string(), %% <<"agentRuntimeId">> => [string()], %% <<"agentRuntimeName">> => [string()], %% <<"filesystemConfigurations">> => list(list()), %% <<"lifecycleConfiguration">> => lifecycle_configuration(), %% <<"networkConfiguration">> => network_configuration() %% } -type harness_agent_core_runtime_environment() :: #{binary() => any()}. %% Example: %% recording_config() :: #{ %% <<"enabled">> => [boolean()], %% <<"s3Location">> => s3_location() %% } -type recording_config() :: #{binary() => any()}. %% Example: %% list_policy_engine_summaries_response() :: #{ %% <<"nextToken">> => string(), %% <<"policyEngines">> => list(policy_engine_summary()) %% } -type list_policy_engine_summaries_response() :: #{binary() => any()}. %% Example: %% agent_skills_descriptor() :: #{ %% <<"skillDefinition">> => skill_definition(), %% <<"skillMd">> => skill_md_definition() %% } -type agent_skills_descriptor() :: #{binary() => any()}. %% Example: %% registry_summary() :: #{ %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"name">> => string(), %% <<"registryArn">> => string(), %% <<"registryId">> => string(), %% <<"status">> => list(any()), %% <<"statusReason">> => [string()], %% <<"updatedAt">> => non_neg_integer() %% } -type registry_summary() :: #{binary() => any()}. %% Example: %% update_api_key_credential_provider_response() :: #{ %% <<"apiKeySecretArn">> => secret(), %% <<"apiKeySecretJsonKey">> => string(), %% <<"apiKeySecretSource">> => list(any()), %% <<"createdTime">> => [non_neg_integer()], %% <<"credentialProviderArn">> => string(), %% <<"lastUpdatedTime">> => [non_neg_integer()], %% <<"name">> => string() %% } -type update_api_key_credential_provider_response() :: #{binary() => any()}. %% Example: %% updated_harness_environment_artifact() :: #{ %% <<"optionalValue">> => list() %% } -type updated_harness_environment_artifact() :: #{binary() => any()}. %% Example: %% get_configuration_bundle_request() :: #{ %% <<"branchName">> => string() %% } -type get_configuration_bundle_request() :: #{binary() => any()}. %% Example: %% list_dataset_versions_response() :: #{ %% <<"nextToken">> => [string()], %% <<"versions">> => list(dataset_version_summary()) %% } -type list_dataset_versions_response() :: #{binary() => any()}. %% Example: %% create_configuration_bundle_request() :: #{ %% <<"branchName">> => string(), %% <<"bundleName">> := string(), %% <<"clientToken">> => string(), %% <<"commitMessage">> => [string()], %% <<"components">> := map(), %% <<"createdBy">> => version_created_by_source(), %% <<"description">> => string(), %% <<"tags">> => map() %% } -type create_configuration_bundle_request() :: #{binary() => any()}. %% Example: %% harness_agent_core_code_interpreter_config() :: #{ %% <<"codeInterpreterArn">> => string() %% } -type harness_agent_core_code_interpreter_config() :: #{binary() => any()}. %% Example: %% payment_manager_summary() :: #{ %% <<"authorizerType">> => list(any()), %% <<"createdAt">> => non_neg_integer(), %% <<"description">> => string(), %% <<"lastUpdatedAt">> => non_neg_integer(), %% <<"name">> => string(), %% <<"paymentManagerArn">> => string(), %% <<"paymentManagerId">> => string(), %% <<"roleArn">> => string(), %% <<"status">> => list(any()) %% } -type payment_manager_summary() :: #{binary() => any()}. %% Example: %% evaluator_summary() :: #{ %% <<"createdAt">> => [non_neg_integer()], %% <<"description">> => string(), %% <<"evaluatorArn">> => string(), %% <<"evaluatorId">> => string(), %% <<"evaluatorName">> => string(), %% <<"evaluatorType">> => list(any()), %% <<"kmsKeyArn">> => string(), %% <<"level">> => list(any()), %% <<"lockedForModification">> => [boolean()], %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type evaluator_summary() :: #{binary() => any()}. %% Example: %% delete_dataset_examples_response() :: #{ %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"deletedCount">> => [float()], %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type delete_dataset_examples_response() :: #{binary() => any()}. %% Example: %% user_preference_override_consolidation_configuration_input() :: #{ %% <<"appendToPrompt">> => string(), %% <<"modelId">> => [string()] %% } -type user_preference_override_consolidation_configuration_input() :: #{binary() => any()}. %% Example: %% list_api_key_credential_providers_response() :: #{ %% <<"credentialProviders">> => list(api_key_credential_provider_item()), %% <<"nextToken">> => [string()] %% } -type list_api_key_credential_providers_response() :: #{binary() => any()}. %% Example: %% list_configuration_bundles_response() :: #{ %% <<"bundles">> => list(configuration_bundle_summary()), %% <<"nextToken">> => [string()] %% } -type list_configuration_bundles_response() :: #{binary() => any()}. %% Example: %% list_payment_managers_response() :: #{ %% <<"nextToken">> => string(), %% <<"paymentManagers">> => list(payment_manager_summary()) %% } -type list_payment_managers_response() :: #{binary() => any()}. %% Example: %% add_dataset_examples_response() :: #{ %% <<"addedCount">> => [float()], %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"exampleIds">> => list(string()), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()] %% } -type add_dataset_examples_response() :: #{binary() => any()}. %% Example: %% list_payment_managers_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_payment_managers_request() :: #{binary() => any()}. %% Example: %% token_based_trigger_input() :: #{ %% <<"tokenCount">> => [integer()] %% } -type token_based_trigger_input() :: #{binary() => any()}. %% Example: %% google_oauth2_provider_config_input() :: #{ %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()) %% } -type google_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% delete_policy_engine_request() :: #{} -type delete_policy_engine_request() :: #{}. %% Example: %% update_dataset_examples_response() :: #{ %% <<"datasetArn">> => string(), %% <<"datasetId">> => string(), %% <<"status">> => list(any()), %% <<"updatedAt">> => [non_neg_integer()], %% <<"updatedCount">> => [float()] %% } -type update_dataset_examples_response() :: #{binary() => any()}. %% Example: %% updated_descriptors_union() :: #{ %% <<"a2a">> => updated_a2a_descriptor(), %% <<"agentSkills">> => updated_agent_skills_descriptor(), %% <<"custom">> => updated_custom_descriptor(), %% <<"mcp">> => updated_mcp_descriptor() %% } -type updated_descriptors_union() :: #{binary() => any()}. %% Example: %% list_gateway_targets_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string() %% } -type list_gateway_targets_request() :: #{binary() => any()}. %% Example: %% modify_invocation_configuration_input() :: #{ %% <<"payloadDeliveryBucketName">> => [string()], %% <<"topicArn">> => string() %% } -type modify_invocation_configuration_input() :: #{binary() => any()}. %% Example: %% linkedin_oauth2_provider_config_input() :: #{ %% <<"clientId">> => string(), %% <<"clientSecret">> => string(), %% <<"clientSecretConfig">> => secret_reference(), %% <<"clientSecretSource">> => list(any()) %% } -type linkedin_oauth2_provider_config_input() :: #{binary() => any()}. %% Example: %% update_policy_engine_request() :: #{ %% <<"description">> => updated_description() %% } -type update_policy_engine_request() :: #{binary() => any()}. %% Example: %% get_gateway_request() :: #{} -type get_gateway_request() :: #{}. %% Example: %% updated_description() :: #{ %% <<"optionalValue">> => string() %% } -type updated_description() :: #{binary() => any()}. %% Example: %% static_override() :: #{ %% <<"bundleArn">> => string(), %% <<"bundleVersion">> => [string()] %% } -type static_override() :: #{binary() => any()}. %% Example: %% gateway_interceptor_configuration() :: #{ %% <<"inputConfiguration">> => interceptor_input_configuration(), %% <<"interceptionPoints">> => list(list(any())()), %% <<"interceptor">> => list() %% } -type gateway_interceptor_configuration() :: #{binary() => any()}. %% Example: %% list_memories_output() :: #{ %% <<"memories">> => list(memory_summary()), %% <<"nextToken">> => [string()] %% } -type list_memories_output() :: #{binary() => any()}. %% Example: %% synchronization_configuration() :: #{ %% <<"fromUrl">> => from_url_synchronization_configuration() %% } -type synchronization_configuration() :: #{binary() => any()}. %% Example: %% list_browsers_request() :: #{ %% <<"maxResults">> => integer(), %% <<"nextToken">> => string(), %% <<"type">> => list(any()) %% } -type list_browsers_request() :: #{binary() => any()}. -type add_dataset_examples_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_agent_runtime_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_agent_runtime_endpoint_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_api_key_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_limit_exceeded_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | encryption_failure() | decryption_failure() | unauthorized_exception(). -type create_browser_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_browser_profile_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_code_interpreter_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_configuration_bundle_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_dataset_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_dataset_version_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_evaluator_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_gateway_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_gateway_rule_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_gateway_target_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_harness_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_memory_errors() :: validation_exception() | access_denied_exception() | service_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | throttled_exception(). -type create_oauth2_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_limit_exceeded_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | encryption_failure() | decryption_failure() | unauthorized_exception(). -type create_online_evaluation_config_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_payment_connector_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_payment_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_limit_exceeded_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | encryption_failure() | decryption_failure() | unauthorized_exception(). -type create_payment_manager_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_policy_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_policy_engine_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_registry_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | conflict_exception(). -type create_registry_record_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type create_workload_identity_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type delete_agent_runtime_errors() :: throttling_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_agent_runtime_endpoint_errors() :: throttling_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_api_key_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type delete_browser_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type delete_browser_profile_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_code_interpreter_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type delete_configuration_bundle_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_dataset_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_dataset_examples_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_evaluator_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_gateway_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_gateway_rule_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_gateway_target_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_harness_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_memory_errors() :: validation_exception() | access_denied_exception() | service_exception() | resource_not_found_exception() | conflict_exception() | throttled_exception(). -type delete_oauth2_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception() | unauthorized_exception(). -type delete_online_evaluation_config_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_payment_connector_errors() :: throttling_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_payment_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type delete_payment_manager_errors() :: throttling_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_policy_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_policy_engine_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_registry_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_registry_record_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type delete_resource_policy_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type delete_workload_identity_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type get_agent_runtime_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_agent_runtime_endpoint_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_api_key_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | decryption_failure() | unauthorized_exception(). -type get_browser_errors() :: throttling_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception(). -type get_browser_profile_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_code_interpreter_errors() :: throttling_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception(). -type get_configuration_bundle_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_configuration_bundle_version_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_dataset_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type get_evaluator_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_gateway_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_gateway_rule_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_gateway_target_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_harness_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_memory_errors() :: validation_exception() | access_denied_exception() | service_exception() | resource_not_found_exception() | throttled_exception(). -type get_oauth2_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | decryption_failure() | unauthorized_exception(). -type get_online_evaluation_config_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_payment_connector_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_payment_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | decryption_failure() | unauthorized_exception(). -type get_payment_manager_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_policy_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_policy_engine_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_policy_engine_summary_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_policy_generation_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_policy_generation_summary_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_policy_summary_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_registry_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_registry_record_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type get_resource_policy_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type get_token_vault_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type get_workload_identity_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type list_agent_runtime_endpoints_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_agent_runtime_versions_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_agent_runtimes_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_api_key_credential_providers_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type list_browser_profiles_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_browsers_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_code_interpreters_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_configuration_bundle_versions_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_configuration_bundles_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_dataset_examples_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type list_dataset_versions_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_datasets_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_evaluators_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_gateway_rules_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_gateway_targets_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_gateways_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_harnesses_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_memories_errors() :: validation_exception() | access_denied_exception() | service_exception() | resource_not_found_exception() | throttled_exception(). -type list_oauth2_credential_providers_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type list_online_evaluation_configs_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_payment_connectors_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_payment_credential_providers_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type list_payment_managers_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_policies_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_policy_engine_summaries_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_policy_engines_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_policy_generation_assets_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_policy_generation_summaries_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_policy_generations_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_policy_summaries_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_registries_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception(). -type list_registry_records_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type list_tags_for_resource_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type list_workload_identities_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type put_resource_policy_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type set_token_vault_cm_k_errors() :: throttling_exception() | validation_exception() | concurrent_modification_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). -type start_policy_generation_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type submit_registry_record_for_approval_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type synchronize_gateway_targets_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type tag_resource_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception(). -type untag_resource_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception(). -type update_agent_runtime_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_agent_runtime_endpoint_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_api_key_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | encryption_failure() | decryption_failure() | unauthorized_exception(). -type update_configuration_bundle_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_dataset_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_dataset_examples_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_evaluator_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_gateway_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_gateway_rule_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_gateway_target_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_harness_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_memory_errors() :: validation_exception() | access_denied_exception() | service_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | throttled_exception(). -type update_oauth2_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | encryption_failure() | decryption_failure() | unauthorized_exception(). -type update_online_evaluation_config_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_payment_connector_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_payment_credential_provider_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception() | encryption_failure() | decryption_failure() | unauthorized_exception(). -type update_payment_manager_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_policy_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_policy_engine_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_registry_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | service_quota_exceeded_exception() | resource_not_found_exception() | conflict_exception(). -type update_registry_record_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_registry_record_status_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | conflict_exception(). -type update_workload_identity_errors() :: throttling_exception() | validation_exception() | access_denied_exception() | internal_server_exception() | resource_not_found_exception() | unauthorized_exception(). %%==================================================================== %% API %%==================================================================== %% @doc Adds examples to the dataset's DRAFT. %% %% **Validation:** All examples are validated against the dataset's %% schemaType before any %% writes occur. If any example fails validation, the entire batch is %% rejected with %% ValidationException — no examples are written (all-or-nothing semantics). %% %% **Asynchronous:** Operates in-place on DRAFT. No version bump occurs. %% Use CreateDatasetVersion to publish DRAFT as a new numbered version. %% %% **State guard:** Returns ConflictException (DATASET_NOT_READY) if the %% dataset %% status is not in {DRAFT, ACTIVE}. %% %% **Request size limit:** Max 5 MB total request body. Max 1000 examples per %% call. -spec add_dataset_examples(aws_client:aws_client(), binary() | list(), add_dataset_examples_request()) -> {ok, add_dataset_examples_response(), tuple()} | {error, any()} | {error, add_dataset_examples_errors(), tuple()}. add_dataset_examples(Client, DatasetId, Input) -> add_dataset_examples(Client, DatasetId, Input, []). -spec add_dataset_examples(aws_client:aws_client(), binary() | list(), add_dataset_examples_request(), proplists:proplist()) -> {ok, add_dataset_examples_response(), tuple()} | {error, any()} | {error, add_dataset_examples_errors(), tuple()}. add_dataset_examples(Client, DatasetId, Input0, Options0) -> Method = post, Path = ["/datasets/", aws_util:encode_uri(DatasetId), "/examples/add"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates an Amazon Bedrock AgentCore Runtime. -spec create_agent_runtime(aws_client:aws_client(), create_agent_runtime_request()) -> {ok, create_agent_runtime_response(), tuple()} | {error, any()} | {error, create_agent_runtime_errors(), tuple()}. create_agent_runtime(Client, Input) -> create_agent_runtime(Client, Input, []). -spec create_agent_runtime(aws_client:aws_client(), create_agent_runtime_request(), proplists:proplist()) -> {ok, create_agent_runtime_response(), tuple()} | {error, any()} | {error, create_agent_runtime_errors(), tuple()}. create_agent_runtime(Client, Input0, Options0) -> Method = put, Path = ["/runtimes/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates an AgentCore Runtime endpoint. -spec create_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), create_agent_runtime_endpoint_request()) -> {ok, create_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, create_agent_runtime_endpoint_errors(), tuple()}. create_agent_runtime_endpoint(Client, AgentRuntimeId, Input) -> create_agent_runtime_endpoint(Client, AgentRuntimeId, Input, []). -spec create_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), create_agent_runtime_endpoint_request(), proplists:proplist()) -> {ok, create_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, create_agent_runtime_endpoint_errors(), tuple()}. create_agent_runtime_endpoint(Client, AgentRuntimeId, Input0, Options0) -> Method = put, Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/runtime-endpoints/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new API key credential provider. -spec create_api_key_credential_provider(aws_client:aws_client(), create_api_key_credential_provider_request()) -> {ok, create_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, create_api_key_credential_provider_errors(), tuple()}. create_api_key_credential_provider(Client, Input) -> create_api_key_credential_provider(Client, Input, []). -spec create_api_key_credential_provider(aws_client:aws_client(), create_api_key_credential_provider_request(), proplists:proplist()) -> {ok, create_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, create_api_key_credential_provider_errors(), tuple()}. create_api_key_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/CreateApiKeyCredentialProvider"], SuccessStatusCode = 201, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a custom browser. -spec create_browser(aws_client:aws_client(), create_browser_request()) -> {ok, create_browser_response(), tuple()} | {error, any()} | {error, create_browser_errors(), tuple()}. create_browser(Client, Input) -> create_browser(Client, Input, []). -spec create_browser(aws_client:aws_client(), create_browser_request(), proplists:proplist()) -> {ok, create_browser_response(), tuple()} | {error, any()} | {error, create_browser_errors(), tuple()}. create_browser(Client, Input0, Options0) -> Method = put, Path = ["/browsers"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a browser profile in Amazon Bedrock AgentCore. %% %% A browser profile stores persistent browser data such as cookies, local %% storage, session storage, and browsing history that can be saved from %% browser sessions and reused in subsequent sessions. -spec create_browser_profile(aws_client:aws_client(), create_browser_profile_request()) -> {ok, create_browser_profile_response(), tuple()} | {error, any()} | {error, create_browser_profile_errors(), tuple()}. create_browser_profile(Client, Input) -> create_browser_profile(Client, Input, []). -spec create_browser_profile(aws_client:aws_client(), create_browser_profile_request(), proplists:proplist()) -> {ok, create_browser_profile_response(), tuple()} | {error, any()} | {error, create_browser_profile_errors(), tuple()}. create_browser_profile(Client, Input0, Options0) -> Method = put, Path = ["/browser-profiles"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a custom code interpreter. -spec create_code_interpreter(aws_client:aws_client(), create_code_interpreter_request()) -> {ok, create_code_interpreter_response(), tuple()} | {error, any()} | {error, create_code_interpreter_errors(), tuple()}. create_code_interpreter(Client, Input) -> create_code_interpreter(Client, Input, []). -spec create_code_interpreter(aws_client:aws_client(), create_code_interpreter_request(), proplists:proplist()) -> {ok, create_code_interpreter_response(), tuple()} | {error, any()} | {error, create_code_interpreter_errors(), tuple()}. create_code_interpreter(Client, Input0, Options0) -> Method = put, Path = ["/code-interpreters"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new configuration bundle resource. %% %% A configuration bundle stores versioned component configurations for agent %% evaluation workflows. -spec create_configuration_bundle(aws_client:aws_client(), create_configuration_bundle_request()) -> {ok, create_configuration_bundle_response(), tuple()} | {error, any()} | {error, create_configuration_bundle_errors(), tuple()}. create_configuration_bundle(Client, Input) -> create_configuration_bundle(Client, Input, []). -spec create_configuration_bundle(aws_client:aws_client(), create_configuration_bundle_request(), proplists:proplist()) -> {ok, create_configuration_bundle_response(), tuple()} | {error, any()} | {error, create_configuration_bundle_errors(), tuple()}. create_configuration_bundle(Client, Input0, Options0) -> Method = post, Path = ["/configuration-bundles/create"], SuccessStatusCode = 201, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new Dataset resource asynchronously. %% %% Returns immediately with status CREATING. Poll GetDataset until %% status transitions to ACTIVE or CREATE_FAILED (with failureReason). -spec create_dataset(aws_client:aws_client(), create_dataset_request()) -> {ok, create_dataset_response(), tuple()} | {error, any()} | {error, create_dataset_errors(), tuple()}. create_dataset(Client, Input) -> create_dataset(Client, Input, []). -spec create_dataset(aws_client:aws_client(), create_dataset_request(), proplists:proplist()) -> {ok, create_dataset_response(), tuple()} | {error, any()} | {error, create_dataset_errors(), tuple()}. create_dataset(Client, Input0, Options0) -> Method = post, Path = ["/datasets"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Publishes the current DRAFT as a new numbered version. %% %% Snapshots the DRAFT examples as the next version (1, 2, 3, ...). %% The DRAFT is preserved and remains editable after publishing. %% Returns immediately with status UPDATING. Poll GetDataset until %% status transitions to ACTIVE (draftStatus=UNMODIFIED) or UPDATE_FAILED. %% %% **State guard:** Returns ConflictException (DATASET_NOT_READY) if status %% is in %% {CREATING, UPDATING, DELETING}, or DATASET_IN_FAILED_STATE if status is in %% {CREATE_FAILED, DELETE_FAILED}. %% %% **Quota:** MAX_VERSIONS_PER_DATASET applies to published versions only %% (not DRAFT). -spec create_dataset_version(aws_client:aws_client(), binary() | list(), create_dataset_version_request()) -> {ok, create_dataset_version_response(), tuple()} | {error, any()} | {error, create_dataset_version_errors(), tuple()}. create_dataset_version(Client, DatasetId, Input) -> create_dataset_version(Client, DatasetId, Input, []). -spec create_dataset_version(aws_client:aws_client(), binary() | list(), create_dataset_version_request(), proplists:proplist()) -> {ok, create_dataset_version_response(), tuple()} | {error, any()} | {error, create_dataset_version_errors(), tuple()}. create_dataset_version(Client, DatasetId, Input0, Options0) -> Method = post, Path = ["/datasets/", aws_util:encode_uri(DatasetId), "/versions"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a custom evaluator for agent quality assessment. %% %% Custom evaluators can use either LLM-as-a-Judge configurations with %% user-defined prompts, rating scales, and model settings, or code-based %% configurations with customer-managed Lambda functions to evaluate agent %% performance at tool call, trace, or session levels. -spec create_evaluator(aws_client:aws_client(), create_evaluator_request()) -> {ok, create_evaluator_response(), tuple()} | {error, any()} | {error, create_evaluator_errors(), tuple()}. create_evaluator(Client, Input) -> create_evaluator(Client, Input, []). -spec create_evaluator(aws_client:aws_client(), create_evaluator_request(), proplists:proplist()) -> {ok, create_evaluator_response(), tuple()} | {error, any()} | {error, create_evaluator_errors(), tuple()}. create_evaluator(Client, Input0, Options0) -> Method = post, Path = ["/evaluators/create"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a gateway for Amazon Bedrock Agent. %% %% A gateway serves as an integration point between your agent and external %% services. %% %% If you specify `CUSTOM_JWT' as the `authorizerType', you must %% provide an `authorizerConfiguration'. -spec create_gateway(aws_client:aws_client(), create_gateway_request()) -> {ok, create_gateway_response(), tuple()} | {error, any()} | {error, create_gateway_errors(), tuple()}. create_gateway(Client, Input) -> create_gateway(Client, Input, []). -spec create_gateway(aws_client:aws_client(), create_gateway_request(), proplists:proplist()) -> {ok, create_gateway_response(), tuple()} | {error, any()} | {error, create_gateway_errors(), tuple()}. create_gateway(Client, Input0, Options0) -> Method = post, Path = ["/gateways/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a rule for a gateway. %% %% Rules define conditions and actions that control how requests are routed %% and processed through the gateway, including principal-based access %% control and path-based routing. -spec create_gateway_rule(aws_client:aws_client(), binary() | list(), create_gateway_rule_request()) -> {ok, create_gateway_rule_response(), tuple()} | {error, any()} | {error, create_gateway_rule_errors(), tuple()}. create_gateway_rule(Client, GatewayIdentifier, Input) -> create_gateway_rule(Client, GatewayIdentifier, Input, []). -spec create_gateway_rule(aws_client:aws_client(), binary() | list(), create_gateway_rule_request(), proplists:proplist()) -> {ok, create_gateway_rule_response(), tuple()} | {error, any()} | {error, create_gateway_rule_errors(), tuple()}. create_gateway_rule(Client, GatewayIdentifier, Input0, Options0) -> Method = post, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/rules"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a target for a gateway. %% %% A target defines an endpoint that the gateway can connect to. -spec create_gateway_target(aws_client:aws_client(), binary() | list(), create_gateway_target_request()) -> {ok, create_gateway_target_response(), tuple()} | {error, any()} | {error, create_gateway_target_errors(), tuple()}. create_gateway_target(Client, GatewayIdentifier, Input) -> create_gateway_target(Client, GatewayIdentifier, Input, []). -spec create_gateway_target(aws_client:aws_client(), binary() | list(), create_gateway_target_request(), proplists:proplist()) -> {ok, create_gateway_target_response(), tuple()} | {error, any()} | {error, create_gateway_target_errors(), tuple()}. create_gateway_target(Client, GatewayIdentifier, Input0, Options0) -> Method = post, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/targets/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Operation to create a Harness. -spec create_harness(aws_client:aws_client(), create_harness_request()) -> {ok, create_harness_response(), tuple()} | {error, any()} | {error, create_harness_errors(), tuple()}. create_harness(Client, Input) -> create_harness(Client, Input, []). -spec create_harness(aws_client:aws_client(), create_harness_request(), proplists:proplist()) -> {ok, create_harness_response(), tuple()} | {error, any()} | {error, create_harness_errors(), tuple()}. create_harness(Client, Input0, Options0) -> Method = post, Path = ["/harnesses"], SuccessStatusCode = 201, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new Amazon Bedrock AgentCore Memory resource. -spec create_memory(aws_client:aws_client(), create_memory_input()) -> {ok, create_memory_output(), tuple()} | {error, any()} | {error, create_memory_errors(), tuple()}. create_memory(Client, Input) -> create_memory(Client, Input, []). -spec create_memory(aws_client:aws_client(), create_memory_input(), proplists:proplist()) -> {ok, create_memory_output(), tuple()} | {error, any()} | {error, create_memory_errors(), tuple()}. create_memory(Client, Input0, Options0) -> Method = post, Path = ["/memories/create"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new OAuth2 credential provider. -spec create_oauth2_credential_provider(aws_client:aws_client(), create_oauth2_credential_provider_request()) -> {ok, create_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, create_oauth2_credential_provider_errors(), tuple()}. create_oauth2_credential_provider(Client, Input) -> create_oauth2_credential_provider(Client, Input, []). -spec create_oauth2_credential_provider(aws_client:aws_client(), create_oauth2_credential_provider_request(), proplists:proplist()) -> {ok, create_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, create_oauth2_credential_provider_errors(), tuple()}. create_oauth2_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/CreateOauth2CredentialProvider"], SuccessStatusCode = 201, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates an online evaluation configuration for continuous monitoring %% of agent performance. %% %% Online evaluation automatically samples live traffic from CloudWatch logs %% at specified rates and applies evaluators to assess agent quality in %% production. -spec create_online_evaluation_config(aws_client:aws_client(), create_online_evaluation_config_request()) -> {ok, create_online_evaluation_config_response(), tuple()} | {error, any()} | {error, create_online_evaluation_config_errors(), tuple()}. create_online_evaluation_config(Client, Input) -> create_online_evaluation_config(Client, Input, []). -spec create_online_evaluation_config(aws_client:aws_client(), create_online_evaluation_config_request(), proplists:proplist()) -> {ok, create_online_evaluation_config_response(), tuple()} | {error, any()} | {error, create_online_evaluation_config_errors(), tuple()}. create_online_evaluation_config(Client, Input0, Options0) -> Method = post, Path = ["/online-evaluation-configs/create"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new payment connector for a payment manager. %% %% A payment connector integrates with a supported payment provider to enable %% payment processing capabilities. -spec create_payment_connector(aws_client:aws_client(), binary() | list(), create_payment_connector_request()) -> {ok, create_payment_connector_response(), tuple()} | {error, any()} | {error, create_payment_connector_errors(), tuple()}. create_payment_connector(Client, PaymentManagerId, Input) -> create_payment_connector(Client, PaymentManagerId, Input, []). -spec create_payment_connector(aws_client:aws_client(), binary() | list(), create_payment_connector_request(), proplists:proplist()) -> {ok, create_payment_connector_response(), tuple()} | {error, any()} | {error, create_payment_connector_errors(), tuple()}. create_payment_connector(Client, PaymentManagerId, Input0, Options0) -> Method = post, Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), "/connectors"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new payment credential provider for storing authentication %% credentials used by payment connectors to communicate with external %% payment providers. -spec create_payment_credential_provider(aws_client:aws_client(), create_payment_credential_provider_request()) -> {ok, create_payment_credential_provider_response(), tuple()} | {error, any()} | {error, create_payment_credential_provider_errors(), tuple()}. create_payment_credential_provider(Client, Input) -> create_payment_credential_provider(Client, Input, []). -spec create_payment_credential_provider(aws_client:aws_client(), create_payment_credential_provider_request(), proplists:proplist()) -> {ok, create_payment_credential_provider_response(), tuple()} | {error, any()} | {error, create_payment_credential_provider_errors(), tuple()}. create_payment_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/CreatePaymentCredentialProvider"], SuccessStatusCode = 201, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new payment manager in your Amazon Web Services account. %% %% A payment manager serves as the top-level resource for managing payment %% processing capabilities, including payment connectors that integrate with %% supported payment providers. %% %% If you specify `CUSTOM_JWT' as the `authorizerType', you must %% provide an `authorizerConfiguration'. -spec create_payment_manager(aws_client:aws_client(), create_payment_manager_request()) -> {ok, create_payment_manager_response(), tuple()} | {error, any()} | {error, create_payment_manager_errors(), tuple()}. create_payment_manager(Client, Input) -> create_payment_manager(Client, Input, []). -spec create_payment_manager(aws_client:aws_client(), create_payment_manager_request(), proplists:proplist()) -> {ok, create_payment_manager_response(), tuple()} | {error, any()} | {error, create_payment_manager_errors(), tuple()}. create_payment_manager(Client, Input0, Options0) -> Method = post, Path = ["/payments/managers"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a policy within the AgentCore Policy system. %% %% Policies provide real-time, deterministic control over agentic %% interactions with AgentCore Gateway. Using the Cedar policy language, you %% can define fine-grained policies that specify which interactions with %% Gateway tools are permitted based on input parameters and OAuth claims, %% ensuring agents operate within defined boundaries and business rules. The %% policy is validated during creation against the Cedar schema generated %% from the Gateway's tools' input schemas, which defines the %% available tools, their parameters, and expected data types. This is an %% asynchronous operation. Use the GetPolicy: %% https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_GetPolicy.html %% operation to poll the `status' field to track completion. -spec create_policy(aws_client:aws_client(), binary() | list(), create_policy_request()) -> {ok, create_policy_response(), tuple()} | {error, any()} | {error, create_policy_errors(), tuple()}. create_policy(Client, PolicyEngineId, Input) -> create_policy(Client, PolicyEngineId, Input, []). -spec create_policy(aws_client:aws_client(), binary() | list(), create_policy_request(), proplists:proplist()) -> {ok, create_policy_response(), tuple()} | {error, any()} | {error, create_policy_errors(), tuple()}. create_policy(Client, PolicyEngineId, Input0, Options0) -> Method = post, Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policies"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new policy engine within the AgentCore Policy system. %% %% A policy engine is a collection of policies that evaluates and authorizes %% agent tool calls. When associated with Gateways (each Gateway can be %% associated with at most one policy engine, but multiple Gateways can be %% associated with the same engine), the policy engine intercepts all agent %% requests and determines whether to allow or deny each action based on the %% defined policies. This is an asynchronous operation. Use the %% GetPolicyEngine: %% https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_GetPolicyEngine.html %% operation to poll the `status' field to track completion. -spec create_policy_engine(aws_client:aws_client(), create_policy_engine_request()) -> {ok, create_policy_engine_response(), tuple()} | {error, any()} | {error, create_policy_engine_errors(), tuple()}. create_policy_engine(Client, Input) -> create_policy_engine(Client, Input, []). -spec create_policy_engine(aws_client:aws_client(), create_policy_engine_request(), proplists:proplist()) -> {ok, create_policy_engine_response(), tuple()} | {error, any()} | {error, create_policy_engine_errors(), tuple()}. create_policy_engine(Client, Input0, Options0) -> Method = post, Path = ["/policy-engines"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new registry in your Amazon Web Services account. %% %% A registry serves as a centralized catalog for organizing and managing %% registry records, including MCP servers, A2A agents, agent skills, and %% custom resource types. %% %% If you specify `CUSTOM_JWT' as the `authorizerType', you must %% provide an `authorizerConfiguration'. -spec create_registry(aws_client:aws_client(), create_registry_request()) -> {ok, create_registry_response(), tuple()} | {error, any()} | {error, create_registry_errors(), tuple()}. create_registry(Client, Input) -> create_registry(Client, Input, []). -spec create_registry(aws_client:aws_client(), create_registry_request(), proplists:proplist()) -> {ok, create_registry_response(), tuple()} | {error, any()} | {error, create_registry_errors(), tuple()}. create_registry(Client, Input0, Options0) -> Method = post, Path = ["/registries"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new registry record within the specified registry. %% %% A registry record represents an individual AI resource's metadata in %% the registry. This could be an MCP server (and associated tools), A2A %% agent, agent skill, or a custom resource with a custom schema. %% %% The record is processed asynchronously and returns HTTP 202 Accepted. -spec create_registry_record(aws_client:aws_client(), binary() | list(), create_registry_record_request()) -> {ok, create_registry_record_response(), tuple()} | {error, any()} | {error, create_registry_record_errors(), tuple()}. create_registry_record(Client, RegistryId, Input) -> create_registry_record(Client, RegistryId, Input, []). -spec create_registry_record(aws_client:aws_client(), binary() | list(), create_registry_record_request(), proplists:proplist()) -> {ok, create_registry_record_response(), tuple()} | {error, any()} | {error, create_registry_record_errors(), tuple()}. create_registry_record(Client, RegistryId, Input0, Options0) -> Method = post, Path = ["/registries/", aws_util:encode_uri(RegistryId), "/records"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates a new workload identity. -spec create_workload_identity(aws_client:aws_client(), create_workload_identity_request()) -> {ok, create_workload_identity_response(), tuple()} | {error, any()} | {error, create_workload_identity_errors(), tuple()}. create_workload_identity(Client, Input) -> create_workload_identity(Client, Input, []). -spec create_workload_identity(aws_client:aws_client(), create_workload_identity_request(), proplists:proplist()) -> {ok, create_workload_identity_response(), tuple()} | {error, any()} | {error, create_workload_identity_errors(), tuple()}. create_workload_identity(Client, Input0, Options0) -> Method = post, Path = ["/identities/CreateWorkloadIdentity"], SuccessStatusCode = 201, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an Amazon Bedrock AgentCore Runtime. -spec delete_agent_runtime(aws_client:aws_client(), binary() | list(), delete_agent_runtime_request()) -> {ok, delete_agent_runtime_response(), tuple()} | {error, any()} | {error, delete_agent_runtime_errors(), tuple()}. delete_agent_runtime(Client, AgentRuntimeId, Input) -> delete_agent_runtime(Client, AgentRuntimeId, Input, []). -spec delete_agent_runtime(aws_client:aws_client(), binary() | list(), delete_agent_runtime_request(), proplists:proplist()) -> {ok, delete_agent_runtime_response(), tuple()} | {error, any()} | {error, delete_agent_runtime_errors(), tuple()}. delete_agent_runtime(Client, AgentRuntimeId, Input0, Options0) -> Method = delete, Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an AAgentCore Runtime endpoint. -spec delete_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), binary() | list(), delete_agent_runtime_endpoint_request()) -> {ok, delete_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, delete_agent_runtime_endpoint_errors(), tuple()}. delete_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, Input) -> delete_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, Input, []). -spec delete_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), binary() | list(), delete_agent_runtime_endpoint_request(), proplists:proplist()) -> {ok, delete_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, delete_agent_runtime_endpoint_errors(), tuple()}. delete_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, Input0, Options0) -> Method = delete, Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/runtime-endpoints/", aws_util:encode_uri(EndpointName), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an API key credential provider. -spec delete_api_key_credential_provider(aws_client:aws_client(), delete_api_key_credential_provider_request()) -> {ok, delete_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, delete_api_key_credential_provider_errors(), tuple()}. delete_api_key_credential_provider(Client, Input) -> delete_api_key_credential_provider(Client, Input, []). -spec delete_api_key_credential_provider(aws_client:aws_client(), delete_api_key_credential_provider_request(), proplists:proplist()) -> {ok, delete_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, delete_api_key_credential_provider_errors(), tuple()}. delete_api_key_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/DeleteApiKeyCredentialProvider"], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a custom browser. -spec delete_browser(aws_client:aws_client(), binary() | list(), delete_browser_request()) -> {ok, delete_browser_response(), tuple()} | {error, any()} | {error, delete_browser_errors(), tuple()}. delete_browser(Client, BrowserId, Input) -> delete_browser(Client, BrowserId, Input, []). -spec delete_browser(aws_client:aws_client(), binary() | list(), delete_browser_request(), proplists:proplist()) -> {ok, delete_browser_response(), tuple()} | {error, any()} | {error, delete_browser_errors(), tuple()}. delete_browser(Client, BrowserId, Input0, Options0) -> Method = delete, Path = ["/browsers/", aws_util:encode_uri(BrowserId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a browser profile. -spec delete_browser_profile(aws_client:aws_client(), binary() | list(), delete_browser_profile_request()) -> {ok, delete_browser_profile_response(), tuple()} | {error, any()} | {error, delete_browser_profile_errors(), tuple()}. delete_browser_profile(Client, ProfileId, Input) -> delete_browser_profile(Client, ProfileId, Input, []). -spec delete_browser_profile(aws_client:aws_client(), binary() | list(), delete_browser_profile_request(), proplists:proplist()) -> {ok, delete_browser_profile_response(), tuple()} | {error, any()} | {error, delete_browser_profile_errors(), tuple()}. delete_browser_profile(Client, ProfileId, Input0, Options0) -> Method = delete, Path = ["/browser-profiles/", aws_util:encode_uri(ProfileId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a custom code interpreter. -spec delete_code_interpreter(aws_client:aws_client(), binary() | list(), delete_code_interpreter_request()) -> {ok, delete_code_interpreter_response(), tuple()} | {error, any()} | {error, delete_code_interpreter_errors(), tuple()}. delete_code_interpreter(Client, CodeInterpreterId, Input) -> delete_code_interpreter(Client, CodeInterpreterId, Input, []). -spec delete_code_interpreter(aws_client:aws_client(), binary() | list(), delete_code_interpreter_request(), proplists:proplist()) -> {ok, delete_code_interpreter_response(), tuple()} | {error, any()} | {error, delete_code_interpreter_errors(), tuple()}. delete_code_interpreter(Client, CodeInterpreterId, Input0, Options0) -> Method = delete, Path = ["/code-interpreters/", aws_util:encode_uri(CodeInterpreterId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a configuration bundle and all of its versions. -spec delete_configuration_bundle(aws_client:aws_client(), binary() | list(), delete_configuration_bundle_request()) -> {ok, delete_configuration_bundle_response(), tuple()} | {error, any()} | {error, delete_configuration_bundle_errors(), tuple()}. delete_configuration_bundle(Client, BundleId, Input) -> delete_configuration_bundle(Client, BundleId, Input, []). -spec delete_configuration_bundle(aws_client:aws_client(), binary() | list(), delete_configuration_bundle_request(), proplists:proplist()) -> {ok, delete_configuration_bundle_response(), tuple()} | {error, any()} | {error, delete_configuration_bundle_errors(), tuple()}. delete_configuration_bundle(Client, BundleId, Input0, Options0) -> Method = delete, Path = ["/configuration-bundles/", aws_util:encode_uri(BundleId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a dataset version or an entire dataset (all versions + name %% claim). %% %% Asynchronous 202. %% %% **State transitions:** %% - If `datasetVersion' is absent (full delete): status transitions to %% DELETING immediately. %% - If `datasetVersion' is provided (version-specific delete): status %% transitions to UPDATING. %% %% **State guard (full delete):** Returns ConflictException %% (DATASET_NOT_READY) if the %% dataset status is in {CREATING, UPDATING}. Deletion is allowed from %% ACTIVE, CREATE_FAILED, %% UPDATE_FAILED, and DELETE_FAILED states. %% %% **State guard (version-specific delete):** Returns ConflictException %% (DATASET_NOT_READY) if %% the dataset status is not in {ACTIVE, CREATE_FAILED, UPDATE_FAILED}. %% %% Fails with ConflictException (REFERENCED_BY_EVAL_JOB) if referenced by an %% active %% evaluation job (full delete only). %% %% If the delete workflow fails after retries, status is set to DELETE_FAILED %% (full delete) %% or UPDATE_FAILED (version-specific delete). %% Calling DeleteDataset on a DELETE_FAILED dataset re-triggers the delete %% workflow %% (idempotent retry path). %% %% **Version parameter:** %% - If `datasetVersion' is absent: deletes ALL versions and the Dataset %% record itself. %% - If `datasetVersion' is provided: deletes only that specific %% DatasetVersion. %% Returns ResourceNotFoundException if the specified version does not exist. -spec delete_dataset(aws_client:aws_client(), binary() | list(), delete_dataset_request()) -> {ok, delete_dataset_response(), tuple()} | {error, any()} | {error, delete_dataset_errors(), tuple()}. delete_dataset(Client, DatasetId, Input) -> delete_dataset(Client, DatasetId, Input, []). -spec delete_dataset(aws_client:aws_client(), binary() | list(), delete_dataset_request(), proplists:proplist()) -> {ok, delete_dataset_response(), tuple()} | {error, any()} | {error, delete_dataset_errors(), tuple()}. delete_dataset(Client, DatasetId, Input0, Options0) -> Method = delete, Path = ["/datasets/", aws_util:encode_uri(DatasetId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"datasetVersion">>, <<"datasetVersion">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes specific examples by ID from DRAFT. %% %% **Validation:** All example IDs are validated before any deletes occur. If %% any ID %% does not exist in DRAFT, the entire batch is rejected with %% ResourceNotFoundException — %% no examples are deleted (all-or-nothing semantics). %% %% **Asynchronous:** Operates in-place on DRAFT. No version bump occurs. %% Use CreateDatasetVersion to publish DRAFT as a new numbered version. %% %% **State guard:** Returns ConflictException (DATASET_NOT_READY) if the %% dataset %% status is not in {DRAFT, ACTIVE}. -spec delete_dataset_examples(aws_client:aws_client(), binary() | list(), delete_dataset_examples_request()) -> {ok, delete_dataset_examples_response(), tuple()} | {error, any()} | {error, delete_dataset_examples_errors(), tuple()}. delete_dataset_examples(Client, DatasetId, Input) -> delete_dataset_examples(Client, DatasetId, Input, []). -spec delete_dataset_examples(aws_client:aws_client(), binary() | list(), delete_dataset_examples_request(), proplists:proplist()) -> {ok, delete_dataset_examples_response(), tuple()} | {error, any()} | {error, delete_dataset_examples_errors(), tuple()}. delete_dataset_examples(Client, DatasetId, Input0, Options0) -> Method = post, Path = ["/datasets/", aws_util:encode_uri(DatasetId), "/examples/delete"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a custom evaluator. %% %% Builtin evaluators cannot be deleted. The evaluator must not be referenced %% by any active online evaluation configurations. -spec delete_evaluator(aws_client:aws_client(), binary() | list(), delete_evaluator_request()) -> {ok, delete_evaluator_response(), tuple()} | {error, any()} | {error, delete_evaluator_errors(), tuple()}. delete_evaluator(Client, EvaluatorId, Input) -> delete_evaluator(Client, EvaluatorId, Input, []). -spec delete_evaluator(aws_client:aws_client(), binary() | list(), delete_evaluator_request(), proplists:proplist()) -> {ok, delete_evaluator_response(), tuple()} | {error, any()} | {error, delete_evaluator_errors(), tuple()}. delete_evaluator(Client, EvaluatorId, Input0, Options0) -> Method = delete, Path = ["/evaluators/", aws_util:encode_uri(EvaluatorId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a gateway. -spec delete_gateway(aws_client:aws_client(), binary() | list(), delete_gateway_request()) -> {ok, delete_gateway_response(), tuple()} | {error, any()} | {error, delete_gateway_errors(), tuple()}. delete_gateway(Client, GatewayIdentifier, Input) -> delete_gateway(Client, GatewayIdentifier, Input, []). -spec delete_gateway(aws_client:aws_client(), binary() | list(), delete_gateway_request(), proplists:proplist()) -> {ok, delete_gateway_response(), tuple()} | {error, any()} | {error, delete_gateway_errors(), tuple()}. delete_gateway(Client, GatewayIdentifier, Input0, Options0) -> Method = delete, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a gateway rule. -spec delete_gateway_rule(aws_client:aws_client(), binary() | list(), binary() | list(), delete_gateway_rule_request()) -> {ok, delete_gateway_rule_response(), tuple()} | {error, any()} | {error, delete_gateway_rule_errors(), tuple()}. delete_gateway_rule(Client, GatewayIdentifier, RuleId, Input) -> delete_gateway_rule(Client, GatewayIdentifier, RuleId, Input, []). -spec delete_gateway_rule(aws_client:aws_client(), binary() | list(), binary() | list(), delete_gateway_rule_request(), proplists:proplist()) -> {ok, delete_gateway_rule_response(), tuple()} | {error, any()} | {error, delete_gateway_rule_errors(), tuple()}. delete_gateway_rule(Client, GatewayIdentifier, RuleId, Input0, Options0) -> Method = delete, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/rules/", aws_util:encode_uri(RuleId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a gateway target. %% %% You cannot delete a target that is in a pending authorization state %% (`CREATE_PENDING_AUTH', `UPDATE_PENDING_AUTH', or %% `SYNCHRONIZE_PENDING_AUTH'). Wait for the authorization to complete or %% fail before deleting the target. -spec delete_gateway_target(aws_client:aws_client(), binary() | list(), binary() | list(), delete_gateway_target_request()) -> {ok, delete_gateway_target_response(), tuple()} | {error, any()} | {error, delete_gateway_target_errors(), tuple()}. delete_gateway_target(Client, GatewayIdentifier, TargetId, Input) -> delete_gateway_target(Client, GatewayIdentifier, TargetId, Input, []). -spec delete_gateway_target(aws_client:aws_client(), binary() | list(), binary() | list(), delete_gateway_target_request(), proplists:proplist()) -> {ok, delete_gateway_target_response(), tuple()} | {error, any()} | {error, delete_gateway_target_errors(), tuple()}. delete_gateway_target(Client, GatewayIdentifier, TargetId, Input0, Options0) -> Method = delete, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/targets/", aws_util:encode_uri(TargetId), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Operation to delete a Harness. -spec delete_harness(aws_client:aws_client(), binary() | list(), delete_harness_request()) -> {ok, delete_harness_response(), tuple()} | {error, any()} | {error, delete_harness_errors(), tuple()}. delete_harness(Client, HarnessId, Input) -> delete_harness(Client, HarnessId, Input, []). -spec delete_harness(aws_client:aws_client(), binary() | list(), delete_harness_request(), proplists:proplist()) -> {ok, delete_harness_response(), tuple()} | {error, any()} | {error, delete_harness_errors(), tuple()}. delete_harness(Client, HarnessId, Input0, Options0) -> Method = delete, Path = ["/harnesses/", aws_util:encode_uri(HarnessId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an Amazon Bedrock AgentCore Memory resource. -spec delete_memory(aws_client:aws_client(), binary() | list(), delete_memory_input()) -> {ok, delete_memory_output(), tuple()} | {error, any()} | {error, delete_memory_errors(), tuple()}. delete_memory(Client, MemoryId, Input) -> delete_memory(Client, MemoryId, Input, []). -spec delete_memory(aws_client:aws_client(), binary() | list(), delete_memory_input(), proplists:proplist()) -> {ok, delete_memory_output(), tuple()} | {error, any()} | {error, delete_memory_errors(), tuple()}. delete_memory(Client, MemoryId, Input0, Options0) -> Method = delete, Path = ["/memories/", aws_util:encode_uri(MemoryId), "/delete"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an OAuth2 credential provider. -spec delete_oauth2_credential_provider(aws_client:aws_client(), delete_oauth2_credential_provider_request()) -> {ok, delete_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, delete_oauth2_credential_provider_errors(), tuple()}. delete_oauth2_credential_provider(Client, Input) -> delete_oauth2_credential_provider(Client, Input, []). -spec delete_oauth2_credential_provider(aws_client:aws_client(), delete_oauth2_credential_provider_request(), proplists:proplist()) -> {ok, delete_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, delete_oauth2_credential_provider_errors(), tuple()}. delete_oauth2_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/DeleteOauth2CredentialProvider"], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an online evaluation configuration and stops any ongoing %% evaluation processes associated with it. -spec delete_online_evaluation_config(aws_client:aws_client(), binary() | list(), delete_online_evaluation_config_request()) -> {ok, delete_online_evaluation_config_response(), tuple()} | {error, any()} | {error, delete_online_evaluation_config_errors(), tuple()}. delete_online_evaluation_config(Client, OnlineEvaluationConfigId, Input) -> delete_online_evaluation_config(Client, OnlineEvaluationConfigId, Input, []). -spec delete_online_evaluation_config(aws_client:aws_client(), binary() | list(), delete_online_evaluation_config_request(), proplists:proplist()) -> {ok, delete_online_evaluation_config_response(), tuple()} | {error, any()} | {error, delete_online_evaluation_config_errors(), tuple()}. delete_online_evaluation_config(Client, OnlineEvaluationConfigId, Input0, Options0) -> Method = delete, Path = ["/online-evaluation-configs/", aws_util:encode_uri(OnlineEvaluationConfigId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a payment connector. -spec delete_payment_connector(aws_client:aws_client(), binary() | list(), binary() | list(), delete_payment_connector_request()) -> {ok, delete_payment_connector_response(), tuple()} | {error, any()} | {error, delete_payment_connector_errors(), tuple()}. delete_payment_connector(Client, PaymentConnectorId, PaymentManagerId, Input) -> delete_payment_connector(Client, PaymentConnectorId, PaymentManagerId, Input, []). -spec delete_payment_connector(aws_client:aws_client(), binary() | list(), binary() | list(), delete_payment_connector_request(), proplists:proplist()) -> {ok, delete_payment_connector_response(), tuple()} | {error, any()} | {error, delete_payment_connector_errors(), tuple()}. delete_payment_connector(Client, PaymentConnectorId, PaymentManagerId, Input0, Options0) -> Method = delete, Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), "/connectors/", aws_util:encode_uri(PaymentConnectorId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a payment credential provider and its associated stored %% credentials. -spec delete_payment_credential_provider(aws_client:aws_client(), delete_payment_credential_provider_request()) -> {ok, delete_payment_credential_provider_response(), tuple()} | {error, any()} | {error, delete_payment_credential_provider_errors(), tuple()}. delete_payment_credential_provider(Client, Input) -> delete_payment_credential_provider(Client, Input, []). -spec delete_payment_credential_provider(aws_client:aws_client(), delete_payment_credential_provider_request(), proplists:proplist()) -> {ok, delete_payment_credential_provider_response(), tuple()} | {error, any()} | {error, delete_payment_credential_provider_errors(), tuple()}. delete_payment_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/DeletePaymentCredentialProvider"], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a payment manager. %% %% All payment connectors associated with the payment manager must be deleted %% before the payment manager can be deleted. This operation initiates the %% deletion process asynchronously. -spec delete_payment_manager(aws_client:aws_client(), binary() | list(), delete_payment_manager_request()) -> {ok, delete_payment_manager_response(), tuple()} | {error, any()} | {error, delete_payment_manager_errors(), tuple()}. delete_payment_manager(Client, PaymentManagerId, Input) -> delete_payment_manager(Client, PaymentManagerId, Input, []). -spec delete_payment_manager(aws_client:aws_client(), binary() | list(), delete_payment_manager_request(), proplists:proplist()) -> {ok, delete_payment_manager_response(), tuple()} | {error, any()} | {error, delete_payment_manager_errors(), tuple()}. delete_payment_manager(Client, PaymentManagerId, Input0, Options0) -> Method = delete, Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"clientToken">>, <<"clientToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an existing policy from the AgentCore Policy system. %% %% Once deleted, the policy can no longer be used for agent behavior control %% and all references to it become invalid. This is an asynchronous %% operation. Use the `GetPolicy' operation to poll the `status' %% field to track completion. -spec delete_policy(aws_client:aws_client(), binary() | list(), binary() | list(), delete_policy_request()) -> {ok, delete_policy_response(), tuple()} | {error, any()} | {error, delete_policy_errors(), tuple()}. delete_policy(Client, PolicyEngineId, PolicyId, Input) -> delete_policy(Client, PolicyEngineId, PolicyId, Input, []). -spec delete_policy(aws_client:aws_client(), binary() | list(), binary() | list(), delete_policy_request(), proplists:proplist()) -> {ok, delete_policy_response(), tuple()} | {error, any()} | {error, delete_policy_errors(), tuple()}. delete_policy(Client, PolicyEngineId, PolicyId, Input0, Options0) -> Method = delete, Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policies/", aws_util:encode_uri(PolicyId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes an existing policy engine from the AgentCore Policy system. %% %% The policy engine must not have any associated policies before deletion. %% Once deleted, the policy engine and all its configurations become %% unavailable for policy management and evaluation. This is an asynchronous %% operation. Use the `GetPolicyEngine' operation to poll the %% `status' field to track completion. -spec delete_policy_engine(aws_client:aws_client(), binary() | list(), delete_policy_engine_request()) -> {ok, delete_policy_engine_response(), tuple()} | {error, any()} | {error, delete_policy_engine_errors(), tuple()}. delete_policy_engine(Client, PolicyEngineId, Input) -> delete_policy_engine(Client, PolicyEngineId, Input, []). -spec delete_policy_engine(aws_client:aws_client(), binary() | list(), delete_policy_engine_request(), proplists:proplist()) -> {ok, delete_policy_engine_response(), tuple()} | {error, any()} | {error, delete_policy_engine_errors(), tuple()}. delete_policy_engine(Client, PolicyEngineId, Input0, Options0) -> Method = delete, Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a registry. %% %% The registry must contain zero records before it can be deleted. This %% operation initiates the deletion process asynchronously. -spec delete_registry(aws_client:aws_client(), binary() | list(), delete_registry_request()) -> {ok, delete_registry_response(), tuple()} | {error, any()} | {error, delete_registry_errors(), tuple()}. delete_registry(Client, RegistryId, Input) -> delete_registry(Client, RegistryId, Input, []). -spec delete_registry(aws_client:aws_client(), binary() | list(), delete_registry_request(), proplists:proplist()) -> {ok, delete_registry_response(), tuple()} | {error, any()} | {error, delete_registry_errors(), tuple()}. delete_registry(Client, RegistryId, Input0, Options0) -> Method = delete, Path = ["/registries/", aws_util:encode_uri(RegistryId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a registry record. %% %% The record's status transitions to `DELETING' and the record is %% removed asynchronously. -spec delete_registry_record(aws_client:aws_client(), binary() | list(), binary() | list(), delete_registry_record_request()) -> {ok, delete_registry_record_response(), tuple()} | {error, any()} | {error, delete_registry_record_errors(), tuple()}. delete_registry_record(Client, RecordId, RegistryId, Input) -> delete_registry_record(Client, RecordId, RegistryId, Input, []). -spec delete_registry_record(aws_client:aws_client(), binary() | list(), binary() | list(), delete_registry_record_request(), proplists:proplist()) -> {ok, delete_registry_record_response(), tuple()} | {error, any()} | {error, delete_registry_record_errors(), tuple()}. delete_registry_record(Client, RecordId, RegistryId, Input0, Options0) -> Method = delete, Path = ["/registries/", aws_util:encode_uri(RegistryId), "/records/", aws_util:encode_uri(RecordId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes the resource-based policy for a specified resource. %% %% This feature is currently available only for AgentCore Runtime and %% Gateway. -spec delete_resource_policy(aws_client:aws_client(), binary() | list(), delete_resource_policy_request()) -> {ok, delete_resource_policy_response(), tuple()} | {error, any()} | {error, delete_resource_policy_errors(), tuple()}. delete_resource_policy(Client, ResourceArn, Input) -> delete_resource_policy(Client, ResourceArn, Input, []). -spec delete_resource_policy(aws_client:aws_client(), binary() | list(), delete_resource_policy_request(), proplists:proplist()) -> {ok, delete_resource_policy_response(), tuple()} | {error, any()} | {error, delete_resource_policy_errors(), tuple()}. delete_resource_policy(Client, ResourceArn, Input0, Options0) -> Method = delete, Path = ["/resourcepolicy/", aws_util:encode_uri(ResourceArn), ""], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Deletes a workload identity. -spec delete_workload_identity(aws_client:aws_client(), delete_workload_identity_request()) -> {ok, delete_workload_identity_response(), tuple()} | {error, any()} | {error, delete_workload_identity_errors(), tuple()}. delete_workload_identity(Client, Input) -> delete_workload_identity(Client, Input, []). -spec delete_workload_identity(aws_client:aws_client(), delete_workload_identity_request(), proplists:proplist()) -> {ok, delete_workload_identity_response(), tuple()} | {error, any()} | {error, delete_workload_identity_errors(), tuple()}. delete_workload_identity(Client, Input0, Options0) -> Method = post, Path = ["/identities/DeleteWorkloadIdentity"], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Gets an Amazon Bedrock AgentCore Runtime. -spec get_agent_runtime(aws_client:aws_client(), binary() | list()) -> {ok, get_agent_runtime_response(), tuple()} | {error, any()} | {error, get_agent_runtime_errors(), tuple()}. get_agent_runtime(Client, AgentRuntimeId) when is_map(Client) -> get_agent_runtime(Client, AgentRuntimeId, #{}, #{}). -spec get_agent_runtime(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_agent_runtime_response(), tuple()} | {error, any()} | {error, get_agent_runtime_errors(), tuple()}. get_agent_runtime(Client, AgentRuntimeId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_agent_runtime(Client, AgentRuntimeId, QueryMap, HeadersMap, []). -spec get_agent_runtime(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_agent_runtime_response(), tuple()} | {error, any()} | {error, get_agent_runtime_errors(), tuple()}. get_agent_runtime(Client, AgentRuntimeId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"version">>, maps:get(<<"version">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Gets information about an Amazon Secure AgentEndpoint. -spec get_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, get_agent_runtime_endpoint_errors(), tuple()}. get_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName) when is_map(Client) -> get_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, #{}, #{}). -spec get_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, get_agent_runtime_endpoint_errors(), tuple()}. get_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, QueryMap, HeadersMap, []). -spec get_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, get_agent_runtime_endpoint_errors(), tuple()}. get_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/runtime-endpoints/", aws_util:encode_uri(EndpointName), "/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about an API key credential provider. -spec get_api_key_credential_provider(aws_client:aws_client(), get_api_key_credential_provider_request()) -> {ok, get_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, get_api_key_credential_provider_errors(), tuple()}. get_api_key_credential_provider(Client, Input) -> get_api_key_credential_provider(Client, Input, []). -spec get_api_key_credential_provider(aws_client:aws_client(), get_api_key_credential_provider_request(), proplists:proplist()) -> {ok, get_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, get_api_key_credential_provider_errors(), tuple()}. get_api_key_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/GetApiKeyCredentialProvider"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Gets information about a custom browser. -spec get_browser(aws_client:aws_client(), binary() | list()) -> {ok, get_browser_response(), tuple()} | {error, any()} | {error, get_browser_errors(), tuple()}. get_browser(Client, BrowserId) when is_map(Client) -> get_browser(Client, BrowserId, #{}, #{}). -spec get_browser(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_browser_response(), tuple()} | {error, any()} | {error, get_browser_errors(), tuple()}. get_browser(Client, BrowserId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_browser(Client, BrowserId, QueryMap, HeadersMap, []). -spec get_browser(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_browser_response(), tuple()} | {error, any()} | {error, get_browser_errors(), tuple()}. get_browser(Client, BrowserId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/browsers/", aws_util:encode_uri(BrowserId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Gets information about a browser profile. -spec get_browser_profile(aws_client:aws_client(), binary() | list()) -> {ok, get_browser_profile_response(), tuple()} | {error, any()} | {error, get_browser_profile_errors(), tuple()}. get_browser_profile(Client, ProfileId) when is_map(Client) -> get_browser_profile(Client, ProfileId, #{}, #{}). -spec get_browser_profile(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_browser_profile_response(), tuple()} | {error, any()} | {error, get_browser_profile_errors(), tuple()}. get_browser_profile(Client, ProfileId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_browser_profile(Client, ProfileId, QueryMap, HeadersMap, []). -spec get_browser_profile(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_browser_profile_response(), tuple()} | {error, any()} | {error, get_browser_profile_errors(), tuple()}. get_browser_profile(Client, ProfileId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/browser-profiles/", aws_util:encode_uri(ProfileId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Gets information about a custom code interpreter. -spec get_code_interpreter(aws_client:aws_client(), binary() | list()) -> {ok, get_code_interpreter_response(), tuple()} | {error, any()} | {error, get_code_interpreter_errors(), tuple()}. get_code_interpreter(Client, CodeInterpreterId) when is_map(Client) -> get_code_interpreter(Client, CodeInterpreterId, #{}, #{}). -spec get_code_interpreter(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_code_interpreter_response(), tuple()} | {error, any()} | {error, get_code_interpreter_errors(), tuple()}. get_code_interpreter(Client, CodeInterpreterId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_code_interpreter(Client, CodeInterpreterId, QueryMap, HeadersMap, []). -spec get_code_interpreter(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_code_interpreter_response(), tuple()} | {error, any()} | {error, get_code_interpreter_errors(), tuple()}. get_code_interpreter(Client, CodeInterpreterId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/code-interpreters/", aws_util:encode_uri(CodeInterpreterId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Gets the latest version of a configuration bundle. %% %% By default, returns the latest version on the mainline branch. Use %% `GetConfigurationBundleVersion' to retrieve a specific historical %% version. -spec get_configuration_bundle(aws_client:aws_client(), binary() | list()) -> {ok, get_configuration_bundle_response(), tuple()} | {error, any()} | {error, get_configuration_bundle_errors(), tuple()}. get_configuration_bundle(Client, BundleId) when is_map(Client) -> get_configuration_bundle(Client, BundleId, #{}, #{}). -spec get_configuration_bundle(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_configuration_bundle_response(), tuple()} | {error, any()} | {error, get_configuration_bundle_errors(), tuple()}. get_configuration_bundle(Client, BundleId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_configuration_bundle(Client, BundleId, QueryMap, HeadersMap, []). -spec get_configuration_bundle(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_configuration_bundle_response(), tuple()} | {error, any()} | {error, get_configuration_bundle_errors(), tuple()}. get_configuration_bundle(Client, BundleId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/configuration-bundles/", aws_util:encode_uri(BundleId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"branchName">>, maps:get(<<"branchName">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Gets a specific version of a configuration bundle by its version %% identifier. -spec get_configuration_bundle_version(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_configuration_bundle_version_response(), tuple()} | {error, any()} | {error, get_configuration_bundle_version_errors(), tuple()}. get_configuration_bundle_version(Client, BundleId, VersionId) when is_map(Client) -> get_configuration_bundle_version(Client, BundleId, VersionId, #{}, #{}). -spec get_configuration_bundle_version(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_configuration_bundle_version_response(), tuple()} | {error, any()} | {error, get_configuration_bundle_version_errors(), tuple()}. get_configuration_bundle_version(Client, BundleId, VersionId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_configuration_bundle_version(Client, BundleId, VersionId, QueryMap, HeadersMap, []). -spec get_configuration_bundle_version(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_configuration_bundle_version_response(), tuple()} | {error, any()} | {error, get_configuration_bundle_version_errors(), tuple()}. get_configuration_bundle_version(Client, BundleId, VersionId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/configuration-bundles/", aws_util:encode_uri(BundleId), "/versions/", aws_util:encode_uri(VersionId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves dataset metadata only. %% %% Use `?datasetVersion=DRAFT` or `?datasetVersion=N` to retrieve a specific %% version's metadata. %% If absent, defaults to DRAFT (the mutable working copy). %% Returns ResourceNotFoundException if the specified version is not found. %% %% **Initial state after CreateDataset:** When CreateDataset completes %% successfully %% (status transitions to ACTIVE), only a DRAFT working copy exists. No %% published %% versions exist until CreateDatasetVersion is called. At this point %% draftStatus is %% MODIFIED because the DRAFT has content that has never been published. %% %% **Default version behavior:** When `datasetVersion' is omitted, the %% operation %% returns the DRAFT working copy. To retrieve a specific published version, %% pass %% the version number as a string (e.g. `?datasetVersion=1'). %% %% **State guard:** Allowed for all statuses including DELETING. Returns the %% dataset %% record with its current status so callers can observe the deletion in %% progress. %% %% For paginated example IDs use ListDatasetExamples. -spec get_dataset(aws_client:aws_client(), binary() | list()) -> {ok, get_dataset_response(), tuple()} | {error, any()} | {error, get_dataset_errors(), tuple()}. get_dataset(Client, DatasetId) when is_map(Client) -> get_dataset(Client, DatasetId, #{}, #{}). -spec get_dataset(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_dataset_response(), tuple()} | {error, any()} | {error, get_dataset_errors(), tuple()}. get_dataset(Client, DatasetId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_dataset(Client, DatasetId, QueryMap, HeadersMap, []). -spec get_dataset(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_dataset_response(), tuple()} | {error, any()} | {error, get_dataset_errors(), tuple()}. get_dataset(Client, DatasetId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/datasets/", aws_util:encode_uri(DatasetId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"datasetVersion">>, maps:get(<<"datasetVersion">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves detailed information about an evaluator, including its %% configuration, status, and metadata. %% %% Works with both built-in and custom evaluators. -spec get_evaluator(aws_client:aws_client(), binary() | list()) -> {ok, get_evaluator_response(), tuple()} | {error, any()} | {error, get_evaluator_errors(), tuple()}. get_evaluator(Client, EvaluatorId) when is_map(Client) -> get_evaluator(Client, EvaluatorId, #{}, #{}). -spec get_evaluator(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_evaluator_response(), tuple()} | {error, any()} | {error, get_evaluator_errors(), tuple()}. get_evaluator(Client, EvaluatorId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_evaluator(Client, EvaluatorId, QueryMap, HeadersMap, []). -spec get_evaluator(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_evaluator_response(), tuple()} | {error, any()} | {error, get_evaluator_errors(), tuple()}. get_evaluator(Client, EvaluatorId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/evaluators/", aws_util:encode_uri(EvaluatorId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"includedData">>, maps:get(<<"includedData">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a specific Gateway. -spec get_gateway(aws_client:aws_client(), binary() | list()) -> {ok, get_gateway_response(), tuple()} | {error, any()} | {error, get_gateway_errors(), tuple()}. get_gateway(Client, GatewayIdentifier) when is_map(Client) -> get_gateway(Client, GatewayIdentifier, #{}, #{}). -spec get_gateway(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_gateway_response(), tuple()} | {error, any()} | {error, get_gateway_errors(), tuple()}. get_gateway(Client, GatewayIdentifier, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_gateway(Client, GatewayIdentifier, QueryMap, HeadersMap, []). -spec get_gateway(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_gateway_response(), tuple()} | {error, any()} | {error, get_gateway_errors(), tuple()}. get_gateway(Client, GatewayIdentifier, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves detailed information about a specific gateway rule. -spec get_gateway_rule(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_gateway_rule_response(), tuple()} | {error, any()} | {error, get_gateway_rule_errors(), tuple()}. get_gateway_rule(Client, GatewayIdentifier, RuleId) when is_map(Client) -> get_gateway_rule(Client, GatewayIdentifier, RuleId, #{}, #{}). -spec get_gateway_rule(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_gateway_rule_response(), tuple()} | {error, any()} | {error, get_gateway_rule_errors(), tuple()}. get_gateway_rule(Client, GatewayIdentifier, RuleId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_gateway_rule(Client, GatewayIdentifier, RuleId, QueryMap, HeadersMap, []). -spec get_gateway_rule(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_gateway_rule_response(), tuple()} | {error, any()} | {error, get_gateway_rule_errors(), tuple()}. get_gateway_rule(Client, GatewayIdentifier, RuleId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/rules/", aws_util:encode_uri(RuleId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a specific gateway target. -spec get_gateway_target(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_gateway_target_response(), tuple()} | {error, any()} | {error, get_gateway_target_errors(), tuple()}. get_gateway_target(Client, GatewayIdentifier, TargetId) when is_map(Client) -> get_gateway_target(Client, GatewayIdentifier, TargetId, #{}, #{}). -spec get_gateway_target(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_gateway_target_response(), tuple()} | {error, any()} | {error, get_gateway_target_errors(), tuple()}. get_gateway_target(Client, GatewayIdentifier, TargetId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_gateway_target(Client, GatewayIdentifier, TargetId, QueryMap, HeadersMap, []). -spec get_gateway_target(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_gateway_target_response(), tuple()} | {error, any()} | {error, get_gateway_target_errors(), tuple()}. get_gateway_target(Client, GatewayIdentifier, TargetId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/targets/", aws_util:encode_uri(TargetId), "/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Operation to get a single Harness. -spec get_harness(aws_client:aws_client(), binary() | list()) -> {ok, get_harness_response(), tuple()} | {error, any()} | {error, get_harness_errors(), tuple()}. get_harness(Client, HarnessId) when is_map(Client) -> get_harness(Client, HarnessId, #{}, #{}). -spec get_harness(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_harness_response(), tuple()} | {error, any()} | {error, get_harness_errors(), tuple()}. get_harness(Client, HarnessId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_harness(Client, HarnessId, QueryMap, HeadersMap, []). -spec get_harness(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_harness_response(), tuple()} | {error, any()} | {error, get_harness_errors(), tuple()}. get_harness(Client, HarnessId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/harnesses/", aws_util:encode_uri(HarnessId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieve an existing Amazon Bedrock AgentCore Memory resource. -spec get_memory(aws_client:aws_client(), binary() | list()) -> {ok, get_memory_output(), tuple()} | {error, any()} | {error, get_memory_errors(), tuple()}. get_memory(Client, MemoryId) when is_map(Client) -> get_memory(Client, MemoryId, #{}, #{}). -spec get_memory(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_memory_output(), tuple()} | {error, any()} | {error, get_memory_errors(), tuple()}. get_memory(Client, MemoryId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_memory(Client, MemoryId, QueryMap, HeadersMap, []). -spec get_memory(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_memory_output(), tuple()} | {error, any()} | {error, get_memory_errors(), tuple()}. get_memory(Client, MemoryId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/memories/", aws_util:encode_uri(MemoryId), "/details"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"view">>, maps:get(<<"view">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about an OAuth2 credential provider. -spec get_oauth2_credential_provider(aws_client:aws_client(), get_oauth2_credential_provider_request()) -> {ok, get_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, get_oauth2_credential_provider_errors(), tuple()}. get_oauth2_credential_provider(Client, Input) -> get_oauth2_credential_provider(Client, Input, []). -spec get_oauth2_credential_provider(aws_client:aws_client(), get_oauth2_credential_provider_request(), proplists:proplist()) -> {ok, get_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, get_oauth2_credential_provider_errors(), tuple()}. get_oauth2_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/GetOauth2CredentialProvider"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves detailed information about an online evaluation %% configuration, including its rules, data sources, evaluators, and %% execution status. -spec get_online_evaluation_config(aws_client:aws_client(), binary() | list()) -> {ok, get_online_evaluation_config_response(), tuple()} | {error, any()} | {error, get_online_evaluation_config_errors(), tuple()}. get_online_evaluation_config(Client, OnlineEvaluationConfigId) when is_map(Client) -> get_online_evaluation_config(Client, OnlineEvaluationConfigId, #{}, #{}). -spec get_online_evaluation_config(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_online_evaluation_config_response(), tuple()} | {error, any()} | {error, get_online_evaluation_config_errors(), tuple()}. get_online_evaluation_config(Client, OnlineEvaluationConfigId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_online_evaluation_config(Client, OnlineEvaluationConfigId, QueryMap, HeadersMap, []). -spec get_online_evaluation_config(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_online_evaluation_config_response(), tuple()} | {error, any()} | {error, get_online_evaluation_config_errors(), tuple()}. get_online_evaluation_config(Client, OnlineEvaluationConfigId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/online-evaluation-configs/", aws_util:encode_uri(OnlineEvaluationConfigId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a specific payment connector. -spec get_payment_connector(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_payment_connector_response(), tuple()} | {error, any()} | {error, get_payment_connector_errors(), tuple()}. get_payment_connector(Client, PaymentConnectorId, PaymentManagerId) when is_map(Client) -> get_payment_connector(Client, PaymentConnectorId, PaymentManagerId, #{}, #{}). -spec get_payment_connector(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_payment_connector_response(), tuple()} | {error, any()} | {error, get_payment_connector_errors(), tuple()}. get_payment_connector(Client, PaymentConnectorId, PaymentManagerId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_payment_connector(Client, PaymentConnectorId, PaymentManagerId, QueryMap, HeadersMap, []). -spec get_payment_connector(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_payment_connector_response(), tuple()} | {error, any()} | {error, get_payment_connector_errors(), tuple()}. get_payment_connector(Client, PaymentConnectorId, PaymentManagerId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), "/connectors/", aws_util:encode_uri(PaymentConnectorId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a specific payment credential provider. -spec get_payment_credential_provider(aws_client:aws_client(), get_payment_credential_provider_request()) -> {ok, get_payment_credential_provider_response(), tuple()} | {error, any()} | {error, get_payment_credential_provider_errors(), tuple()}. get_payment_credential_provider(Client, Input) -> get_payment_credential_provider(Client, Input, []). -spec get_payment_credential_provider(aws_client:aws_client(), get_payment_credential_provider_request(), proplists:proplist()) -> {ok, get_payment_credential_provider_response(), tuple()} | {error, any()} | {error, get_payment_credential_provider_errors(), tuple()}. get_payment_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/GetPaymentCredentialProvider"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves information about a specific payment manager. -spec get_payment_manager(aws_client:aws_client(), binary() | list()) -> {ok, get_payment_manager_response(), tuple()} | {error, any()} | {error, get_payment_manager_errors(), tuple()}. get_payment_manager(Client, PaymentManagerId) when is_map(Client) -> get_payment_manager(Client, PaymentManagerId, #{}, #{}). -spec get_payment_manager(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_payment_manager_response(), tuple()} | {error, any()} | {error, get_payment_manager_errors(), tuple()}. get_payment_manager(Client, PaymentManagerId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_payment_manager(Client, PaymentManagerId, QueryMap, HeadersMap, []). -spec get_payment_manager(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_payment_manager_response(), tuple()} | {error, any()} | {error, get_payment_manager_errors(), tuple()}. get_payment_manager(Client, PaymentManagerId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves detailed information about a specific policy within the %% AgentCore Policy system. %% %% This operation returns the complete policy definition, metadata, and %% current status, allowing administrators to review and manage policy %% configurations. -spec get_policy(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_policy_response(), tuple()} | {error, any()} | {error, get_policy_errors(), tuple()}. get_policy(Client, PolicyEngineId, PolicyId) when is_map(Client) -> get_policy(Client, PolicyEngineId, PolicyId, #{}, #{}). -spec get_policy(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_policy_response(), tuple()} | {error, any()} | {error, get_policy_errors(), tuple()}. get_policy(Client, PolicyEngineId, PolicyId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_policy(Client, PolicyEngineId, PolicyId, QueryMap, HeadersMap, []). -spec get_policy(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_policy_response(), tuple()} | {error, any()} | {error, get_policy_errors(), tuple()}. get_policy(Client, PolicyEngineId, PolicyId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policies/", aws_util:encode_uri(PolicyId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves detailed information about a specific policy engine within %% the AgentCore Policy system. %% %% This operation returns the complete policy engine configuration, metadata, %% and current status, allowing administrators to review and manage policy %% engine settings. -spec get_policy_engine(aws_client:aws_client(), binary() | list()) -> {ok, get_policy_engine_response(), tuple()} | {error, any()} | {error, get_policy_engine_errors(), tuple()}. get_policy_engine(Client, PolicyEngineId) when is_map(Client) -> get_policy_engine(Client, PolicyEngineId, #{}, #{}). -spec get_policy_engine(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_policy_engine_response(), tuple()} | {error, any()} | {error, get_policy_engine_errors(), tuple()}. get_policy_engine(Client, PolicyEngineId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_policy_engine(Client, PolicyEngineId, QueryMap, HeadersMap, []). -spec get_policy_engine(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_policy_engine_response(), tuple()} | {error, any()} | {error, get_policy_engine_errors(), tuple()}. get_policy_engine(Client, PolicyEngineId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a metadata-only summary of a specific policy engine without %% decrypting customer content. %% %% This lightweight read operation returns resource identifiers, status, %% timestamps, and the encryption key ARN, but does not include the %% description or status reasons. Because this operation does not require %% access to the customer's KMS key, it is suitable for resource %% discovery, inventory, and integration scenarios where only metadata is %% needed. -spec get_policy_engine_summary(aws_client:aws_client(), binary() | list()) -> {ok, get_policy_engine_summary_response(), tuple()} | {error, any()} | {error, get_policy_engine_summary_errors(), tuple()}. get_policy_engine_summary(Client, PolicyEngineId) when is_map(Client) -> get_policy_engine_summary(Client, PolicyEngineId, #{}, #{}). -spec get_policy_engine_summary(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_policy_engine_summary_response(), tuple()} | {error, any()} | {error, get_policy_engine_summary_errors(), tuple()}. get_policy_engine_summary(Client, PolicyEngineId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_policy_engine_summary(Client, PolicyEngineId, QueryMap, HeadersMap, []). -spec get_policy_engine_summary(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_policy_engine_summary_response(), tuple()} | {error, any()} | {error, get_policy_engine_summary_errors(), tuple()}. get_policy_engine_summary(Client, PolicyEngineId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engine-summaries/", aws_util:encode_uri(PolicyEngineId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a policy generation request within the %% AgentCore Policy system. %% %% Policy generation converts natural language descriptions into Cedar policy %% statements using AI-powered translation, enabling non-technical users to %% create policies. -spec get_policy_generation(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_policy_generation_response(), tuple()} | {error, any()} | {error, get_policy_generation_errors(), tuple()}. get_policy_generation(Client, PolicyEngineId, PolicyGenerationId) when is_map(Client) -> get_policy_generation(Client, PolicyEngineId, PolicyGenerationId, #{}, #{}). -spec get_policy_generation(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_policy_generation_response(), tuple()} | {error, any()} | {error, get_policy_generation_errors(), tuple()}. get_policy_generation(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_policy_generation(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap, []). -spec get_policy_generation(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_policy_generation_response(), tuple()} | {error, any()} | {error, get_policy_generation_errors(), tuple()}. get_policy_generation(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-generations/", aws_util:encode_uri(PolicyGenerationId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a metadata-only summary of a specific policy generation %% request without decrypting customer content. %% %% This lightweight read operation returns resource identifiers, status, %% timestamps, and findings, but does not include status reasons. Because %% this operation does not require access to the customer's KMS key, it %% is suitable for resource discovery, inventory, and integration scenarios %% where only metadata is needed. -spec get_policy_generation_summary(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_policy_generation_summary_response(), tuple()} | {error, any()} | {error, get_policy_generation_summary_errors(), tuple()}. get_policy_generation_summary(Client, PolicyEngineId, PolicyGenerationId) when is_map(Client) -> get_policy_generation_summary(Client, PolicyEngineId, PolicyGenerationId, #{}, #{}). -spec get_policy_generation_summary(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_policy_generation_summary_response(), tuple()} | {error, any()} | {error, get_policy_generation_summary_errors(), tuple()}. get_policy_generation_summary(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_policy_generation_summary(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap, []). -spec get_policy_generation_summary(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_policy_generation_summary_response(), tuple()} | {error, any()} | {error, get_policy_generation_summary_errors(), tuple()}. get_policy_generation_summary(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-generation-summaries/", aws_util:encode_uri(PolicyGenerationId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a metadata-only summary of a specific policy without %% decrypting customer content. %% %% This lightweight read operation returns resource identifiers, status, and %% timestamps, but does not include the policy definition, description, or %% status reasons. Because this operation does not require access to the %% customer's KMS key, it is suitable for resource discovery, inventory, %% and integration scenarios where only metadata is needed. -spec get_policy_summary(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_policy_summary_response(), tuple()} | {error, any()} | {error, get_policy_summary_errors(), tuple()}. get_policy_summary(Client, PolicyEngineId, PolicyId) when is_map(Client) -> get_policy_summary(Client, PolicyEngineId, PolicyId, #{}, #{}). -spec get_policy_summary(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_policy_summary_response(), tuple()} | {error, any()} | {error, get_policy_summary_errors(), tuple()}. get_policy_summary(Client, PolicyEngineId, PolicyId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_policy_summary(Client, PolicyEngineId, PolicyId, QueryMap, HeadersMap, []). -spec get_policy_summary(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_policy_summary_response(), tuple()} | {error, any()} | {error, get_policy_summary_errors(), tuple()}. get_policy_summary(Client, PolicyEngineId, PolicyId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-summaries/", aws_util:encode_uri(PolicyId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a specific registry. -spec get_registry(aws_client:aws_client(), binary() | list()) -> {ok, get_registry_response(), tuple()} | {error, any()} | {error, get_registry_errors(), tuple()}. get_registry(Client, RegistryId) when is_map(Client) -> get_registry(Client, RegistryId, #{}, #{}). -spec get_registry(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_registry_response(), tuple()} | {error, any()} | {error, get_registry_errors(), tuple()}. get_registry(Client, RegistryId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_registry(Client, RegistryId, QueryMap, HeadersMap, []). -spec get_registry(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_registry_response(), tuple()} | {error, any()} | {error, get_registry_errors(), tuple()}. get_registry(Client, RegistryId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/registries/", aws_util:encode_uri(RegistryId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a specific registry record. -spec get_registry_record(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, get_registry_record_response(), tuple()} | {error, any()} | {error, get_registry_record_errors(), tuple()}. get_registry_record(Client, RecordId, RegistryId) when is_map(Client) -> get_registry_record(Client, RecordId, RegistryId, #{}, #{}). -spec get_registry_record(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, get_registry_record_response(), tuple()} | {error, any()} | {error, get_registry_record_errors(), tuple()}. get_registry_record(Client, RecordId, RegistryId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_registry_record(Client, RecordId, RegistryId, QueryMap, HeadersMap, []). -spec get_registry_record(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_registry_record_response(), tuple()} | {error, any()} | {error, get_registry_record_errors(), tuple()}. get_registry_record(Client, RecordId, RegistryId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/registries/", aws_util:encode_uri(RegistryId), "/records/", aws_util:encode_uri(RecordId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves the resource-based policy for a specified resource. %% %% This feature is currently available only for AgentCore Runtime and %% Gateway. -spec get_resource_policy(aws_client:aws_client(), binary() | list()) -> {ok, get_resource_policy_response(), tuple()} | {error, any()} | {error, get_resource_policy_errors(), tuple()}. get_resource_policy(Client, ResourceArn) when is_map(Client) -> get_resource_policy(Client, ResourceArn, #{}, #{}). -spec get_resource_policy(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, get_resource_policy_response(), tuple()} | {error, any()} | {error, get_resource_policy_errors(), tuple()}. get_resource_policy(Client, ResourceArn, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> get_resource_policy(Client, ResourceArn, QueryMap, HeadersMap, []). -spec get_resource_policy(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, get_resource_policy_response(), tuple()} | {error, any()} | {error, get_resource_policy_errors(), tuple()}. get_resource_policy(Client, ResourceArn, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/resourcepolicy/", aws_util:encode_uri(ResourceArn), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves information about a token vault. -spec get_token_vault(aws_client:aws_client(), get_token_vault_request()) -> {ok, get_token_vault_response(), tuple()} | {error, any()} | {error, get_token_vault_errors(), tuple()}. get_token_vault(Client, Input) -> get_token_vault(Client, Input, []). -spec get_token_vault(aws_client:aws_client(), get_token_vault_request(), proplists:proplist()) -> {ok, get_token_vault_response(), tuple()} | {error, any()} | {error, get_token_vault_errors(), tuple()}. get_token_vault(Client, Input0, Options0) -> Method = post, Path = ["/identities/get-token-vault"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves information about a workload identity. -spec get_workload_identity(aws_client:aws_client(), get_workload_identity_request()) -> {ok, get_workload_identity_response(), tuple()} | {error, any()} | {error, get_workload_identity_errors(), tuple()}. get_workload_identity(Client, Input) -> get_workload_identity(Client, Input, []). -spec get_workload_identity(aws_client:aws_client(), get_workload_identity_request(), proplists:proplist()) -> {ok, get_workload_identity_response(), tuple()} | {error, any()} | {error, get_workload_identity_errors(), tuple()}. get_workload_identity(Client, Input0, Options0) -> Method = post, Path = ["/identities/GetWorkloadIdentity"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all endpoints for a specific Amazon Secure Agent. -spec list_agent_runtime_endpoints(aws_client:aws_client(), binary() | list(), list_agent_runtime_endpoints_request()) -> {ok, list_agent_runtime_endpoints_response(), tuple()} | {error, any()} | {error, list_agent_runtime_endpoints_errors(), tuple()}. list_agent_runtime_endpoints(Client, AgentRuntimeId, Input) -> list_agent_runtime_endpoints(Client, AgentRuntimeId, Input, []). -spec list_agent_runtime_endpoints(aws_client:aws_client(), binary() | list(), list_agent_runtime_endpoints_request(), proplists:proplist()) -> {ok, list_agent_runtime_endpoints_response(), tuple()} | {error, any()} | {error, list_agent_runtime_endpoints_errors(), tuple()}. list_agent_runtime_endpoints(Client, AgentRuntimeId, Input0, Options0) -> Method = post, Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/runtime-endpoints/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all versions of a specific Amazon Secure Agent. -spec list_agent_runtime_versions(aws_client:aws_client(), binary() | list(), list_agent_runtime_versions_request()) -> {ok, list_agent_runtime_versions_response(), tuple()} | {error, any()} | {error, list_agent_runtime_versions_errors(), tuple()}. list_agent_runtime_versions(Client, AgentRuntimeId, Input) -> list_agent_runtime_versions(Client, AgentRuntimeId, Input, []). -spec list_agent_runtime_versions(aws_client:aws_client(), binary() | list(), list_agent_runtime_versions_request(), proplists:proplist()) -> {ok, list_agent_runtime_versions_response(), tuple()} | {error, any()} | {error, list_agent_runtime_versions_errors(), tuple()}. list_agent_runtime_versions(Client, AgentRuntimeId, Input0, Options0) -> Method = post, Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/versions/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all Amazon Secure Agents in your account. -spec list_agent_runtimes(aws_client:aws_client(), list_agent_runtimes_request()) -> {ok, list_agent_runtimes_response(), tuple()} | {error, any()} | {error, list_agent_runtimes_errors(), tuple()}. list_agent_runtimes(Client, Input) -> list_agent_runtimes(Client, Input, []). -spec list_agent_runtimes(aws_client:aws_client(), list_agent_runtimes_request(), proplists:proplist()) -> {ok, list_agent_runtimes_response(), tuple()} | {error, any()} | {error, list_agent_runtimes_errors(), tuple()}. list_agent_runtimes(Client, Input0, Options0) -> Method = post, Path = ["/runtimes/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all API key credential providers in your account. -spec list_api_key_credential_providers(aws_client:aws_client(), list_api_key_credential_providers_request()) -> {ok, list_api_key_credential_providers_response(), tuple()} | {error, any()} | {error, list_api_key_credential_providers_errors(), tuple()}. list_api_key_credential_providers(Client, Input) -> list_api_key_credential_providers(Client, Input, []). -spec list_api_key_credential_providers(aws_client:aws_client(), list_api_key_credential_providers_request(), proplists:proplist()) -> {ok, list_api_key_credential_providers_response(), tuple()} | {error, any()} | {error, list_api_key_credential_providers_errors(), tuple()}. list_api_key_credential_providers(Client, Input0, Options0) -> Method = post, Path = ["/identities/ListApiKeyCredentialProviders"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all browser profiles in your account. -spec list_browser_profiles(aws_client:aws_client(), list_browser_profiles_request()) -> {ok, list_browser_profiles_response(), tuple()} | {error, any()} | {error, list_browser_profiles_errors(), tuple()}. list_browser_profiles(Client, Input) -> list_browser_profiles(Client, Input, []). -spec list_browser_profiles(aws_client:aws_client(), list_browser_profiles_request(), proplists:proplist()) -> {ok, list_browser_profiles_response(), tuple()} | {error, any()} | {error, list_browser_profiles_errors(), tuple()}. list_browser_profiles(Client, Input0, Options0) -> Method = post, Path = ["/browser-profiles"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all custom browsers in your account. -spec list_browsers(aws_client:aws_client(), list_browsers_request()) -> {ok, list_browsers_response(), tuple()} | {error, any()} | {error, list_browsers_errors(), tuple()}. list_browsers(Client, Input) -> list_browsers(Client, Input, []). -spec list_browsers(aws_client:aws_client(), list_browsers_request(), proplists:proplist()) -> {ok, list_browsers_response(), tuple()} | {error, any()} | {error, list_browsers_errors(), tuple()}. list_browsers(Client, Input0, Options0) -> Method = post, Path = ["/browsers"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>}, {<<"type">>, <<"type">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all custom code interpreters in your account. -spec list_code_interpreters(aws_client:aws_client(), list_code_interpreters_request()) -> {ok, list_code_interpreters_response(), tuple()} | {error, any()} | {error, list_code_interpreters_errors(), tuple()}. list_code_interpreters(Client, Input) -> list_code_interpreters(Client, Input, []). -spec list_code_interpreters(aws_client:aws_client(), list_code_interpreters_request(), proplists:proplist()) -> {ok, list_code_interpreters_response(), tuple()} | {error, any()} | {error, list_code_interpreters_errors(), tuple()}. list_code_interpreters(Client, Input0, Options0) -> Method = post, Path = ["/code-interpreters"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>}, {<<"type">>, <<"type">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all versions of a configuration bundle, with optional filtering %% by branch name or creation source. -spec list_configuration_bundle_versions(aws_client:aws_client(), binary() | list(), list_configuration_bundle_versions_request()) -> {ok, list_configuration_bundle_versions_response(), tuple()} | {error, any()} | {error, list_configuration_bundle_versions_errors(), tuple()}. list_configuration_bundle_versions(Client, BundleId, Input) -> list_configuration_bundle_versions(Client, BundleId, Input, []). -spec list_configuration_bundle_versions(aws_client:aws_client(), binary() | list(), list_configuration_bundle_versions_request(), proplists:proplist()) -> {ok, list_configuration_bundle_versions_response(), tuple()} | {error, any()} | {error, list_configuration_bundle_versions_errors(), tuple()}. list_configuration_bundle_versions(Client, BundleId, Input0, Options0) -> Method = post, Path = ["/configuration-bundles/", aws_util:encode_uri(BundleId), "/versions"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all configuration bundles in the account. -spec list_configuration_bundles(aws_client:aws_client(), list_configuration_bundles_request()) -> {ok, list_configuration_bundles_response(), tuple()} | {error, any()} | {error, list_configuration_bundles_errors(), tuple()}. list_configuration_bundles(Client, Input) -> list_configuration_bundles(Client, Input, []). -spec list_configuration_bundles(aws_client:aws_client(), list_configuration_bundles_request(), proplists:proplist()) -> {ok, list_configuration_bundles_response(), tuple()} | {error, any()} | {error, list_configuration_bundles_errors(), tuple()}. list_configuration_bundles(Client, Input0, Options0) -> Method = post, Path = ["/configuration-bundles"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Returns paginated examples from the dataset. %% %% **Version-pinned pagination:** The server embeds the resolved version in %% the `nextToken'. %% Once pagination begins, all subsequent pages are pinned to that version %% regardless of %% concurrent mutations or whether `datasetVersion' is passed on subsequent %% requests. The `datasetVersion' %% query parameter is only used for the first request (when `nextToken' is %% absent); if omitted, %% defaults to DRAFT. %% %% **State guard:** Allowed for all statuses including DELETING. -spec list_dataset_examples(aws_client:aws_client(), binary() | list()) -> {ok, list_dataset_examples_response(), tuple()} | {error, any()} | {error, list_dataset_examples_errors(), tuple()}. list_dataset_examples(Client, DatasetId) when is_map(Client) -> list_dataset_examples(Client, DatasetId, #{}, #{}). -spec list_dataset_examples(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_dataset_examples_response(), tuple()} | {error, any()} | {error, list_dataset_examples_errors(), tuple()}. list_dataset_examples(Client, DatasetId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_dataset_examples(Client, DatasetId, QueryMap, HeadersMap, []). -spec list_dataset_examples(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_dataset_examples_response(), tuple()} | {error, any()} | {error, list_dataset_examples_errors(), tuple()}. list_dataset_examples(Client, DatasetId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/datasets/", aws_util:encode_uri(DatasetId), "/examples"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"datasetVersion">>, maps:get(<<"datasetVersion">>, QueryMap, undefined)}, {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists all published versions of a dataset, sorted by version number %% descending %% (newest first). %% %% Does not include the DRAFT working copy. %% %% **State guard:** Allowed for all statuses including DELETING. -spec list_dataset_versions(aws_client:aws_client(), binary() | list()) -> {ok, list_dataset_versions_response(), tuple()} | {error, any()} | {error, list_dataset_versions_errors(), tuple()}. list_dataset_versions(Client, DatasetId) when is_map(Client) -> list_dataset_versions(Client, DatasetId, #{}, #{}). -spec list_dataset_versions(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_dataset_versions_response(), tuple()} | {error, any()} | {error, list_dataset_versions_errors(), tuple()}. list_dataset_versions(Client, DatasetId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_dataset_versions(Client, DatasetId, QueryMap, HeadersMap, []). -spec list_dataset_versions(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_dataset_versions_response(), tuple()} | {error, any()} | {error, list_dataset_versions_errors(), tuple()}. list_dataset_versions(Client, DatasetId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/datasets/", aws_util:encode_uri(DatasetId), "/versions"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists all datasets in the caller's account, paginated. %% %% No presigned URLs in list results. -spec list_datasets(aws_client:aws_client()) -> {ok, list_datasets_response(), tuple()} | {error, any()} | {error, list_datasets_errors(), tuple()}. list_datasets(Client) when is_map(Client) -> list_datasets(Client, #{}, #{}). -spec list_datasets(aws_client:aws_client(), map(), map()) -> {ok, list_datasets_response(), tuple()} | {error, any()} | {error, list_datasets_errors(), tuple()}. list_datasets(Client, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_datasets(Client, QueryMap, HeadersMap, []). -spec list_datasets(aws_client:aws_client(), map(), map(), proplists:proplist()) -> {ok, list_datasets_response(), tuple()} | {error, any()} | {error, list_datasets_errors(), tuple()}. list_datasets(Client, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/datasets"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists all available evaluators, including both builtin evaluators %% provided by the service and custom evaluators created by the user. -spec list_evaluators(aws_client:aws_client(), list_evaluators_request()) -> {ok, list_evaluators_response(), tuple()} | {error, any()} | {error, list_evaluators_errors(), tuple()}. list_evaluators(Client, Input) -> list_evaluators(Client, Input, []). -spec list_evaluators(aws_client:aws_client(), list_evaluators_request(), proplists:proplist()) -> {ok, list_evaluators_response(), tuple()} | {error, any()} | {error, list_evaluators_errors(), tuple()}. list_evaluators(Client, Input0, Options0) -> Method = post, Path = ["/evaluators"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all rules for a gateway. -spec list_gateway_rules(aws_client:aws_client(), binary() | list()) -> {ok, list_gateway_rules_response(), tuple()} | {error, any()} | {error, list_gateway_rules_errors(), tuple()}. list_gateway_rules(Client, GatewayIdentifier) when is_map(Client) -> list_gateway_rules(Client, GatewayIdentifier, #{}, #{}). -spec list_gateway_rules(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_gateway_rules_response(), tuple()} | {error, any()} | {error, list_gateway_rules_errors(), tuple()}. list_gateway_rules(Client, GatewayIdentifier, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_gateway_rules(Client, GatewayIdentifier, QueryMap, HeadersMap, []). -spec list_gateway_rules(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_gateway_rules_response(), tuple()} | {error, any()} | {error, list_gateway_rules_errors(), tuple()}. list_gateway_rules(Client, GatewayIdentifier, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/rules"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists all targets for a specific gateway. -spec list_gateway_targets(aws_client:aws_client(), binary() | list()) -> {ok, list_gateway_targets_response(), tuple()} | {error, any()} | {error, list_gateway_targets_errors(), tuple()}. list_gateway_targets(Client, GatewayIdentifier) when is_map(Client) -> list_gateway_targets(Client, GatewayIdentifier, #{}, #{}). -spec list_gateway_targets(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_gateway_targets_response(), tuple()} | {error, any()} | {error, list_gateway_targets_errors(), tuple()}. list_gateway_targets(Client, GatewayIdentifier, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_gateway_targets(Client, GatewayIdentifier, QueryMap, HeadersMap, []). -spec list_gateway_targets(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_gateway_targets_response(), tuple()} | {error, any()} | {error, list_gateway_targets_errors(), tuple()}. list_gateway_targets(Client, GatewayIdentifier, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/targets/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists all gateways in the account. -spec list_gateways(aws_client:aws_client()) -> {ok, list_gateways_response(), tuple()} | {error, any()} | {error, list_gateways_errors(), tuple()}. list_gateways(Client) when is_map(Client) -> list_gateways(Client, #{}, #{}). -spec list_gateways(aws_client:aws_client(), map(), map()) -> {ok, list_gateways_response(), tuple()} | {error, any()} | {error, list_gateways_errors(), tuple()}. list_gateways(Client, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_gateways(Client, QueryMap, HeadersMap, []). -spec list_gateways(aws_client:aws_client(), map(), map(), proplists:proplist()) -> {ok, list_gateways_response(), tuple()} | {error, any()} | {error, list_gateways_errors(), tuple()}. list_gateways(Client, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/gateways/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Operation to list Harnesses. -spec list_harnesses(aws_client:aws_client()) -> {ok, list_harnesses_response(), tuple()} | {error, any()} | {error, list_harnesses_errors(), tuple()}. list_harnesses(Client) when is_map(Client) -> list_harnesses(Client, #{}, #{}). -spec list_harnesses(aws_client:aws_client(), map(), map()) -> {ok, list_harnesses_response(), tuple()} | {error, any()} | {error, list_harnesses_errors(), tuple()}. list_harnesses(Client, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_harnesses(Client, QueryMap, HeadersMap, []). -spec list_harnesses(aws_client:aws_client(), map(), map(), proplists:proplist()) -> {ok, list_harnesses_response(), tuple()} | {error, any()} | {error, list_harnesses_errors(), tuple()}. list_harnesses(Client, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/harnesses"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists the available Amazon Bedrock AgentCore Memory resources in the %% current Amazon Web Services Region. -spec list_memories(aws_client:aws_client(), list_memories_input()) -> {ok, list_memories_output(), tuple()} | {error, any()} | {error, list_memories_errors(), tuple()}. list_memories(Client, Input) -> list_memories(Client, Input, []). -spec list_memories(aws_client:aws_client(), list_memories_input(), proplists:proplist()) -> {ok, list_memories_output(), tuple()} | {error, any()} | {error, list_memories_errors(), tuple()}. list_memories(Client, Input0, Options0) -> Method = post, Path = ["/memories/"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all OAuth2 credential providers in your account. -spec list_oauth2_credential_providers(aws_client:aws_client(), list_oauth2_credential_providers_request()) -> {ok, list_oauth2_credential_providers_response(), tuple()} | {error, any()} | {error, list_oauth2_credential_providers_errors(), tuple()}. list_oauth2_credential_providers(Client, Input) -> list_oauth2_credential_providers(Client, Input, []). -spec list_oauth2_credential_providers(aws_client:aws_client(), list_oauth2_credential_providers_request(), proplists:proplist()) -> {ok, list_oauth2_credential_providers_response(), tuple()} | {error, any()} | {error, list_oauth2_credential_providers_errors(), tuple()}. list_oauth2_credential_providers(Client, Input0, Options0) -> Method = post, Path = ["/identities/ListOauth2CredentialProviders"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all online evaluation configurations in the account, providing %% summary information about each configuration's status and settings. -spec list_online_evaluation_configs(aws_client:aws_client(), list_online_evaluation_configs_request()) -> {ok, list_online_evaluation_configs_response(), tuple()} | {error, any()} | {error, list_online_evaluation_configs_errors(), tuple()}. list_online_evaluation_configs(Client, Input) -> list_online_evaluation_configs(Client, Input, []). -spec list_online_evaluation_configs(aws_client:aws_client(), list_online_evaluation_configs_request(), proplists:proplist()) -> {ok, list_online_evaluation_configs_response(), tuple()} | {error, any()} | {error, list_online_evaluation_configs_errors(), tuple()}. list_online_evaluation_configs(Client, Input0, Options0) -> Method = post, Path = ["/online-evaluation-configs"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all payment connectors for a specified payment manager. -spec list_payment_connectors(aws_client:aws_client(), binary() | list(), list_payment_connectors_request()) -> {ok, list_payment_connectors_response(), tuple()} | {error, any()} | {error, list_payment_connectors_errors(), tuple()}. list_payment_connectors(Client, PaymentManagerId, Input) -> list_payment_connectors(Client, PaymentManagerId, Input, []). -spec list_payment_connectors(aws_client:aws_client(), binary() | list(), list_payment_connectors_request(), proplists:proplist()) -> {ok, list_payment_connectors_response(), tuple()} | {error, any()} | {error, list_payment_connectors_errors(), tuple()}. list_payment_connectors(Client, PaymentManagerId, Input0, Options0) -> Method = post, Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), "/connectors-list"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all payment credential providers in the account. -spec list_payment_credential_providers(aws_client:aws_client(), list_payment_credential_providers_request()) -> {ok, list_payment_credential_providers_response(), tuple()} | {error, any()} | {error, list_payment_credential_providers_errors(), tuple()}. list_payment_credential_providers(Client, Input) -> list_payment_credential_providers(Client, Input, []). -spec list_payment_credential_providers(aws_client:aws_client(), list_payment_credential_providers_request(), proplists:proplist()) -> {ok, list_payment_credential_providers_response(), tuple()} | {error, any()} | {error, list_payment_credential_providers_errors(), tuple()}. list_payment_credential_providers(Client, Input0, Options0) -> Method = post, Path = ["/identities/ListPaymentCredentialProviders"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Lists all payment managers in the account. -spec list_payment_managers(aws_client:aws_client(), list_payment_managers_request()) -> {ok, list_payment_managers_response(), tuple()} | {error, any()} | {error, list_payment_managers_errors(), tuple()}. list_payment_managers(Client, Input) -> list_payment_managers(Client, Input, []). -spec list_payment_managers(aws_client:aws_client(), list_payment_managers_request(), proplists:proplist()) -> {ok, list_payment_managers_response(), tuple()} | {error, any()} | {error, list_payment_managers_errors(), tuple()}. list_payment_managers(Client, Input0, Options0) -> Method = post, Path = ["/payments/managers-list"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"maxResults">>, <<"maxResults">>}, {<<"nextToken">>, <<"nextToken">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Retrieves a list of policies within the AgentCore Policy engine. %% %% This operation supports pagination and filtering to help administrators %% manage and discover policies across policy engines. Results can be %% filtered by policy engine or resource associations. -spec list_policies(aws_client:aws_client(), binary() | list()) -> {ok, list_policies_response(), tuple()} | {error, any()} | {error, list_policies_errors(), tuple()}. list_policies(Client, PolicyEngineId) when is_map(Client) -> list_policies(Client, PolicyEngineId, #{}, #{}). -spec list_policies(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_policies_response(), tuple()} | {error, any()} | {error, list_policies_errors(), tuple()}. list_policies(Client, PolicyEngineId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_policies(Client, PolicyEngineId, QueryMap, HeadersMap, []). -spec list_policies(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_policies_response(), tuple()} | {error, any()} | {error, list_policies_errors(), tuple()}. list_policies(Client, PolicyEngineId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policies"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)}, {<<"targetResourceScope">>, maps:get(<<"targetResourceScope">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a paginated list of metadata-only policy engine summaries %% without decrypting customer content. %% %% This lightweight read operation returns resource identifiers, status, and %% timestamps for each policy engine, but does not include descriptions or %% status reasons. Because this operation does not require access to the %% customer's KMS key, it is suitable for resource discovery, inventory, %% and integration scenarios where only metadata is needed. -spec list_policy_engine_summaries(aws_client:aws_client()) -> {ok, list_policy_engine_summaries_response(), tuple()} | {error, any()} | {error, list_policy_engine_summaries_errors(), tuple()}. list_policy_engine_summaries(Client) when is_map(Client) -> list_policy_engine_summaries(Client, #{}, #{}). -spec list_policy_engine_summaries(aws_client:aws_client(), map(), map()) -> {ok, list_policy_engine_summaries_response(), tuple()} | {error, any()} | {error, list_policy_engine_summaries_errors(), tuple()}. list_policy_engine_summaries(Client, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_policy_engine_summaries(Client, QueryMap, HeadersMap, []). -spec list_policy_engine_summaries(aws_client:aws_client(), map(), map(), proplists:proplist()) -> {ok, list_policy_engine_summaries_response(), tuple()} | {error, any()} | {error, list_policy_engine_summaries_errors(), tuple()}. list_policy_engine_summaries(Client, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engine-summaries"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a list of policy engines within the AgentCore Policy %% system. %% %% This operation supports pagination to help administrators discover and %% manage policy engines across their account. Each policy engine serves as a %% container for related policies. -spec list_policy_engines(aws_client:aws_client()) -> {ok, list_policy_engines_response(), tuple()} | {error, any()} | {error, list_policy_engines_errors(), tuple()}. list_policy_engines(Client) when is_map(Client) -> list_policy_engines(Client, #{}, #{}). -spec list_policy_engines(aws_client:aws_client(), map(), map()) -> {ok, list_policy_engines_response(), tuple()} | {error, any()} | {error, list_policy_engines_errors(), tuple()}. list_policy_engines(Client, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_policy_engines(Client, QueryMap, HeadersMap, []). -spec list_policy_engines(aws_client:aws_client(), map(), map(), proplists:proplist()) -> {ok, list_policy_engines_response(), tuple()} | {error, any()} | {error, list_policy_engines_errors(), tuple()}. list_policy_engines(Client, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a list of generated policy assets from a policy generation %% request within the AgentCore Policy system. %% %% This operation returns the actual Cedar policies and related artifacts %% produced by the AI-powered policy generation process, allowing users to %% review and select from multiple generated policy options. -spec list_policy_generation_assets(aws_client:aws_client(), binary() | list(), binary() | list()) -> {ok, list_policy_generation_assets_response(), tuple()} | {error, any()} | {error, list_policy_generation_assets_errors(), tuple()}. list_policy_generation_assets(Client, PolicyEngineId, PolicyGenerationId) when is_map(Client) -> list_policy_generation_assets(Client, PolicyEngineId, PolicyGenerationId, #{}, #{}). -spec list_policy_generation_assets(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map()) -> {ok, list_policy_generation_assets_response(), tuple()} | {error, any()} | {error, list_policy_generation_assets_errors(), tuple()}. list_policy_generation_assets(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_policy_generation_assets(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap, []). -spec list_policy_generation_assets(aws_client:aws_client(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_policy_generation_assets_response(), tuple()} | {error, any()} | {error, list_policy_generation_assets_errors(), tuple()}. list_policy_generation_assets(Client, PolicyEngineId, PolicyGenerationId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-generations/", aws_util:encode_uri(PolicyGenerationId), "/assets"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a paginated list of metadata-only policy generation %% summaries within a policy engine without decrypting customer content. %% %% This lightweight read operation returns resource identifiers, status, %% timestamps, and findings for each policy generation, but does not include %% status reasons. Because this operation does not require access to the %% customer's KMS key, it is suitable for resource discovery, inventory, %% and integration scenarios where only metadata is needed. -spec list_policy_generation_summaries(aws_client:aws_client(), binary() | list()) -> {ok, list_policy_generation_summaries_response(), tuple()} | {error, any()} | {error, list_policy_generation_summaries_errors(), tuple()}. list_policy_generation_summaries(Client, PolicyEngineId) when is_map(Client) -> list_policy_generation_summaries(Client, PolicyEngineId, #{}, #{}). -spec list_policy_generation_summaries(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_policy_generation_summaries_response(), tuple()} | {error, any()} | {error, list_policy_generation_summaries_errors(), tuple()}. list_policy_generation_summaries(Client, PolicyEngineId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_policy_generation_summaries(Client, PolicyEngineId, QueryMap, HeadersMap, []). -spec list_policy_generation_summaries(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_policy_generation_summaries_response(), tuple()} | {error, any()} | {error, list_policy_generation_summaries_errors(), tuple()}. list_policy_generation_summaries(Client, PolicyEngineId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-generation-summaries"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a list of policy generation requests within the AgentCore %% Policy system. %% %% This operation supports pagination and filtering to help track and manage %% AI-powered policy generation operations. -spec list_policy_generations(aws_client:aws_client(), binary() | list()) -> {ok, list_policy_generations_response(), tuple()} | {error, any()} | {error, list_policy_generations_errors(), tuple()}. list_policy_generations(Client, PolicyEngineId) when is_map(Client) -> list_policy_generations(Client, PolicyEngineId, #{}, #{}). -spec list_policy_generations(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_policy_generations_response(), tuple()} | {error, any()} | {error, list_policy_generations_errors(), tuple()}. list_policy_generations(Client, PolicyEngineId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_policy_generations(Client, PolicyEngineId, QueryMap, HeadersMap, []). -spec list_policy_generations(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_policy_generations_response(), tuple()} | {error, any()} | {error, list_policy_generations_errors(), tuple()}. list_policy_generations(Client, PolicyEngineId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-generations"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Retrieves a paginated list of metadata-only policy summaries within a %% policy engine without decrypting customer content. %% %% This lightweight read operation returns resource identifiers, status, and %% timestamps for each policy, but does not include policy definitions, %% descriptions, or status reasons. Because this operation does not require %% access to the customer's KMS key, it is suitable for resource %% discovery, inventory, and integration scenarios where only metadata is %% needed. -spec list_policy_summaries(aws_client:aws_client(), binary() | list()) -> {ok, list_policy_summaries_response(), tuple()} | {error, any()} | {error, list_policy_summaries_errors(), tuple()}. list_policy_summaries(Client, PolicyEngineId) when is_map(Client) -> list_policy_summaries(Client, PolicyEngineId, #{}, #{}). -spec list_policy_summaries(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_policy_summaries_response(), tuple()} | {error, any()} | {error, list_policy_summaries_errors(), tuple()}. list_policy_summaries(Client, PolicyEngineId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_policy_summaries(Client, PolicyEngineId, QueryMap, HeadersMap, []). -spec list_policy_summaries(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_policy_summaries_response(), tuple()} | {error, any()} | {error, list_policy_summaries_errors(), tuple()}. list_policy_summaries(Client, PolicyEngineId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-summaries"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)}, {<<"targetResourceScope">>, maps:get(<<"targetResourceScope">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists all registries in the account. %% %% You can optionally filter results by status using the `status' %% parameter, or by authorizer type using the `authorizerType' parameter. -spec list_registries(aws_client:aws_client()) -> {ok, list_registries_response(), tuple()} | {error, any()} | {error, list_registries_errors(), tuple()}. list_registries(Client) when is_map(Client) -> list_registries(Client, #{}, #{}). -spec list_registries(aws_client:aws_client(), map(), map()) -> {ok, list_registries_response(), tuple()} | {error, any()} | {error, list_registries_errors(), tuple()}. list_registries(Client, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_registries(Client, QueryMap, HeadersMap, []). -spec list_registries(aws_client:aws_client(), map(), map(), proplists:proplist()) -> {ok, list_registries_response(), tuple()} | {error, any()} | {error, list_registries_errors(), tuple()}. list_registries(Client, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/registries"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"authorizerType">>, maps:get(<<"authorizerType">>, QueryMap, undefined)}, {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)}, {<<"status">>, maps:get(<<"status">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists registry records within a registry. %% %% You can optionally filter results using the `name', `status', and %% `descriptorType' parameters. When multiple filters are specified, they %% are combined using AND logic. -spec list_registry_records(aws_client:aws_client(), binary() | list()) -> {ok, list_registry_records_response(), tuple()} | {error, any()} | {error, list_registry_records_errors(), tuple()}. list_registry_records(Client, RegistryId) when is_map(Client) -> list_registry_records(Client, RegistryId, #{}, #{}). -spec list_registry_records(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_registry_records_response(), tuple()} | {error, any()} | {error, list_registry_records_errors(), tuple()}. list_registry_records(Client, RegistryId, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_registry_records(Client, RegistryId, QueryMap, HeadersMap, []). -spec list_registry_records(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_registry_records_response(), tuple()} | {error, any()} | {error, list_registry_records_errors(), tuple()}. list_registry_records(Client, RegistryId, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/registries/", aws_util:encode_uri(RegistryId), "/records"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query0_ = [ {<<"descriptorType">>, maps:get(<<"descriptorType">>, QueryMap, undefined)}, {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, {<<"name">>, maps:get(<<"name">>, QueryMap, undefined)}, {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)}, {<<"status">>, maps:get(<<"status">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists the tags associated with the specified resource. %% %% This feature is currently available only for AgentCore Runtime, Browser, %% Browser Profile, Code Interpreter tool, and Gateway. -spec list_tags_for_resource(aws_client:aws_client(), binary() | list()) -> {ok, list_tags_for_resource_response(), tuple()} | {error, any()} | {error, list_tags_for_resource_errors(), tuple()}. list_tags_for_resource(Client, ResourceArn) when is_map(Client) -> list_tags_for_resource(Client, ResourceArn, #{}, #{}). -spec list_tags_for_resource(aws_client:aws_client(), binary() | list(), map(), map()) -> {ok, list_tags_for_resource_response(), tuple()} | {error, any()} | {error, list_tags_for_resource_errors(), tuple()}. list_tags_for_resource(Client, ResourceArn, QueryMap, HeadersMap) when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> list_tags_for_resource(Client, ResourceArn, QueryMap, HeadersMap, []). -spec list_tags_for_resource(aws_client:aws_client(), binary() | list(), map(), map(), proplists:proplist()) -> {ok, list_tags_for_resource_response(), tuple()} | {error, any()} | {error, list_tags_for_resource_errors(), tuple()}. list_tags_for_resource(Client, ResourceArn, QueryMap, HeadersMap, Options0) when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> Path = ["/tags/", aws_util:encode_uri(ResourceArn), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary} | Options2], Headers = [], Query_ = [], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). %% @doc Lists all workload identities in your account. -spec list_workload_identities(aws_client:aws_client(), list_workload_identities_request()) -> {ok, list_workload_identities_response(), tuple()} | {error, any()} | {error, list_workload_identities_errors(), tuple()}. list_workload_identities(Client, Input) -> list_workload_identities(Client, Input, []). -spec list_workload_identities(aws_client:aws_client(), list_workload_identities_request(), proplists:proplist()) -> {ok, list_workload_identities_response(), tuple()} | {error, any()} | {error, list_workload_identities_errors(), tuple()}. list_workload_identities(Client, Input0, Options0) -> Method = post, Path = ["/identities/ListWorkloadIdentities"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Creates or updates a resource-based policy for a resource with the %% specified resourceArn. %% %% This feature is currently available only for AgentCore Runtime and %% Gateway. -spec put_resource_policy(aws_client:aws_client(), binary() | list(), put_resource_policy_request()) -> {ok, put_resource_policy_response(), tuple()} | {error, any()} | {error, put_resource_policy_errors(), tuple()}. put_resource_policy(Client, ResourceArn, Input) -> put_resource_policy(Client, ResourceArn, Input, []). -spec put_resource_policy(aws_client:aws_client(), binary() | list(), put_resource_policy_request(), proplists:proplist()) -> {ok, put_resource_policy_response(), tuple()} | {error, any()} | {error, put_resource_policy_errors(), tuple()}. put_resource_policy(Client, ResourceArn, Input0, Options0) -> Method = put, Path = ["/resourcepolicy/", aws_util:encode_uri(ResourceArn), ""], SuccessStatusCode = 201, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Sets the customer master key (CMK) for a token vault. -spec set_token_vault_cm_k(aws_client:aws_client(), set_token_vault_cm_k_request()) -> {ok, set_token_vault_cm_k_response(), tuple()} | {error, any()} | {error, set_token_vault_cm_k_errors(), tuple()}. set_token_vault_cm_k(Client, Input) -> set_token_vault_cm_k(Client, Input, []). -spec set_token_vault_cm_k(aws_client:aws_client(), set_token_vault_cm_k_request(), proplists:proplist()) -> {ok, set_token_vault_cm_k_response(), tuple()} | {error, any()} | {error, set_token_vault_cm_k_errors(), tuple()}. set_token_vault_cm_k(Client, Input0, Options0) -> Method = post, Path = ["/identities/set-token-vault-cmk"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Initiates the AI-powered generation of Cedar policies from natural %% language descriptions within the AgentCore Policy system. %% %% This feature enables both technical and non-technical users to create %% policies by describing their authorization requirements in plain English, %% which is then automatically translated into formal Cedar policy %% statements. The generation process analyzes the natural language input %% along with the Gateway's tool context to produce validated policy %% options. Generated policy assets are automatically deleted after 7 days, %% so you should review and create policies from the generated assets within %% this timeframe. Once created, policies are permanent and not subject to %% this expiration. Generated policies should be reviewed and tested in %% log-only mode before deploying to production. Use this when you want to %% describe policy intent naturally rather than learning Cedar syntax, though %% generated policies may require refinement for complex scenarios. -spec start_policy_generation(aws_client:aws_client(), binary() | list(), start_policy_generation_request()) -> {ok, start_policy_generation_response(), tuple()} | {error, any()} | {error, start_policy_generation_errors(), tuple()}. start_policy_generation(Client, PolicyEngineId, Input) -> start_policy_generation(Client, PolicyEngineId, Input, []). -spec start_policy_generation(aws_client:aws_client(), binary() | list(), start_policy_generation_request(), proplists:proplist()) -> {ok, start_policy_generation_response(), tuple()} | {error, any()} | {error, start_policy_generation_errors(), tuple()}. start_policy_generation(Client, PolicyEngineId, Input0, Options0) -> Method = post, Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policy-generations"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Submits a registry record for approval. %% %% This transitions the record from `DRAFT' status to %% `PENDING_APPROVAL' status. If the registry has auto-approval enabled, %% the record is automatically approved. -spec submit_registry_record_for_approval(aws_client:aws_client(), binary() | list(), binary() | list(), submit_registry_record_for_approval_request()) -> {ok, submit_registry_record_for_approval_response(), tuple()} | {error, any()} | {error, submit_registry_record_for_approval_errors(), tuple()}. submit_registry_record_for_approval(Client, RecordId, RegistryId, Input) -> submit_registry_record_for_approval(Client, RecordId, RegistryId, Input, []). -spec submit_registry_record_for_approval(aws_client:aws_client(), binary() | list(), binary() | list(), submit_registry_record_for_approval_request(), proplists:proplist()) -> {ok, submit_registry_record_for_approval_response(), tuple()} | {error, any()} | {error, submit_registry_record_for_approval_errors(), tuple()}. submit_registry_record_for_approval(Client, RecordId, RegistryId, Input0, Options0) -> Method = post, Path = ["/registries/", aws_util:encode_uri(RegistryId), "/records/", aws_util:encode_uri(RecordId), "/submit-for-approval"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Synchronizes the gateway targets by fetching the latest tool %% definitions from the target endpoints. %% %% You cannot synchronize a target that is in a pending authorization state %% (`CREATE_PENDING_AUTH', `UPDATE_PENDING_AUTH', or %% `SYNCHRONIZE_PENDING_AUTH'). Wait for the authorization to complete or %% fail before synchronizing. %% %% You cannot synchronize a target that has a static tool schema %% (`mcpToolSchema') configured. Remove the static schema through an %% `UpdateGatewayTarget' call to enable dynamic tool synchronization. -spec synchronize_gateway_targets(aws_client:aws_client(), binary() | list(), synchronize_gateway_targets_request()) -> {ok, synchronize_gateway_targets_response(), tuple()} | {error, any()} | {error, synchronize_gateway_targets_errors(), tuple()}. synchronize_gateway_targets(Client, GatewayIdentifier, Input) -> synchronize_gateway_targets(Client, GatewayIdentifier, Input, []). -spec synchronize_gateway_targets(aws_client:aws_client(), binary() | list(), synchronize_gateway_targets_request(), proplists:proplist()) -> {ok, synchronize_gateway_targets_response(), tuple()} | {error, any()} | {error, synchronize_gateway_targets_errors(), tuple()}. synchronize_gateway_targets(Client, GatewayIdentifier, Input0, Options0) -> Method = put, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/synchronizeTargets"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Associates the specified tags to a resource with the specified %% resourceArn. %% %% If existing tags on a resource are not specified in the request %% parameters, they are not changed. When a resource is deleted, the tags %% associated with that resource are also deleted. %% %% This feature is currently available only for AgentCore Runtime, Browser, %% Browser Profile, Code Interpreter tool, and Gateway. -spec tag_resource(aws_client:aws_client(), binary() | list(), tag_resource_request()) -> {ok, tag_resource_response(), tuple()} | {error, any()} | {error, tag_resource_errors(), tuple()}. tag_resource(Client, ResourceArn, Input) -> tag_resource(Client, ResourceArn, Input, []). -spec tag_resource(aws_client:aws_client(), binary() | list(), tag_resource_request(), proplists:proplist()) -> {ok, tag_resource_response(), tuple()} | {error, any()} | {error, tag_resource_errors(), tuple()}. tag_resource(Client, ResourceArn, Input0, Options0) -> Method = post, Path = ["/tags/", aws_util:encode_uri(ResourceArn), ""], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Removes the specified tags from the specified resource. %% %% This feature is currently available only for AgentCore Runtime, Browser, %% Browser Profile, Code Interpreter tool, and Gateway. -spec untag_resource(aws_client:aws_client(), binary() | list(), untag_resource_request()) -> {ok, untag_resource_response(), tuple()} | {error, any()} | {error, untag_resource_errors(), tuple()}. untag_resource(Client, ResourceArn, Input) -> untag_resource(Client, ResourceArn, Input, []). -spec untag_resource(aws_client:aws_client(), binary() | list(), untag_resource_request(), proplists:proplist()) -> {ok, untag_resource_response(), tuple()} | {error, any()} | {error, untag_resource_errors(), tuple()}. untag_resource(Client, ResourceArn, Input0, Options0) -> Method = delete, Path = ["/tags/", aws_util:encode_uri(ResourceArn), ""], SuccessStatusCode = 204, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, QueryMapping = [ {<<"tagKeys">>, <<"tagKeys">>} ], {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing Amazon Secure Agent. -spec update_agent_runtime(aws_client:aws_client(), binary() | list(), update_agent_runtime_request()) -> {ok, update_agent_runtime_response(), tuple()} | {error, any()} | {error, update_agent_runtime_errors(), tuple()}. update_agent_runtime(Client, AgentRuntimeId, Input) -> update_agent_runtime(Client, AgentRuntimeId, Input, []). -spec update_agent_runtime(aws_client:aws_client(), binary() | list(), update_agent_runtime_request(), proplists:proplist()) -> {ok, update_agent_runtime_response(), tuple()} | {error, any()} | {error, update_agent_runtime_errors(), tuple()}. update_agent_runtime(Client, AgentRuntimeId, Input0, Options0) -> Method = put, Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing Amazon Bedrock AgentCore Runtime endpoint. -spec update_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), binary() | list(), update_agent_runtime_endpoint_request()) -> {ok, update_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, update_agent_runtime_endpoint_errors(), tuple()}. update_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, Input) -> update_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, Input, []). -spec update_agent_runtime_endpoint(aws_client:aws_client(), binary() | list(), binary() | list(), update_agent_runtime_endpoint_request(), proplists:proplist()) -> {ok, update_agent_runtime_endpoint_response(), tuple()} | {error, any()} | {error, update_agent_runtime_endpoint_errors(), tuple()}. update_agent_runtime_endpoint(Client, AgentRuntimeId, EndpointName, Input0, Options0) -> Method = put, Path = ["/runtimes/", aws_util:encode_uri(AgentRuntimeId), "/runtime-endpoints/", aws_util:encode_uri(EndpointName), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing API key credential provider. -spec update_api_key_credential_provider(aws_client:aws_client(), update_api_key_credential_provider_request()) -> {ok, update_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, update_api_key_credential_provider_errors(), tuple()}. update_api_key_credential_provider(Client, Input) -> update_api_key_credential_provider(Client, Input, []). -spec update_api_key_credential_provider(aws_client:aws_client(), update_api_key_credential_provider_request(), proplists:proplist()) -> {ok, update_api_key_credential_provider_response(), tuple()} | {error, any()} | {error, update_api_key_credential_provider_errors(), tuple()}. update_api_key_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/UpdateApiKeyCredentialProvider"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates a configuration bundle by creating a new version with the %% specified changes. %% %% Each update creates a new version in the version history. -spec update_configuration_bundle(aws_client:aws_client(), binary() | list(), update_configuration_bundle_request()) -> {ok, update_configuration_bundle_response(), tuple()} | {error, any()} | {error, update_configuration_bundle_errors(), tuple()}. update_configuration_bundle(Client, BundleId, Input) -> update_configuration_bundle(Client, BundleId, Input, []). -spec update_configuration_bundle(aws_client:aws_client(), binary() | list(), update_configuration_bundle_request(), proplists:proplist()) -> {ok, update_configuration_bundle_response(), tuple()} | {error, any()} | {error, update_configuration_bundle_errors(), tuple()}. update_configuration_bundle(Client, BundleId, Input0, Options0) -> Method = put, Path = ["/configuration-bundles/", aws_util:encode_uri(BundleId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates a dataset's metadata. %% %% Synchronous operation. %% Only provided fields are updated; omitted fields remain unchanged. %% %% To modify dataset content, use AddDatasetExamples, UpdateDatasetExamples, %% or DeleteDatasetExamples. %% %% Cannot update: name, schemaType, kmsKeyArn (immutable after creation). -spec update_dataset(aws_client:aws_client(), binary() | list(), update_dataset_request()) -> {ok, update_dataset_response(), tuple()} | {error, any()} | {error, update_dataset_errors(), tuple()}. update_dataset(Client, DatasetId, Input) -> update_dataset(Client, DatasetId, Input, []). -spec update_dataset(aws_client:aws_client(), binary() | list(), update_dataset_request(), proplists:proplist()) -> {ok, update_dataset_response(), tuple()} | {error, any()} | {error, update_dataset_errors(), tuple()}. update_dataset(Client, DatasetId, Input0, Options0) -> Method = put, Path = ["/datasets/", aws_util:encode_uri(DatasetId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates multiple existing examples in-place on DRAFT. %% %% **Validation:** All examples are validated against the dataset's %% schemaType before any %% writes occur. If any example fails validation, the entire batch is %% rejected with %% ValidationException — no examples are updated (all-or-nothing semantics). %% %% **Asynchronous:** Operates in-place on DRAFT. No version bump occurs. %% Use CreateDatasetVersion to publish DRAFT as a new numbered version. %% %% Fails with ResourceNotFoundException if any exampleId does not exist in %% DRAFT. %% To add new examples, use AddDatasetExamples instead. %% %% **State guard:** Returns ConflictException (DATASET_NOT_READY) if the %% dataset %% status is not in {DRAFT, ACTIVE}. %% %% **Request size limit:** Max 5 MB total request body. Max 1000 examples per %% call. -spec update_dataset_examples(aws_client:aws_client(), binary() | list(), update_dataset_examples_request()) -> {ok, update_dataset_examples_response(), tuple()} | {error, any()} | {error, update_dataset_examples_errors(), tuple()}. update_dataset_examples(Client, DatasetId, Input) -> update_dataset_examples(Client, DatasetId, Input, []). -spec update_dataset_examples(aws_client:aws_client(), binary() | list(), update_dataset_examples_request(), proplists:proplist()) -> {ok, update_dataset_examples_response(), tuple()} | {error, any()} | {error, update_dataset_examples_errors(), tuple()}. update_dataset_examples(Client, DatasetId, Input0, Options0) -> Method = post, Path = ["/datasets/", aws_util:encode_uri(DatasetId), "/examples/update"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates a custom evaluator's configuration, description, or %% evaluation level. %% %% Built-in evaluators cannot be updated. The evaluator must not be locked %% for modification. -spec update_evaluator(aws_client:aws_client(), binary() | list(), update_evaluator_request()) -> {ok, update_evaluator_response(), tuple()} | {error, any()} | {error, update_evaluator_errors(), tuple()}. update_evaluator(Client, EvaluatorId, Input) -> update_evaluator(Client, EvaluatorId, Input, []). -spec update_evaluator(aws_client:aws_client(), binary() | list(), update_evaluator_request(), proplists:proplist()) -> {ok, update_evaluator_response(), tuple()} | {error, any()} | {error, update_evaluator_errors(), tuple()}. update_evaluator(Client, EvaluatorId, Input0, Options0) -> Method = put, Path = ["/evaluators/", aws_util:encode_uri(EvaluatorId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing gateway. -spec update_gateway(aws_client:aws_client(), binary() | list(), update_gateway_request()) -> {ok, update_gateway_response(), tuple()} | {error, any()} | {error, update_gateway_errors(), tuple()}. update_gateway(Client, GatewayIdentifier, Input) -> update_gateway(Client, GatewayIdentifier, Input, []). -spec update_gateway(aws_client:aws_client(), binary() | list(), update_gateway_request(), proplists:proplist()) -> {ok, update_gateway_response(), tuple()} | {error, any()} | {error, update_gateway_errors(), tuple()}. update_gateway(Client, GatewayIdentifier, Input0, Options0) -> Method = put, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates a gateway rule's priority, conditions, actions, or %% description. -spec update_gateway_rule(aws_client:aws_client(), binary() | list(), binary() | list(), update_gateway_rule_request()) -> {ok, update_gateway_rule_response(), tuple()} | {error, any()} | {error, update_gateway_rule_errors(), tuple()}. update_gateway_rule(Client, GatewayIdentifier, RuleId, Input) -> update_gateway_rule(Client, GatewayIdentifier, RuleId, Input, []). -spec update_gateway_rule(aws_client:aws_client(), binary() | list(), binary() | list(), update_gateway_rule_request(), proplists:proplist()) -> {ok, update_gateway_rule_response(), tuple()} | {error, any()} | {error, update_gateway_rule_errors(), tuple()}. update_gateway_rule(Client, GatewayIdentifier, RuleId, Input0, Options0) -> Method = patch, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/rules/", aws_util:encode_uri(RuleId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing gateway target. %% %% You cannot update a target that is in a pending authorization state %% (`CREATE_PENDING_AUTH', `UPDATE_PENDING_AUTH', or %% `SYNCHRONIZE_PENDING_AUTH'). Wait for the authorization to complete or %% fail before updating the target. -spec update_gateway_target(aws_client:aws_client(), binary() | list(), binary() | list(), update_gateway_target_request()) -> {ok, update_gateway_target_response(), tuple()} | {error, any()} | {error, update_gateway_target_errors(), tuple()}. update_gateway_target(Client, GatewayIdentifier, TargetId, Input) -> update_gateway_target(Client, GatewayIdentifier, TargetId, Input, []). -spec update_gateway_target(aws_client:aws_client(), binary() | list(), binary() | list(), update_gateway_target_request(), proplists:proplist()) -> {ok, update_gateway_target_response(), tuple()} | {error, any()} | {error, update_gateway_target_errors(), tuple()}. update_gateway_target(Client, GatewayIdentifier, TargetId, Input0, Options0) -> Method = put, Path = ["/gateways/", aws_util:encode_uri(GatewayIdentifier), "/targets/", aws_util:encode_uri(TargetId), "/"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Operation to update a Harness. -spec update_harness(aws_client:aws_client(), binary() | list(), update_harness_request()) -> {ok, update_harness_response(), tuple()} | {error, any()} | {error, update_harness_errors(), tuple()}. update_harness(Client, HarnessId, Input) -> update_harness(Client, HarnessId, Input, []). -spec update_harness(aws_client:aws_client(), binary() | list(), update_harness_request(), proplists:proplist()) -> {ok, update_harness_response(), tuple()} | {error, any()} | {error, update_harness_errors(), tuple()}. update_harness(Client, HarnessId, Input0, Options0) -> Method = patch, Path = ["/harnesses/", aws_util:encode_uri(HarnessId), ""], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Update an Amazon Bedrock AgentCore Memory resource memory. -spec update_memory(aws_client:aws_client(), binary() | list(), update_memory_input()) -> {ok, update_memory_output(), tuple()} | {error, any()} | {error, update_memory_errors(), tuple()}. update_memory(Client, MemoryId, Input) -> update_memory(Client, MemoryId, Input, []). -spec update_memory(aws_client:aws_client(), binary() | list(), update_memory_input(), proplists:proplist()) -> {ok, update_memory_output(), tuple()} | {error, any()} | {error, update_memory_errors(), tuple()}. update_memory(Client, MemoryId, Input0, Options0) -> Method = put, Path = ["/memories/", aws_util:encode_uri(MemoryId), "/update"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing OAuth2 credential provider. -spec update_oauth2_credential_provider(aws_client:aws_client(), update_oauth2_credential_provider_request()) -> {ok, update_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, update_oauth2_credential_provider_errors(), tuple()}. update_oauth2_credential_provider(Client, Input) -> update_oauth2_credential_provider(Client, Input, []). -spec update_oauth2_credential_provider(aws_client:aws_client(), update_oauth2_credential_provider_request(), proplists:proplist()) -> {ok, update_oauth2_credential_provider_response(), tuple()} | {error, any()} | {error, update_oauth2_credential_provider_errors(), tuple()}. update_oauth2_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/UpdateOauth2CredentialProvider"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an online evaluation configuration's settings, including %% rules, data sources, evaluators, and execution status. %% %% Changes take effect immediately for ongoing evaluations. -spec update_online_evaluation_config(aws_client:aws_client(), binary() | list(), update_online_evaluation_config_request()) -> {ok, update_online_evaluation_config_response(), tuple()} | {error, any()} | {error, update_online_evaluation_config_errors(), tuple()}. update_online_evaluation_config(Client, OnlineEvaluationConfigId, Input) -> update_online_evaluation_config(Client, OnlineEvaluationConfigId, Input, []). -spec update_online_evaluation_config(aws_client:aws_client(), binary() | list(), update_online_evaluation_config_request(), proplists:proplist()) -> {ok, update_online_evaluation_config_response(), tuple()} | {error, any()} | {error, update_online_evaluation_config_errors(), tuple()}. update_online_evaluation_config(Client, OnlineEvaluationConfigId, Input0, Options0) -> Method = put, Path = ["/online-evaluation-configs/", aws_util:encode_uri(OnlineEvaluationConfigId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing payment connector. %% %% This operation uses PATCH semantics, so you only need to specify the %% fields you want to change. -spec update_payment_connector(aws_client:aws_client(), binary() | list(), binary() | list(), update_payment_connector_request()) -> {ok, update_payment_connector_response(), tuple()} | {error, any()} | {error, update_payment_connector_errors(), tuple()}. update_payment_connector(Client, PaymentConnectorId, PaymentManagerId, Input) -> update_payment_connector(Client, PaymentConnectorId, PaymentManagerId, Input, []). -spec update_payment_connector(aws_client:aws_client(), binary() | list(), binary() | list(), update_payment_connector_request(), proplists:proplist()) -> {ok, update_payment_connector_response(), tuple()} | {error, any()} | {error, update_payment_connector_errors(), tuple()}. update_payment_connector(Client, PaymentConnectorId, PaymentManagerId, Input0, Options0) -> Method = patch, Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), "/connectors/", aws_util:encode_uri(PaymentConnectorId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing payment credential provider with new %% authentication credentials. -spec update_payment_credential_provider(aws_client:aws_client(), update_payment_credential_provider_request()) -> {ok, update_payment_credential_provider_response(), tuple()} | {error, any()} | {error, update_payment_credential_provider_errors(), tuple()}. update_payment_credential_provider(Client, Input) -> update_payment_credential_provider(Client, Input, []). -spec update_payment_credential_provider(aws_client:aws_client(), update_payment_credential_provider_request(), proplists:proplist()) -> {ok, update_payment_credential_provider_response(), tuple()} | {error, any()} | {error, update_payment_credential_provider_errors(), tuple()}. update_payment_credential_provider(Client, Input0, Options0) -> Method = post, Path = ["/identities/UpdatePaymentCredentialProvider"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing payment manager. %% %% This operation uses PATCH semantics, so you only need to specify the %% fields you want to change. -spec update_payment_manager(aws_client:aws_client(), binary() | list(), update_payment_manager_request()) -> {ok, update_payment_manager_response(), tuple()} | {error, any()} | {error, update_payment_manager_errors(), tuple()}. update_payment_manager(Client, PaymentManagerId, Input) -> update_payment_manager(Client, PaymentManagerId, Input, []). -spec update_payment_manager(aws_client:aws_client(), binary() | list(), update_payment_manager_request(), proplists:proplist()) -> {ok, update_payment_manager_response(), tuple()} | {error, any()} | {error, update_payment_manager_errors(), tuple()}. update_payment_manager(Client, PaymentManagerId, Input0, Options0) -> Method = patch, Path = ["/payments/managers/", aws_util:encode_uri(PaymentManagerId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing policy within the AgentCore Policy system. %% %% This operation allows modification of the policy description and %% definition while maintaining the policy's identity. The updated policy %% is validated against the Cedar schema before being applied. This is an %% asynchronous operation. Use the `GetPolicy' operation to poll the %% `status' field to track completion. -spec update_policy(aws_client:aws_client(), binary() | list(), binary() | list(), update_policy_request()) -> {ok, update_policy_response(), tuple()} | {error, any()} | {error, update_policy_errors(), tuple()}. update_policy(Client, PolicyEngineId, PolicyId, Input) -> update_policy(Client, PolicyEngineId, PolicyId, Input, []). -spec update_policy(aws_client:aws_client(), binary() | list(), binary() | list(), update_policy_request(), proplists:proplist()) -> {ok, update_policy_response(), tuple()} | {error, any()} | {error, update_policy_errors(), tuple()}. update_policy(Client, PolicyEngineId, PolicyId, Input0, Options0) -> Method = patch, Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), "/policies/", aws_util:encode_uri(PolicyId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing policy engine within the AgentCore Policy system. %% %% This operation allows modification of the policy engine description while %% maintaining its identity. This is an asynchronous operation. Use the %% `GetPolicyEngine' operation to poll the `status' field to track %% completion. -spec update_policy_engine(aws_client:aws_client(), binary() | list(), update_policy_engine_request()) -> {ok, update_policy_engine_response(), tuple()} | {error, any()} | {error, update_policy_engine_errors(), tuple()}. update_policy_engine(Client, PolicyEngineId, Input) -> update_policy_engine(Client, PolicyEngineId, Input, []). -spec update_policy_engine(aws_client:aws_client(), binary() | list(), update_policy_engine_request(), proplists:proplist()) -> {ok, update_policy_engine_response(), tuple()} | {error, any()} | {error, update_policy_engine_errors(), tuple()}. update_policy_engine(Client, PolicyEngineId, Input0, Options0) -> Method = patch, Path = ["/policy-engines/", aws_util:encode_uri(PolicyEngineId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing registry. %% %% This operation uses PATCH semantics, so you only need to specify the %% fields you want to change. -spec update_registry(aws_client:aws_client(), binary() | list(), update_registry_request()) -> {ok, update_registry_response(), tuple()} | {error, any()} | {error, update_registry_errors(), tuple()}. update_registry(Client, RegistryId, Input) -> update_registry(Client, RegistryId, Input, []). -spec update_registry(aws_client:aws_client(), binary() | list(), update_registry_request(), proplists:proplist()) -> {ok, update_registry_response(), tuple()} | {error, any()} | {error, update_registry_errors(), tuple()}. update_registry(Client, RegistryId, Input0, Options0) -> Method = patch, Path = ["/registries/", aws_util:encode_uri(RegistryId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing registry record. %% %% This operation uses PATCH semantics, so you only need to specify the %% fields you want to change. The update is processed asynchronously and %% returns HTTP 202 Accepted. -spec update_registry_record(aws_client:aws_client(), binary() | list(), binary() | list(), update_registry_record_request()) -> {ok, update_registry_record_response(), tuple()} | {error, any()} | {error, update_registry_record_errors(), tuple()}. update_registry_record(Client, RecordId, RegistryId, Input) -> update_registry_record(Client, RecordId, RegistryId, Input, []). -spec update_registry_record(aws_client:aws_client(), binary() | list(), binary() | list(), update_registry_record_request(), proplists:proplist()) -> {ok, update_registry_record_response(), tuple()} | {error, any()} | {error, update_registry_record_errors(), tuple()}. update_registry_record(Client, RecordId, RegistryId, Input0, Options0) -> Method = patch, Path = ["/registries/", aws_util:encode_uri(RegistryId), "/records/", aws_util:encode_uri(RecordId), ""], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates the status of a registry record. %% %% Use this operation to approve, reject, or deprecate a registry record. -spec update_registry_record_status(aws_client:aws_client(), binary() | list(), binary() | list(), update_registry_record_status_request()) -> {ok, update_registry_record_status_response(), tuple()} | {error, any()} | {error, update_registry_record_status_errors(), tuple()}. update_registry_record_status(Client, RecordId, RegistryId, Input) -> update_registry_record_status(Client, RecordId, RegistryId, Input, []). -spec update_registry_record_status(aws_client:aws_client(), binary() | list(), binary() | list(), update_registry_record_status_request(), proplists:proplist()) -> {ok, update_registry_record_status_response(), tuple()} | {error, any()} | {error, update_registry_record_status_errors(), tuple()}. update_registry_record_status(Client, RecordId, RegistryId, Input0, Options0) -> Method = patch, Path = ["/registries/", aws_util:encode_uri(RegistryId), "/records/", aws_util:encode_uri(RecordId), "/status"], SuccessStatusCode = 202, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %% @doc Updates an existing workload identity. -spec update_workload_identity(aws_client:aws_client(), update_workload_identity_request()) -> {ok, update_workload_identity_response(), tuple()} | {error, any()} | {error, update_workload_identity_errors(), tuple()}. update_workload_identity(Client, Input) -> update_workload_identity(Client, Input, []). -spec update_workload_identity(aws_client:aws_client(), update_workload_identity_request(), proplists:proplist()) -> {ok, update_workload_identity_response(), tuple()} | {error, any()} | {error, update_workload_identity_errors(), tuple()}. update_workload_identity(Client, Input0, Options0) -> Method = post, Path = ["/identities/UpdateWorkloadIdentity"], SuccessStatusCode = 200, {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), Options = [{send_body_as_binary, SendBodyAsBinary}, {receive_body_as_binary, ReceiveBodyAsBinary}, {append_sha256_content_hash, false} | Options2], Headers = [], Input1 = Input0, CustomHeaders = [], Input2 = Input1, Query_ = [], Input = Input2, request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). %%==================================================================== %% Internal functions %%==================================================================== -spec proplists_take(any(), proplists:proplist(), any()) -> {any(), proplists:proplist()}. proplists_take(Key, Proplist, Default) -> Value = proplists:get_value(Key, Proplist, Default), {Value, proplists:delete(Key, Proplist)}. -spec request(aws_client:aws_client(), atom(), iolist(), list(), list(), map() | undefined, list(), pos_integer() | undefined) -> {ok, {integer(), list()}} | {ok, Result, {integer(), list(), hackney:client()}} | {error, Error, {integer(), list(), hackney:client()}} | {error, term()} when Result :: map(), Error :: map(). request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusCode) -> RequestFun = fun() -> do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusCode) end, aws_request:request(RequestFun, Options). do_request(Client, Method, Path, Query, Headers0, Input, Options, SuccessStatusCode) -> Client1 = Client#{service => <<"bedrock-agentcore">>}, DefaultHost = build_host(<<"bedrock-agentcore-control">>, Client1), URL0 = build_url(DefaultHost, Path, Client1), PathBin = erlang:iolist_to_binary(Path), {URL1, Host} = aws_util:apply_endpoint_url_override(URL0, DefaultHost, PathBin, <<"AWS_ENDPOINT_URL_BEDROCK_AGENTCORE_CONTROL">>), URL = aws_request:add_query(URL1, Query), AdditionalHeaders1 = [ {<<"Host">>, Host} , {<<"Content-Type">>, <<"application/x-amz-json-1.1">>} ], Payload = case proplists:get_value(send_body_as_binary, Options) of true -> maps:get(<<"Body">>, Input, <<"">>); false -> encode_payload(Input) end, AdditionalHeaders = case proplists:get_value(append_sha256_content_hash, Options, false) of true -> add_checksum_hash_header(AdditionalHeaders1, Payload); false -> AdditionalHeaders1 end, Headers1 = aws_request:add_headers(AdditionalHeaders, Headers0), MethodBin = aws_request:method_to_binary(Method), SignedHeaders = aws_request:sign_request(Client1, MethodBin, URL, Headers1, Payload, [{uri_encode_path, true}]), Response = hackney:request(Method, URL, SignedHeaders, Payload, Options), DecodeBody = not proplists:get_value(receive_body_as_binary, Options), handle_response(Response, SuccessStatusCode, DecodeBody). add_checksum_hash_header(Headers, Body) -> [ {<<"X-Amz-CheckSum-SHA256">>, base64:encode(crypto:hash(sha256, Body))} | Headers ]. handle_response({ok, StatusCode, ResponseHeaders}, SuccessStatusCode, _DecodeBody) when StatusCode =:= 200; StatusCode =:= 202; StatusCode =:= 204; StatusCode =:= 206; StatusCode =:= SuccessStatusCode -> {ok, {StatusCode, ResponseHeaders}}; handle_response({ok, StatusCode, ResponseHeaders}, _, _DecodeBody) -> {error, {StatusCode, ResponseHeaders}}; handle_response({ok, StatusCode, ResponseHeaders, Client}, SuccessStatusCode, DecodeBody) when StatusCode =:= 200; StatusCode =:= 202; StatusCode =:= 204; StatusCode =:= 206; StatusCode =:= SuccessStatusCode -> case hackney:body(Client) of {ok, <<>>} when StatusCode =:= 200; StatusCode =:= SuccessStatusCode -> {ok, #{}, {StatusCode, ResponseHeaders, Client}}; {ok, Body} -> Result = case DecodeBody of true -> try jsx:decode(Body) catch Error:Reason:Stack -> erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack) end; false -> #{<<"Body">> => Body} end, {ok, Result, {StatusCode, ResponseHeaders, Client}} end; handle_response({ok, StatusCode, _ResponseHeaders, _Client}, _, _DecodeBody) when StatusCode =:= 503 -> %% Retriable error if retries are enabled {error, service_unavailable}; handle_response({ok, StatusCode, ResponseHeaders, Client}, _, _DecodeBody) -> {ok, Body} = hackney:body(Client), try DecodedError = jsx:decode(Body), {error, DecodedError, {StatusCode, ResponseHeaders, Client}} catch Error:Reason:Stack -> erlang:raise(error, {body_decode_failed, Error, Reason, StatusCode, Body}, Stack) end; handle_response({error, Reason}, _, _DecodeBody) -> {error, Reason}. build_host(_EndpointPrefix, #{region := <<"local">>, endpoint := Endpoint}) -> Endpoint; build_host(_EndpointPrefix, #{region := <<"local">>}) -> <<"localhost">>; build_host(EndpointPrefix, #{region := Region, endpoint := Endpoint}) -> aws_util:binary_join([EndpointPrefix, Region, Endpoint], <<".">>). build_url(Host, Path0, Client) -> Proto = aws_client:proto(Client), Path = erlang:iolist_to_binary(Path0), Port = aws_client:port(Client), aws_util:binary_join([Proto, <<"://">>, Host, <<":">>, Port, Path], <<"">>). -spec encode_payload(undefined | map()) -> binary(). encode_payload(undefined) -> <<>>; encode_payload(Input) -> jsx:encode(Input).