#[non_exhaustive]pub enum CreateEventSubscriptionError {
EventSubscriptionQuotaExceededFault(EventSubscriptionQuotaExceededFault),
InvalidTagFault(InvalidTagFault),
SnsInvalidTopicFault(SnsInvalidTopicFault),
SnsNoAuthorizationFault(SnsNoAuthorizationFault),
SnsTopicArnNotFoundFault(SnsTopicArnNotFoundFault),
SourceNotFoundFault(SourceNotFoundFault),
SubscriptionAlreadyExistFault(SubscriptionAlreadyExistFault),
SubscriptionCategoryNotFoundFault(SubscriptionCategoryNotFoundFault),
SubscriptionEventIdNotFoundFault(SubscriptionEventIdNotFoundFault),
SubscriptionSeverityNotFoundFault(SubscriptionSeverityNotFoundFault),
TagLimitExceededFault(TagLimitExceededFault),
Unhandled(Unhandled),
}
Expand description
Error type for the CreateEventSubscriptionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EventSubscriptionQuotaExceededFault(EventSubscriptionQuotaExceededFault)
The request would exceed the allowed number of event subscriptions for this account. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
InvalidTagFault(InvalidTagFault)
The tag is invalid.
SnsInvalidTopicFault(SnsInvalidTopicFault)
Amazon SNS has responded that there is a problem with the specified Amazon SNS topic.
SnsNoAuthorizationFault(SnsNoAuthorizationFault)
You do not have permission to publish to the specified Amazon SNS topic.
SnsTopicArnNotFoundFault(SnsTopicArnNotFoundFault)
An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not exist.
SourceNotFoundFault(SourceNotFoundFault)
The specified Amazon Redshift event source could not be found.
SubscriptionAlreadyExistFault(SubscriptionAlreadyExistFault)
There is already an existing event notification subscription with the specified name.
SubscriptionCategoryNotFoundFault(SubscriptionCategoryNotFoundFault)
The value specified for the event category was not one of the allowed values, or it specified a category that does not apply to the specified source type. The allowed values are Configuration, Management, Monitoring, and Security.
SubscriptionEventIdNotFoundFault(SubscriptionEventIdNotFoundFault)
An Amazon Redshift event with the specified event ID does not exist.
SubscriptionSeverityNotFoundFault(SubscriptionSeverityNotFoundFault)
The value specified for the event severity was not one of the allowed values, or it specified a severity that does not apply to the specified source type. The allowed values are ERROR and INFO.
TagLimitExceededFault(TagLimitExceededFault)
You have exceeded the number of tags allowed.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreateEventSubscriptionError
impl CreateEventSubscriptionError
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 CreateEventSubscriptionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreateEventSubscriptionError::Unhandled
variant from a ::aws_smithy_types::error::ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_event_subscription_quota_exceeded_fault(&self) -> bool
pub fn is_event_subscription_quota_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::EventSubscriptionQuotaExceededFault
.
sourcepub fn is_invalid_tag_fault(&self) -> bool
pub fn is_invalid_tag_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::InvalidTagFault
.
sourcepub fn is_sns_invalid_topic_fault(&self) -> bool
pub fn is_sns_invalid_topic_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::SnsInvalidTopicFault
.
Returns true
if the error kind is CreateEventSubscriptionError::SnsNoAuthorizationFault
.
sourcepub fn is_sns_topic_arn_not_found_fault(&self) -> bool
pub fn is_sns_topic_arn_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::SnsTopicArnNotFoundFault
.
sourcepub fn is_source_not_found_fault(&self) -> bool
pub fn is_source_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::SourceNotFoundFault
.
sourcepub fn is_subscription_already_exist_fault(&self) -> bool
pub fn is_subscription_already_exist_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::SubscriptionAlreadyExistFault
.
sourcepub fn is_subscription_category_not_found_fault(&self) -> bool
pub fn is_subscription_category_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::SubscriptionCategoryNotFoundFault
.
sourcepub fn is_subscription_event_id_not_found_fault(&self) -> bool
pub fn is_subscription_event_id_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::SubscriptionEventIdNotFoundFault
.
sourcepub fn is_subscription_severity_not_found_fault(&self) -> bool
pub fn is_subscription_severity_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::SubscriptionSeverityNotFoundFault
.
sourcepub fn is_tag_limit_exceeded_fault(&self) -> bool
pub fn is_tag_limit_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateEventSubscriptionError::TagLimitExceededFault
.
Trait Implementations§
source§impl CreateUnhandledError for CreateEventSubscriptionError
impl CreateUnhandledError for CreateEventSubscriptionError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for CreateEventSubscriptionError
impl Debug for CreateEventSubscriptionError
source§impl Error for CreateEventSubscriptionError
impl Error for CreateEventSubscriptionError
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<CreateEventSubscriptionError> for Error
impl From<CreateEventSubscriptionError> for Error
source§fn from(err: CreateEventSubscriptionError) -> Self
fn from(err: CreateEventSubscriptionError) -> Self
source§impl ProvideErrorMetadata for CreateEventSubscriptionError
impl ProvideErrorMetadata for CreateEventSubscriptionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreateEventSubscriptionError
impl RequestId for CreateEventSubscriptionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.