#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateStateMachineError {
pub kind: UpdateStateMachineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateStateMachineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateStateMachineErrorKind {
InvalidArn(crate::error::InvalidArn),
InvalidDefinition(crate::error::InvalidDefinition),
InvalidLoggingConfiguration(crate::error::InvalidLoggingConfiguration),
InvalidTracingConfiguration(crate::error::InvalidTracingConfiguration),
MissingRequiredParameter(crate::error::MissingRequiredParameter),
StateMachineDeleting(crate::error::StateMachineDeleting),
StateMachineDoesNotExist(crate::error::StateMachineDoesNotExist),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateStateMachineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateStateMachineErrorKind::InvalidArn(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::InvalidDefinition(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::InvalidLoggingConfiguration(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::InvalidTracingConfiguration(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::MissingRequiredParameter(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::StateMachineDeleting(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::StateMachineDoesNotExist(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::ValidationException(_inner) => _inner.fmt(f),
UpdateStateMachineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateStateMachineError {
fn code(&self) -> Option<&str> {
UpdateStateMachineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateStateMachineError {
pub fn new(kind: UpdateStateMachineErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UpdateStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, UpdateStateMachineErrorKind::InvalidArn(_))
}
pub fn is_invalid_definition(&self) -> bool {
matches!(
&self.kind,
UpdateStateMachineErrorKind::InvalidDefinition(_)
)
}
pub fn is_invalid_logging_configuration(&self) -> bool {
matches!(
&self.kind,
UpdateStateMachineErrorKind::InvalidLoggingConfiguration(_)
)
}
pub fn is_invalid_tracing_configuration(&self) -> bool {
matches!(
&self.kind,
UpdateStateMachineErrorKind::InvalidTracingConfiguration(_)
)
}
pub fn is_missing_required_parameter(&self) -> bool {
matches!(
&self.kind,
UpdateStateMachineErrorKind::MissingRequiredParameter(_)
)
}
pub fn is_state_machine_deleting(&self) -> bool {
matches!(
&self.kind,
UpdateStateMachineErrorKind::StateMachineDeleting(_)
)
}
pub fn is_state_machine_does_not_exist(&self) -> bool {
matches!(
&self.kind,
UpdateStateMachineErrorKind::StateMachineDoesNotExist(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateStateMachineErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for UpdateStateMachineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateStateMachineErrorKind::InvalidArn(_inner) => Some(_inner),
UpdateStateMachineErrorKind::InvalidDefinition(_inner) => Some(_inner),
UpdateStateMachineErrorKind::InvalidLoggingConfiguration(_inner) => Some(_inner),
UpdateStateMachineErrorKind::InvalidTracingConfiguration(_inner) => Some(_inner),
UpdateStateMachineErrorKind::MissingRequiredParameter(_inner) => Some(_inner),
UpdateStateMachineErrorKind::StateMachineDeleting(_inner) => Some(_inner),
UpdateStateMachineErrorKind::StateMachineDoesNotExist(_inner) => Some(_inner),
UpdateStateMachineErrorKind::ValidationException(_inner) => Some(_inner),
UpdateStateMachineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ValidationException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub reason: std::option::Option<crate::model::ValidationExceptionReason>,
}
impl ValidationException {
pub fn reason(&self) -> std::option::Option<&crate::model::ValidationExceptionReason> {
self.reason.as_ref()
}
}
impl ValidationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ValidationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ValidationException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for ValidationException {}
pub mod validation_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) reason: std::option::Option<crate::model::ValidationExceptionReason>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn reason(mut self, input: crate::model::ValidationExceptionReason) -> Self {
self.reason = Some(input);
self
}
pub fn set_reason(
mut self,
input: std::option::Option<crate::model::ValidationExceptionReason>,
) -> Self {
self.reason = input;
self
}
pub fn build(self) -> crate::error::ValidationException {
crate::error::ValidationException {
message: self.message,
reason: self.reason,
}
}
}
}
impl ValidationException {
pub fn builder() -> crate::error::validation_exception::Builder {
crate::error::validation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StateMachineDoesNotExist {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StateMachineDoesNotExist {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StateMachineDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StateMachineDoesNotExist")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for StateMachineDoesNotExist {}
pub mod state_machine_does_not_exist {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StateMachineDoesNotExist {
crate::error::StateMachineDoesNotExist {
message: self.message,
}
}
}
}
impl StateMachineDoesNotExist {
pub fn builder() -> crate::error::state_machine_does_not_exist::Builder {
crate::error::state_machine_does_not_exist::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StateMachineDeleting {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StateMachineDeleting {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StateMachineDeleting {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StateMachineDeleting")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for StateMachineDeleting {}
pub mod state_machine_deleting {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StateMachineDeleting {
crate::error::StateMachineDeleting {
message: self.message,
}
}
}
}
impl StateMachineDeleting {
pub fn builder() -> crate::error::state_machine_deleting::Builder {
crate::error::state_machine_deleting::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MissingRequiredParameter {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl MissingRequiredParameter {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MissingRequiredParameter {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MissingRequiredParameter")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for MissingRequiredParameter {}
pub mod missing_required_parameter {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::MissingRequiredParameter {
crate::error::MissingRequiredParameter {
message: self.message,
}
}
}
}
impl MissingRequiredParameter {
pub fn builder() -> crate::error::missing_required_parameter::Builder {
crate::error::missing_required_parameter::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTracingConfiguration {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTracingConfiguration {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTracingConfiguration {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTracingConfiguration")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTracingConfiguration {}
pub mod invalid_tracing_configuration {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTracingConfiguration {
crate::error::InvalidTracingConfiguration {
message: self.message,
}
}
}
}
impl InvalidTracingConfiguration {
pub fn builder() -> crate::error::invalid_tracing_configuration::Builder {
crate::error::invalid_tracing_configuration::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidLoggingConfiguration {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidLoggingConfiguration {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidLoggingConfiguration {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidLoggingConfiguration")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidLoggingConfiguration {}
pub mod invalid_logging_configuration {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidLoggingConfiguration {
crate::error::InvalidLoggingConfiguration {
message: self.message,
}
}
}
}
impl InvalidLoggingConfiguration {
pub fn builder() -> crate::error::invalid_logging_configuration::Builder {
crate::error::invalid_logging_configuration::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDefinition {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDefinition {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDefinition {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDefinition")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDefinition {}
pub mod invalid_definition {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDefinition {
crate::error::InvalidDefinition {
message: self.message,
}
}
}
}
impl InvalidDefinition {
pub fn builder() -> crate::error::invalid_definition::Builder {
crate::error::invalid_definition::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidArn {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidArn {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidArn {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidArn")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidArn {}
pub mod invalid_arn {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidArn {
crate::error::InvalidArn {
message: self.message,
}
}
}
}
impl InvalidArn {
pub fn builder() -> crate::error::invalid_arn::Builder {
crate::error::invalid_arn::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateMapRunError {
pub kind: UpdateMapRunErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateMapRunError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateMapRunErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateMapRunErrorKind {
InvalidArn(crate::error::InvalidArn),
ResourceNotFound(crate::error::ResourceNotFound),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateMapRunError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateMapRunErrorKind::InvalidArn(_inner) => _inner.fmt(f),
UpdateMapRunErrorKind::ResourceNotFound(_inner) => _inner.fmt(f),
UpdateMapRunErrorKind::ValidationException(_inner) => _inner.fmt(f),
UpdateMapRunErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateMapRunError {
fn code(&self) -> Option<&str> {
UpdateMapRunError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateMapRunError {
pub fn new(kind: UpdateMapRunErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UpdateMapRunErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateMapRunErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, UpdateMapRunErrorKind::InvalidArn(_))
}
pub fn is_resource_not_found(&self) -> bool {
matches!(&self.kind, UpdateMapRunErrorKind::ResourceNotFound(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, UpdateMapRunErrorKind::ValidationException(_))
}
}
impl std::error::Error for UpdateMapRunError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateMapRunErrorKind::InvalidArn(_inner) => Some(_inner),
UpdateMapRunErrorKind::ResourceNotFound(_inner) => Some(_inner),
UpdateMapRunErrorKind::ValidationException(_inner) => Some(_inner),
UpdateMapRunErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceNotFound {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[allow(missing_docs)] #[doc(hidden)]
pub resource_name: std::option::Option<std::string::String>,
}
impl ResourceNotFound {
#[allow(missing_docs)] pub fn resource_name(&self) -> std::option::Option<&str> {
self.resource_name.as_deref()
}
}
impl ResourceNotFound {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFound")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceNotFound {}
pub mod resource_not_found {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) resource_name: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
#[allow(missing_docs)] pub fn resource_name(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_name = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_resource_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_name = input;
self
}
pub fn build(self) -> crate::error::ResourceNotFound {
crate::error::ResourceNotFound {
message: self.message,
resource_name: self.resource_name,
}
}
}
}
impl ResourceNotFound {
pub fn builder() -> crate::error::resource_not_found::Builder {
crate::error::resource_not_found::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UntagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
InvalidArn(crate::error::InvalidArn),
ResourceNotFound(crate::error::ResourceNotFound),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::InvalidArn(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceNotFound(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidArn(_))
}
pub fn is_resource_not_found(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::ResourceNotFound(_))
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::InvalidArn(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceNotFound(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for TagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
InvalidArn(crate::error::InvalidArn),
ResourceNotFound(crate::error::ResourceNotFound),
TooManyTags(crate::error::TooManyTags),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::InvalidArn(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceNotFound(_inner) => _inner.fmt(f),
TagResourceErrorKind::TooManyTags(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidArn(_))
}
pub fn is_resource_not_found(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::ResourceNotFound(_))
}
pub fn is_too_many_tags(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::TooManyTags(_))
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::InvalidArn(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotFound(_inner) => Some(_inner),
TagResourceErrorKind::TooManyTags(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyTags {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[allow(missing_docs)] #[doc(hidden)]
pub resource_name: std::option::Option<std::string::String>,
}
impl TooManyTags {
#[allow(missing_docs)] pub fn resource_name(&self) -> std::option::Option<&str> {
self.resource_name.as_deref()
}
}
impl TooManyTags {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTags {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTags")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyTags {}
pub mod too_many_tags {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) resource_name: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
#[allow(missing_docs)] pub fn resource_name(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_name = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_resource_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_name = input;
self
}
pub fn build(self) -> crate::error::TooManyTags {
crate::error::TooManyTags {
message: self.message,
resource_name: self.resource_name,
}
}
}
}
impl TooManyTags {
pub fn builder() -> crate::error::too_many_tags::Builder {
crate::error::too_many_tags::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopExecutionError {
pub kind: StopExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopExecutionErrorKind {
ExecutionDoesNotExist(crate::error::ExecutionDoesNotExist),
InvalidArn(crate::error::InvalidArn),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopExecutionErrorKind::ExecutionDoesNotExist(_inner) => _inner.fmt(f),
StopExecutionErrorKind::InvalidArn(_inner) => _inner.fmt(f),
StopExecutionErrorKind::ValidationException(_inner) => _inner.fmt(f),
StopExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopExecutionError {
fn code(&self) -> Option<&str> {
StopExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopExecutionError {
pub fn new(kind: StopExecutionErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: StopExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_execution_does_not_exist(&self) -> bool {
matches!(&self.kind, StopExecutionErrorKind::ExecutionDoesNotExist(_))
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, StopExecutionErrorKind::InvalidArn(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, StopExecutionErrorKind::ValidationException(_))
}
}
impl std::error::Error for StopExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopExecutionErrorKind::ExecutionDoesNotExist(_inner) => Some(_inner),
StopExecutionErrorKind::InvalidArn(_inner) => Some(_inner),
StopExecutionErrorKind::ValidationException(_inner) => Some(_inner),
StopExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExecutionDoesNotExist {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ExecutionDoesNotExist {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ExecutionDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ExecutionDoesNotExist")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for ExecutionDoesNotExist {}
pub mod execution_does_not_exist {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ExecutionDoesNotExist {
crate::error::ExecutionDoesNotExist {
message: self.message,
}
}
}
}
impl ExecutionDoesNotExist {
pub fn builder() -> crate::error::execution_does_not_exist::Builder {
crate::error::execution_does_not_exist::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartSyncExecutionError {
pub kind: StartSyncExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartSyncExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartSyncExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartSyncExecutionErrorKind {
InvalidArn(crate::error::InvalidArn),
InvalidExecutionInput(crate::error::InvalidExecutionInput),
InvalidName(crate::error::InvalidName),
StateMachineDeleting(crate::error::StateMachineDeleting),
StateMachineDoesNotExist(crate::error::StateMachineDoesNotExist),
StateMachineTypeNotSupported(crate::error::StateMachineTypeNotSupported),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartSyncExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartSyncExecutionErrorKind::InvalidArn(_inner) => _inner.fmt(f),
StartSyncExecutionErrorKind::InvalidExecutionInput(_inner) => _inner.fmt(f),
StartSyncExecutionErrorKind::InvalidName(_inner) => _inner.fmt(f),
StartSyncExecutionErrorKind::StateMachineDeleting(_inner) => _inner.fmt(f),
StartSyncExecutionErrorKind::StateMachineDoesNotExist(_inner) => _inner.fmt(f),
StartSyncExecutionErrorKind::StateMachineTypeNotSupported(_inner) => _inner.fmt(f),
StartSyncExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartSyncExecutionError {
fn code(&self) -> Option<&str> {
StartSyncExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartSyncExecutionError {
pub fn new(kind: StartSyncExecutionErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: StartSyncExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartSyncExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, StartSyncExecutionErrorKind::InvalidArn(_))
}
pub fn is_invalid_execution_input(&self) -> bool {
matches!(
&self.kind,
StartSyncExecutionErrorKind::InvalidExecutionInput(_)
)
}
pub fn is_invalid_name(&self) -> bool {
matches!(&self.kind, StartSyncExecutionErrorKind::InvalidName(_))
}
pub fn is_state_machine_deleting(&self) -> bool {
matches!(
&self.kind,
StartSyncExecutionErrorKind::StateMachineDeleting(_)
)
}
pub fn is_state_machine_does_not_exist(&self) -> bool {
matches!(
&self.kind,
StartSyncExecutionErrorKind::StateMachineDoesNotExist(_)
)
}
pub fn is_state_machine_type_not_supported(&self) -> bool {
matches!(
&self.kind,
StartSyncExecutionErrorKind::StateMachineTypeNotSupported(_)
)
}
}
impl std::error::Error for StartSyncExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartSyncExecutionErrorKind::InvalidArn(_inner) => Some(_inner),
StartSyncExecutionErrorKind::InvalidExecutionInput(_inner) => Some(_inner),
StartSyncExecutionErrorKind::InvalidName(_inner) => Some(_inner),
StartSyncExecutionErrorKind::StateMachineDeleting(_inner) => Some(_inner),
StartSyncExecutionErrorKind::StateMachineDoesNotExist(_inner) => Some(_inner),
StartSyncExecutionErrorKind::StateMachineTypeNotSupported(_inner) => Some(_inner),
StartSyncExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StateMachineTypeNotSupported {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StateMachineTypeNotSupported {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StateMachineTypeNotSupported {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StateMachineTypeNotSupported")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for StateMachineTypeNotSupported {}
pub mod state_machine_type_not_supported {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StateMachineTypeNotSupported {
crate::error::StateMachineTypeNotSupported {
message: self.message,
}
}
}
}
impl StateMachineTypeNotSupported {
pub fn builder() -> crate::error::state_machine_type_not_supported::Builder {
crate::error::state_machine_type_not_supported::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidName {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidName {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidName {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidName")?;
if let Some(inner_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidName {}
pub mod invalid_name {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidName {
crate::error::InvalidName {
message: self.message,
}
}
}
}
impl InvalidName {
pub fn builder() -> crate::error::invalid_name::Builder {
crate::error::invalid_name::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidExecutionInput {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidExecutionInput {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidExecutionInput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidExecutionInput")?;
if let Some(inner_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidExecutionInput {}
pub mod invalid_execution_input {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidExecutionInput {
crate::error::InvalidExecutionInput {
message: self.message,
}
}
}
}
impl InvalidExecutionInput {
pub fn builder() -> crate::error::invalid_execution_input::Builder {
crate::error::invalid_execution_input::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartExecutionError {
pub kind: StartExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartExecutionErrorKind {
ExecutionAlreadyExists(crate::error::ExecutionAlreadyExists),
ExecutionLimitExceeded(crate::error::ExecutionLimitExceeded),
InvalidArn(crate::error::InvalidArn),
InvalidExecutionInput(crate::error::InvalidExecutionInput),
InvalidName(crate::error::InvalidName),
StateMachineDeleting(crate::error::StateMachineDeleting),
StateMachineDoesNotExist(crate::error::StateMachineDoesNotExist),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartExecutionErrorKind::ExecutionAlreadyExists(_inner) => _inner.fmt(f),
StartExecutionErrorKind::ExecutionLimitExceeded(_inner) => _inner.fmt(f),
StartExecutionErrorKind::InvalidArn(_inner) => _inner.fmt(f),
StartExecutionErrorKind::InvalidExecutionInput(_inner) => _inner.fmt(f),
StartExecutionErrorKind::InvalidName(_inner) => _inner.fmt(f),
StartExecutionErrorKind::StateMachineDeleting(_inner) => _inner.fmt(f),
StartExecutionErrorKind::StateMachineDoesNotExist(_inner) => _inner.fmt(f),
StartExecutionErrorKind::ValidationException(_inner) => _inner.fmt(f),
StartExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartExecutionError {
fn code(&self) -> Option<&str> {
StartExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartExecutionError {
pub fn new(kind: StartExecutionErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: StartExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_execution_already_exists(&self) -> bool {
matches!(
&self.kind,
StartExecutionErrorKind::ExecutionAlreadyExists(_)
)
}
pub fn is_execution_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
StartExecutionErrorKind::ExecutionLimitExceeded(_)
)
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, StartExecutionErrorKind::InvalidArn(_))
}
pub fn is_invalid_execution_input(&self) -> bool {
matches!(
&self.kind,
StartExecutionErrorKind::InvalidExecutionInput(_)
)
}
pub fn is_invalid_name(&self) -> bool {
matches!(&self.kind, StartExecutionErrorKind::InvalidName(_))
}
pub fn is_state_machine_deleting(&self) -> bool {
matches!(&self.kind, StartExecutionErrorKind::StateMachineDeleting(_))
}
pub fn is_state_machine_does_not_exist(&self) -> bool {
matches!(
&self.kind,
StartExecutionErrorKind::StateMachineDoesNotExist(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, StartExecutionErrorKind::ValidationException(_))
}
}
impl std::error::Error for StartExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartExecutionErrorKind::ExecutionAlreadyExists(_inner) => Some(_inner),
StartExecutionErrorKind::ExecutionLimitExceeded(_inner) => Some(_inner),
StartExecutionErrorKind::InvalidArn(_inner) => Some(_inner),
StartExecutionErrorKind::InvalidExecutionInput(_inner) => Some(_inner),
StartExecutionErrorKind::InvalidName(_inner) => Some(_inner),
StartExecutionErrorKind::StateMachineDeleting(_inner) => Some(_inner),
StartExecutionErrorKind::StateMachineDoesNotExist(_inner) => Some(_inner),
StartExecutionErrorKind::ValidationException(_inner) => Some(_inner),
StartExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExecutionLimitExceeded {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ExecutionLimitExceeded {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ExecutionLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ExecutionLimitExceeded")?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for ExecutionLimitExceeded {}
pub mod execution_limit_exceeded {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ExecutionLimitExceeded {
crate::error::ExecutionLimitExceeded {
message: self.message,
}
}
}
}
impl ExecutionLimitExceeded {
pub fn builder() -> crate::error::execution_limit_exceeded::Builder {
crate::error::execution_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExecutionAlreadyExists {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ExecutionAlreadyExists {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ExecutionAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ExecutionAlreadyExists")?;
if let Some(inner_16) = &self.message {
{
write!(f, ": {}", inner_16)?;
}
}
Ok(())
}
}
impl std::error::Error for ExecutionAlreadyExists {}
pub mod execution_already_exists {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ExecutionAlreadyExists {
crate::error::ExecutionAlreadyExists {
message: self.message,
}
}
}
}
impl ExecutionAlreadyExists {
pub fn builder() -> crate::error::execution_already_exists::Builder {
crate::error::execution_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SendTaskSuccessError {
pub kind: SendTaskSuccessErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SendTaskSuccessError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SendTaskSuccessErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SendTaskSuccessErrorKind {
InvalidOutput(crate::error::InvalidOutput),
InvalidToken(crate::error::InvalidToken),
#[allow(missing_docs)] TaskDoesNotExist(crate::error::TaskDoesNotExist),
#[allow(missing_docs)] TaskTimedOut(crate::error::TaskTimedOut),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SendTaskSuccessError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SendTaskSuccessErrorKind::InvalidOutput(_inner) => _inner.fmt(f),
SendTaskSuccessErrorKind::InvalidToken(_inner) => _inner.fmt(f),
SendTaskSuccessErrorKind::TaskDoesNotExist(_inner) => _inner.fmt(f),
SendTaskSuccessErrorKind::TaskTimedOut(_inner) => _inner.fmt(f),
SendTaskSuccessErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SendTaskSuccessError {
fn code(&self) -> Option<&str> {
SendTaskSuccessError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SendTaskSuccessError {
pub fn new(kind: SendTaskSuccessErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: SendTaskSuccessErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SendTaskSuccessErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_output(&self) -> bool {
matches!(&self.kind, SendTaskSuccessErrorKind::InvalidOutput(_))
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, SendTaskSuccessErrorKind::InvalidToken(_))
}
pub fn is_task_does_not_exist(&self) -> bool {
matches!(&self.kind, SendTaskSuccessErrorKind::TaskDoesNotExist(_))
}
pub fn is_task_timed_out(&self) -> bool {
matches!(&self.kind, SendTaskSuccessErrorKind::TaskTimedOut(_))
}
}
impl std::error::Error for SendTaskSuccessError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SendTaskSuccessErrorKind::InvalidOutput(_inner) => Some(_inner),
SendTaskSuccessErrorKind::InvalidToken(_inner) => Some(_inner),
SendTaskSuccessErrorKind::TaskDoesNotExist(_inner) => Some(_inner),
SendTaskSuccessErrorKind::TaskTimedOut(_inner) => Some(_inner),
SendTaskSuccessErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TaskTimedOut {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TaskTimedOut {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TaskTimedOut {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TaskTimedOut")?;
if let Some(inner_17) = &self.message {
{
write!(f, ": {}", inner_17)?;
}
}
Ok(())
}
}
impl std::error::Error for TaskTimedOut {}
pub mod task_timed_out {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TaskTimedOut {
crate::error::TaskTimedOut {
message: self.message,
}
}
}
}
impl TaskTimedOut {
pub fn builder() -> crate::error::task_timed_out::Builder {
crate::error::task_timed_out::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TaskDoesNotExist {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TaskDoesNotExist {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TaskDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TaskDoesNotExist")?;
if let Some(inner_18) = &self.message {
{
write!(f, ": {}", inner_18)?;
}
}
Ok(())
}
}
impl std::error::Error for TaskDoesNotExist {}
pub mod task_does_not_exist {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TaskDoesNotExist {
crate::error::TaskDoesNotExist {
message: self.message,
}
}
}
}
impl TaskDoesNotExist {
pub fn builder() -> crate::error::task_does_not_exist::Builder {
crate::error::task_does_not_exist::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidToken {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidToken {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidToken {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidToken")?;
if let Some(inner_19) = &self.message {
{
write!(f, ": {}", inner_19)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidToken {}
pub mod invalid_token {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidToken {
crate::error::InvalidToken {
message: self.message,
}
}
}
}
impl InvalidToken {
pub fn builder() -> crate::error::invalid_token::Builder {
crate::error::invalid_token::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidOutput {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidOutput {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOutput")?;
if let Some(inner_20) = &self.message {
{
write!(f, ": {}", inner_20)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidOutput {}
pub mod invalid_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidOutput {
crate::error::InvalidOutput {
message: self.message,
}
}
}
}
impl InvalidOutput {
pub fn builder() -> crate::error::invalid_output::Builder {
crate::error::invalid_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SendTaskHeartbeatError {
pub kind: SendTaskHeartbeatErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SendTaskHeartbeatError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SendTaskHeartbeatErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SendTaskHeartbeatErrorKind {
InvalidToken(crate::error::InvalidToken),
#[allow(missing_docs)] TaskDoesNotExist(crate::error::TaskDoesNotExist),
#[allow(missing_docs)] TaskTimedOut(crate::error::TaskTimedOut),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SendTaskHeartbeatError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SendTaskHeartbeatErrorKind::InvalidToken(_inner) => _inner.fmt(f),
SendTaskHeartbeatErrorKind::TaskDoesNotExist(_inner) => _inner.fmt(f),
SendTaskHeartbeatErrorKind::TaskTimedOut(_inner) => _inner.fmt(f),
SendTaskHeartbeatErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SendTaskHeartbeatError {
fn code(&self) -> Option<&str> {
SendTaskHeartbeatError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SendTaskHeartbeatError {
pub fn new(kind: SendTaskHeartbeatErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: SendTaskHeartbeatErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SendTaskHeartbeatErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, SendTaskHeartbeatErrorKind::InvalidToken(_))
}
pub fn is_task_does_not_exist(&self) -> bool {
matches!(&self.kind, SendTaskHeartbeatErrorKind::TaskDoesNotExist(_))
}
pub fn is_task_timed_out(&self) -> bool {
matches!(&self.kind, SendTaskHeartbeatErrorKind::TaskTimedOut(_))
}
}
impl std::error::Error for SendTaskHeartbeatError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SendTaskHeartbeatErrorKind::InvalidToken(_inner) => Some(_inner),
SendTaskHeartbeatErrorKind::TaskDoesNotExist(_inner) => Some(_inner),
SendTaskHeartbeatErrorKind::TaskTimedOut(_inner) => Some(_inner),
SendTaskHeartbeatErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SendTaskFailureError {
pub kind: SendTaskFailureErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SendTaskFailureError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SendTaskFailureErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SendTaskFailureErrorKind {
InvalidToken(crate::error::InvalidToken),
#[allow(missing_docs)] TaskDoesNotExist(crate::error::TaskDoesNotExist),
#[allow(missing_docs)] TaskTimedOut(crate::error::TaskTimedOut),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SendTaskFailureError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SendTaskFailureErrorKind::InvalidToken(_inner) => _inner.fmt(f),
SendTaskFailureErrorKind::TaskDoesNotExist(_inner) => _inner.fmt(f),
SendTaskFailureErrorKind::TaskTimedOut(_inner) => _inner.fmt(f),
SendTaskFailureErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SendTaskFailureError {
fn code(&self) -> Option<&str> {
SendTaskFailureError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SendTaskFailureError {
pub fn new(kind: SendTaskFailureErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: SendTaskFailureErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SendTaskFailureErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, SendTaskFailureErrorKind::InvalidToken(_))
}
pub fn is_task_does_not_exist(&self) -> bool {
matches!(&self.kind, SendTaskFailureErrorKind::TaskDoesNotExist(_))
}
pub fn is_task_timed_out(&self) -> bool {
matches!(&self.kind, SendTaskFailureErrorKind::TaskTimedOut(_))
}
}
impl std::error::Error for SendTaskFailureError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SendTaskFailureErrorKind::InvalidToken(_inner) => Some(_inner),
SendTaskFailureErrorKind::TaskDoesNotExist(_inner) => Some(_inner),
SendTaskFailureErrorKind::TaskTimedOut(_inner) => Some(_inner),
SendTaskFailureErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
InvalidArn(crate::error::InvalidArn),
ResourceNotFound(crate::error::ResourceNotFound),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::InvalidArn(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceNotFound(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, ListTagsForResourceErrorKind::InvalidArn(_))
}
pub fn is_resource_not_found(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotFound(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::InvalidArn(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotFound(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListStateMachinesError {
pub kind: ListStateMachinesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListStateMachinesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListStateMachinesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListStateMachinesErrorKind {
InvalidToken(crate::error::InvalidToken),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListStateMachinesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListStateMachinesErrorKind::InvalidToken(_inner) => _inner.fmt(f),
ListStateMachinesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListStateMachinesError {
fn code(&self) -> Option<&str> {
ListStateMachinesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListStateMachinesError {
pub fn new(kind: ListStateMachinesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListStateMachinesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListStateMachinesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, ListStateMachinesErrorKind::InvalidToken(_))
}
}
impl std::error::Error for ListStateMachinesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListStateMachinesErrorKind::InvalidToken(_inner) => Some(_inner),
ListStateMachinesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListMapRunsError {
pub kind: ListMapRunsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListMapRunsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListMapRunsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListMapRunsErrorKind {
ExecutionDoesNotExist(crate::error::ExecutionDoesNotExist),
InvalidArn(crate::error::InvalidArn),
InvalidToken(crate::error::InvalidToken),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListMapRunsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListMapRunsErrorKind::ExecutionDoesNotExist(_inner) => _inner.fmt(f),
ListMapRunsErrorKind::InvalidArn(_inner) => _inner.fmt(f),
ListMapRunsErrorKind::InvalidToken(_inner) => _inner.fmt(f),
ListMapRunsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListMapRunsError {
fn code(&self) -> Option<&str> {
ListMapRunsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListMapRunsError {
pub fn new(kind: ListMapRunsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListMapRunsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListMapRunsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_execution_does_not_exist(&self) -> bool {
matches!(&self.kind, ListMapRunsErrorKind::ExecutionDoesNotExist(_))
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, ListMapRunsErrorKind::InvalidArn(_))
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, ListMapRunsErrorKind::InvalidToken(_))
}
}
impl std::error::Error for ListMapRunsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListMapRunsErrorKind::ExecutionDoesNotExist(_inner) => Some(_inner),
ListMapRunsErrorKind::InvalidArn(_inner) => Some(_inner),
ListMapRunsErrorKind::InvalidToken(_inner) => Some(_inner),
ListMapRunsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListExecutionsError {
pub kind: ListExecutionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListExecutionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListExecutionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListExecutionsErrorKind {
InvalidArn(crate::error::InvalidArn),
InvalidToken(crate::error::InvalidToken),
ResourceNotFound(crate::error::ResourceNotFound),
StateMachineDoesNotExist(crate::error::StateMachineDoesNotExist),
StateMachineTypeNotSupported(crate::error::StateMachineTypeNotSupported),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListExecutionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListExecutionsErrorKind::InvalidArn(_inner) => _inner.fmt(f),
ListExecutionsErrorKind::InvalidToken(_inner) => _inner.fmt(f),
ListExecutionsErrorKind::ResourceNotFound(_inner) => _inner.fmt(f),
ListExecutionsErrorKind::StateMachineDoesNotExist(_inner) => _inner.fmt(f),
ListExecutionsErrorKind::StateMachineTypeNotSupported(_inner) => _inner.fmt(f),
ListExecutionsErrorKind::ValidationException(_inner) => _inner.fmt(f),
ListExecutionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListExecutionsError {
fn code(&self) -> Option<&str> {
ListExecutionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListExecutionsError {
pub fn new(kind: ListExecutionsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListExecutionsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListExecutionsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, ListExecutionsErrorKind::InvalidArn(_))
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, ListExecutionsErrorKind::InvalidToken(_))
}
pub fn is_resource_not_found(&self) -> bool {
matches!(&self.kind, ListExecutionsErrorKind::ResourceNotFound(_))
}
pub fn is_state_machine_does_not_exist(&self) -> bool {
matches!(
&self.kind,
ListExecutionsErrorKind::StateMachineDoesNotExist(_)
)
}
pub fn is_state_machine_type_not_supported(&self) -> bool {
matches!(
&self.kind,
ListExecutionsErrorKind::StateMachineTypeNotSupported(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, ListExecutionsErrorKind::ValidationException(_))
}
}
impl std::error::Error for ListExecutionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListExecutionsErrorKind::InvalidArn(_inner) => Some(_inner),
ListExecutionsErrorKind::InvalidToken(_inner) => Some(_inner),
ListExecutionsErrorKind::ResourceNotFound(_inner) => Some(_inner),
ListExecutionsErrorKind::StateMachineDoesNotExist(_inner) => Some(_inner),
ListExecutionsErrorKind::StateMachineTypeNotSupported(_inner) => Some(_inner),
ListExecutionsErrorKind::ValidationException(_inner) => Some(_inner),
ListExecutionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListActivitiesError {
pub kind: ListActivitiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListActivitiesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListActivitiesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListActivitiesErrorKind {
InvalidToken(crate::error::InvalidToken),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListActivitiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListActivitiesErrorKind::InvalidToken(_inner) => _inner.fmt(f),
ListActivitiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListActivitiesError {
fn code(&self) -> Option<&str> {
ListActivitiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListActivitiesError {
pub fn new(kind: ListActivitiesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListActivitiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListActivitiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, ListActivitiesErrorKind::InvalidToken(_))
}
}
impl std::error::Error for ListActivitiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListActivitiesErrorKind::InvalidToken(_inner) => Some(_inner),
ListActivitiesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetExecutionHistoryError {
pub kind: GetExecutionHistoryErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetExecutionHistoryError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetExecutionHistoryErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetExecutionHistoryErrorKind {
ExecutionDoesNotExist(crate::error::ExecutionDoesNotExist),
InvalidArn(crate::error::InvalidArn),
InvalidToken(crate::error::InvalidToken),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetExecutionHistoryError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetExecutionHistoryErrorKind::ExecutionDoesNotExist(_inner) => _inner.fmt(f),
GetExecutionHistoryErrorKind::InvalidArn(_inner) => _inner.fmt(f),
GetExecutionHistoryErrorKind::InvalidToken(_inner) => _inner.fmt(f),
GetExecutionHistoryErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetExecutionHistoryError {
fn code(&self) -> Option<&str> {
GetExecutionHistoryError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetExecutionHistoryError {
pub fn new(kind: GetExecutionHistoryErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetExecutionHistoryErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetExecutionHistoryErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_execution_does_not_exist(&self) -> bool {
matches!(
&self.kind,
GetExecutionHistoryErrorKind::ExecutionDoesNotExist(_)
)
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, GetExecutionHistoryErrorKind::InvalidArn(_))
}
pub fn is_invalid_token(&self) -> bool {
matches!(&self.kind, GetExecutionHistoryErrorKind::InvalidToken(_))
}
}
impl std::error::Error for GetExecutionHistoryError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetExecutionHistoryErrorKind::ExecutionDoesNotExist(_inner) => Some(_inner),
GetExecutionHistoryErrorKind::InvalidArn(_inner) => Some(_inner),
GetExecutionHistoryErrorKind::InvalidToken(_inner) => Some(_inner),
GetExecutionHistoryErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetActivityTaskError {
pub kind: GetActivityTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetActivityTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetActivityTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetActivityTaskErrorKind {
ActivityDoesNotExist(crate::error::ActivityDoesNotExist),
ActivityWorkerLimitExceeded(crate::error::ActivityWorkerLimitExceeded),
InvalidArn(crate::error::InvalidArn),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetActivityTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetActivityTaskErrorKind::ActivityDoesNotExist(_inner) => _inner.fmt(f),
GetActivityTaskErrorKind::ActivityWorkerLimitExceeded(_inner) => _inner.fmt(f),
GetActivityTaskErrorKind::InvalidArn(_inner) => _inner.fmt(f),
GetActivityTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetActivityTaskError {
fn code(&self) -> Option<&str> {
GetActivityTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetActivityTaskError {
pub fn new(kind: GetActivityTaskErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetActivityTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetActivityTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_activity_does_not_exist(&self) -> bool {
matches!(
&self.kind,
GetActivityTaskErrorKind::ActivityDoesNotExist(_)
)
}
pub fn is_activity_worker_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
GetActivityTaskErrorKind::ActivityWorkerLimitExceeded(_)
)
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, GetActivityTaskErrorKind::InvalidArn(_))
}
}
impl std::error::Error for GetActivityTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetActivityTaskErrorKind::ActivityDoesNotExist(_inner) => Some(_inner),
GetActivityTaskErrorKind::ActivityWorkerLimitExceeded(_inner) => Some(_inner),
GetActivityTaskErrorKind::InvalidArn(_inner) => Some(_inner),
GetActivityTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ActivityWorkerLimitExceeded {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ActivityWorkerLimitExceeded {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ActivityWorkerLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ActivityWorkerLimitExceeded")?;
if let Some(inner_21) = &self.message {
{
write!(f, ": {}", inner_21)?;
}
}
Ok(())
}
}
impl std::error::Error for ActivityWorkerLimitExceeded {}
pub mod activity_worker_limit_exceeded {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ActivityWorkerLimitExceeded {
crate::error::ActivityWorkerLimitExceeded {
message: self.message,
}
}
}
}
impl ActivityWorkerLimitExceeded {
pub fn builder() -> crate::error::activity_worker_limit_exceeded::Builder {
crate::error::activity_worker_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ActivityDoesNotExist {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ActivityDoesNotExist {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ActivityDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ActivityDoesNotExist")?;
if let Some(inner_22) = &self.message {
{
write!(f, ": {}", inner_22)?;
}
}
Ok(())
}
}
impl std::error::Error for ActivityDoesNotExist {}
pub mod activity_does_not_exist {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ActivityDoesNotExist {
crate::error::ActivityDoesNotExist {
message: self.message,
}
}
}
}
impl ActivityDoesNotExist {
pub fn builder() -> crate::error::activity_does_not_exist::Builder {
crate::error::activity_does_not_exist::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeStateMachineForExecutionError {
pub kind: DescribeStateMachineForExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeStateMachineForExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeStateMachineForExecutionErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeStateMachineForExecutionErrorKind {
ExecutionDoesNotExist(crate::error::ExecutionDoesNotExist),
InvalidArn(crate::error::InvalidArn),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeStateMachineForExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeStateMachineForExecutionErrorKind::ExecutionDoesNotExist(_inner) => {
_inner.fmt(f)
}
DescribeStateMachineForExecutionErrorKind::InvalidArn(_inner) => _inner.fmt(f),
DescribeStateMachineForExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeStateMachineForExecutionError {
fn code(&self) -> Option<&str> {
DescribeStateMachineForExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeStateMachineForExecutionError {
pub fn new(
kind: DescribeStateMachineForExecutionErrorKind,
meta: aws_smithy_types::Error,
) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DescribeStateMachineForExecutionErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeStateMachineForExecutionErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_execution_does_not_exist(&self) -> bool {
matches!(
&self.kind,
DescribeStateMachineForExecutionErrorKind::ExecutionDoesNotExist(_)
)
}
pub fn is_invalid_arn(&self) -> bool {
matches!(
&self.kind,
DescribeStateMachineForExecutionErrorKind::InvalidArn(_)
)
}
}
impl std::error::Error for DescribeStateMachineForExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeStateMachineForExecutionErrorKind::ExecutionDoesNotExist(_inner) => {
Some(_inner)
}
DescribeStateMachineForExecutionErrorKind::InvalidArn(_inner) => Some(_inner),
DescribeStateMachineForExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeStateMachineError {
pub kind: DescribeStateMachineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeStateMachineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeStateMachineErrorKind {
InvalidArn(crate::error::InvalidArn),
StateMachineDoesNotExist(crate::error::StateMachineDoesNotExist),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeStateMachineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeStateMachineErrorKind::InvalidArn(_inner) => _inner.fmt(f),
DescribeStateMachineErrorKind::StateMachineDoesNotExist(_inner) => _inner.fmt(f),
DescribeStateMachineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeStateMachineError {
fn code(&self) -> Option<&str> {
DescribeStateMachineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeStateMachineError {
pub fn new(kind: DescribeStateMachineErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DescribeStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, DescribeStateMachineErrorKind::InvalidArn(_))
}
pub fn is_state_machine_does_not_exist(&self) -> bool {
matches!(
&self.kind,
DescribeStateMachineErrorKind::StateMachineDoesNotExist(_)
)
}
}
impl std::error::Error for DescribeStateMachineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeStateMachineErrorKind::InvalidArn(_inner) => Some(_inner),
DescribeStateMachineErrorKind::StateMachineDoesNotExist(_inner) => Some(_inner),
DescribeStateMachineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeMapRunError {
pub kind: DescribeMapRunErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeMapRunError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeMapRunErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeMapRunErrorKind {
InvalidArn(crate::error::InvalidArn),
ResourceNotFound(crate::error::ResourceNotFound),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeMapRunError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeMapRunErrorKind::InvalidArn(_inner) => _inner.fmt(f),
DescribeMapRunErrorKind::ResourceNotFound(_inner) => _inner.fmt(f),
DescribeMapRunErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeMapRunError {
fn code(&self) -> Option<&str> {
DescribeMapRunError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeMapRunError {
pub fn new(kind: DescribeMapRunErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DescribeMapRunErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeMapRunErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, DescribeMapRunErrorKind::InvalidArn(_))
}
pub fn is_resource_not_found(&self) -> bool {
matches!(&self.kind, DescribeMapRunErrorKind::ResourceNotFound(_))
}
}
impl std::error::Error for DescribeMapRunError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeMapRunErrorKind::InvalidArn(_inner) => Some(_inner),
DescribeMapRunErrorKind::ResourceNotFound(_inner) => Some(_inner),
DescribeMapRunErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeExecutionError {
pub kind: DescribeExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeExecutionErrorKind {
ExecutionDoesNotExist(crate::error::ExecutionDoesNotExist),
InvalidArn(crate::error::InvalidArn),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeExecutionErrorKind::ExecutionDoesNotExist(_inner) => _inner.fmt(f),
DescribeExecutionErrorKind::InvalidArn(_inner) => _inner.fmt(f),
DescribeExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeExecutionError {
fn code(&self) -> Option<&str> {
DescribeExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeExecutionError {
pub fn new(kind: DescribeExecutionErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DescribeExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_execution_does_not_exist(&self) -> bool {
matches!(
&self.kind,
DescribeExecutionErrorKind::ExecutionDoesNotExist(_)
)
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, DescribeExecutionErrorKind::InvalidArn(_))
}
}
impl std::error::Error for DescribeExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeExecutionErrorKind::ExecutionDoesNotExist(_inner) => Some(_inner),
DescribeExecutionErrorKind::InvalidArn(_inner) => Some(_inner),
DescribeExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeActivityError {
pub kind: DescribeActivityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeActivityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeActivityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeActivityErrorKind {
ActivityDoesNotExist(crate::error::ActivityDoesNotExist),
InvalidArn(crate::error::InvalidArn),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeActivityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeActivityErrorKind::ActivityDoesNotExist(_inner) => _inner.fmt(f),
DescribeActivityErrorKind::InvalidArn(_inner) => _inner.fmt(f),
DescribeActivityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeActivityError {
fn code(&self) -> Option<&str> {
DescribeActivityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeActivityError {
pub fn new(kind: DescribeActivityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DescribeActivityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeActivityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_activity_does_not_exist(&self) -> bool {
matches!(
&self.kind,
DescribeActivityErrorKind::ActivityDoesNotExist(_)
)
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, DescribeActivityErrorKind::InvalidArn(_))
}
}
impl std::error::Error for DescribeActivityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeActivityErrorKind::ActivityDoesNotExist(_inner) => Some(_inner),
DescribeActivityErrorKind::InvalidArn(_inner) => Some(_inner),
DescribeActivityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteStateMachineError {
pub kind: DeleteStateMachineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteStateMachineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteStateMachineErrorKind {
InvalidArn(crate::error::InvalidArn),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteStateMachineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteStateMachineErrorKind::InvalidArn(_inner) => _inner.fmt(f),
DeleteStateMachineErrorKind::ValidationException(_inner) => _inner.fmt(f),
DeleteStateMachineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteStateMachineError {
fn code(&self) -> Option<&str> {
DeleteStateMachineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteStateMachineError {
pub fn new(kind: DeleteStateMachineErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, DeleteStateMachineErrorKind::InvalidArn(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteStateMachineErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for DeleteStateMachineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteStateMachineErrorKind::InvalidArn(_inner) => Some(_inner),
DeleteStateMachineErrorKind::ValidationException(_inner) => Some(_inner),
DeleteStateMachineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteActivityError {
pub kind: DeleteActivityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteActivityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteActivityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteActivityErrorKind {
InvalidArn(crate::error::InvalidArn),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteActivityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteActivityErrorKind::InvalidArn(_inner) => _inner.fmt(f),
DeleteActivityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteActivityError {
fn code(&self) -> Option<&str> {
DeleteActivityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteActivityError {
pub fn new(kind: DeleteActivityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteActivityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteActivityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, DeleteActivityErrorKind::InvalidArn(_))
}
}
impl std::error::Error for DeleteActivityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteActivityErrorKind::InvalidArn(_inner) => Some(_inner),
DeleteActivityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateStateMachineError {
pub kind: CreateStateMachineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateStateMachineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateStateMachineErrorKind {
InvalidArn(crate::error::InvalidArn),
InvalidDefinition(crate::error::InvalidDefinition),
InvalidLoggingConfiguration(crate::error::InvalidLoggingConfiguration),
InvalidName(crate::error::InvalidName),
InvalidTracingConfiguration(crate::error::InvalidTracingConfiguration),
StateMachineAlreadyExists(crate::error::StateMachineAlreadyExists),
StateMachineDeleting(crate::error::StateMachineDeleting),
StateMachineLimitExceeded(crate::error::StateMachineLimitExceeded),
StateMachineTypeNotSupported(crate::error::StateMachineTypeNotSupported),
TooManyTags(crate::error::TooManyTags),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateStateMachineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateStateMachineErrorKind::InvalidArn(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::InvalidDefinition(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::InvalidLoggingConfiguration(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::InvalidName(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::InvalidTracingConfiguration(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::StateMachineAlreadyExists(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::StateMachineDeleting(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::StateMachineLimitExceeded(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::StateMachineTypeNotSupported(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::TooManyTags(_inner) => _inner.fmt(f),
CreateStateMachineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateStateMachineError {
fn code(&self) -> Option<&str> {
CreateStateMachineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateStateMachineError {
pub fn new(kind: CreateStateMachineErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: CreateStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateStateMachineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_arn(&self) -> bool {
matches!(&self.kind, CreateStateMachineErrorKind::InvalidArn(_))
}
pub fn is_invalid_definition(&self) -> bool {
matches!(
&self.kind,
CreateStateMachineErrorKind::InvalidDefinition(_)
)
}
pub fn is_invalid_logging_configuration(&self) -> bool {
matches!(
&self.kind,
CreateStateMachineErrorKind::InvalidLoggingConfiguration(_)
)
}
pub fn is_invalid_name(&self) -> bool {
matches!(&self.kind, CreateStateMachineErrorKind::InvalidName(_))
}
pub fn is_invalid_tracing_configuration(&self) -> bool {
matches!(
&self.kind,
CreateStateMachineErrorKind::InvalidTracingConfiguration(_)
)
}
pub fn is_state_machine_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateStateMachineErrorKind::StateMachineAlreadyExists(_)
)
}
pub fn is_state_machine_deleting(&self) -> bool {
matches!(
&self.kind,
CreateStateMachineErrorKind::StateMachineDeleting(_)
)
}
pub fn is_state_machine_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateStateMachineErrorKind::StateMachineLimitExceeded(_)
)
}
pub fn is_state_machine_type_not_supported(&self) -> bool {
matches!(
&self.kind,
CreateStateMachineErrorKind::StateMachineTypeNotSupported(_)
)
}
pub fn is_too_many_tags(&self) -> bool {
matches!(&self.kind, CreateStateMachineErrorKind::TooManyTags(_))
}
}
impl std::error::Error for CreateStateMachineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateStateMachineErrorKind::InvalidArn(_inner) => Some(_inner),
CreateStateMachineErrorKind::InvalidDefinition(_inner) => Some(_inner),
CreateStateMachineErrorKind::InvalidLoggingConfiguration(_inner) => Some(_inner),
CreateStateMachineErrorKind::InvalidName(_inner) => Some(_inner),
CreateStateMachineErrorKind::InvalidTracingConfiguration(_inner) => Some(_inner),
CreateStateMachineErrorKind::StateMachineAlreadyExists(_inner) => Some(_inner),
CreateStateMachineErrorKind::StateMachineDeleting(_inner) => Some(_inner),
CreateStateMachineErrorKind::StateMachineLimitExceeded(_inner) => Some(_inner),
CreateStateMachineErrorKind::StateMachineTypeNotSupported(_inner) => Some(_inner),
CreateStateMachineErrorKind::TooManyTags(_inner) => Some(_inner),
CreateStateMachineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StateMachineLimitExceeded {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StateMachineLimitExceeded {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StateMachineLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StateMachineLimitExceeded")?;
if let Some(inner_23) = &self.message {
{
write!(f, ": {}", inner_23)?;
}
}
Ok(())
}
}
impl std::error::Error for StateMachineLimitExceeded {}
pub mod state_machine_limit_exceeded {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StateMachineLimitExceeded {
crate::error::StateMachineLimitExceeded {
message: self.message,
}
}
}
}
impl StateMachineLimitExceeded {
pub fn builder() -> crate::error::state_machine_limit_exceeded::Builder {
crate::error::state_machine_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StateMachineAlreadyExists {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StateMachineAlreadyExists {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StateMachineAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StateMachineAlreadyExists")?;
if let Some(inner_24) = &self.message {
{
write!(f, ": {}", inner_24)?;
}
}
Ok(())
}
}
impl std::error::Error for StateMachineAlreadyExists {}
pub mod state_machine_already_exists {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StateMachineAlreadyExists {
crate::error::StateMachineAlreadyExists {
message: self.message,
}
}
}
}
impl StateMachineAlreadyExists {
pub fn builder() -> crate::error::state_machine_already_exists::Builder {
crate::error::state_machine_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateActivityError {
pub kind: CreateActivityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateActivityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateActivityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateActivityErrorKind {
ActivityLimitExceeded(crate::error::ActivityLimitExceeded),
InvalidName(crate::error::InvalidName),
TooManyTags(crate::error::TooManyTags),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateActivityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateActivityErrorKind::ActivityLimitExceeded(_inner) => _inner.fmt(f),
CreateActivityErrorKind::InvalidName(_inner) => _inner.fmt(f),
CreateActivityErrorKind::TooManyTags(_inner) => _inner.fmt(f),
CreateActivityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateActivityError {
fn code(&self) -> Option<&str> {
CreateActivityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateActivityError {
pub fn new(kind: CreateActivityErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: CreateActivityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateActivityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_activity_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateActivityErrorKind::ActivityLimitExceeded(_)
)
}
pub fn is_invalid_name(&self) -> bool {
matches!(&self.kind, CreateActivityErrorKind::InvalidName(_))
}
pub fn is_too_many_tags(&self) -> bool {
matches!(&self.kind, CreateActivityErrorKind::TooManyTags(_))
}
}
impl std::error::Error for CreateActivityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateActivityErrorKind::ActivityLimitExceeded(_inner) => Some(_inner),
CreateActivityErrorKind::InvalidName(_inner) => Some(_inner),
CreateActivityErrorKind::TooManyTags(_inner) => Some(_inner),
CreateActivityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ActivityLimitExceeded {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ActivityLimitExceeded {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ActivityLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ActivityLimitExceeded")?;
if let Some(inner_25) = &self.message {
{
write!(f, ": {}", inner_25)?;
}
}
Ok(())
}
}
impl std::error::Error for ActivityLimitExceeded {}
pub mod activity_limit_exceeded {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ActivityLimitExceeded {
crate::error::ActivityLimitExceeded {
message: self.message,
}
}
}
}
impl ActivityLimitExceeded {
pub fn builder() -> crate::error::activity_limit_exceeded::Builder {
crate::error::activity_limit_exceeded::Builder::default()
}
}
#[derive(Debug)]
pub struct Unhandled {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
impl Unhandled {
#[allow(unused)]
pub(crate) fn new(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self { source }
}
}
impl std::fmt::Display for Unhandled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "unhandled error")
}
}
impl std::error::Error for Unhandled {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(self.source.as_ref() as _)
}
}