AWS SDK

AWS SDK

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/invoke_model_with_response_stream.rs

@@ -465,465 +504,504 @@
  485    485   
            meta: meta.unwrap_or_default(),
  486    486   
        })
  487    487   
    }
  488    488   
}
  489    489   
impl ::aws_types::request_id::RequestId for crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamError {
  490    490   
    fn request_id(&self) -> Option<&str> {
  491    491   
        self.meta().request_id()
  492    492   
    }
  493    493   
}
  494    494   
  495         -
pub use crate::operation::invoke_model_with_response_stream::_invoke_model_with_response_stream_output::InvokeModelWithResponseStreamOutput;
  496         -
  497    495   
pub use crate::operation::invoke_model_with_response_stream::_invoke_model_with_response_stream_input::InvokeModelWithResponseStreamInput;
  498    496   
         497  +
pub use crate::operation::invoke_model_with_response_stream::_invoke_model_with_response_stream_output::InvokeModelWithResponseStreamOutput;
         498  +
  499    499   
mod _invoke_model_with_response_stream_input;
  500    500   
  501    501   
mod _invoke_model_with_response_stream_output;
  502    502   
  503    503   
/// Builders
  504    504   
pub mod builders;

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/invoke_model_with_response_stream/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::invoke_model_with_response_stream::_invoke_model_with_response_stream_output::InvokeModelWithResponseStreamOutputBuilder;
    3         -
    4      2   
pub use crate::operation::invoke_model_with_response_stream::_invoke_model_with_response_stream_input::InvokeModelWithResponseStreamInputBuilder;
    5      3   
           4  +
pub use crate::operation::invoke_model_with_response_stream::_invoke_model_with_response_stream_output::InvokeModelWithResponseStreamOutputBuilder;
           5  +
    6      6   
impl crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/list_async_invokes.rs

@@ -403,403 +445,445 @@
  423    423   
            meta: meta.unwrap_or_default(),
  424    424   
        })
  425    425   
    }
  426    426   
}
  427    427   
impl ::aws_types::request_id::RequestId for crate::operation::list_async_invokes::ListAsyncInvokesError {
  428    428   
    fn request_id(&self) -> Option<&str> {
  429    429   
        self.meta().request_id()
  430    430   
    }
  431    431   
}
  432    432   
  433         -
pub use crate::operation::list_async_invokes::_list_async_invokes_output::ListAsyncInvokesOutput;
  434         -
  435    433   
pub use crate::operation::list_async_invokes::_list_async_invokes_input::ListAsyncInvokesInput;
  436    434   
         435  +
pub use crate::operation::list_async_invokes::_list_async_invokes_output::ListAsyncInvokesOutput;
         436  +
  437    437   
mod _list_async_invokes_input;
  438    438   
  439    439   
mod _list_async_invokes_output;
  440    440   
  441    441   
/// Builders
  442    442   
pub mod builders;
  443    443   
  444    444   
/// Paginator for this operation
  445    445   
pub mod paginator;

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/list_async_invokes/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::list_async_invokes::_list_async_invokes_output::ListAsyncInvokesOutputBuilder;
    3         -
    4      2   
pub use crate::operation::list_async_invokes::_list_async_invokes_input::ListAsyncInvokesInputBuilder;
    5      3   
           4  +
pub use crate::operation::list_async_invokes::_list_async_invokes_output::ListAsyncInvokesOutputBuilder;
           5  +
    6      6   
impl crate::operation::list_async_invokes::builders::ListAsyncInvokesInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::list_async_invokes::ListAsyncInvokesOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::list_async_invokes::ListAsyncInvokesError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/start_async_invoke.rs

@@ -404,404 +443,443 @@
  424    424   
            meta: meta.unwrap_or_default(),
  425    425   
        })
  426    426   
    }
  427    427   
}
  428    428   
impl ::aws_types::request_id::RequestId for crate::operation::start_async_invoke::StartAsyncInvokeError {
  429    429   
    fn request_id(&self) -> Option<&str> {
  430    430   
        self.meta().request_id()
  431    431   
    }
  432    432   
}
  433    433   
  434         -
pub use crate::operation::start_async_invoke::_start_async_invoke_output::StartAsyncInvokeOutput;
  435         -
  436    434   
pub use crate::operation::start_async_invoke::_start_async_invoke_input::StartAsyncInvokeInput;
  437    435   
         436  +
pub use crate::operation::start_async_invoke::_start_async_invoke_output::StartAsyncInvokeOutput;
         437  +
  438    438   
mod _start_async_invoke_input;
  439    439   
  440    440   
mod _start_async_invoke_output;
  441    441   
  442    442   
/// Builders
  443    443   
pub mod builders;

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/start_async_invoke/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::start_async_invoke::_start_async_invoke_output::StartAsyncInvokeOutputBuilder;
    3         -
    4      2   
pub use crate::operation::start_async_invoke::_start_async_invoke_input::StartAsyncInvokeInputBuilder;
    5      3   
           4  +
pub use crate::operation::start_async_invoke::_start_async_invoke_output::StartAsyncInvokeOutputBuilder;
           5  +
    6      6   
impl crate::operation::start_async_invoke::builders::StartAsyncInvokeInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::start_async_invoke::StartAsyncInvokeOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::start_async_invoke::StartAsyncInvokeError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/types.rs

@@ -1,1 +332,332 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_count_tokens_input::CountTokensInput;
           2  +
pub use crate::types::_async_invoke_status::AsyncInvokeStatus;
    3      3   
    4         -
pub use crate::types::_converse_tokens_request::ConverseTokensRequest;
           4  +
pub use crate::types::_async_invoke_output_data_config::AsyncInvokeOutputDataConfig;
    5      5   
    6         -
pub use crate::types::_system_content_block::SystemContentBlock;
           6  +
pub use crate::types::_sort_async_invocation_by::SortAsyncInvocationBy;
    7      7   
    8         -
pub use crate::types::_cache_point_block::CachePointBlock;
           8  +
pub use crate::types::_sort_order::SortOrder;
    9      9   
   10         -
pub use crate::types::_cache_point_type::CachePointType;
          10  +
pub use crate::types::_guardrail_content_source::GuardrailContentSource;
   11     11   
   12         -
pub use crate::types::_guardrail_converse_content_block::GuardrailConverseContentBlock;
          12  +
pub use crate::types::_guardrail_output_scope::GuardrailOutputScope;
   13     13   
   14         -
pub use crate::types::_guardrail_converse_image_block::GuardrailConverseImageBlock;
          14  +
pub use crate::types::_guardrail_usage::GuardrailUsage;
   15     15   
   16         -
pub use crate::types::_guardrail_converse_image_source::GuardrailConverseImageSource;
          16  +
pub use crate::types::_guardrail_action::GuardrailAction;
   17     17   
   18         -
pub use crate::types::_guardrail_converse_image_format::GuardrailConverseImageFormat;
          18  +
pub use crate::types::_guardrail_coverage::GuardrailCoverage;
   19     19   
   20         -
pub use crate::types::_guardrail_converse_text_block::GuardrailConverseTextBlock;
          20  +
pub use crate::types::_inference_configuration::InferenceConfiguration;
   21     21   
   22         -
pub use crate::types::_guardrail_converse_content_qualifier::GuardrailConverseContentQualifier;
          22  +
pub use crate::types::_tool_configuration::ToolConfiguration;
   23     23   
   24         -
pub use crate::types::_message::Message;
          24  +
pub use crate::types::_guardrail_configuration::GuardrailConfiguration;
   25     25   
   26         -
pub use crate::types::_content_block::ContentBlock;
          26  +
pub use crate::types::_performance_configuration::PerformanceConfiguration;
   27     27   
   28         -
pub use crate::types::_citations_content_block::CitationsContentBlock;
          28  +
pub use crate::types::_converse_output::ConverseOutput;
   29     29   
   30         -
pub use crate::types::_citation::Citation;
          30  +
pub use crate::types::_stop_reason::StopReason;
   31     31   
   32         -
pub use crate::types::_citation_location::CitationLocation;
          32  +
pub use crate::types::_token_usage::TokenUsage;
   33     33   
   34         -
pub use crate::types::_document_chunk_location::DocumentChunkLocation;
          34  +
pub use crate::types::_converse_metrics::ConverseMetrics;
   35     35   
   36         -
pub use crate::types::_document_page_location::DocumentPageLocation;
          36  +
pub use crate::types::_converse_trace::ConverseTrace;
   37     37   
   38         -
pub use crate::types::_document_char_location::DocumentCharLocation;
          38  +
pub use crate::types::_guardrail_stream_configuration::GuardrailStreamConfiguration;
   39     39   
   40         -
pub use crate::types::_citation_source_content::CitationSourceContent;
          40  +
pub use crate::types::_converse_stream_output::ConverseStreamOutput;
   41     41   
   42         -
pub use crate::types::_citation_generated_content::CitationGeneratedContent;
          42  +
pub use crate::types::_trace::Trace;
   43     43   
   44         -
pub use crate::types::_reasoning_content_block::ReasoningContentBlock;
          44  +
pub use crate::types::_performance_config_latency::PerformanceConfigLatency;
   45     45   
   46         -
pub use crate::types::_reasoning_text_block::ReasoningTextBlock;
          46  +
pub use crate::types::_invoke_model_with_bidirectional_stream_input::InvokeModelWithBidirectionalStreamInput;
   47     47   
   48         -
pub use crate::types::_tool_result_block::ToolResultBlock;
          48  +
pub use crate::types::_invoke_model_with_bidirectional_stream_output::InvokeModelWithBidirectionalStreamOutput;
   49     49   
   50         -
pub use crate::types::_tool_result_status::ToolResultStatus;
          50  +
pub use crate::types::_response_stream::ResponseStream;
   51     51   
   52         -
pub use crate::types::_tool_result_content_block::ToolResultContentBlock;
          52  +
pub use crate::types::_count_tokens_input::CountTokensInput;
   53     53   
   54         -
pub use crate::types::_video_block::VideoBlock;
          54  +
pub use crate::types::_async_invoke_s3_output_data_config::AsyncInvokeS3OutputDataConfig;
   55     55   
   56         -
pub use crate::types::_video_source::VideoSource;
          56  +
pub use crate::types::_async_invoke_summary::AsyncInvokeSummary;
   57     57   
   58         -
pub use crate::types::_s3_location::S3Location;
          58  +
pub use crate::types::_tag::Tag;
   59     59   
   60         -
pub use crate::types::_video_format::VideoFormat;
          60  +
pub use crate::types::_guardrail_content_block::GuardrailContentBlock;
   61     61   
   62         -
pub use crate::types::_document_block::DocumentBlock;
          62  +
pub use crate::types::_guardrail_output_content::GuardrailOutputContent;
   63     63   
   64         -
pub use crate::types::_citations_config::CitationsConfig;
          64  +
pub use crate::types::_guardrail_assessment::GuardrailAssessment;
   65     65   
   66         -
pub use crate::types::_document_source::DocumentSource;
          66  +
pub use crate::types::_guardrail_text_characters_coverage::GuardrailTextCharactersCoverage;
   67     67   
   68         -
pub use crate::types::_document_content_block::DocumentContentBlock;
          68  +
pub use crate::types::_guardrail_image_coverage::GuardrailImageCoverage;
   69     69   
   70         -
pub use crate::types::_document_format::DocumentFormat;
          70  +
pub use crate::types::_message::Message;
   71     71   
   72         -
pub use crate::types::_image_block::ImageBlock;
          72  +
pub use crate::types::_system_content_block::SystemContentBlock;
   73     73   
   74         -
pub use crate::types::_image_source::ImageSource;
          74  +
pub use crate::types::_tool_choice::ToolChoice;
   75     75   
   76         -
pub use crate::types::_image_format::ImageFormat;
          76  +
pub use crate::types::_guardrail_trace::GuardrailTrace;
   77     77   
   78         -
pub use crate::types::_tool_use_block::ToolUseBlock;
          78  +
pub use crate::types::_prompt_variable_values::PromptVariableValues;
   79     79   
   80         -
pub use crate::types::_conversation_role::ConversationRole;
          80  +
pub use crate::types::_guardrail_trace_assessment::GuardrailTraceAssessment;
   81     81   
   82         -
pub use crate::types::_invoke_model_tokens_request::InvokeModelTokensRequest;
          82  +
pub use crate::types::_prompt_router_trace::PromptRouterTrace;
   83     83   
   84         -
pub use crate::types::_performance_config_latency::PerformanceConfigLatency;
          84  +
pub use crate::types::_guardrail_stream_processing_mode::GuardrailStreamProcessingMode;
   85     85   
   86         -
pub use crate::types::_response_stream::ResponseStream;
          86  +
pub use crate::types::_message_start_event::MessageStartEvent;
   87     87   
   88         -
pub use crate::types::_payload_part::PayloadPart;
          88  +
pub use crate::types::_content_block_start_event::ContentBlockStartEvent;
   89     89   
   90         -
pub use crate::types::_trace::Trace;
          90  +
pub use crate::types::_content_block_delta_event::ContentBlockDeltaEvent;
   91     91   
   92         -
pub use crate::types::_invoke_model_with_bidirectional_stream_output::InvokeModelWithBidirectionalStreamOutput;
          92  +
pub use crate::types::_content_block_stop_event::ContentBlockStopEvent;
   93     93   
   94         -
pub use crate::types::_bidirectional_output_payload_part::BidirectionalOutputPayloadPart;
          94  +
pub use crate::types::_message_stop_event::MessageStopEvent;
   95     95   
   96         -
pub use crate::types::_invoke_model_with_bidirectional_stream_input::InvokeModelWithBidirectionalStreamInput;
          96  +
pub use crate::types::_converse_stream_metadata_event::ConverseStreamMetadataEvent;
   97     97   
   98     98   
pub use crate::types::_bidirectional_input_payload_part::BidirectionalInputPayloadPart;
   99     99   
  100         -
pub use crate::types::_converse_stream_output::ConverseStreamOutput;
  101         -
  102         -
pub use crate::types::_converse_stream_metadata_event::ConverseStreamMetadataEvent;
         100  +
pub use crate::types::_bidirectional_output_payload_part::BidirectionalOutputPayloadPart;
  103    101   
  104         -
pub use crate::types::_performance_configuration::PerformanceConfiguration;
         102  +
pub use crate::types::_payload_part::PayloadPart;
  105    103   
  106         -
pub use crate::types::_converse_stream_trace::ConverseStreamTrace;
         104  +
pub use crate::types::_invoke_model_tokens_request::InvokeModelTokensRequest;
  107    105   
  108         -
pub use crate::types::_prompt_router_trace::PromptRouterTrace;
         106  +
pub use crate::types::_converse_tokens_request::ConverseTokensRequest;
  109    107   
  110         -
pub use crate::types::_guardrail_trace_assessment::GuardrailTraceAssessment;
         108  +
pub use crate::types::_guardrail_text_block::GuardrailTextBlock;
  111    109   
  112         -
pub use crate::types::_guardrail_assessment::GuardrailAssessment;
         110  +
pub use crate::types::_guardrail_image_block::GuardrailImageBlock;
  113    111   
  114         -
pub use crate::types::_guardrail_invocation_metrics::GuardrailInvocationMetrics;
         112  +
pub use crate::types::_guardrail_topic_policy_assessment::GuardrailTopicPolicyAssessment;
  115    113   
  116         -
pub use crate::types::_guardrail_coverage::GuardrailCoverage;
         114  +
pub use crate::types::_guardrail_content_policy_assessment::GuardrailContentPolicyAssessment;
  117    115   
  118         -
pub use crate::types::_guardrail_image_coverage::GuardrailImageCoverage;
         116  +
pub use crate::types::_guardrail_word_policy_assessment::GuardrailWordPolicyAssessment;
  119    117   
  120         -
pub use crate::types::_guardrail_text_characters_coverage::GuardrailTextCharactersCoverage;
         118  +
pub use crate::types::_guardrail_sensitive_information_policy_assessment::GuardrailSensitiveInformationPolicyAssessment;
  121    119   
  122         -
pub use crate::types::_guardrail_usage::GuardrailUsage;
         120  +
pub use crate::types::_guardrail_contextual_grounding_policy_assessment::GuardrailContextualGroundingPolicyAssessment;
  123    121   
  124    122   
pub use crate::types::_guardrail_automated_reasoning_policy_assessment::GuardrailAutomatedReasoningPolicyAssessment;
  125    123   
  126         -
pub use crate::types::_guardrail_automated_reasoning_finding::GuardrailAutomatedReasoningFinding;
         124  +
pub use crate::types::_guardrail_invocation_metrics::GuardrailInvocationMetrics;
  127    125   
  128         -
pub use crate::types::_guardrail_automated_reasoning_no_translations_finding::GuardrailAutomatedReasoningNoTranslationsFinding;
         126  +
pub use crate::types::_conversation_role::ConversationRole;
  129    127   
  130         -
pub use crate::types::_guardrail_automated_reasoning_too_complex_finding::GuardrailAutomatedReasoningTooComplexFinding;
         128  +
pub use crate::types::_guardrail_converse_content_block::GuardrailConverseContentBlock;
  131    129   
  132         -
pub use crate::types::_guardrail_automated_reasoning_translation_ambiguous_finding::GuardrailAutomatedReasoningTranslationAmbiguousFinding;
         130  +
pub use crate::types::_cache_point_block::CachePointBlock;
  133    131   
  134         -
pub use crate::types::_guardrail_automated_reasoning_scenario::GuardrailAutomatedReasoningScenario;
         132  +
pub use crate::types::_tool::Tool;
  135    133   
  136         -
pub use crate::types::_guardrail_automated_reasoning_statement::GuardrailAutomatedReasoningStatement;
         134  +
pub use crate::types::_auto_tool_choice::AutoToolChoice;
  137    135   
  138         -
pub use crate::types::_guardrail_automated_reasoning_translation_option::GuardrailAutomatedReasoningTranslationOption;
         136  +
pub use crate::types::_any_tool_choice::AnyToolChoice;
  139    137   
  140         -
pub use crate::types::_guardrail_automated_reasoning_translation::GuardrailAutomatedReasoningTranslation;
         138  +
pub use crate::types::_specific_tool_choice::SpecificToolChoice;
  141    139   
  142         -
pub use crate::types::_guardrail_automated_reasoning_input_text_reference::GuardrailAutomatedReasoningInputTextReference;
         140  +
pub use crate::types::_content_block_start::ContentBlockStart;
  143    141   
  144         -
pub use crate::types::_guardrail_automated_reasoning_impossible_finding::GuardrailAutomatedReasoningImpossibleFinding;
         142  +
pub use crate::types::_content_block_delta::ContentBlockDelta;
  145    143   
  146         -
pub use crate::types::_guardrail_automated_reasoning_logic_warning::GuardrailAutomatedReasoningLogicWarning;
         144  +
pub use crate::types::_converse_stream_metrics::ConverseStreamMetrics;
  147    145   
  148         -
pub use crate::types::_guardrail_automated_reasoning_logic_warning_type::GuardrailAutomatedReasoningLogicWarningType;
         146  +
pub use crate::types::_converse_stream_trace::ConverseStreamTrace;
  149    147   
  150         -
pub use crate::types::_guardrail_automated_reasoning_rule::GuardrailAutomatedReasoningRule;
         148  +
pub use crate::types::_guardrail_image_format::GuardrailImageFormat;
  151    149   
  152         -
pub use crate::types::_guardrail_automated_reasoning_satisfiable_finding::GuardrailAutomatedReasoningSatisfiableFinding;
         150  +
pub use crate::types::_guardrail_image_source::GuardrailImageSource;
  153    151   
  154         -
pub use crate::types::_guardrail_automated_reasoning_invalid_finding::GuardrailAutomatedReasoningInvalidFinding;
         152  +
pub use crate::types::_content_block::ContentBlock;
  155    153   
  156         -
pub use crate::types::_guardrail_automated_reasoning_valid_finding::GuardrailAutomatedReasoningValidFinding;
         154  +
pub use crate::types::_guardrail_converse_text_block::GuardrailConverseTextBlock;
  157    155   
  158         -
pub use crate::types::_guardrail_contextual_grounding_policy_assessment::GuardrailContextualGroundingPolicyAssessment;
         156  +
pub use crate::types::_guardrail_converse_image_block::GuardrailConverseImageBlock;
  159    157   
  160         -
pub use crate::types::_guardrail_contextual_grounding_filter::GuardrailContextualGroundingFilter;
         158  +
pub use crate::types::_cache_point_type::CachePointType;
  161    159   
  162         -
pub use crate::types::_guardrail_contextual_grounding_policy_action::GuardrailContextualGroundingPolicyAction;
         160  +
pub use crate::types::_tool_specification::ToolSpecification;
  163    161   
  164         -
pub use crate::types::_guardrail_contextual_grounding_filter_type::GuardrailContextualGroundingFilterType;
         162  +
pub use crate::types::_tool_use_block_start::ToolUseBlockStart;
  165    163   
  166         -
pub use crate::types::_guardrail_sensitive_information_policy_assessment::GuardrailSensitiveInformationPolicyAssessment;
         164  +
pub use crate::types::_tool_use_block_delta::ToolUseBlockDelta;
  167    165   
  168         -
pub use crate::types::_guardrail_regex_filter::GuardrailRegexFilter;
         166  +
pub use crate::types::_reasoning_content_block_delta::ReasoningContentBlockDelta;
  169    167   
  170         -
pub use crate::types::_guardrail_sensitive_information_policy_action::GuardrailSensitiveInformationPolicyAction;
         168  +
pub use crate::types::_citations_delta::CitationsDelta;
  171    169   
  172         -
pub use crate::types::_guardrail_pii_entity_filter::GuardrailPiiEntityFilter;
         170  +
pub use crate::types::_guardrail_content_qualifier::GuardrailContentQualifier;
  173    171   
  174         -
pub use crate::types::_guardrail_pii_entity_type::GuardrailPiiEntityType;
         172  +
pub use crate::types::_guardrail_topic::GuardrailTopic;
  175    173   
  176         -
pub use crate::types::_guardrail_word_policy_assessment::GuardrailWordPolicyAssessment;
         174  +
pub use crate::types::_guardrail_content_filter::GuardrailContentFilter;
         175  +
         176  +
pub use crate::types::_guardrail_custom_word::GuardrailCustomWord;
  177    177   
  178    178   
pub use crate::types::_guardrail_managed_word::GuardrailManagedWord;
  179    179   
  180         -
pub use crate::types::_guardrail_word_policy_action::GuardrailWordPolicyAction;
         180  +
pub use crate::types::_guardrail_pii_entity_filter::GuardrailPiiEntityFilter;
  181    181   
  182         -
pub use crate::types::_guardrail_managed_word_type::GuardrailManagedWordType;
         182  +
pub use crate::types::_guardrail_regex_filter::GuardrailRegexFilter;
  183    183   
  184         -
pub use crate::types::_guardrail_custom_word::GuardrailCustomWord;
         184  +
pub use crate::types::_guardrail_contextual_grounding_filter::GuardrailContextualGroundingFilter;
  185    185   
  186         -
pub use crate::types::_guardrail_content_policy_assessment::GuardrailContentPolicyAssessment;
         186  +
pub use crate::types::_guardrail_automated_reasoning_finding::GuardrailAutomatedReasoningFinding;
  187    187   
  188         -
pub use crate::types::_guardrail_content_filter::GuardrailContentFilter;
         188  +
pub use crate::types::_image_block::ImageBlock;
  189    189   
  190         -
pub use crate::types::_guardrail_content_policy_action::GuardrailContentPolicyAction;
         190  +
pub use crate::types::_document_block::DocumentBlock;
  191    191   
  192         -
pub use crate::types::_guardrail_content_filter_strength::GuardrailContentFilterStrength;
         192  +
pub use crate::types::_video_block::VideoBlock;
  193    193   
  194         -
pub use crate::types::_guardrail_content_filter_confidence::GuardrailContentFilterConfidence;
         194  +
pub use crate::types::_tool_use_block::ToolUseBlock;
  195    195   
  196         -
pub use crate::types::_guardrail_content_filter_type::GuardrailContentFilterType;
         196  +
pub use crate::types::_tool_result_block::ToolResultBlock;
  197    197   
  198         -
pub use crate::types::_guardrail_topic_policy_assessment::GuardrailTopicPolicyAssessment;
         198  +
pub use crate::types::_reasoning_content_block::ReasoningContentBlock;
  199    199   
  200         -
pub use crate::types::_guardrail_topic::GuardrailTopic;
         200  +
pub use crate::types::_citations_content_block::CitationsContentBlock;
  201    201   
  202         -
pub use crate::types::_guardrail_topic_policy_action::GuardrailTopicPolicyAction;
         202  +
pub use crate::types::_guardrail_converse_image_format::GuardrailConverseImageFormat;
  203    203   
  204         -
pub use crate::types::_guardrail_topic_type::GuardrailTopicType;
         204  +
pub use crate::types::_guardrail_converse_image_source::GuardrailConverseImageSource;
  205    205   
  206         -
pub use crate::types::_converse_stream_metrics::ConverseStreamMetrics;
         206  +
pub use crate::types::_tool_input_schema::ToolInputSchema;
  207    207   
  208         -
pub use crate::types::_token_usage::TokenUsage;
         208  +
pub use crate::types::_citation_location::CitationLocation;
  209    209   
  210         -
pub use crate::types::_message_stop_event::MessageStopEvent;
         210  +
pub use crate::types::_guardrail_topic_type::GuardrailTopicType;
  211    211   
  212         -
pub use crate::types::_stop_reason::StopReason;
         212  +
pub use crate::types::_guardrail_topic_policy_action::GuardrailTopicPolicyAction;
  213    213   
  214         -
pub use crate::types::_content_block_stop_event::ContentBlockStopEvent;
         214  +
pub use crate::types::_guardrail_content_filter_type::GuardrailContentFilterType;
  215    215   
  216         -
pub use crate::types::_content_block_delta_event::ContentBlockDeltaEvent;
         216  +
pub use crate::types::_guardrail_content_filter_confidence::GuardrailContentFilterConfidence;
  217    217   
  218         -
pub use crate::types::_content_block_delta::ContentBlockDelta;
         218  +
pub use crate::types::_guardrail_content_filter_strength::GuardrailContentFilterStrength;
  219    219   
  220         -
pub use crate::types::_citations_delta::CitationsDelta;
         220  +
pub use crate::types::_guardrail_content_policy_action::GuardrailContentPolicyAction;
  221    221   
  222         -
pub use crate::types::_citation_source_content_delta::CitationSourceContentDelta;
         222  +
pub use crate::types::_guardrail_word_policy_action::GuardrailWordPolicyAction;
  223    223   
  224         -
pub use crate::types::_reasoning_content_block_delta::ReasoningContentBlockDelta;
         224  +
pub use crate::types::_guardrail_managed_word_type::GuardrailManagedWordType;
  225    225   
  226         -
pub use crate::types::_tool_use_block_delta::ToolUseBlockDelta;
         226  +
pub use crate::types::_guardrail_pii_entity_type::GuardrailPiiEntityType;
  227    227   
  228         -
pub use crate::types::_content_block_start_event::ContentBlockStartEvent;
         228  +
pub use crate::types::_guardrail_sensitive_information_policy_action::GuardrailSensitiveInformationPolicyAction;
  229    229   
  230         -
pub use crate::types::_content_block_start::ContentBlockStart;
         230  +
pub use crate::types::_guardrail_contextual_grounding_filter_type::GuardrailContextualGroundingFilterType;
  231    231   
  232         -
pub use crate::types::_tool_use_block_start::ToolUseBlockStart;
         232  +
pub use crate::types::_guardrail_contextual_grounding_policy_action::GuardrailContextualGroundingPolicyAction;
  233    233   
  234         -
pub use crate::types::_message_start_event::MessageStartEvent;
         234  +
pub use crate::types::_guardrail_automated_reasoning_valid_finding::GuardrailAutomatedReasoningValidFinding;
  235    235   
  236         -
pub use crate::types::_prompt_variable_values::PromptVariableValues;
         236  +
pub use crate::types::_guardrail_automated_reasoning_invalid_finding::GuardrailAutomatedReasoningInvalidFinding;
  237    237   
  238         -
pub use crate::types::_guardrail_stream_configuration::GuardrailStreamConfiguration;
         238  +
pub use crate::types::_guardrail_automated_reasoning_satisfiable_finding::GuardrailAutomatedReasoningSatisfiableFinding;
  239    239   
  240         -
pub use crate::types::_guardrail_stream_processing_mode::GuardrailStreamProcessingMode;
         240  +
pub use crate::types::_guardrail_automated_reasoning_impossible_finding::GuardrailAutomatedReasoningImpossibleFinding;
  241    241   
  242         -
pub use crate::types::_guardrail_trace::GuardrailTrace;
         242  +
pub use crate::types::_guardrail_automated_reasoning_translation_ambiguous_finding::GuardrailAutomatedReasoningTranslationAmbiguousFinding;
  243    243   
  244         -
pub use crate::types::_tool_configuration::ToolConfiguration;
         244  +
pub use crate::types::_guardrail_automated_reasoning_too_complex_finding::GuardrailAutomatedReasoningTooComplexFinding;
  245    245   
  246         -
pub use crate::types::_tool_choice::ToolChoice;
         246  +
pub use crate::types::_guardrail_automated_reasoning_no_translations_finding::GuardrailAutomatedReasoningNoTranslationsFinding;
  247    247   
  248         -
pub use crate::types::_specific_tool_choice::SpecificToolChoice;
         248  +
pub use crate::types::_image_format::ImageFormat;
  249    249   
  250         -
pub use crate::types::_any_tool_choice::AnyToolChoice;
         250  +
pub use crate::types::_image_source::ImageSource;
  251    251   
  252         -
pub use crate::types::_auto_tool_choice::AutoToolChoice;
         252  +
pub use crate::types::_document_format::DocumentFormat;
  253    253   
  254         -
pub use crate::types::_tool::Tool;
         254  +
pub use crate::types::_document_source::DocumentSource;
  255    255   
  256         -
pub use crate::types::_tool_specification::ToolSpecification;
         256  +
pub use crate::types::_citations_config::CitationsConfig;
  257    257   
  258         -
pub use crate::types::_tool_input_schema::ToolInputSchema;
         258  +
pub use crate::types::_video_format::VideoFormat;
  259    259   
  260         -
pub use crate::types::_inference_configuration::InferenceConfiguration;
         260  +
pub use crate::types::_video_source::VideoSource;
  261    261   
  262         -
pub use crate::types::_converse_trace::ConverseTrace;
         262  +
pub use crate::types::_tool_result_status::ToolResultStatus;
  263    263   
  264         -
pub use crate::types::_converse_metrics::ConverseMetrics;
         264  +
pub use crate::types::_reasoning_text_block::ReasoningTextBlock;
  265    265   
  266         -
pub use crate::types::_converse_output::ConverseOutput;
         266  +
pub use crate::types::_guardrail_converse_content_qualifier::GuardrailConverseContentQualifier;
  267    267   
  268         -
pub use crate::types::_guardrail_configuration::GuardrailConfiguration;
         268  +
pub use crate::types::_citation_source_content_delta::CitationSourceContentDelta;
  269    269   
  270         -
pub use crate::types::_guardrail_output_content::GuardrailOutputContent;
         270  +
pub use crate::types::_document_char_location::DocumentCharLocation;
  271    271   
  272         -
pub use crate::types::_guardrail_action::GuardrailAction;
         272  +
pub use crate::types::_document_page_location::DocumentPageLocation;
  273    273   
  274         -
pub use crate::types::_guardrail_output_scope::GuardrailOutputScope;
         274  +
pub use crate::types::_document_chunk_location::DocumentChunkLocation;
  275    275   
  276         -
pub use crate::types::_guardrail_content_block::GuardrailContentBlock;
         276  +
pub use crate::types::_guardrail_automated_reasoning_translation::GuardrailAutomatedReasoningTranslation;
  277    277   
  278         -
pub use crate::types::_guardrail_image_block::GuardrailImageBlock;
         278  +
pub use crate::types::_guardrail_automated_reasoning_scenario::GuardrailAutomatedReasoningScenario;
  279    279   
  280         -
pub use crate::types::_guardrail_image_source::GuardrailImageSource;
         280  +
pub use crate::types::_guardrail_automated_reasoning_logic_warning::GuardrailAutomatedReasoningLogicWarning;
  281    281   
  282         -
pub use crate::types::_guardrail_image_format::GuardrailImageFormat;
         282  +
pub use crate::types::_s3_location::S3Location;
  283    283   
  284         -
pub use crate::types::_guardrail_text_block::GuardrailTextBlock;
         284  +
pub use crate::types::_tool_result_content_block::ToolResultContentBlock;
  285    285   
  286         -
pub use crate::types::_guardrail_content_qualifier::GuardrailContentQualifier;
         286  +
pub use crate::types::_citation_generated_content::CitationGeneratedContent;
  287    287   
  288         -
pub use crate::types::_guardrail_content_source::GuardrailContentSource;
         288  +
pub use crate::types::_citation::Citation;
  289    289   
  290         -
pub use crate::types::_tag::Tag;
         290  +
pub use crate::types::_guardrail_automated_reasoning_rule::GuardrailAutomatedReasoningRule;
  291    291   
  292         -
pub use crate::types::_async_invoke_output_data_config::AsyncInvokeOutputDataConfig;
         292  +
pub use crate::types::_guardrail_automated_reasoning_logic_warning_type::GuardrailAutomatedReasoningLogicWarningType;
  293    293   
  294         -
pub use crate::types::_async_invoke_s3_output_data_config::AsyncInvokeS3OutputDataConfig;
         294  +
pub use crate::types::_guardrail_automated_reasoning_translation_option::GuardrailAutomatedReasoningTranslationOption;
  295    295   
  296         -
pub use crate::types::_async_invoke_summary::AsyncInvokeSummary;
         296  +
pub use crate::types::_document_content_block::DocumentContentBlock;
  297    297   
  298         -
pub use crate::types::_async_invoke_status::AsyncInvokeStatus;
         298  +
pub use crate::types::_guardrail_automated_reasoning_statement::GuardrailAutomatedReasoningStatement;
  299    299   
  300         -
pub use crate::types::_sort_order::SortOrder;
         300  +
pub use crate::types::_guardrail_automated_reasoning_input_text_reference::GuardrailAutomatedReasoningInputTextReference;
  301    301   
  302         -
pub use crate::types::_sort_async_invocation_by::SortAsyncInvocationBy;
         302  +
pub use crate::types::_citation_source_content::CitationSourceContent;
  303    303   
  304    304   
mod _any_tool_choice;
  305    305   
  306    306   
mod _async_invoke_output_data_config;
  307    307   
  308    308   
mod _async_invoke_s3_output_data_config;
  309    309   
  310    310   
mod _async_invoke_status;
  311    311   
  312    312   
mod _async_invoke_summary;

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/types/builders.rs

@@ -1,1 +0,174 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_converse_tokens_request::ConverseTokensRequestBuilder;
    3         -
    4         -
pub use crate::types::_cache_point_block::CachePointBlockBuilder;
           2  +
pub use crate::types::_guardrail_usage::GuardrailUsageBuilder;
    5      3   
    6         -
pub use crate::types::_guardrail_converse_image_block::GuardrailConverseImageBlockBuilder;
           4  +
pub use crate::types::_guardrail_coverage::GuardrailCoverageBuilder;
    7      5   
    8         -
pub use crate::types::_guardrail_converse_text_block::GuardrailConverseTextBlockBuilder;
           6  +
pub use crate::types::_inference_configuration::InferenceConfigurationBuilder;
    9      7   
   10         -
pub use crate::types::_message::MessageBuilder;
           8  +
pub use crate::types::_tool_configuration::ToolConfigurationBuilder;
   11      9   
   12         -
pub use crate::types::_citations_content_block::CitationsContentBlockBuilder;
          10  +
pub use crate::types::_guardrail_configuration::GuardrailConfigurationBuilder;
   13     11   
   14         -
pub use crate::types::_citation::CitationBuilder;
          12  +
pub use crate::types::_performance_configuration::PerformanceConfigurationBuilder;
   15     13   
   16         -
pub use crate::types::_document_chunk_location::DocumentChunkLocationBuilder;
          14  +
pub use crate::types::_token_usage::TokenUsageBuilder;
   17     15   
   18         -
pub use crate::types::_document_page_location::DocumentPageLocationBuilder;
          16  +
pub use crate::types::_converse_metrics::ConverseMetricsBuilder;
   19     17   
   20         -
pub use crate::types::_document_char_location::DocumentCharLocationBuilder;
          18  +
pub use crate::types::_converse_trace::ConverseTraceBuilder;
   21     19   
   22         -
pub use crate::types::_reasoning_text_block::ReasoningTextBlockBuilder;
          20  +
pub use crate::types::_guardrail_stream_configuration::GuardrailStreamConfigurationBuilder;
   23     21   
   24         -
pub use crate::types::_tool_result_block::ToolResultBlockBuilder;
          22  +
pub use crate::types::_async_invoke_s3_output_data_config::AsyncInvokeS3OutputDataConfigBuilder;
   25     23   
   26         -
pub use crate::types::_video_block::VideoBlockBuilder;
          24  +
pub use crate::types::_async_invoke_summary::AsyncInvokeSummaryBuilder;
   27     25   
   28         -
pub use crate::types::_s3_location::S3LocationBuilder;
          26  +
pub use crate::types::_tag::TagBuilder;
   29     27   
   30         -
pub use crate::types::_document_block::DocumentBlockBuilder;
          28  +
pub use crate::types::_guardrail_output_content::GuardrailOutputContentBuilder;
   31     29   
   32         -
pub use crate::types::_citations_config::CitationsConfigBuilder;
          30  +
pub use crate::types::_guardrail_assessment::GuardrailAssessmentBuilder;
   33     31   
   34         -
pub use crate::types::_image_block::ImageBlockBuilder;
          32  +
pub use crate::types::_guardrail_text_characters_coverage::GuardrailTextCharactersCoverageBuilder;
   35     33   
   36         -
pub use crate::types::_tool_use_block::ToolUseBlockBuilder;
          34  +
pub use crate::types::_guardrail_image_coverage::GuardrailImageCoverageBuilder;
   37     35   
   38         -
pub use crate::types::_invoke_model_tokens_request::InvokeModelTokensRequestBuilder;
          36  +
pub use crate::types::_message::MessageBuilder;
   39     37   
   40         -
pub use crate::types::_payload_part::PayloadPartBuilder;
          38  +
pub use crate::types::_guardrail_trace_assessment::GuardrailTraceAssessmentBuilder;
   41     39   
   42         -
pub use crate::types::_bidirectional_output_payload_part::BidirectionalOutputPayloadPartBuilder;
          40  +
pub use crate::types::_prompt_router_trace::PromptRouterTraceBuilder;
   43     41   
   44         -
pub use crate::types::_bidirectional_input_payload_part::BidirectionalInputPayloadPartBuilder;
          42  +
pub use crate::types::_message_start_event::MessageStartEventBuilder;
   45     43   
   46         -
pub use crate::types::_converse_stream_metadata_event::ConverseStreamMetadataEventBuilder;
          44  +
pub use crate::types::_content_block_start_event::ContentBlockStartEventBuilder;
   47     45   
   48         -
pub use crate::types::_performance_configuration::PerformanceConfigurationBuilder;
          46  +
pub use crate::types::_content_block_delta_event::ContentBlockDeltaEventBuilder;
   49     47   
   50         -
pub use crate::types::_converse_stream_trace::ConverseStreamTraceBuilder;
          48  +
pub use crate::types::_content_block_stop_event::ContentBlockStopEventBuilder;
   51     49   
   52         -
pub use crate::types::_prompt_router_trace::PromptRouterTraceBuilder;
          50  +
pub use crate::types::_message_stop_event::MessageStopEventBuilder;
   53     51   
   54         -
pub use crate::types::_guardrail_trace_assessment::GuardrailTraceAssessmentBuilder;
          52  +
pub use crate::types::_converse_stream_metadata_event::ConverseStreamMetadataEventBuilder;
   55     53   
   56         -
pub use crate::types::_guardrail_assessment::GuardrailAssessmentBuilder;
          54  +
pub use crate::types::_bidirectional_input_payload_part::BidirectionalInputPayloadPartBuilder;
   57     55   
   58         -
pub use crate::types::_guardrail_invocation_metrics::GuardrailInvocationMetricsBuilder;
          56  +
pub use crate::types::_bidirectional_output_payload_part::BidirectionalOutputPayloadPartBuilder;
   59     57   
   60         -
pub use crate::types::_guardrail_coverage::GuardrailCoverageBuilder;
          58  +
pub use crate::types::_payload_part::PayloadPartBuilder;
   61     59   
   62         -
pub use crate::types::_guardrail_image_coverage::GuardrailImageCoverageBuilder;
          60  +
pub use crate::types::_invoke_model_tokens_request::InvokeModelTokensRequestBuilder;
   63     61   
   64         -
pub use crate::types::_guardrail_text_characters_coverage::GuardrailTextCharactersCoverageBuilder;
          62  +
pub use crate::types::_converse_tokens_request::ConverseTokensRequestBuilder;
   65     63   
   66         -
pub use crate::types::_guardrail_usage::GuardrailUsageBuilder;
          64  +
pub use crate::types::_guardrail_text_block::GuardrailTextBlockBuilder;
   67     65   
   68         -
pub use crate::types::_guardrail_automated_reasoning_policy_assessment::GuardrailAutomatedReasoningPolicyAssessmentBuilder;
          66  +
pub use crate::types::_guardrail_image_block::GuardrailImageBlockBuilder;
   69     67   
   70         -
pub use crate::types::_guardrail_automated_reasoning_no_translations_finding::GuardrailAutomatedReasoningNoTranslationsFindingBuilder;
          68  +
pub use crate::types::_guardrail_topic_policy_assessment::GuardrailTopicPolicyAssessmentBuilder;
   71     69   
   72         -
pub use crate::types::_guardrail_automated_reasoning_too_complex_finding::GuardrailAutomatedReasoningTooComplexFindingBuilder;
          70  +
pub use crate::types::_guardrail_content_policy_assessment::GuardrailContentPolicyAssessmentBuilder;
   73     71   
   74         -
pub use crate::types::_guardrail_automated_reasoning_translation_ambiguous_finding::GuardrailAutomatedReasoningTranslationAmbiguousFindingBuilder;
          72  +
pub use crate::types::_guardrail_word_policy_assessment::GuardrailWordPolicyAssessmentBuilder;
   75     73   
   76         -
pub use crate::types::_guardrail_automated_reasoning_scenario::GuardrailAutomatedReasoningScenarioBuilder;
          74  +
pub use crate::types::_guardrail_sensitive_information_policy_assessment::GuardrailSensitiveInformationPolicyAssessmentBuilder;
   77     75   
   78         -
pub use crate::types::_guardrail_automated_reasoning_statement::GuardrailAutomatedReasoningStatementBuilder;
          76  +
pub use crate::types::_guardrail_contextual_grounding_policy_assessment::GuardrailContextualGroundingPolicyAssessmentBuilder;
   79     77   
   80         -
pub use crate::types::_guardrail_automated_reasoning_translation_option::GuardrailAutomatedReasoningTranslationOptionBuilder;
          78  +
pub use crate::types::_guardrail_automated_reasoning_policy_assessment::GuardrailAutomatedReasoningPolicyAssessmentBuilder;
   81     79   
   82         -
pub use crate::types::_guardrail_automated_reasoning_translation::GuardrailAutomatedReasoningTranslationBuilder;
          80  +
pub use crate::types::_guardrail_invocation_metrics::GuardrailInvocationMetricsBuilder;
   83     81   
   84         -
pub use crate::types::_guardrail_automated_reasoning_input_text_reference::GuardrailAutomatedReasoningInputTextReferenceBuilder;
          82  +
pub use crate::types::_cache_point_block::CachePointBlockBuilder;
   85     83   
   86         -
pub use crate::types::_guardrail_automated_reasoning_impossible_finding::GuardrailAutomatedReasoningImpossibleFindingBuilder;
          84  +
pub use crate::types::_auto_tool_choice::AutoToolChoiceBuilder;
   87     85   
   88         -
pub use crate::types::_guardrail_automated_reasoning_logic_warning::GuardrailAutomatedReasoningLogicWarningBuilder;
          86  +
pub use crate::types::_any_tool_choice::AnyToolChoiceBuilder;
   89     87   
   90         -
pub use crate::types::_guardrail_automated_reasoning_rule::GuardrailAutomatedReasoningRuleBuilder;
          88  +
pub use crate::types::_specific_tool_choice::SpecificToolChoiceBuilder;
   91     89   
   92         -
pub use crate::types::_guardrail_automated_reasoning_satisfiable_finding::GuardrailAutomatedReasoningSatisfiableFindingBuilder;
          90  +
pub use crate::types::_converse_stream_metrics::ConverseStreamMetricsBuilder;
   93     91   
   94         -
pub use crate::types::_guardrail_automated_reasoning_invalid_finding::GuardrailAutomatedReasoningInvalidFindingBuilder;
          92  +
pub use crate::types::_converse_stream_trace::ConverseStreamTraceBuilder;
   95     93   
   96         -
pub use crate::types::_guardrail_automated_reasoning_valid_finding::GuardrailAutomatedReasoningValidFindingBuilder;
          94  +
pub use crate::types::_guardrail_converse_text_block::GuardrailConverseTextBlockBuilder;
   97     95   
   98         -
pub use crate::types::_guardrail_contextual_grounding_policy_assessment::GuardrailContextualGroundingPolicyAssessmentBuilder;
          96  +
pub use crate::types::_guardrail_converse_image_block::GuardrailConverseImageBlockBuilder;
   99     97   
  100         -
pub use crate::types::_guardrail_contextual_grounding_filter::GuardrailContextualGroundingFilterBuilder;
          98  +
pub use crate::types::_tool_specification::ToolSpecificationBuilder;
  101     99   
  102         -
pub use crate::types::_guardrail_sensitive_information_policy_assessment::GuardrailSensitiveInformationPolicyAssessmentBuilder;
         100  +
pub use crate::types::_tool_use_block_start::ToolUseBlockStartBuilder;
  103    101   
  104         -
pub use crate::types::_guardrail_regex_filter::GuardrailRegexFilterBuilder;
         102  +
pub use crate::types::_tool_use_block_delta::ToolUseBlockDeltaBuilder;
  105    103   
  106         -
pub use crate::types::_guardrail_pii_entity_filter::GuardrailPiiEntityFilterBuilder;
         104  +
pub use crate::types::_citations_delta::CitationsDeltaBuilder;
  107    105   
  108         -
pub use crate::types::_guardrail_word_policy_assessment::GuardrailWordPolicyAssessmentBuilder;
         106  +
pub use crate::types::_guardrail_topic::GuardrailTopicBuilder;
  109    107   
  110         -
pub use crate::types::_guardrail_managed_word::GuardrailManagedWordBuilder;
         108  +
pub use crate::types::_guardrail_content_filter::GuardrailContentFilterBuilder;
  111    109   
  112    110   
pub use crate::types::_guardrail_custom_word::GuardrailCustomWordBuilder;
  113    111   
  114         -
pub use crate::types::_guardrail_content_policy_assessment::GuardrailContentPolicyAssessmentBuilder;
         112  +
pub use crate::types::_guardrail_managed_word::GuardrailManagedWordBuilder;
  115    113   
  116         -
pub use crate::types::_guardrail_content_filter::GuardrailContentFilterBuilder;
         114  +
pub use crate::types::_guardrail_pii_entity_filter::GuardrailPiiEntityFilterBuilder;
  117    115   
  118         -
pub use crate::types::_guardrail_topic_policy_assessment::GuardrailTopicPolicyAssessmentBuilder;
         116  +
pub use crate::types::_guardrail_regex_filter::GuardrailRegexFilterBuilder;
  119    117   
  120         -
pub use crate::types::_guardrail_topic::GuardrailTopicBuilder;
         118  +
pub use crate::types::_guardrail_contextual_grounding_filter::GuardrailContextualGroundingFilterBuilder;
  121    119   
  122         -
pub use crate::types::_converse_stream_metrics::ConverseStreamMetricsBuilder;
         120  +
pub use crate::types::_image_block::ImageBlockBuilder;
  123    121   
  124         -
pub use crate::types::_token_usage::TokenUsageBuilder;
         122  +
pub use crate::types::_document_block::DocumentBlockBuilder;
  125    123   
  126         -
pub use crate::types::_message_stop_event::MessageStopEventBuilder;
         124  +
pub use crate::types::_video_block::VideoBlockBuilder;
  127    125   
  128         -
pub use crate::types::_content_block_stop_event::ContentBlockStopEventBuilder;
         126  +
pub use crate::types::_tool_use_block::ToolUseBlockBuilder;
  129    127   
  130         -
pub use crate::types::_content_block_delta_event::ContentBlockDeltaEventBuilder;
         128  +
pub use crate::types::_tool_result_block::ToolResultBlockBuilder;
  131    129   
  132         -
pub use crate::types::_citations_delta::CitationsDeltaBuilder;
         130  +
pub use crate::types::_citations_content_block::CitationsContentBlockBuilder;
  133    131   
  134         -
pub use crate::types::_citation_source_content_delta::CitationSourceContentDeltaBuilder;
         132  +
pub use crate::types::_guardrail_automated_reasoning_valid_finding::GuardrailAutomatedReasoningValidFindingBuilder;
  135    133   
  136         -
pub use crate::types::_tool_use_block_delta::ToolUseBlockDeltaBuilder;
         134  +
pub use crate::types::_guardrail_automated_reasoning_invalid_finding::GuardrailAutomatedReasoningInvalidFindingBuilder;
  137    135   
  138         -
pub use crate::types::_content_block_start_event::ContentBlockStartEventBuilder;
         136  +
pub use crate::types::_guardrail_automated_reasoning_satisfiable_finding::GuardrailAutomatedReasoningSatisfiableFindingBuilder;
  139    137   
  140         -
pub use crate::types::_tool_use_block_start::ToolUseBlockStartBuilder;
         138  +
pub use crate::types::_guardrail_automated_reasoning_impossible_finding::GuardrailAutomatedReasoningImpossibleFindingBuilder;
  141    139   
  142         -
pub use crate::types::_message_start_event::MessageStartEventBuilder;
         140  +
pub use crate::types::_guardrail_automated_reasoning_translation_ambiguous_finding::GuardrailAutomatedReasoningTranslationAmbiguousFindingBuilder;
  143    141   
  144         -
pub use crate::types::_guardrail_stream_configuration::GuardrailStreamConfigurationBuilder;
         142  +
pub use crate::types::_guardrail_automated_reasoning_too_complex_finding::GuardrailAutomatedReasoningTooComplexFindingBuilder;
  145    143   
  146         -
pub use crate::types::_tool_configuration::ToolConfigurationBuilder;
         144  +
pub use crate::types::_guardrail_automated_reasoning_no_translations_finding::GuardrailAutomatedReasoningNoTranslationsFindingBuilder;
  147    145   
  148         -
pub use crate::types::_specific_tool_choice::SpecificToolChoiceBuilder;
         146  +
pub use crate::types::_citations_config::CitationsConfigBuilder;
  149    147   
  150         -
pub use crate::types::_any_tool_choice::AnyToolChoiceBuilder;
         148  +
pub use crate::types::_reasoning_text_block::ReasoningTextBlockBuilder;
  151    149   
  152         -
pub use crate::types::_auto_tool_choice::AutoToolChoiceBuilder;
         150  +
pub use crate::types::_citation_source_content_delta::CitationSourceContentDeltaBuilder;
  153    151   
  154         -
pub use crate::types::_tool_specification::ToolSpecificationBuilder;
         152  +
pub use crate::types::_document_char_location::DocumentCharLocationBuilder;
  155    153   
  156         -
pub use crate::types::_inference_configuration::InferenceConfigurationBuilder;
         154  +
pub use crate::types::_document_page_location::DocumentPageLocationBuilder;
  157    155   
  158         -
pub use crate::types::_converse_trace::ConverseTraceBuilder;
         156  +
pub use crate::types::_document_chunk_location::DocumentChunkLocationBuilder;
  159    157   
  160         -
pub use crate::types::_converse_metrics::ConverseMetricsBuilder;
         158  +
pub use crate::types::_guardrail_automated_reasoning_translation::GuardrailAutomatedReasoningTranslationBuilder;
  161    159   
  162         -
pub use crate::types::_guardrail_configuration::GuardrailConfigurationBuilder;
         160  +
pub use crate::types::_guardrail_automated_reasoning_scenario::GuardrailAutomatedReasoningScenarioBuilder;
  163    161   
  164         -
pub use crate::types::_guardrail_output_content::GuardrailOutputContentBuilder;
         162  +
pub use crate::types::_guardrail_automated_reasoning_logic_warning::GuardrailAutomatedReasoningLogicWarningBuilder;
  165    163   
  166         -
pub use crate::types::_guardrail_image_block::GuardrailImageBlockBuilder;
         164  +
pub use crate::types::_s3_location::S3LocationBuilder;
  167    165   
  168         -
pub use crate::types::_guardrail_text_block::GuardrailTextBlockBuilder;
         166  +
pub use crate::types::_citation::CitationBuilder;
  169    167   
  170         -
pub use crate::types::_tag::TagBuilder;
         168  +
pub use crate::types::_guardrail_automated_reasoning_rule::GuardrailAutomatedReasoningRuleBuilder;
  171    169   
  172         -
pub use crate::types::_async_invoke_s3_output_data_config::AsyncInvokeS3OutputDataConfigBuilder;
         170  +
pub use crate::types::_guardrail_automated_reasoning_translation_option::GuardrailAutomatedReasoningTranslationOptionBuilder;
  173    171   
  174         -
pub use crate::types::_async_invoke_summary::AsyncInvokeSummaryBuilder;
         172  +
pub use crate::types::_guardrail_automated_reasoning_statement::GuardrailAutomatedReasoningStatementBuilder;
         173  +
         174  +
pub use crate::types::_guardrail_automated_reasoning_input_text_reference::GuardrailAutomatedReasoningInputTextReferenceBuilder;

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/types/error.rs

@@ -1,1 +593,593 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_validation_exception::ValidationException;
           2  +
pub use crate::types::error::_access_denied_exception::AccessDeniedException;
    3      3   
    4         -
pub use crate::types::error::_throttling_exception::ThrottlingException;
           4  +
pub use crate::types::error::_internal_server_exception::InternalServerException;
    5      5   
    6         -
pub use crate::types::error::_service_unavailable_exception::ServiceUnavailableException;
           6  +
pub use crate::types::error::_throttling_exception::ThrottlingException;
    7      7   
    8         -
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundException;
           8  +
pub use crate::types::error::_validation_exception::ValidationException;
    9      9   
   10         -
pub use crate::types::error::_internal_server_exception::InternalServerException;
          10  +
pub use crate::types::error::_conflict_exception::ConflictException;
   11     11   
   12         -
pub use crate::types::error::_access_denied_exception::AccessDeniedException;
          12  +
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundException;
   13     13   
   14     14   
pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededException;
   15     15   
   16         -
pub use crate::types::error::_model_timeout_exception::ModelTimeoutException;
          16  +
pub use crate::types::error::_service_unavailable_exception::ServiceUnavailableException;
   17     17   
   18         -
pub use crate::types::error::_model_stream_error_exception::ModelStreamErrorException;
          18  +
pub use crate::types::error::_model_error_exception::ModelErrorException;
   19     19   
   20     20   
pub use crate::types::error::_model_not_ready_exception::ModelNotReadyException;
   21     21   
   22         -
pub use crate::types::error::_model_error_exception::ModelErrorException;
          22  +
pub use crate::types::error::_model_timeout_exception::ModelTimeoutException;
   23     23   
   24         -
/// Error type for the `ResponseStreamError` operation.
          24  +
pub use crate::types::error::_model_stream_error_exception::ModelStreamErrorException;
          25  +
          26  +
/// Error type for the `ConverseStreamOutputError` operation.
   25     27   
#[non_exhaustive]
   26     28   
#[derive(::std::fmt::Debug)]
   27         -
pub enum ResponseStreamError {
          29  +
pub enum ConverseStreamOutputError {
   28     30   
    /// <p>An internal server error occurred. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
   29     31   
    InternalServerException(crate::types::error::InternalServerException),
   30     32   
    /// <p>An error occurred while streaming the response. Retry your request.</p>
   31     33   
    ModelStreamErrorException(crate::types::error::ModelStreamErrorException),
   32     34   
    /// <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
   33     35   
    ValidationException(crate::types::error::ValidationException),
   34     36   
    /// <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
   35     37   
    ThrottlingException(crate::types::error::ThrottlingException),
   36         -
    /// <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
   37         -
    ModelTimeoutException(crate::types::error::ModelTimeoutException),
   38     38   
    /// <p>The service isn't currently available. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
   39     39   
    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
   40     40   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
   41     41   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
   42     42   
    variable wildcard pattern and check `.code()`:
   43     43   
     \
   44     44   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
   45     45   
     \
   46         -
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ResponseStreamError) for what information is available for the error.")]
          46  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ConverseStreamOutputError) for what information is available for the error.")]
   47     47   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
   48     48   
}
   49         -
impl ResponseStreamError {
   50         -
    /// Creates the `ResponseStreamError::Unhandled` variant from any error type.
          49  +
impl ConverseStreamOutputError {
          50  +
    /// Creates the `ConverseStreamOutputError::Unhandled` variant from any error type.
   51     51   
    pub fn unhandled(
   52     52   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
   53     53   
    ) -> Self {
   54     54   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
   55     55   
            source: err.into(),
   56     56   
            meta: ::std::default::Default::default(),
   57     57   
        })
   58     58   
    }
   59     59   
   60         -
    /// Creates the `ResponseStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
          60  +
    /// Creates the `ConverseStreamOutputError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
   61     61   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   62     62   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
   63     63   
            source: err.clone().into(),
   64     64   
            meta: err,
   65     65   
        })
   66     66   
    }
   67     67   
    ///
   68     68   
    /// Returns error metadata, which includes the error code, message,
   69     69   
    /// request ID, and potentially additional information.
   70     70   
    ///
   71     71   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   72     72   
        match self {
   73     73   
            Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
   74     74   
            Self::ModelStreamErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
   75     75   
            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
   76     76   
            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
   77         -
            Self::ModelTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
   78     77   
            Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
   79     78   
            Self::Unhandled(e) => &e.meta,
   80     79   
        }
   81     80   
    }
   82         -
    /// Returns `true` if the error kind is `ResponseStreamError::InternalServerException`.
          81  +
    /// Returns `true` if the error kind is `ConverseStreamOutputError::InternalServerException`.
   83     82   
    pub fn is_internal_server_exception(&self) -> bool {
   84     83   
        matches!(self, Self::InternalServerException(_))
   85     84   
    }
   86         -
    /// Returns `true` if the error kind is `ResponseStreamError::ModelStreamErrorException`.
          85  +
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ModelStreamErrorException`.
   87     86   
    pub fn is_model_stream_error_exception(&self) -> bool {
   88     87   
        matches!(self, Self::ModelStreamErrorException(_))
   89     88   
    }
   90         -
    /// Returns `true` if the error kind is `ResponseStreamError::ValidationException`.
          89  +
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ValidationException`.
   91     90   
    pub fn is_validation_exception(&self) -> bool {
   92     91   
        matches!(self, Self::ValidationException(_))
   93     92   
    }
   94         -
    /// Returns `true` if the error kind is `ResponseStreamError::ThrottlingException`.
          93  +
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ThrottlingException`.
   95     94   
    pub fn is_throttling_exception(&self) -> bool {
   96     95   
        matches!(self, Self::ThrottlingException(_))
   97     96   
    }
   98         -
    /// Returns `true` if the error kind is `ResponseStreamError::ModelTimeoutException`.
   99         -
    pub fn is_model_timeout_exception(&self) -> bool {
  100         -
        matches!(self, Self::ModelTimeoutException(_))
  101         -
    }
  102         -
    /// Returns `true` if the error kind is `ResponseStreamError::ServiceUnavailableException`.
          97  +
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ServiceUnavailableException`.
  103     98   
    pub fn is_service_unavailable_exception(&self) -> bool {
  104     99   
        matches!(self, Self::ServiceUnavailableException(_))
  105    100   
    }
  106    101   
}
  107         -
impl ::std::error::Error for ResponseStreamError {
         102  +
impl ::std::error::Error for ConverseStreamOutputError {
  108    103   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
  109    104   
        match self {
  110    105   
            Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
  111    106   
            Self::ModelStreamErrorException(_inner) => ::std::option::Option::Some(_inner),
  112    107   
            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
  113    108   
            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
  114         -
            Self::ModelTimeoutException(_inner) => ::std::option::Option::Some(_inner),
  115    109   
            Self::ServiceUnavailableException(_inner) => ::std::option::Option::Some(_inner),
  116    110   
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
  117    111   
        }
  118    112   
    }
  119    113   
}
  120         -
impl ::std::fmt::Display for ResponseStreamError {
         114  +
impl ::std::fmt::Display for ConverseStreamOutputError {
  121    115   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  122    116   
        match self {
  123    117   
            Self::InternalServerException(_inner) => _inner.fmt(f),
  124    118   
            Self::ModelStreamErrorException(_inner) => _inner.fmt(f),
  125    119   
            Self::ValidationException(_inner) => _inner.fmt(f),
  126    120   
            Self::ThrottlingException(_inner) => _inner.fmt(f),
  127         -
            Self::ModelTimeoutException(_inner) => _inner.fmt(f),
  128    121   
            Self::ServiceUnavailableException(_inner) => _inner.fmt(f),
  129    122   
            Self::Unhandled(_inner) => {
  130    123   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  131    124   
                    write!(f, "unhandled error ({code})")
  132    125   
                } else {
  133    126   
                    f.write_str("unhandled error")
  134    127   
                }
  135    128   
            }
  136    129   
        }
  137    130   
    }
  138    131   
}
  139         -
impl ::aws_smithy_types::retry::ProvideErrorKind for ResponseStreamError {
         132  +
impl ::aws_smithy_types::retry::ProvideErrorKind for ConverseStreamOutputError {
  140    133   
    fn code(&self) -> ::std::option::Option<&str> {
  141    134   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
  142    135   
    }
  143    136   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
  144    137   
        ::std::option::Option::None
  145    138   
    }
  146    139   
}
  147         -
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ResponseStreamError {
         140  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ConverseStreamOutputError {
  148    141   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
  149    142   
        match self {
  150    143   
            Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  151    144   
            Self::ModelStreamErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  152    145   
            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  153    146   
            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  154         -
            Self::ModelTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  155    147   
            Self::ServiceUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  156    148   
            Self::Unhandled(_inner) => &_inner.meta,
  157    149   
        }
  158    150   
    }
  159    151   
}
  160         -
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ResponseStreamError {
         152  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ConverseStreamOutputError {
  161    153   
    fn create_unhandled_error(
  162    154   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  163    155   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  164    156   
    ) -> Self {
  165    157   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  166    158   
            source,
  167    159   
            meta: meta.unwrap_or_default(),
  168    160   
        })
  169    161   
    }
  170    162   
}
  171         -
impl ::aws_types::request_id::RequestId for crate::types::error::ResponseStreamError {
         163  +
impl ::aws_types::request_id::RequestId for crate::types::error::ConverseStreamOutputError {
  172    164   
    fn request_id(&self) -> Option<&str> {
  173    165   
        self.meta().request_id()
  174    166   
    }
  175    167   
}
  176    168   
  177         -
/// Error type for the `InvokeModelWithBidirectionalStreamOutputError` operation.
         169  +
/// Error type for the `InvokeModelWithBidirectionalStreamInputError` operation.
  178    170   
#[non_exhaustive]
  179    171   
#[derive(::std::fmt::Debug)]
  180         -
pub enum InvokeModelWithBidirectionalStreamOutputError {
  181         -
    /// <p>An internal server error occurred. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
  182         -
    InternalServerException(crate::types::error::InternalServerException),
  183         -
    /// <p>An error occurred while streaming the response. Retry your request.</p>
  184         -
    ModelStreamErrorException(crate::types::error::ModelStreamErrorException),
  185         -
    /// <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
  186         -
    ValidationException(crate::types::error::ValidationException),
  187         -
    /// <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
  188         -
    ThrottlingException(crate::types::error::ThrottlingException),
  189         -
    /// <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
  190         -
    ModelTimeoutException(crate::types::error::ModelTimeoutException),
  191         -
    /// <p>The service isn't currently available. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
  192         -
    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
         172  +
pub enum InvokeModelWithBidirectionalStreamInputError {
  193    173   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  194    174   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  195    175   
    variable wildcard pattern and check `.code()`:
  196    176   
     \
  197    177   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  198    178   
     \
  199         -
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-InvokeModelWithBidirectionalStreamOutputError) for what information is available for the error.")]
         179  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-InvokeModelWithBidirectionalStreamInputError) for what information is available for the error.")]
  200    180   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
  201    181   
}
  202         -
impl InvokeModelWithBidirectionalStreamOutputError {
  203         -
    /// Creates the `InvokeModelWithBidirectionalStreamOutputError::Unhandled` variant from any error type.
         182  +
impl InvokeModelWithBidirectionalStreamInputError {
         183  +
    /// Creates the `InvokeModelWithBidirectionalStreamInputError::Unhandled` variant from any error type.
  204    184   
    pub fn unhandled(
  205    185   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  206    186   
    ) -> Self {
  207    187   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  208    188   
            source: err.into(),
  209    189   
            meta: ::std::default::Default::default(),
  210    190   
        })
  211    191   
    }
  212    192   
  213         -
    /// Creates the `InvokeModelWithBidirectionalStreamOutputError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         193  +
    /// Creates the `InvokeModelWithBidirectionalStreamInputError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  214    194   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  215    195   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  216    196   
            source: err.clone().into(),
  217    197   
            meta: err,
  218    198   
        })
  219    199   
    }
  220    200   
    ///
  221    201   
    /// Returns error metadata, which includes the error code, message,
  222    202   
    /// request ID, and potentially additional information.
  223    203   
    ///
  224    204   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
  225    205   
        match self {
  226         -
            Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  227         -
            Self::ModelStreamErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  228         -
            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  229         -
            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  230         -
            Self::ModelTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  231         -
            Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  232    206   
            Self::Unhandled(e) => &e.meta,
  233    207   
        }
  234    208   
    }
  235         -
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::InternalServerException`.
  236         -
    pub fn is_internal_server_exception(&self) -> bool {
  237         -
        matches!(self, Self::InternalServerException(_))
  238         -
    }
  239         -
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ModelStreamErrorException`.
  240         -
    pub fn is_model_stream_error_exception(&self) -> bool {
  241         -
        matches!(self, Self::ModelStreamErrorException(_))
  242         -
    }
  243         -
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ValidationException`.
  244         -
    pub fn is_validation_exception(&self) -> bool {
  245         -
        matches!(self, Self::ValidationException(_))
  246         -
    }
  247         -
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ThrottlingException`.
  248         -
    pub fn is_throttling_exception(&self) -> bool {
  249         -
        matches!(self, Self::ThrottlingException(_))
  250         -
    }
  251         -
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ModelTimeoutException`.
  252         -
    pub fn is_model_timeout_exception(&self) -> bool {
  253         -
        matches!(self, Self::ModelTimeoutException(_))
  254         -
    }
  255         -
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ServiceUnavailableException`.
  256         -
    pub fn is_service_unavailable_exception(&self) -> bool {
  257         -
        matches!(self, Self::ServiceUnavailableException(_))
  258         -
    }
  259    209   
}
  260         -
impl ::std::error::Error for InvokeModelWithBidirectionalStreamOutputError {
         210  +
impl ::std::error::Error for InvokeModelWithBidirectionalStreamInputError {
  261    211   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
  262    212   
        match self {
  263         -
            Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
  264         -
            Self::ModelStreamErrorException(_inner) => ::std::option::Option::Some(_inner),
  265         -
            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
  266         -
            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
  267         -
            Self::ModelTimeoutException(_inner) => ::std::option::Option::Some(_inner),
  268         -
            Self::ServiceUnavailableException(_inner) => ::std::option::Option::Some(_inner),
  269    213   
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
  270    214   
        }
  271    215   
    }
  272    216   
}
  273         -
impl ::std::fmt::Display for InvokeModelWithBidirectionalStreamOutputError {
         217  +
impl ::std::fmt::Display for InvokeModelWithBidirectionalStreamInputError {
  274    218   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  275    219   
        match self {
  276         -
            Self::InternalServerException(_inner) => _inner.fmt(f),
  277         -
            Self::ModelStreamErrorException(_inner) => _inner.fmt(f),
  278         -
            Self::ValidationException(_inner) => _inner.fmt(f),
  279         -
            Self::ThrottlingException(_inner) => _inner.fmt(f),
  280         -
            Self::ModelTimeoutException(_inner) => _inner.fmt(f),
  281         -
            Self::ServiceUnavailableException(_inner) => _inner.fmt(f),
  282    220   
            Self::Unhandled(_inner) => {
  283    221   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  284    222   
                    write!(f, "unhandled error ({code})")
  285    223   
                } else {
  286    224   
                    f.write_str("unhandled error")
  287    225   
                }
  288    226   
            }
  289    227   
        }
  290    228   
    }
  291    229   
}
  292         -
impl ::aws_smithy_types::retry::ProvideErrorKind for InvokeModelWithBidirectionalStreamOutputError {
         230  +
impl ::aws_smithy_types::retry::ProvideErrorKind for InvokeModelWithBidirectionalStreamInputError {
  293    231   
    fn code(&self) -> ::std::option::Option<&str> {
  294    232   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
  295    233   
    }
  296    234   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
  297    235   
        ::std::option::Option::None
  298    236   
    }
  299    237   
}
  300         -
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvokeModelWithBidirectionalStreamOutputError {
         238  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvokeModelWithBidirectionalStreamInputError {
  301    239   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
  302    240   
        match self {
  303         -
            Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  304         -
            Self::ModelStreamErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  305         -
            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  306         -
            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  307         -
            Self::ModelTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  308         -
            Self::ServiceUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  309    241   
            Self::Unhandled(_inner) => &_inner.meta,
  310    242   
        }
  311    243   
    }
  312    244   
}
  313         -
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for InvokeModelWithBidirectionalStreamOutputError {
         245  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for InvokeModelWithBidirectionalStreamInputError {
  314    246   
    fn create_unhandled_error(
  315    247   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  316    248   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  317    249   
    ) -> Self {
  318    250   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  319    251   
            source,
  320    252   
            meta: meta.unwrap_or_default(),
  321    253   
        })
  322    254   
    }
  323    255   
}
  324         -
impl ::aws_types::request_id::RequestId for crate::types::error::InvokeModelWithBidirectionalStreamOutputError {
         256  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvokeModelWithBidirectionalStreamInputError {
  325    257   
    fn request_id(&self) -> Option<&str> {
  326    258   
        self.meta().request_id()
  327    259   
    }
  328    260   
}
  329    261   
  330         -
/// Error type for the `InvokeModelWithBidirectionalStreamInputError` operation.
         262  +
/// Error type for the `InvokeModelWithBidirectionalStreamOutputError` operation.
  331    263   
#[non_exhaustive]
  332    264   
#[derive(::std::fmt::Debug)]
  333         -
pub enum InvokeModelWithBidirectionalStreamInputError {
         265  +
pub enum InvokeModelWithBidirectionalStreamOutputError {
         266  +
    /// <p>An internal server error occurred. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
         267  +
    InternalServerException(crate::types::error::InternalServerException),
         268  +
    /// <p>An error occurred while streaming the response. Retry your request.</p>
         269  +
    ModelStreamErrorException(crate::types::error::ModelStreamErrorException),
         270  +
    /// <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
         271  +
    ValidationException(crate::types::error::ValidationException),
         272  +
    /// <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
         273  +
    ThrottlingException(crate::types::error::ThrottlingException),
         274  +
    /// <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
         275  +
    ModelTimeoutException(crate::types::error::ModelTimeoutException),
         276  +
    /// <p>The service isn't currently available. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
         277  +
    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
  334    278   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  335    279   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  336    280   
    variable wildcard pattern and check `.code()`:
  337    281   
     \
  338    282   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  339    283   
     \
  340         -
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-InvokeModelWithBidirectionalStreamInputError) for what information is available for the error.")]
         284  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-InvokeModelWithBidirectionalStreamOutputError) for what information is available for the error.")]
  341    285   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
  342    286   
}
  343         -
impl InvokeModelWithBidirectionalStreamInputError {
  344         -
    /// Creates the `InvokeModelWithBidirectionalStreamInputError::Unhandled` variant from any error type.
         287  +
impl InvokeModelWithBidirectionalStreamOutputError {
         288  +
    /// Creates the `InvokeModelWithBidirectionalStreamOutputError::Unhandled` variant from any error type.
  345    289   
    pub fn unhandled(
  346    290   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  347    291   
    ) -> Self {
  348    292   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  349    293   
            source: err.into(),
  350    294   
            meta: ::std::default::Default::default(),
  351    295   
        })
  352    296   
    }
  353    297   
  354         -
    /// Creates the `InvokeModelWithBidirectionalStreamInputError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         298  +
    /// Creates the `InvokeModelWithBidirectionalStreamOutputError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  355    299   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  356    300   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  357    301   
            source: err.clone().into(),
  358    302   
            meta: err,
  359    303   
        })
  360    304   
    }
  361    305   
    ///
  362    306   
    /// Returns error metadata, which includes the error code, message,
  363    307   
    /// request ID, and potentially additional information.
  364    308   
    ///
  365    309   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
  366    310   
        match self {
         311  +
            Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         312  +
            Self::ModelStreamErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         313  +
            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         314  +
            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         315  +
            Self::ModelTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         316  +
            Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  367    317   
            Self::Unhandled(e) => &e.meta,
  368    318   
        }
  369    319   
    }
         320  +
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::InternalServerException`.
         321  +
    pub fn is_internal_server_exception(&self) -> bool {
         322  +
        matches!(self, Self::InternalServerException(_))
         323  +
    }
         324  +
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ModelStreamErrorException`.
         325  +
    pub fn is_model_stream_error_exception(&self) -> bool {
         326  +
        matches!(self, Self::ModelStreamErrorException(_))
         327  +
    }
         328  +
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ValidationException`.
         329  +
    pub fn is_validation_exception(&self) -> bool {
         330  +
        matches!(self, Self::ValidationException(_))
         331  +
    }
         332  +
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ThrottlingException`.
         333  +
    pub fn is_throttling_exception(&self) -> bool {
         334  +
        matches!(self, Self::ThrottlingException(_))
         335  +
    }
         336  +
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ModelTimeoutException`.
         337  +
    pub fn is_model_timeout_exception(&self) -> bool {
         338  +
        matches!(self, Self::ModelTimeoutException(_))
         339  +
    }
         340  +
    /// Returns `true` if the error kind is `InvokeModelWithBidirectionalStreamOutputError::ServiceUnavailableException`.
         341  +
    pub fn is_service_unavailable_exception(&self) -> bool {
         342  +
        matches!(self, Self::ServiceUnavailableException(_))
         343  +
    }
  370    344   
}
  371         -
impl ::std::error::Error for InvokeModelWithBidirectionalStreamInputError {
         345  +
impl ::std::error::Error for InvokeModelWithBidirectionalStreamOutputError {
  372    346   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
  373    347   
        match self {
         348  +
            Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
         349  +
            Self::ModelStreamErrorException(_inner) => ::std::option::Option::Some(_inner),
         350  +
            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
         351  +
            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
         352  +
            Self::ModelTimeoutException(_inner) => ::std::option::Option::Some(_inner),
         353  +
            Self::ServiceUnavailableException(_inner) => ::std::option::Option::Some(_inner),
  374    354   
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
  375    355   
        }
  376    356   
    }
  377    357   
}
  378         -
impl ::std::fmt::Display for InvokeModelWithBidirectionalStreamInputError {
         358  +
impl ::std::fmt::Display for InvokeModelWithBidirectionalStreamOutputError {
  379    359   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  380    360   
        match self {
         361  +
            Self::InternalServerException(_inner) => _inner.fmt(f),
         362  +
            Self::ModelStreamErrorException(_inner) => _inner.fmt(f),
         363  +
            Self::ValidationException(_inner) => _inner.fmt(f),
         364  +
            Self::ThrottlingException(_inner) => _inner.fmt(f),
         365  +
            Self::ModelTimeoutException(_inner) => _inner.fmt(f),
         366  +
            Self::ServiceUnavailableException(_inner) => _inner.fmt(f),
  381    367   
            Self::Unhandled(_inner) => {
  382    368   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  383    369   
                    write!(f, "unhandled error ({code})")
  384    370   
                } else {
  385    371   
                    f.write_str("unhandled error")
  386    372   
                }
  387    373   
            }
  388    374   
        }
  389    375   
    }
  390    376   
}
  391         -
impl ::aws_smithy_types::retry::ProvideErrorKind for InvokeModelWithBidirectionalStreamInputError {
         377  +
impl ::aws_smithy_types::retry::ProvideErrorKind for InvokeModelWithBidirectionalStreamOutputError {
  392    378   
    fn code(&self) -> ::std::option::Option<&str> {
  393    379   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
  394    380   
    }
  395    381   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
  396    382   
        ::std::option::Option::None
  397    383   
    }
  398    384   
}
  399         -
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvokeModelWithBidirectionalStreamInputError {
         385  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvokeModelWithBidirectionalStreamOutputError {
  400    386   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
  401    387   
        match self {
         388  +
            Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         389  +
            Self::ModelStreamErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         390  +
            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         391  +
            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         392  +
            Self::ModelTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         393  +
            Self::ServiceUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  402    394   
            Self::Unhandled(_inner) => &_inner.meta,
  403    395   
        }
  404    396   
    }
  405    397   
}
  406         -
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for InvokeModelWithBidirectionalStreamInputError {
         398  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for InvokeModelWithBidirectionalStreamOutputError {
  407    399   
    fn create_unhandled_error(
  408    400   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  409    401   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  410    402   
    ) -> Self {
  411    403   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  412    404   
            source,
  413    405   
            meta: meta.unwrap_or_default(),
  414    406   
        })
  415    407   
    }
  416    408   
}
  417         -
impl ::aws_types::request_id::RequestId for crate::types::error::InvokeModelWithBidirectionalStreamInputError {
         409  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvokeModelWithBidirectionalStreamOutputError {
  418    410   
    fn request_id(&self) -> Option<&str> {
  419    411   
        self.meta().request_id()
  420    412   
    }
  421    413   
}
  422    414   
  423         -
/// Error type for the `ConverseStreamOutputError` operation.
         415  +
/// Error type for the `ResponseStreamError` operation.
  424    416   
#[non_exhaustive]
  425    417   
#[derive(::std::fmt::Debug)]
  426         -
pub enum ConverseStreamOutputError {
         418  +
pub enum ResponseStreamError {
  427    419   
    /// <p>An internal server error occurred. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
  428    420   
    InternalServerException(crate::types::error::InternalServerException),
  429    421   
    /// <p>An error occurred while streaming the response. Retry your request.</p>
  430    422   
    ModelStreamErrorException(crate::types::error::ModelStreamErrorException),
  431    423   
    /// <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
  432    424   
    ValidationException(crate::types::error::ValidationException),
  433    425   
    /// <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
  434    426   
    ThrottlingException(crate::types::error::ThrottlingException),
         427  +
    /// <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
         428  +
    ModelTimeoutException(crate::types::error::ModelTimeoutException),
  435    429   
    /// <p>The service isn't currently available. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
  436    430   
    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
  437    431   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  438    432   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  439    433   
    variable wildcard pattern and check `.code()`:
  440    434   
     \
  441    435   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  442    436   
     \
  443         -
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ConverseStreamOutputError) for what information is available for the error.")]
         437  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ResponseStreamError) for what information is available for the error.")]
  444    438   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
  445    439   
}
  446         -
impl ConverseStreamOutputError {
  447         -
    /// Creates the `ConverseStreamOutputError::Unhandled` variant from any error type.
         440  +
impl ResponseStreamError {
         441  +
    /// Creates the `ResponseStreamError::Unhandled` variant from any error type.
  448    442   
    pub fn unhandled(
  449    443   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  450    444   
    ) -> Self {
  451    445   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  452    446   
            source: err.into(),
  453    447   
            meta: ::std::default::Default::default(),
  454    448   
        })
  455    449   
    }
  456    450   
  457         -
    /// Creates the `ConverseStreamOutputError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         451  +
    /// Creates the `ResponseStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  458    452   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  459    453   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  460    454   
            source: err.clone().into(),
  461    455   
            meta: err,
  462    456   
        })
  463    457   
    }
  464    458   
    ///
  465    459   
    /// Returns error metadata, which includes the error code, message,
  466    460   
    /// request ID, and potentially additional information.
  467    461   
    ///
  468    462   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
  469    463   
        match self {
  470    464   
            Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  471    465   
            Self::ModelStreamErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  472    466   
            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  473    467   
            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         468  +
            Self::ModelTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  474    469   
            Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  475    470   
            Self::Unhandled(e) => &e.meta,
  476    471   
        }
  477    472   
    }
  478         -
    /// Returns `true` if the error kind is `ConverseStreamOutputError::InternalServerException`.
         473  +
    /// Returns `true` if the error kind is `ResponseStreamError::InternalServerException`.
  479    474   
    pub fn is_internal_server_exception(&self) -> bool {
  480    475   
        matches!(self, Self::InternalServerException(_))
  481    476   
    }
  482         -
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ModelStreamErrorException`.
         477  +
    /// Returns `true` if the error kind is `ResponseStreamError::ModelStreamErrorException`.
  483    478   
    pub fn is_model_stream_error_exception(&self) -> bool {
  484    479   
        matches!(self, Self::ModelStreamErrorException(_))
  485    480   
    }
  486         -
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ValidationException`.
         481  +
    /// Returns `true` if the error kind is `ResponseStreamError::ValidationException`.
  487    482   
    pub fn is_validation_exception(&self) -> bool {
  488    483   
        matches!(self, Self::ValidationException(_))
  489    484   
    }
  490         -
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ThrottlingException`.
         485  +
    /// Returns `true` if the error kind is `ResponseStreamError::ThrottlingException`.
  491    486   
    pub fn is_throttling_exception(&self) -> bool {
  492    487   
        matches!(self, Self::ThrottlingException(_))
  493    488   
    }
  494         -
    /// Returns `true` if the error kind is `ConverseStreamOutputError::ServiceUnavailableException`.
         489  +
    /// Returns `true` if the error kind is `ResponseStreamError::ModelTimeoutException`.
         490  +
    pub fn is_model_timeout_exception(&self) -> bool {
         491  +
        matches!(self, Self::ModelTimeoutException(_))
         492  +
    }
         493  +
    /// Returns `true` if the error kind is `ResponseStreamError::ServiceUnavailableException`.
  495    494   
    pub fn is_service_unavailable_exception(&self) -> bool {
  496    495   
        matches!(self, Self::ServiceUnavailableException(_))
  497    496   
    }
  498    497   
}
  499         -
impl ::std::error::Error for ConverseStreamOutputError {
         498  +
impl ::std::error::Error for ResponseStreamError {
  500    499   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
  501    500   
        match self {
  502    501   
            Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
  503    502   
            Self::ModelStreamErrorException(_inner) => ::std::option::Option::Some(_inner),
  504    503   
            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
  505    504   
            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
         505  +
            Self::ModelTimeoutException(_inner) => ::std::option::Option::Some(_inner),
  506    506   
            Self::ServiceUnavailableException(_inner) => ::std::option::Option::Some(_inner),
  507    507   
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
  508    508   
        }
  509    509   
    }
  510    510   
}
  511         -
impl ::std::fmt::Display for ConverseStreamOutputError {
         511  +
impl ::std::fmt::Display for ResponseStreamError {
  512    512   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  513    513   
        match self {
  514    514   
            Self::InternalServerException(_inner) => _inner.fmt(f),
  515    515   
            Self::ModelStreamErrorException(_inner) => _inner.fmt(f),
  516    516   
            Self::ValidationException(_inner) => _inner.fmt(f),
  517    517   
            Self::ThrottlingException(_inner) => _inner.fmt(f),
         518  +
            Self::ModelTimeoutException(_inner) => _inner.fmt(f),
  518    519   
            Self::ServiceUnavailableException(_inner) => _inner.fmt(f),
  519    520   
            Self::Unhandled(_inner) => {
  520    521   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  521    522   
                    write!(f, "unhandled error ({code})")
  522    523   
                } else {
  523    524   
                    f.write_str("unhandled error")
  524    525   
                }
  525    526   
            }
  526    527   
        }
  527    528   
    }
  528    529   
}
  529         -
impl ::aws_smithy_types::retry::ProvideErrorKind for ConverseStreamOutputError {
         530  +
impl ::aws_smithy_types::retry::ProvideErrorKind for ResponseStreamError {
  530    531   
    fn code(&self) -> ::std::option::Option<&str> {
  531    532   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
  532    533   
    }
  533    534   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
  534    535   
        ::std::option::Option::None
  535    536   
    }
  536    537   
}
  537         -
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ConverseStreamOutputError {
         538  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ResponseStreamError {
  538    539   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
  539    540   
        match self {
  540    541   
            Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  541    542   
            Self::ModelStreamErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  542    543   
            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  543    544   
            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         545  +
            Self::ModelTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  544    546   
            Self::ServiceUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  545    547   
            Self::Unhandled(_inner) => &_inner.meta,
  546    548   
        }
  547    549   
    }
  548    550   
}
  549         -
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ConverseStreamOutputError {
         551  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ResponseStreamError {
  550    552   
    fn create_unhandled_error(
  551    553   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  552    554   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  553    555   
    ) -> Self {
  554    556   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  555    557   
            source,
  556    558   
            meta: meta.unwrap_or_default(),
  557    559   
        })
  558    560   
    }
  559    561   
}
  560         -
impl ::aws_types::request_id::RequestId for crate::types::error::ConverseStreamOutputError {
         562  +
impl ::aws_types::request_id::RequestId for crate::types::error::ResponseStreamError {
  561    563   
    fn request_id(&self) -> Option<&str> {
  562    564   
        self.meta().request_id()
  563    565   
    }
  564    566   
}
  565    567   
  566         -
pub use crate::types::error::_conflict_exception::ConflictException;
  567         -
  568    568   
mod _access_denied_exception;
  569    569   
  570    570   
mod _conflict_exception;
  571    571   
  572    572   
mod _internal_server_exception;
  573    573   
  574    574   
mod _model_error_exception;
  575    575   
  576    576   
mod _model_not_ready_exception;
  577    577   

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/types/error/builders.rs

@@ -1,1 +0,24 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_validation_exception::ValidationExceptionBuilder;
           2  +
pub use crate::types::error::_access_denied_exception::AccessDeniedExceptionBuilder;
    3      3   
    4         -
pub use crate::types::error::_throttling_exception::ThrottlingExceptionBuilder;
           4  +
pub use crate::types::error::_internal_server_exception::InternalServerExceptionBuilder;
    5      5   
    6         -
pub use crate::types::error::_service_unavailable_exception::ServiceUnavailableExceptionBuilder;
           6  +
pub use crate::types::error::_throttling_exception::ThrottlingExceptionBuilder;
    7      7   
    8         -
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundExceptionBuilder;
           8  +
pub use crate::types::error::_validation_exception::ValidationExceptionBuilder;
    9      9   
   10         -
pub use crate::types::error::_internal_server_exception::InternalServerExceptionBuilder;
          10  +
pub use crate::types::error::_conflict_exception::ConflictExceptionBuilder;
   11     11   
   12         -
pub use crate::types::error::_access_denied_exception::AccessDeniedExceptionBuilder;
          12  +
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundExceptionBuilder;
   13     13   
   14     14   
pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededExceptionBuilder;
   15     15   
   16         -
pub use crate::types::error::_model_timeout_exception::ModelTimeoutExceptionBuilder;
          16  +
pub use crate::types::error::_service_unavailable_exception::ServiceUnavailableExceptionBuilder;
   17     17   
   18         -
pub use crate::types::error::_model_stream_error_exception::ModelStreamErrorExceptionBuilder;
          18  +
pub use crate::types::error::_model_error_exception::ModelErrorExceptionBuilder;
   19     19   
   20     20   
pub use crate::types::error::_model_not_ready_exception::ModelNotReadyExceptionBuilder;
   21     21   
   22         -
pub use crate::types::error::_model_error_exception::ModelErrorExceptionBuilder;
          22  +
pub use crate::types::error::_model_timeout_exception::ModelTimeoutExceptionBuilder;
   23     23   
   24         -
pub use crate::types::error::_conflict_exception::ConflictExceptionBuilder;
          24  +
pub use crate::types::error::_model_stream_error_exception::ModelStreamErrorExceptionBuilder;

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/lib.rs

@@ -1,1 +44,45 @@
    5      5   
#![allow(clippy::large_enum_variant)]
    6      6   
#![allow(clippy::wrong_self_convention)]
    7      7   
#![allow(clippy::should_implement_trait)]
    8      8   
#![allow(clippy::disallowed_names)]
    9      9   
#![allow(clippy::vec_init_then_push)]
   10     10   
#![allow(clippy::type_complexity)]
   11     11   
#![allow(clippy::needless_return)]
   12     12   
#![allow(clippy::derive_partial_eq_without_eq)]
   13     13   
#![allow(clippy::result_large_err)]
   14     14   
#![allow(clippy::unnecessary_map_on_constructor)]
          15  +
#![allow(clippy::useless_conversion)]
   15     16   
#![allow(clippy::deprecated_semver)]
   16     17   
#![allow(rustdoc::bare_urls)]
   17     18   
#![allow(rustdoc::redundant_explicit_links)]
   18     19   
#![allow(rustdoc::broken_intra_doc_links)]
   19     20   
#![allow(rustdoc::invalid_html_tags)]
   20     21   
#![forbid(unsafe_code)]
   21     22   
#![warn(missing_docs)]
   22     23   
#![cfg_attr(docsrs, feature(doc_cfg))]
   23     24   
//! You can use Amazon CloudWatch Logs to monitor, store, and access your log files from EC2 instances, CloudTrail, and other sources. You can then retrieve the associated log data from CloudWatch Logs using the CloudWatch console. Alternatively, you can use CloudWatch Logs commands in the Amazon Web Services CLI, CloudWatch Logs API, or CloudWatch Logs SDK.
   24     25   
//!

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/associate_kms_key.rs

@@ -362,362 +401,401 @@
  382    382   
            meta: meta.unwrap_or_default(),
  383    383   
        })
  384    384   
    }
  385    385   
}
  386    386   
impl ::aws_types::request_id::RequestId for crate::operation::associate_kms_key::AssociateKmsKeyError {
  387    387   
    fn request_id(&self) -> Option<&str> {
  388    388   
        self.meta().request_id()
  389    389   
    }
  390    390   
}
  391    391   
  392         -
pub use crate::operation::associate_kms_key::_associate_kms_key_output::AssociateKmsKeyOutput;
  393         -
  394    392   
pub use crate::operation::associate_kms_key::_associate_kms_key_input::AssociateKmsKeyInput;
  395    393   
         394  +
pub use crate::operation::associate_kms_key::_associate_kms_key_output::AssociateKmsKeyOutput;
         395  +
  396    396   
mod _associate_kms_key_input;
  397    397   
  398    398   
mod _associate_kms_key_output;
  399    399   
  400    400   
/// Builders
  401    401   
pub mod builders;

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/associate_kms_key/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::associate_kms_key::_associate_kms_key_output::AssociateKmsKeyOutputBuilder;
    3         -
    4      2   
pub use crate::operation::associate_kms_key::_associate_kms_key_input::AssociateKmsKeyInputBuilder;
    5      3   
           4  +
pub use crate::operation::associate_kms_key::_associate_kms_key_output::AssociateKmsKeyOutputBuilder;
           5  +
    6      6   
impl crate::operation::associate_kms_key::builders::AssociateKmsKeyInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::associate_kms_key::AssociateKmsKeyOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::associate_kms_key::AssociateKmsKeyError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/cancel_export_task.rs

@@ -362,362 +401,401 @@
  382    382   
            meta: meta.unwrap_or_default(),
  383    383   
        })
  384    384   
    }
  385    385   
}
  386    386   
impl ::aws_types::request_id::RequestId for crate::operation::cancel_export_task::CancelExportTaskError {
  387    387   
    fn request_id(&self) -> Option<&str> {
  388    388   
        self.meta().request_id()
  389    389   
    }
  390    390   
}
  391    391   
  392         -
pub use crate::operation::cancel_export_task::_cancel_export_task_output::CancelExportTaskOutput;
  393         -
  394    392   
pub use crate::operation::cancel_export_task::_cancel_export_task_input::CancelExportTaskInput;
  395    393   
         394  +
pub use crate::operation::cancel_export_task::_cancel_export_task_output::CancelExportTaskOutput;
         395  +
  396    396   
mod _cancel_export_task_input;
  397    397   
  398    398   
mod _cancel_export_task_output;
  399    399   
  400    400   
/// Builders
  401    401   
pub mod builders;

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/cancel_export_task/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::cancel_export_task::_cancel_export_task_output::CancelExportTaskOutputBuilder;
    3         -
    4      2   
pub use crate::operation::cancel_export_task::_cancel_export_task_input::CancelExportTaskInputBuilder;
    5      3   
           4  +
pub use crate::operation::cancel_export_task::_cancel_export_task_output::CancelExportTaskOutputBuilder;
           5  +
    6      6   
impl crate::operation::cancel_export_task::builders::CancelExportTaskInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::cancel_export_task::CancelExportTaskOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::cancel_export_task::CancelExportTaskError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/create_delivery.rs

@@ -392,392 +431,431 @@
  412    412   
            meta: meta.unwrap_or_default(),
  413    413   
        })
  414    414   
    }
  415    415   
}
  416    416   
impl ::aws_types::request_id::RequestId for crate::operation::create_delivery::CreateDeliveryError {
  417    417   
    fn request_id(&self) -> Option<&str> {
  418    418   
        self.meta().request_id()
  419    419   
    }
  420    420   
}
  421    421   
  422         -
pub use crate::operation::create_delivery::_create_delivery_output::CreateDeliveryOutput;
  423         -
  424    422   
pub use crate::operation::create_delivery::_create_delivery_input::CreateDeliveryInput;
  425    423   
         424  +
pub use crate::operation::create_delivery::_create_delivery_output::CreateDeliveryOutput;
         425  +
  426    426   
mod _create_delivery_input;
  427    427   
  428    428   
mod _create_delivery_output;
  429    429   
  430    430   
/// Builders
  431    431   
pub mod builders;