Enum aws_sdk_kinesis::Error
source · #[non_exhaustive]pub enum Error {
Show 16 variants
AccessDeniedException(AccessDeniedException),
ExpiredIteratorException(ExpiredIteratorException),
ExpiredNextTokenException(ExpiredNextTokenException),
InvalidArgumentException(InvalidArgumentException),
KmsAccessDeniedException(KmsAccessDeniedException),
KmsDisabledException(KmsDisabledException),
KmsInvalidStateException(KmsInvalidStateException),
KmsNotFoundException(KmsNotFoundException),
KmsOptInRequired(KmsOptInRequired),
KmsThrottlingException(KmsThrottlingException),
LimitExceededException(LimitExceededException),
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
Specifies that you do not have the permissions required to perform this operation.
ExpiredIteratorException(ExpiredIteratorException)
The provided iterator exceeds the maximum age allowed.
ExpiredNextTokenException(ExpiredNextTokenException)
The pagination token passed to the operation is expired.
InvalidArgumentException(InvalidArgumentException)
A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
KmsAccessDeniedException(KmsAccessDeniedException)
The ciphertext references a key that doesn't exist or that you don't have access to.
KmsDisabledException(KmsDisabledException)
The request was rejected because the specified customer master key (CMK) isn't enabled.
KmsInvalidStateException(KmsInvalidStateException)
The request was rejected because the state of the specified resource isn't valid for this request. For more information, see How Key State Affects Use of a Customer Master Key in the Amazon Web Services Key Management Service Developer Guide.
KmsNotFoundException(KmsNotFoundException)
The request was rejected because the specified entity or resource can't be found.
KmsOptInRequired(KmsOptInRequired)
The Amazon Web Services access key ID needs a subscription for the service.
KmsThrottlingException(KmsThrottlingException)
The request was denied due to request throttling. For more information about throttling, see Limits in the Amazon Web Services Key Management Service Developer Guide.
LimitExceededException(LimitExceededException)
The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException)
The request rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and Exponential Backoff in Amazon Web Services in the Amazon Web Services General Reference.
ResourceInUseException(ResourceInUseException)
The resource is not available for this operation. For successful operation, the resource must be in the ACTIVE
state.
ResourceNotFoundException(ResourceNotFoundException)
The requested resource could not be found. The stream might not be specified correctly.
ValidationException(ValidationException)
Specifies that you tried to invoke this API for a data stream with the on-demand capacity mode. This API is only supported for data streams with the provisioned capacity mode.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<AddTagsToStreamError> for Error
impl From<AddTagsToStreamError> for Error
source§fn from(err: AddTagsToStreamError) -> Self
fn from(err: AddTagsToStreamError) -> Self
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateStreamError> for Error
impl From<CreateStreamError> for Error
source§fn from(err: CreateStreamError) -> Self
fn from(err: CreateStreamError) -> Self
source§impl From<DecreaseStreamRetentionPeriodError> for Error
impl From<DecreaseStreamRetentionPeriodError> for Error
source§fn from(err: DecreaseStreamRetentionPeriodError) -> Self
fn from(err: DecreaseStreamRetentionPeriodError) -> Self
source§impl From<DeleteResourcePolicyError> for Error
impl From<DeleteResourcePolicyError> for Error
source§fn from(err: DeleteResourcePolicyError) -> Self
fn from(err: DeleteResourcePolicyError) -> Self
source§impl From<DeleteStreamError> for Error
impl From<DeleteStreamError> for Error
source§fn from(err: DeleteStreamError) -> Self
fn from(err: DeleteStreamError) -> Self
source§impl From<DeregisterStreamConsumerError> for Error
impl From<DeregisterStreamConsumerError> for Error
source§fn from(err: DeregisterStreamConsumerError) -> Self
fn from(err: DeregisterStreamConsumerError) -> Self
source§impl From<DescribeLimitsError> for Error
impl From<DescribeLimitsError> for Error
source§fn from(err: DescribeLimitsError) -> Self
fn from(err: DescribeLimitsError) -> Self
source§impl From<DescribeStreamConsumerError> for Error
impl From<DescribeStreamConsumerError> for Error
source§fn from(err: DescribeStreamConsumerError) -> Self
fn from(err: DescribeStreamConsumerError) -> Self
source§impl From<DescribeStreamError> for Error
impl From<DescribeStreamError> for Error
source§fn from(err: DescribeStreamError) -> Self
fn from(err: DescribeStreamError) -> Self
source§impl From<DescribeStreamSummaryError> for Error
impl From<DescribeStreamSummaryError> for Error
source§fn from(err: DescribeStreamSummaryError) -> Self
fn from(err: DescribeStreamSummaryError) -> Self
source§impl From<DisableEnhancedMonitoringError> for Error
impl From<DisableEnhancedMonitoringError> for Error
source§fn from(err: DisableEnhancedMonitoringError) -> Self
fn from(err: DisableEnhancedMonitoringError) -> Self
source§impl From<EnableEnhancedMonitoringError> for Error
impl From<EnableEnhancedMonitoringError> for Error
source§fn from(err: EnableEnhancedMonitoringError) -> Self
fn from(err: EnableEnhancedMonitoringError) -> Self
source§impl From<GetRecordsError> for Error
impl From<GetRecordsError> for Error
source§fn from(err: GetRecordsError) -> Self
fn from(err: GetRecordsError) -> Self
source§impl From<GetResourcePolicyError> for Error
impl From<GetResourcePolicyError> for Error
source§fn from(err: GetResourcePolicyError) -> Self
fn from(err: GetResourcePolicyError) -> Self
source§impl From<GetShardIteratorError> for Error
impl From<GetShardIteratorError> for Error
source§fn from(err: GetShardIteratorError) -> Self
fn from(err: GetShardIteratorError) -> Self
source§impl From<IncreaseStreamRetentionPeriodError> for Error
impl From<IncreaseStreamRetentionPeriodError> for Error
source§fn from(err: IncreaseStreamRetentionPeriodError) -> Self
fn from(err: IncreaseStreamRetentionPeriodError) -> Self
source§impl From<ListShardsError> for Error
impl From<ListShardsError> for Error
source§fn from(err: ListShardsError) -> Self
fn from(err: ListShardsError) -> Self
source§impl From<ListStreamConsumersError> for Error
impl From<ListStreamConsumersError> for Error
source§fn from(err: ListStreamConsumersError) -> Self
fn from(err: ListStreamConsumersError) -> Self
source§impl From<ListStreamsError> for Error
impl From<ListStreamsError> for Error
source§fn from(err: ListStreamsError) -> Self
fn from(err: ListStreamsError) -> Self
source§impl From<ListTagsForStreamError> for Error
impl From<ListTagsForStreamError> for Error
source§fn from(err: ListTagsForStreamError) -> Self
fn from(err: ListTagsForStreamError) -> Self
source§impl From<MergeShardsError> for Error
impl From<MergeShardsError> for Error
source§fn from(err: MergeShardsError) -> Self
fn from(err: MergeShardsError) -> Self
source§impl From<PutRecordError> for Error
impl From<PutRecordError> for Error
source§fn from(err: PutRecordError) -> Self
fn from(err: PutRecordError) -> Self
source§impl From<PutRecordsError> for Error
impl From<PutRecordsError> for Error
source§fn from(err: PutRecordsError) -> Self
fn from(err: PutRecordsError) -> Self
source§impl From<PutResourcePolicyError> for Error
impl From<PutResourcePolicyError> for Error
source§fn from(err: PutResourcePolicyError) -> Self
fn from(err: PutResourcePolicyError) -> Self
source§impl From<RegisterStreamConsumerError> for Error
impl From<RegisterStreamConsumerError> for Error
source§fn from(err: RegisterStreamConsumerError) -> Self
fn from(err: RegisterStreamConsumerError) -> Self
source§impl From<RemoveTagsFromStreamError> for Error
impl From<RemoveTagsFromStreamError> for Error
source§fn from(err: RemoveTagsFromStreamError) -> Self
fn from(err: RemoveTagsFromStreamError) -> Self
source§impl<R> From<SdkError<AddTagsToStreamError, R>> for Error
impl<R> From<SdkError<AddTagsToStreamError, R>> for Error
source§fn from(err: SdkError<AddTagsToStreamError, R>) -> Self
fn from(err: SdkError<AddTagsToStreamError, R>) -> Self
source§impl<R> From<SdkError<CreateStreamError, R>> for Error
impl<R> From<SdkError<CreateStreamError, R>> for Error
source§fn from(err: SdkError<CreateStreamError, R>) -> Self
fn from(err: SdkError<CreateStreamError, R>) -> Self
source§impl<R> From<SdkError<DecreaseStreamRetentionPeriodError, R>> for Error
impl<R> From<SdkError<DecreaseStreamRetentionPeriodError, R>> for Error
source§fn from(err: SdkError<DecreaseStreamRetentionPeriodError, R>) -> Self
fn from(err: SdkError<DecreaseStreamRetentionPeriodError, R>) -> Self
source§impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
source§fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<DeleteStreamError, R>> for Error
impl<R> From<SdkError<DeleteStreamError, R>> for Error
source§fn from(err: SdkError<DeleteStreamError, R>) -> Self
fn from(err: SdkError<DeleteStreamError, R>) -> Self
source§impl<R> From<SdkError<DeregisterStreamConsumerError, R>> for Error
impl<R> From<SdkError<DeregisterStreamConsumerError, R>> for Error
source§fn from(err: SdkError<DeregisterStreamConsumerError, R>) -> Self
fn from(err: SdkError<DeregisterStreamConsumerError, R>) -> Self
source§impl<R> From<SdkError<DescribeLimitsError, R>> for Error
impl<R> From<SdkError<DescribeLimitsError, R>> for Error
source§fn from(err: SdkError<DescribeLimitsError, R>) -> Self
fn from(err: SdkError<DescribeLimitsError, R>) -> Self
source§impl<R> From<SdkError<DescribeStreamConsumerError, R>> for Error
impl<R> From<SdkError<DescribeStreamConsumerError, R>> for Error
source§fn from(err: SdkError<DescribeStreamConsumerError, R>) -> Self
fn from(err: SdkError<DescribeStreamConsumerError, R>) -> Self
source§impl<R> From<SdkError<DescribeStreamError, R>> for Error
impl<R> From<SdkError<DescribeStreamError, R>> for Error
source§fn from(err: SdkError<DescribeStreamError, R>) -> Self
fn from(err: SdkError<DescribeStreamError, R>) -> Self
source§impl<R> From<SdkError<DescribeStreamSummaryError, R>> for Error
impl<R> From<SdkError<DescribeStreamSummaryError, R>> for Error
source§fn from(err: SdkError<DescribeStreamSummaryError, R>) -> Self
fn from(err: SdkError<DescribeStreamSummaryError, R>) -> Self
source§impl<R> From<SdkError<DisableEnhancedMonitoringError, R>> for Error
impl<R> From<SdkError<DisableEnhancedMonitoringError, R>> for Error
source§fn from(err: SdkError<DisableEnhancedMonitoringError, R>) -> Self
fn from(err: SdkError<DisableEnhancedMonitoringError, R>) -> Self
source§impl<R> From<SdkError<EnableEnhancedMonitoringError, R>> for Error
impl<R> From<SdkError<EnableEnhancedMonitoringError, R>> for Error
source§fn from(err: SdkError<EnableEnhancedMonitoringError, R>) -> Self
fn from(err: SdkError<EnableEnhancedMonitoringError, R>) -> Self
source§impl<R> From<SdkError<GetRecordsError, R>> for Error
impl<R> From<SdkError<GetRecordsError, R>> for Error
source§fn from(err: SdkError<GetRecordsError, R>) -> Self
fn from(err: SdkError<GetRecordsError, R>) -> Self
source§impl<R> From<SdkError<GetResourcePolicyError, R>> for Error
impl<R> From<SdkError<GetResourcePolicyError, R>> for Error
source§fn from(err: SdkError<GetResourcePolicyError, R>) -> Self
fn from(err: SdkError<GetResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<GetShardIteratorError, R>> for Error
impl<R> From<SdkError<GetShardIteratorError, R>> for Error
source§fn from(err: SdkError<GetShardIteratorError, R>) -> Self
fn from(err: SdkError<GetShardIteratorError, R>) -> Self
source§impl<R> From<SdkError<IncreaseStreamRetentionPeriodError, R>> for Error
impl<R> From<SdkError<IncreaseStreamRetentionPeriodError, R>> for Error
source§fn from(err: SdkError<IncreaseStreamRetentionPeriodError, R>) -> Self
fn from(err: SdkError<IncreaseStreamRetentionPeriodError, R>) -> Self
source§impl<R> From<SdkError<ListShardsError, R>> for Error
impl<R> From<SdkError<ListShardsError, R>> for Error
source§fn from(err: SdkError<ListShardsError, R>) -> Self
fn from(err: SdkError<ListShardsError, R>) -> Self
source§impl<R> From<SdkError<ListStreamConsumersError, R>> for Error
impl<R> From<SdkError<ListStreamConsumersError, R>> for Error
source§fn from(err: SdkError<ListStreamConsumersError, R>) -> Self
fn from(err: SdkError<ListStreamConsumersError, R>) -> Self
source§impl<R> From<SdkError<ListStreamsError, R>> for Error
impl<R> From<SdkError<ListStreamsError, R>> for Error
source§fn from(err: SdkError<ListStreamsError, R>) -> Self
fn from(err: SdkError<ListStreamsError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForStreamError, R>> for Error
impl<R> From<SdkError<ListTagsForStreamError, R>> for Error
source§fn from(err: SdkError<ListTagsForStreamError, R>) -> Self
fn from(err: SdkError<ListTagsForStreamError, R>) -> Self
source§impl<R> From<SdkError<MergeShardsError, R>> for Error
impl<R> From<SdkError<MergeShardsError, R>> for Error
source§fn from(err: SdkError<MergeShardsError, R>) -> Self
fn from(err: SdkError<MergeShardsError, R>) -> Self
source§impl<R> From<SdkError<PutRecordError, R>> for Error
impl<R> From<SdkError<PutRecordError, R>> for Error
source§fn from(err: SdkError<PutRecordError, R>) -> Self
fn from(err: SdkError<PutRecordError, R>) -> Self
source§impl<R> From<SdkError<PutRecordsError, R>> for Error
impl<R> From<SdkError<PutRecordsError, R>> for Error
source§fn from(err: SdkError<PutRecordsError, R>) -> Self
fn from(err: SdkError<PutRecordsError, R>) -> Self
source§impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
source§fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
source§impl<R> From<SdkError<RegisterStreamConsumerError, R>> for Error
impl<R> From<SdkError<RegisterStreamConsumerError, R>> for Error
source§fn from(err: SdkError<RegisterStreamConsumerError, R>) -> Self
fn from(err: SdkError<RegisterStreamConsumerError, R>) -> Self
source§impl<R> From<SdkError<RemoveTagsFromStreamError, R>> for Error
impl<R> From<SdkError<RemoveTagsFromStreamError, R>> for Error
source§fn from(err: SdkError<RemoveTagsFromStreamError, R>) -> Self
fn from(err: SdkError<RemoveTagsFromStreamError, R>) -> Self
source§impl<R> From<SdkError<SplitShardError, R>> for Error
impl<R> From<SdkError<SplitShardError, R>> for Error
source§fn from(err: SdkError<SplitShardError, R>) -> Self
fn from(err: SdkError<SplitShardError, R>) -> Self
source§impl<R> From<SdkError<StartStreamEncryptionError, R>> for Error
impl<R> From<SdkError<StartStreamEncryptionError, R>> for Error
source§fn from(err: SdkError<StartStreamEncryptionError, R>) -> Self
fn from(err: SdkError<StartStreamEncryptionError, R>) -> Self
source§impl<R> From<SdkError<StopStreamEncryptionError, R>> for Error
impl<R> From<SdkError<StopStreamEncryptionError, R>> for Error
source§fn from(err: SdkError<StopStreamEncryptionError, R>) -> Self
fn from(err: SdkError<StopStreamEncryptionError, R>) -> Self
source§impl<R> From<SdkError<UpdateShardCountError, R>> for Error
impl<R> From<SdkError<UpdateShardCountError, R>> for Error
source§fn from(err: SdkError<UpdateShardCountError, R>) -> Self
fn from(err: SdkError<UpdateShardCountError, R>) -> Self
source§impl<R> From<SdkError<UpdateStreamModeError, R>> for Error
impl<R> From<SdkError<UpdateStreamModeError, R>> for Error
source§fn from(err: SdkError<UpdateStreamModeError, R>) -> Self
fn from(err: SdkError<UpdateStreamModeError, R>) -> Self
source§impl From<SplitShardError> for Error
impl From<SplitShardError> for Error
source§fn from(err: SplitShardError) -> Self
fn from(err: SplitShardError) -> Self
source§impl From<StartStreamEncryptionError> for Error
impl From<StartStreamEncryptionError> for Error
source§fn from(err: StartStreamEncryptionError) -> Self
fn from(err: StartStreamEncryptionError) -> Self
source§impl From<StopStreamEncryptionError> for Error
impl From<StopStreamEncryptionError> for Error
source§fn from(err: StopStreamEncryptionError) -> Self
fn from(err: StopStreamEncryptionError) -> Self
source§impl From<UpdateShardCountError> for Error
impl From<UpdateShardCountError> for Error
source§fn from(err: UpdateShardCountError) -> Self
fn from(err: UpdateShardCountError) -> Self
source§impl From<UpdateStreamModeError> for Error
impl From<UpdateStreamModeError> for Error
source§fn from(err: UpdateStreamModeError) -> Self
fn from(err: UpdateStreamModeError) -> Self
source§impl<O, E> From<WaiterError<O, E>> for Error
impl<O, E> From<WaiterError<O, E>> for Error
source§fn from(err: WaiterError<O, E>) -> Self
fn from(err: WaiterError<O, E>) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more