1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::types::error::_service_unavailable_exception::ServiceUnavailableException;
|
2 + | pub use crate::types::error::_invalid_parameter_exception::InvalidParameterException;
|
3 + |
|
4 + | pub use crate::types::error::_operation_aborted_exception::OperationAbortedException;
|
3 5 |
|
4 6 | pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundException;
|
5 7 |
|
6 - | pub use crate::types::error::_operation_aborted_exception::OperationAbortedException;
|
8 + | pub use crate::types::error::_service_unavailable_exception::ServiceUnavailableException;
|
7 9 |
|
8 - | pub use crate::types::error::_invalid_parameter_exception::InvalidParameterException;
|
10 + | pub use crate::types::error::_invalid_operation_exception::InvalidOperationException;
|
9 11 |
|
10 - | pub use crate::types::error::_validation_exception::ValidationException;
|
12 + | pub use crate::types::error::_access_denied_exception::AccessDeniedException;
|
13 + |
|
14 + | pub use crate::types::error::_conflict_exception::ConflictException;
|
15 + |
|
16 + | pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededException;
|
11 17 |
|
12 18 | pub use crate::types::error::_throttling_exception::ThrottlingException;
|
13 19 |
|
14 - | pub use crate::types::error::_conflict_exception::ConflictException;
|
20 + | pub use crate::types::error::_validation_exception::ValidationException;
|
15 21 |
|
16 - | pub use crate::types::error::_access_denied_exception::AccessDeniedException;
|
22 + | pub use crate::types::error::_limit_exceeded_exception::LimitExceededException;
|
17 23 |
|
18 - | pub use crate::types::error::_invalid_operation_exception::InvalidOperationException;
|
24 + | pub use crate::types::error::_resource_already_exists_exception::ResourceAlreadyExistsException;
|
19 25 |
|
20 - | pub use crate::types::error::_too_many_tags_exception::TooManyTagsException;
|
26 + | pub use crate::types::error::_internal_streaming_exception::InternalStreamingException;
|
21 27 |
|
22 - | pub use crate::types::error::_malformed_query_exception::MalformedQueryException;
|
28 + | pub use crate::types::error::_data_already_accepted_exception::DataAlreadyAcceptedException;
|
23 29 |
|
24 - | pub use crate::types::error::_limit_exceeded_exception::LimitExceededException;
|
30 + | pub use crate::types::error::_invalid_sequence_token_exception::InvalidSequenceTokenException;
|
25 31 |
|
26 - | pub use crate::types::error::_session_streaming_exception::SessionStreamingException;
|
32 + | pub use crate::types::error::_unrecognized_client_exception::UnrecognizedClientException;
|
27 33 |
|
28 34 | pub use crate::types::error::_session_timeout_exception::SessionTimeoutException;
|
29 35 |
|
30 - | /// Error type for the `StartLiveTailResponseStreamError` operation.
|
36 + | pub use crate::types::error::_session_streaming_exception::SessionStreamingException;
|
37 + |
|
38 + | pub use crate::types::error::_malformed_query_exception::MalformedQueryException;
|
39 + |
|
40 + | pub use crate::types::error::_too_many_tags_exception::TooManyTagsException;
|
41 + |
|
42 + | /// Error type for the `GetLogObjectResponseStreamError` operation.
|
31 43 | #[non_exhaustive]
|
32 44 | #[derive(::std::fmt::Debug)]
|
33 - | pub enum StartLiveTailResponseStreamError {
|
34 - | /// <p>This exception is returned in a Live Tail stream when the Live Tail session times out. Live Tail sessions time out after three hours.</p>
|
35 - | SessionTimeoutException(crate::types::error::SessionTimeoutException),
|
36 - | /// <p>This exception is returned if an unknown error occurs during a Live Tail session.</p>
|
37 - | SessionStreamingException(crate::types::error::SessionStreamingException),
|
45 + | pub enum GetLogObjectResponseStreamError {
|
46 + | /// <p>An internal error occurred during the streaming of log data. This exception is thrown when there's an issue with the internal streaming mechanism used by the GetLogObject operation.</p>
|
47 + | InternalStreamingException(crate::types::error::InternalStreamingException),
|
38 48 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
39 49 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
40 50 | variable wildcard pattern and check `.code()`:
|
41 51 | \
|
42 52 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
43 53 | \
|
44 - | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-StartLiveTailResponseStreamError) for what information is available for the error.")]
|
54 + | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetLogObjectResponseStreamError) for what information is available for the error.")]
|
45 55 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
46 56 | }
|
47 - | impl StartLiveTailResponseStreamError {
|
48 - | /// Creates the `StartLiveTailResponseStreamError::Unhandled` variant from any error type.
|
57 + | impl GetLogObjectResponseStreamError {
|
58 + | /// Creates the `GetLogObjectResponseStreamError::Unhandled` variant from any error type.
|
49 59 | pub fn unhandled(
|
50 60 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
51 61 | ) -> Self {
|
52 62 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
53 63 | source: err.into(),
|
54 64 | meta: ::std::default::Default::default(),
|
55 65 | })
|
56 66 | }
|
57 67 |
|
58 - | /// Creates the `StartLiveTailResponseStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
68 + | /// Creates the `GetLogObjectResponseStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
59 69 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
60 70 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
61 71 | source: err.clone().into(),
|
62 72 | meta: err,
|
63 73 | })
|
64 74 | }
|
65 75 | ///
|
66 76 | /// Returns error metadata, which includes the error code, message,
|
67 77 | /// request ID, and potentially additional information.
|
68 78 | ///
|
69 79 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
70 80 | match self {
|
71 - | Self::SessionTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
72 - | Self::SessionStreamingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
81 + | Self::InternalStreamingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
73 82 | Self::Unhandled(e) => &e.meta,
|
74 83 | }
|
75 84 | }
|
76 - | /// Returns `true` if the error kind is `StartLiveTailResponseStreamError::SessionTimeoutException`.
|
77 - | pub fn is_session_timeout_exception(&self) -> bool {
|
78 - | matches!(self, Self::SessionTimeoutException(_))
|
79 - | }
|
80 - | /// Returns `true` if the error kind is `StartLiveTailResponseStreamError::SessionStreamingException`.
|
81 - | pub fn is_session_streaming_exception(&self) -> bool {
|
82 - | matches!(self, Self::SessionStreamingException(_))
|
85 + | /// Returns `true` if the error kind is `GetLogObjectResponseStreamError::InternalStreamingException`.
|
86 + | pub fn is_internal_streaming_exception(&self) -> bool {
|
87 + | matches!(self, Self::InternalStreamingException(_))
|
83 88 | }
|
84 89 | }
|
85 - | impl ::std::error::Error for StartLiveTailResponseStreamError {
|
90 + | impl ::std::error::Error for GetLogObjectResponseStreamError {
|
86 91 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
87 92 | match self {
|
88 - | Self::SessionTimeoutException(_inner) => ::std::option::Option::Some(_inner),
|
89 - | Self::SessionStreamingException(_inner) => ::std::option::Option::Some(_inner),
|
93 + | Self::InternalStreamingException(_inner) => ::std::option::Option::Some(_inner),
|
90 94 | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
91 95 | }
|
92 96 | }
|
93 97 | }
|
94 - | impl ::std::fmt::Display for StartLiveTailResponseStreamError {
|
98 + | impl ::std::fmt::Display for GetLogObjectResponseStreamError {
|
95 99 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
96 100 | match self {
|
97 - | Self::SessionTimeoutException(_inner) => _inner.fmt(f),
|
98 - | Self::SessionStreamingException(_inner) => _inner.fmt(f),
|
101 + | Self::InternalStreamingException(_inner) => _inner.fmt(f),
|
99 102 | Self::Unhandled(_inner) => {
|
100 103 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
101 104 | write!(f, "unhandled error ({code})")
|
102 105 | } else {
|
103 106 | f.write_str("unhandled error")
|
104 107 | }
|
105 108 | }
|
106 109 | }
|
107 110 | }
|
108 111 | }
|
109 - | impl ::aws_smithy_types::retry::ProvideErrorKind for StartLiveTailResponseStreamError {
|
112 + | impl ::aws_smithy_types::retry::ProvideErrorKind for GetLogObjectResponseStreamError {
|
110 113 | fn code(&self) -> ::std::option::Option<&str> {
|
111 114 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
112 115 | }
|
113 116 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
114 117 | ::std::option::Option::None
|
115 118 | }
|
116 119 | }
|
117 - | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for StartLiveTailResponseStreamError {
|
120 + | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetLogObjectResponseStreamError {
|
118 121 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
119 122 | match self {
|
120 - | Self::SessionTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
121 - | Self::SessionStreamingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
123 + | Self::InternalStreamingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
122 124 | Self::Unhandled(_inner) => &_inner.meta,
|
123 125 | }
|
124 126 | }
|
125 127 | }
|
126 - | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for StartLiveTailResponseStreamError {
|
128 + | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetLogObjectResponseStreamError {
|
127 129 | fn create_unhandled_error(
|
128 130 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
129 131 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
130 132 | ) -> Self {
|
131 133 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
132 134 | source,
|
133 135 | meta: meta.unwrap_or_default(),
|
134 136 | })
|
135 137 | }
|
136 138 | }
|
137 - | impl ::aws_types::request_id::RequestId for crate::types::error::StartLiveTailResponseStreamError {
|
139 + | impl ::aws_types::request_id::RequestId for crate::types::error::GetLogObjectResponseStreamError {
|
138 140 | fn request_id(&self) -> Option<&str> {
|
139 141 | self.meta().request_id()
|
140 142 | }
|
141 143 | }
|
142 144 |
|
143 - | pub use crate::types::error::_unrecognized_client_exception::UnrecognizedClientException;
|
144 - |
|
145 - | pub use crate::types::error::_invalid_sequence_token_exception::InvalidSequenceTokenException;
|
146 - |
|
147 - | pub use crate::types::error::_data_already_accepted_exception::DataAlreadyAcceptedException;
|
148 - |
|
149 - | pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededException;
|
150 - |
|
151 - | pub use crate::types::error::_internal_streaming_exception::InternalStreamingException;
|
152 - |
|
153 - | /// Error type for the `GetLogObjectResponseStreamError` operation.
|
145 + | /// Error type for the `StartLiveTailResponseStreamError` operation.
|
154 146 | #[non_exhaustive]
|
155 147 | #[derive(::std::fmt::Debug)]
|
156 - | pub enum GetLogObjectResponseStreamError {
|
157 - | /// <p>An internal error occurred during the streaming of log data. This exception is thrown when there's an issue with the internal streaming mechanism used by the GetLogObject operation.</p>
|
158 - | InternalStreamingException(crate::types::error::InternalStreamingException),
|
148 + | pub enum StartLiveTailResponseStreamError {
|
149 + | /// <p>This exception is returned in a Live Tail stream when the Live Tail session times out. Live Tail sessions time out after three hours.</p>
|
150 + | SessionTimeoutException(crate::types::error::SessionTimeoutException),
|
151 + | /// <p>This exception is returned if an unknown error occurs during a Live Tail session.</p>
|
152 + | SessionStreamingException(crate::types::error::SessionStreamingException),
|
159 153 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
160 154 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
161 155 | variable wildcard pattern and check `.code()`:
|
162 156 | \
|
163 157 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
164 158 | \
|
165 - | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetLogObjectResponseStreamError) for what information is available for the error.")]
|
159 + | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-StartLiveTailResponseStreamError) for what information is available for the error.")]
|
166 160 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
167 161 | }
|
168 - | impl GetLogObjectResponseStreamError {
|
169 - | /// Creates the `GetLogObjectResponseStreamError::Unhandled` variant from any error type.
|
162 + | impl StartLiveTailResponseStreamError {
|
163 + | /// Creates the `StartLiveTailResponseStreamError::Unhandled` variant from any error type.
|
170 164 | pub fn unhandled(
|
171 165 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
172 166 | ) -> Self {
|
173 167 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
174 168 | source: err.into(),
|
175 169 | meta: ::std::default::Default::default(),
|
176 170 | })
|
177 171 | }
|
178 172 |
|
179 - | /// Creates the `GetLogObjectResponseStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
173 + | /// Creates the `StartLiveTailResponseStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
180 174 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
181 175 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
182 176 | source: err.clone().into(),
|
183 177 | meta: err,
|
184 178 | })
|
185 179 | }
|
186 180 | ///
|
187 181 | /// Returns error metadata, which includes the error code, message,
|
188 182 | /// request ID, and potentially additional information.
|
189 183 | ///
|
190 184 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
191 185 | match self {
|
192 - | Self::InternalStreamingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
186 + | Self::SessionTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
187 + | Self::SessionStreamingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
193 188 | Self::Unhandled(e) => &e.meta,
|
194 189 | }
|
195 190 | }
|
196 - | /// Returns `true` if the error kind is `GetLogObjectResponseStreamError::InternalStreamingException`.
|
197 - | pub fn is_internal_streaming_exception(&self) -> bool {
|
198 - | matches!(self, Self::InternalStreamingException(_))
|
191 + | /// Returns `true` if the error kind is `StartLiveTailResponseStreamError::SessionTimeoutException`.
|
192 + | pub fn is_session_timeout_exception(&self) -> bool {
|
193 + | matches!(self, Self::SessionTimeoutException(_))
|
194 + | }
|
195 + | /// Returns `true` if the error kind is `StartLiveTailResponseStreamError::SessionStreamingException`.
|
196 + | pub fn is_session_streaming_exception(&self) -> bool {
|
197 + | matches!(self, Self::SessionStreamingException(_))
|
199 198 | }
|
200 199 | }
|
201 - | impl ::std::error::Error for GetLogObjectResponseStreamError {
|
200 + | impl ::std::error::Error for StartLiveTailResponseStreamError {
|
202 201 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
203 202 | match self {
|
204 - | Self::InternalStreamingException(_inner) => ::std::option::Option::Some(_inner),
|
203 + | Self::SessionTimeoutException(_inner) => ::std::option::Option::Some(_inner),
|
204 + | Self::SessionStreamingException(_inner) => ::std::option::Option::Some(_inner),
|
205 205 | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
206 206 | }
|
207 207 | }
|
208 208 | }
|
209 - | impl ::std::fmt::Display for GetLogObjectResponseStreamError {
|
209 + | impl ::std::fmt::Display for StartLiveTailResponseStreamError {
|
210 210 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
211 211 | match self {
|
212 - | Self::InternalStreamingException(_inner) => _inner.fmt(f),
|
212 + | Self::SessionTimeoutException(_inner) => _inner.fmt(f),
|
213 + | Self::SessionStreamingException(_inner) => _inner.fmt(f),
|
213 214 | Self::Unhandled(_inner) => {
|
214 215 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
215 216 | write!(f, "unhandled error ({code})")
|
216 217 | } else {
|
217 218 | f.write_str("unhandled error")
|
218 219 | }
|
219 220 | }
|
220 221 | }
|
221 222 | }
|
222 223 | }
|
223 - | impl ::aws_smithy_types::retry::ProvideErrorKind for GetLogObjectResponseStreamError {
|
224 + | impl ::aws_smithy_types::retry::ProvideErrorKind for StartLiveTailResponseStreamError {
|
224 225 | fn code(&self) -> ::std::option::Option<&str> {
|
225 226 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
226 227 | }
|
227 228 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
228 229 | ::std::option::Option::None
|
229 230 | }
|
230 231 | }
|
231 - | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetLogObjectResponseStreamError {
|
232 + | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for StartLiveTailResponseStreamError {
|
232 233 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
233 234 | match self {
|
234 - | Self::InternalStreamingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
235 + | Self::SessionTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
236 + | Self::SessionStreamingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
235 237 | Self::Unhandled(_inner) => &_inner.meta,
|
236 238 | }
|
237 239 | }
|
238 240 | }
|
239 - | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetLogObjectResponseStreamError {
|
241 + | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for StartLiveTailResponseStreamError {
|
240 242 | fn create_unhandled_error(
|
241 243 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
242 244 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
243 245 | ) -> Self {
|
244 246 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
245 247 | source,
|
246 248 | meta: meta.unwrap_or_default(),
|
247 249 | })
|
248 250 | }
|
249 251 | }
|
250 - | impl ::aws_types::request_id::RequestId for crate::types::error::GetLogObjectResponseStreamError {
|
252 + | impl ::aws_types::request_id::RequestId for crate::types::error::StartLiveTailResponseStreamError {
|
251 253 | fn request_id(&self) -> Option<&str> {
|
252 254 | self.meta().request_id()
|
253 255 | }
|
254 256 | }
|
255 257 |
|
256 - | pub use crate::types::error::_resource_already_exists_exception::ResourceAlreadyExistsException;
|
257 - |
|
258 258 | mod _access_denied_exception;
|
259 259 |
|
260 260 | mod _conflict_exception;
|
261 261 |
|
262 262 | mod _data_already_accepted_exception;
|
263 263 |
|
264 264 | mod _internal_streaming_exception;
|
265 265 |
|
266 266 | mod _invalid_operation_exception;
|
267 267 |
|