Struct aws_sdk_config::error::PutDeliveryChannelError
source · #[non_exhaustive]pub struct PutDeliveryChannelError {
pub kind: PutDeliveryChannelErrorKind,
/* private fields */
}Expand description
Error type for the PutDeliveryChannel operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: PutDeliveryChannelErrorKindKind of error that occurred.
Implementations§
source§impl PutDeliveryChannelError
impl PutDeliveryChannelError
sourcepub fn new(kind: PutDeliveryChannelErrorKind, meta: Error) -> Self
pub fn new(kind: PutDeliveryChannelErrorKind, meta: Error) -> Self
Creates a new PutDeliveryChannelError.
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the PutDeliveryChannelError::Unhandled variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the PutDeliveryChannelError::Unhandled variant from a aws_smithy_types::Error.
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_insufficient_delivery_policy_exception(&self) -> bool
pub fn is_insufficient_delivery_policy_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::InsufficientDeliveryPolicyException.
sourcepub fn is_invalid_delivery_channel_name_exception(&self) -> bool
pub fn is_invalid_delivery_channel_name_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::InvalidDeliveryChannelNameException.
sourcepub fn is_invalid_s3_key_prefix_exception(&self) -> bool
pub fn is_invalid_s3_key_prefix_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::InvalidS3KeyPrefixException.
sourcepub fn is_invalid_s3_kms_key_arn_exception(&self) -> bool
pub fn is_invalid_s3_kms_key_arn_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::InvalidS3KmsKeyArnException.
sourcepub fn is_invalid_sns_topic_arn_exception(&self) -> bool
pub fn is_invalid_sns_topic_arn_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::InvalidSnsTopicArnException.
sourcepub fn is_max_number_of_delivery_channels_exceeded_exception(&self) -> bool
pub fn is_max_number_of_delivery_channels_exceeded_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::MaxNumberOfDeliveryChannelsExceededException.
sourcepub fn is_no_available_configuration_recorder_exception(&self) -> bool
pub fn is_no_available_configuration_recorder_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::NoAvailableConfigurationRecorderException.
sourcepub fn is_no_such_bucket_exception(&self) -> bool
pub fn is_no_such_bucket_exception(&self) -> bool
Returns true if the error kind is PutDeliveryChannelErrorKind::NoSuchBucketException.