#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdatePipelineError {
pub kind: UpdatePipelineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdatePipelineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdatePipelineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdatePipelineErrorKind {
InvalidActionDeclarationException(crate::error::InvalidActionDeclarationException),
InvalidBlockerDeclarationException(crate::error::InvalidBlockerDeclarationException),
InvalidStageDeclarationException(crate::error::InvalidStageDeclarationException),
InvalidStructureException(crate::error::InvalidStructureException),
LimitExceededException(crate::error::LimitExceededException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdatePipelineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdatePipelineErrorKind::InvalidActionDeclarationException(_inner) => _inner.fmt(f),
UpdatePipelineErrorKind::InvalidBlockerDeclarationException(_inner) => _inner.fmt(f),
UpdatePipelineErrorKind::InvalidStageDeclarationException(_inner) => _inner.fmt(f),
UpdatePipelineErrorKind::InvalidStructureException(_inner) => _inner.fmt(f),
UpdatePipelineErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
UpdatePipelineErrorKind::ValidationException(_inner) => _inner.fmt(f),
UpdatePipelineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdatePipelineError {
fn code(&self) -> Option<&str> {
UpdatePipelineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdatePipelineError {
pub fn new(kind: UpdatePipelineErrorKind, 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: UpdatePipelineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdatePipelineErrorKind::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_action_declaration_exception(&self) -> bool {
matches!(
&self.kind,
UpdatePipelineErrorKind::InvalidActionDeclarationException(_)
)
}
pub fn is_invalid_blocker_declaration_exception(&self) -> bool {
matches!(
&self.kind,
UpdatePipelineErrorKind::InvalidBlockerDeclarationException(_)
)
}
pub fn is_invalid_stage_declaration_exception(&self) -> bool {
matches!(
&self.kind,
UpdatePipelineErrorKind::InvalidStageDeclarationException(_)
)
}
pub fn is_invalid_structure_exception(&self) -> bool {
matches!(
&self.kind,
UpdatePipelineErrorKind::InvalidStructureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdatePipelineErrorKind::LimitExceededException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, UpdatePipelineErrorKind::ValidationException(_))
}
}
impl std::error::Error for UpdatePipelineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdatePipelineErrorKind::InvalidActionDeclarationException(_inner) => Some(_inner),
UpdatePipelineErrorKind::InvalidBlockerDeclarationException(_inner) => Some(_inner),
UpdatePipelineErrorKind::InvalidStageDeclarationException(_inner) => Some(_inner),
UpdatePipelineErrorKind::InvalidStructureException(_inner) => Some(_inner),
UpdatePipelineErrorKind::LimitExceededException(_inner) => Some(_inner),
UpdatePipelineErrorKind::ValidationException(_inner) => Some(_inner),
UpdatePipelineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ValidationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ValidationException {
crate::error::ValidationException {
message: self.message,
}
}
}
}
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 LimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl LimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LimitExceededException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for LimitExceededException {}
pub mod limit_exceeded_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::LimitExceededException {
crate::error::LimitExceededException {
message: self.message,
}
}
}
}
impl LimitExceededException {
pub fn builder() -> crate::error::limit_exceeded_exception::Builder {
crate::error::limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidStructureException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidStructureException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidStructureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidStructureException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidStructureException {}
pub mod invalid_structure_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidStructureException {
crate::error::InvalidStructureException {
message: self.message,
}
}
}
}
impl InvalidStructureException {
pub fn builder() -> crate::error::invalid_structure_exception::Builder {
crate::error::invalid_structure_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidStageDeclarationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidStageDeclarationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidStageDeclarationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidStageDeclarationException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidStageDeclarationException {}
pub mod invalid_stage_declaration_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidStageDeclarationException {
crate::error::InvalidStageDeclarationException {
message: self.message,
}
}
}
}
impl InvalidStageDeclarationException {
pub fn builder() -> crate::error::invalid_stage_declaration_exception::Builder {
crate::error::invalid_stage_declaration_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidBlockerDeclarationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidBlockerDeclarationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidBlockerDeclarationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidBlockerDeclarationException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidBlockerDeclarationException {}
pub mod invalid_blocker_declaration_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidBlockerDeclarationException {
crate::error::InvalidBlockerDeclarationException {
message: self.message,
}
}
}
}
impl InvalidBlockerDeclarationException {
pub fn builder() -> crate::error::invalid_blocker_declaration_exception::Builder {
crate::error::invalid_blocker_declaration_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidActionDeclarationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidActionDeclarationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidActionDeclarationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidActionDeclarationException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidActionDeclarationException {}
pub mod invalid_action_declaration_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidActionDeclarationException {
crate::error::InvalidActionDeclarationException {
message: self.message,
}
}
}
}
impl InvalidActionDeclarationException {
pub fn builder() -> crate::error::invalid_action_declaration_exception::Builder {
crate::error::invalid_action_declaration_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateActionTypeError {
pub kind: UpdateActionTypeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateActionTypeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateActionTypeErrorKind {
ActionTypeNotFoundException(crate::error::ActionTypeNotFoundException),
RequestFailedException(crate::error::RequestFailedException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateActionTypeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateActionTypeErrorKind::ActionTypeNotFoundException(_inner) => _inner.fmt(f),
UpdateActionTypeErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
UpdateActionTypeErrorKind::ValidationException(_inner) => _inner.fmt(f),
UpdateActionTypeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateActionTypeError {
fn code(&self) -> Option<&str> {
UpdateActionTypeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateActionTypeError {
pub fn new(kind: UpdateActionTypeErrorKind, 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: UpdateActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateActionTypeErrorKind::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_action_type_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateActionTypeErrorKind::ActionTypeNotFoundException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
UpdateActionTypeErrorKind::RequestFailedException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
UpdateActionTypeErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for UpdateActionTypeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateActionTypeErrorKind::ActionTypeNotFoundException(_inner) => Some(_inner),
UpdateActionTypeErrorKind::RequestFailedException(_inner) => Some(_inner),
UpdateActionTypeErrorKind::ValidationException(_inner) => Some(_inner),
UpdateActionTypeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RequestFailedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl RequestFailedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RequestFailedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RequestFailedException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for RequestFailedException {}
pub mod request_failed_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>,
}
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::RequestFailedException {
crate::error::RequestFailedException {
message: self.message,
}
}
}
}
impl RequestFailedException {
pub fn builder() -> crate::error::request_failed_exception::Builder {
crate::error::request_failed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ActionTypeNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ActionTypeNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ActionTypeNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ActionTypeNotFoundException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for ActionTypeNotFoundException {}
pub mod action_type_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ActionTypeNotFoundException {
crate::error::ActionTypeNotFoundException {
message: self.message,
}
}
}
}
impl ActionTypeNotFoundException {
pub fn builder() -> crate::error::action_type_not_found_exception::Builder {
crate::error::action_type_not_found_exception::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 {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArnException(crate::error::InvalidArnException),
InvalidTagsException(crate::error::InvalidTagsException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ValidationException(crate::error::ValidationException),
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::ConcurrentModificationException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidTagsException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ValidationException(_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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidArnException(_))
}
pub fn is_invalid_tags_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidTagsException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::ValidationException(_))
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidArnException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidTagsException(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UntagResourceErrorKind::ValidationException(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFoundException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundException {}
pub mod resource_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceNotFoundException {
crate::error::ResourceNotFoundException {
message: self.message,
}
}
}
}
impl ResourceNotFoundException {
pub fn builder() -> crate::error::resource_not_found_exception::Builder {
crate::error::resource_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTagsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTagsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTagsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTagsException")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTagsException {}
pub mod invalid_tags_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>,
}
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::InvalidTagsException {
crate::error::InvalidTagsException {
message: self.message,
}
}
}
}
impl InvalidTagsException {
pub fn builder() -> crate::error::invalid_tags_exception::Builder {
crate::error::invalid_tags_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidArnException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidArnException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidArnException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidArnException")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidArnException {}
pub mod invalid_arn_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>,
}
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::InvalidArnException {
crate::error::InvalidArnException {
message: self.message,
}
}
}
}
impl InvalidArnException {
pub fn builder() -> crate::error::invalid_arn_exception::Builder {
crate::error::invalid_arn_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConcurrentModificationException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ConcurrentModificationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConcurrentModificationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConcurrentModificationException")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for ConcurrentModificationException {}
pub mod concurrent_modification_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>,
}
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::ConcurrentModificationException {
crate::error::ConcurrentModificationException {
message: self.message,
}
}
}
}
impl ConcurrentModificationException {
pub fn builder() -> crate::error::concurrent_modification_exception::Builder {
crate::error::concurrent_modification_exception::Builder::default()
}
}
#[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 {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArnException(crate::error::InvalidArnException),
InvalidTagsException(crate::error::InvalidTagsException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyTagsException(crate::error::TooManyTagsException),
ValidationException(crate::error::ValidationException),
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::ConcurrentModificationException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidTagsException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
TagResourceErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ValidationException(_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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidArnException(_))
}
pub fn is_invalid_tags_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidTagsException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::TooManyTagsException(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::ValidationException(_))
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidArnException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidTagsException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
TagResourceErrorKind::TooManyTagsException(_inner) => Some(_inner),
TagResourceErrorKind::ValidationException(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyTagsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyTagsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTagsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTagsException")?;
if let Some(inner_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyTagsException {}
pub mod too_many_tags_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>,
}
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::TooManyTagsException {
crate::error::TooManyTagsException {
message: self.message,
}
}
}
}
impl TooManyTagsException {
pub fn builder() -> crate::error::too_many_tags_exception::Builder {
crate::error::too_many_tags_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopPipelineExecutionError {
pub kind: StopPipelineExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopPipelineExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopPipelineExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopPipelineExecutionErrorKind {
ConflictException(crate::error::ConflictException),
DuplicatedStopRequestException(crate::error::DuplicatedStopRequestException),
PipelineExecutionNotStoppableException(crate::error::PipelineExecutionNotStoppableException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopPipelineExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopPipelineExecutionErrorKind::ConflictException(_inner) => _inner.fmt(f),
StopPipelineExecutionErrorKind::DuplicatedStopRequestException(_inner) => _inner.fmt(f),
StopPipelineExecutionErrorKind::PipelineExecutionNotStoppableException(_inner) => {
_inner.fmt(f)
}
StopPipelineExecutionErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
StopPipelineExecutionErrorKind::ValidationException(_inner) => _inner.fmt(f),
StopPipelineExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopPipelineExecutionError {
fn code(&self) -> Option<&str> {
StopPipelineExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopPipelineExecutionError {
pub fn new(kind: StopPipelineExecutionErrorKind, 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: StopPipelineExecutionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopPipelineExecutionErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
StopPipelineExecutionErrorKind::ConflictException(_)
)
}
pub fn is_duplicated_stop_request_exception(&self) -> bool {
matches!(
&self.kind,
StopPipelineExecutionErrorKind::DuplicatedStopRequestException(_)
)
}
pub fn is_pipeline_execution_not_stoppable_exception(&self) -> bool {
matches!(
&self.kind,
StopPipelineExecutionErrorKind::PipelineExecutionNotStoppableException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
StopPipelineExecutionErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
StopPipelineExecutionErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for StopPipelineExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopPipelineExecutionErrorKind::ConflictException(_inner) => Some(_inner),
StopPipelineExecutionErrorKind::DuplicatedStopRequestException(_inner) => Some(_inner),
StopPipelineExecutionErrorKind::PipelineExecutionNotStoppableException(_inner) => {
Some(_inner)
}
StopPipelineExecutionErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
StopPipelineExecutionErrorKind::ValidationException(_inner) => Some(_inner),
StopPipelineExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PipelineNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl PipelineNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PipelineNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PipelineNotFoundException")?;
if let Some(inner_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for PipelineNotFoundException {}
pub mod pipeline_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::PipelineNotFoundException {
crate::error::PipelineNotFoundException {
message: self.message,
}
}
}
}
impl PipelineNotFoundException {
pub fn builder() -> crate::error::pipeline_not_found_exception::Builder {
crate::error::pipeline_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PipelineExecutionNotStoppableException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl PipelineExecutionNotStoppableException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PipelineExecutionNotStoppableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PipelineExecutionNotStoppableException")?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for PipelineExecutionNotStoppableException {}
pub mod pipeline_execution_not_stoppable_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>,
}
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::PipelineExecutionNotStoppableException {
crate::error::PipelineExecutionNotStoppableException {
message: self.message,
}
}
}
}
impl PipelineExecutionNotStoppableException {
pub fn builder() -> crate::error::pipeline_execution_not_stoppable_exception::Builder {
crate::error::pipeline_execution_not_stoppable_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DuplicatedStopRequestException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DuplicatedStopRequestException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DuplicatedStopRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DuplicatedStopRequestException")?;
if let Some(inner_16) = &self.message {
{
write!(f, ": {}", inner_16)?;
}
}
Ok(())
}
}
impl std::error::Error for DuplicatedStopRequestException {}
pub mod duplicated_stop_request_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>,
}
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::DuplicatedStopRequestException {
crate::error::DuplicatedStopRequestException {
message: self.message,
}
}
}
}
impl DuplicatedStopRequestException {
pub fn builder() -> crate::error::duplicated_stop_request_exception::Builder {
crate::error::duplicated_stop_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConflictException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ConflictException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConflictException")?;
if let Some(inner_17) = &self.message {
{
write!(f, ": {}", inner_17)?;
}
}
Ok(())
}
}
impl std::error::Error for ConflictException {}
pub mod conflict_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>,
}
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::ConflictException {
crate::error::ConflictException {
message: self.message,
}
}
}
}
impl ConflictException {
pub fn builder() -> crate::error::conflict_exception::Builder {
crate::error::conflict_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartPipelineExecutionError {
pub kind: StartPipelineExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartPipelineExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartPipelineExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartPipelineExecutionErrorKind {
ConflictException(crate::error::ConflictException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartPipelineExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartPipelineExecutionErrorKind::ConflictException(_inner) => _inner.fmt(f),
StartPipelineExecutionErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
StartPipelineExecutionErrorKind::ValidationException(_inner) => _inner.fmt(f),
StartPipelineExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartPipelineExecutionError {
fn code(&self) -> Option<&str> {
StartPipelineExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartPipelineExecutionError {
pub fn new(kind: StartPipelineExecutionErrorKind, 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: StartPipelineExecutionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartPipelineExecutionErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
StartPipelineExecutionErrorKind::ConflictException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
StartPipelineExecutionErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
StartPipelineExecutionErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for StartPipelineExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartPipelineExecutionErrorKind::ConflictException(_inner) => Some(_inner),
StartPipelineExecutionErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
StartPipelineExecutionErrorKind::ValidationException(_inner) => Some(_inner),
StartPipelineExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RetryStageExecutionError {
pub kind: RetryStageExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RetryStageExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RetryStageExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RetryStageExecutionErrorKind {
ConflictException(crate::error::ConflictException),
NotLatestPipelineExecutionException(crate::error::NotLatestPipelineExecutionException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
StageNotFoundException(crate::error::StageNotFoundException),
StageNotRetryableException(crate::error::StageNotRetryableException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RetryStageExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RetryStageExecutionErrorKind::ConflictException(_inner) => _inner.fmt(f),
RetryStageExecutionErrorKind::NotLatestPipelineExecutionException(_inner) => {
_inner.fmt(f)
}
RetryStageExecutionErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
RetryStageExecutionErrorKind::StageNotFoundException(_inner) => _inner.fmt(f),
RetryStageExecutionErrorKind::StageNotRetryableException(_inner) => _inner.fmt(f),
RetryStageExecutionErrorKind::ValidationException(_inner) => _inner.fmt(f),
RetryStageExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RetryStageExecutionError {
fn code(&self) -> Option<&str> {
RetryStageExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RetryStageExecutionError {
pub fn new(kind: RetryStageExecutionErrorKind, 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: RetryStageExecutionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RetryStageExecutionErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
RetryStageExecutionErrorKind::ConflictException(_)
)
}
pub fn is_not_latest_pipeline_execution_exception(&self) -> bool {
matches!(
&self.kind,
RetryStageExecutionErrorKind::NotLatestPipelineExecutionException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RetryStageExecutionErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_stage_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RetryStageExecutionErrorKind::StageNotFoundException(_)
)
}
pub fn is_stage_not_retryable_exception(&self) -> bool {
matches!(
&self.kind,
RetryStageExecutionErrorKind::StageNotRetryableException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
RetryStageExecutionErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for RetryStageExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RetryStageExecutionErrorKind::ConflictException(_inner) => Some(_inner),
RetryStageExecutionErrorKind::NotLatestPipelineExecutionException(_inner) => {
Some(_inner)
}
RetryStageExecutionErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
RetryStageExecutionErrorKind::StageNotFoundException(_inner) => Some(_inner),
RetryStageExecutionErrorKind::StageNotRetryableException(_inner) => Some(_inner),
RetryStageExecutionErrorKind::ValidationException(_inner) => Some(_inner),
RetryStageExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StageNotRetryableException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StageNotRetryableException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StageNotRetryableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StageNotRetryableException")?;
if let Some(inner_18) = &self.message {
{
write!(f, ": {}", inner_18)?;
}
}
Ok(())
}
}
impl std::error::Error for StageNotRetryableException {}
pub mod stage_not_retryable_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StageNotRetryableException {
crate::error::StageNotRetryableException {
message: self.message,
}
}
}
}
impl StageNotRetryableException {
pub fn builder() -> crate::error::stage_not_retryable_exception::Builder {
crate::error::stage_not_retryable_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StageNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl StageNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StageNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StageNotFoundException")?;
if let Some(inner_19) = &self.message {
{
write!(f, ": {}", inner_19)?;
}
}
Ok(())
}
}
impl std::error::Error for StageNotFoundException {}
pub mod stage_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::StageNotFoundException {
crate::error::StageNotFoundException {
message: self.message,
}
}
}
}
impl StageNotFoundException {
pub fn builder() -> crate::error::stage_not_found_exception::Builder {
crate::error::stage_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NotLatestPipelineExecutionException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl NotLatestPipelineExecutionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotLatestPipelineExecutionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotLatestPipelineExecutionException")?;
if let Some(inner_20) = &self.message {
{
write!(f, ": {}", inner_20)?;
}
}
Ok(())
}
}
impl std::error::Error for NotLatestPipelineExecutionException {}
pub mod not_latest_pipeline_execution_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::NotLatestPipelineExecutionException {
crate::error::NotLatestPipelineExecutionException {
message: self.message,
}
}
}
}
impl NotLatestPipelineExecutionException {
pub fn builder() -> crate::error::not_latest_pipeline_execution_exception::Builder {
crate::error::not_latest_pipeline_execution_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterWebhookWithThirdPartyError {
pub kind: RegisterWebhookWithThirdPartyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterWebhookWithThirdPartyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterWebhookWithThirdPartyErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterWebhookWithThirdPartyErrorKind {
ValidationException(crate::error::ValidationException),
WebhookNotFoundException(crate::error::WebhookNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterWebhookWithThirdPartyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterWebhookWithThirdPartyErrorKind::ValidationException(_inner) => _inner.fmt(f),
RegisterWebhookWithThirdPartyErrorKind::WebhookNotFoundException(_inner) => {
_inner.fmt(f)
}
RegisterWebhookWithThirdPartyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterWebhookWithThirdPartyError {
fn code(&self) -> Option<&str> {
RegisterWebhookWithThirdPartyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterWebhookWithThirdPartyError {
pub fn new(
kind: RegisterWebhookWithThirdPartyErrorKind,
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: RegisterWebhookWithThirdPartyErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterWebhookWithThirdPartyErrorKind::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_validation_exception(&self) -> bool {
matches!(
&self.kind,
RegisterWebhookWithThirdPartyErrorKind::ValidationException(_)
)
}
pub fn is_webhook_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RegisterWebhookWithThirdPartyErrorKind::WebhookNotFoundException(_)
)
}
}
impl std::error::Error for RegisterWebhookWithThirdPartyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterWebhookWithThirdPartyErrorKind::ValidationException(_inner) => Some(_inner),
RegisterWebhookWithThirdPartyErrorKind::WebhookNotFoundException(_inner) => {
Some(_inner)
}
RegisterWebhookWithThirdPartyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct WebhookNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl WebhookNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for WebhookNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "WebhookNotFoundException")?;
if let Some(inner_21) = &self.message {
{
write!(f, ": {}", inner_21)?;
}
}
Ok(())
}
}
impl std::error::Error for WebhookNotFoundException {}
pub mod webhook_not_found_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>,
}
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::WebhookNotFoundException {
crate::error::WebhookNotFoundException {
message: self.message,
}
}
}
}
impl WebhookNotFoundException {
pub fn builder() -> crate::error::webhook_not_found_exception::Builder {
crate::error::webhook_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutWebhookError {
pub kind: PutWebhookErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutWebhookError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutWebhookErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutWebhookErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidTagsException(crate::error::InvalidTagsException),
InvalidWebhookAuthenticationParametersException(
crate::error::InvalidWebhookAuthenticationParametersException,
),
InvalidWebhookFilterPatternException(crate::error::InvalidWebhookFilterPatternException),
LimitExceededException(crate::error::LimitExceededException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
TooManyTagsException(crate::error::TooManyTagsException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutWebhookError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutWebhookErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
PutWebhookErrorKind::InvalidTagsException(_inner) => _inner.fmt(f),
PutWebhookErrorKind::InvalidWebhookAuthenticationParametersException(_inner) => {
_inner.fmt(f)
}
PutWebhookErrorKind::InvalidWebhookFilterPatternException(_inner) => _inner.fmt(f),
PutWebhookErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutWebhookErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
PutWebhookErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
PutWebhookErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutWebhookErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutWebhookError {
fn code(&self) -> Option<&str> {
PutWebhookError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutWebhookError {
pub fn new(kind: PutWebhookErrorKind, 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: PutWebhookErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutWebhookErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
PutWebhookErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_tags_exception(&self) -> bool {
matches!(&self.kind, PutWebhookErrorKind::InvalidTagsException(_))
}
pub fn is_invalid_webhook_authentication_parameters_exception(&self) -> bool {
matches!(
&self.kind,
PutWebhookErrorKind::InvalidWebhookAuthenticationParametersException(_)
)
}
pub fn is_invalid_webhook_filter_pattern_exception(&self) -> bool {
matches!(
&self.kind,
PutWebhookErrorKind::InvalidWebhookFilterPatternException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PutWebhookErrorKind::LimitExceededException(_))
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutWebhookErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, PutWebhookErrorKind::TooManyTagsException(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, PutWebhookErrorKind::ValidationException(_))
}
}
impl std::error::Error for PutWebhookError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutWebhookErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
PutWebhookErrorKind::InvalidTagsException(_inner) => Some(_inner),
PutWebhookErrorKind::InvalidWebhookAuthenticationParametersException(_inner) => {
Some(_inner)
}
PutWebhookErrorKind::InvalidWebhookFilterPatternException(_inner) => Some(_inner),
PutWebhookErrorKind::LimitExceededException(_inner) => Some(_inner),
PutWebhookErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
PutWebhookErrorKind::TooManyTagsException(_inner) => Some(_inner),
PutWebhookErrorKind::ValidationException(_inner) => Some(_inner),
PutWebhookErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidWebhookFilterPatternException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidWebhookFilterPatternException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidWebhookFilterPatternException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidWebhookFilterPatternException")?;
if let Some(inner_22) = &self.message {
{
write!(f, ": {}", inner_22)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidWebhookFilterPatternException {}
pub mod invalid_webhook_filter_pattern_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidWebhookFilterPatternException {
crate::error::InvalidWebhookFilterPatternException {
message: self.message,
}
}
}
}
impl InvalidWebhookFilterPatternException {
pub fn builder() -> crate::error::invalid_webhook_filter_pattern_exception::Builder {
crate::error::invalid_webhook_filter_pattern_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidWebhookAuthenticationParametersException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidWebhookAuthenticationParametersException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidWebhookAuthenticationParametersException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidWebhookAuthenticationParametersException")?;
if let Some(inner_23) = &self.message {
{
write!(f, ": {}", inner_23)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidWebhookAuthenticationParametersException {}
pub mod invalid_webhook_authentication_parameters_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidWebhookAuthenticationParametersException {
crate::error::InvalidWebhookAuthenticationParametersException {
message: self.message,
}
}
}
}
impl InvalidWebhookAuthenticationParametersException {
pub fn builder() -> crate::error::invalid_webhook_authentication_parameters_exception::Builder {
crate::error::invalid_webhook_authentication_parameters_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutThirdPartyJobSuccessResultError {
pub kind: PutThirdPartyJobSuccessResultErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutThirdPartyJobSuccessResultError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutThirdPartyJobSuccessResultErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutThirdPartyJobSuccessResultErrorKind {
InvalidClientTokenException(crate::error::InvalidClientTokenException),
InvalidJobStateException(crate::error::InvalidJobStateException),
JobNotFoundException(crate::error::JobNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutThirdPartyJobSuccessResultError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutThirdPartyJobSuccessResultErrorKind::InvalidClientTokenException(_inner) => {
_inner.fmt(f)
}
PutThirdPartyJobSuccessResultErrorKind::InvalidJobStateException(_inner) => {
_inner.fmt(f)
}
PutThirdPartyJobSuccessResultErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
PutThirdPartyJobSuccessResultErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutThirdPartyJobSuccessResultErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutThirdPartyJobSuccessResultError {
fn code(&self) -> Option<&str> {
PutThirdPartyJobSuccessResultError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutThirdPartyJobSuccessResultError {
pub fn new(
kind: PutThirdPartyJobSuccessResultErrorKind,
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: PutThirdPartyJobSuccessResultErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutThirdPartyJobSuccessResultErrorKind::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_client_token_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobSuccessResultErrorKind::InvalidClientTokenException(_)
)
}
pub fn is_invalid_job_state_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobSuccessResultErrorKind::InvalidJobStateException(_)
)
}
pub fn is_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobSuccessResultErrorKind::JobNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobSuccessResultErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for PutThirdPartyJobSuccessResultError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutThirdPartyJobSuccessResultErrorKind::InvalidClientTokenException(_inner) => {
Some(_inner)
}
PutThirdPartyJobSuccessResultErrorKind::InvalidJobStateException(_inner) => {
Some(_inner)
}
PutThirdPartyJobSuccessResultErrorKind::JobNotFoundException(_inner) => Some(_inner),
PutThirdPartyJobSuccessResultErrorKind::ValidationException(_inner) => Some(_inner),
PutThirdPartyJobSuccessResultErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct JobNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl JobNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for JobNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "JobNotFoundException")?;
if let Some(inner_24) = &self.message {
{
write!(f, ": {}", inner_24)?;
}
}
Ok(())
}
}
impl std::error::Error for JobNotFoundException {}
pub mod job_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::JobNotFoundException {
crate::error::JobNotFoundException {
message: self.message,
}
}
}
}
impl JobNotFoundException {
pub fn builder() -> crate::error::job_not_found_exception::Builder {
crate::error::job_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidJobStateException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidJobStateException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidJobStateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidJobStateException")?;
if let Some(inner_25) = &self.message {
{
write!(f, ": {}", inner_25)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidJobStateException {}
pub mod invalid_job_state_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidJobStateException {
crate::error::InvalidJobStateException {
message: self.message,
}
}
}
}
impl InvalidJobStateException {
pub fn builder() -> crate::error::invalid_job_state_exception::Builder {
crate::error::invalid_job_state_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidClientTokenException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidClientTokenException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidClientTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidClientTokenException")?;
if let Some(inner_26) = &self.message {
{
write!(f, ": {}", inner_26)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidClientTokenException {}
pub mod invalid_client_token_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidClientTokenException {
crate::error::InvalidClientTokenException {
message: self.message,
}
}
}
}
impl InvalidClientTokenException {
pub fn builder() -> crate::error::invalid_client_token_exception::Builder {
crate::error::invalid_client_token_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutThirdPartyJobFailureResultError {
pub kind: PutThirdPartyJobFailureResultErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutThirdPartyJobFailureResultError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutThirdPartyJobFailureResultErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutThirdPartyJobFailureResultErrorKind {
InvalidClientTokenException(crate::error::InvalidClientTokenException),
InvalidJobStateException(crate::error::InvalidJobStateException),
JobNotFoundException(crate::error::JobNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutThirdPartyJobFailureResultError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutThirdPartyJobFailureResultErrorKind::InvalidClientTokenException(_inner) => {
_inner.fmt(f)
}
PutThirdPartyJobFailureResultErrorKind::InvalidJobStateException(_inner) => {
_inner.fmt(f)
}
PutThirdPartyJobFailureResultErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
PutThirdPartyJobFailureResultErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutThirdPartyJobFailureResultErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutThirdPartyJobFailureResultError {
fn code(&self) -> Option<&str> {
PutThirdPartyJobFailureResultError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutThirdPartyJobFailureResultError {
pub fn new(
kind: PutThirdPartyJobFailureResultErrorKind,
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: PutThirdPartyJobFailureResultErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutThirdPartyJobFailureResultErrorKind::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_client_token_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobFailureResultErrorKind::InvalidClientTokenException(_)
)
}
pub fn is_invalid_job_state_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobFailureResultErrorKind::InvalidJobStateException(_)
)
}
pub fn is_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobFailureResultErrorKind::JobNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
PutThirdPartyJobFailureResultErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for PutThirdPartyJobFailureResultError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutThirdPartyJobFailureResultErrorKind::InvalidClientTokenException(_inner) => {
Some(_inner)
}
PutThirdPartyJobFailureResultErrorKind::InvalidJobStateException(_inner) => {
Some(_inner)
}
PutThirdPartyJobFailureResultErrorKind::JobNotFoundException(_inner) => Some(_inner),
PutThirdPartyJobFailureResultErrorKind::ValidationException(_inner) => Some(_inner),
PutThirdPartyJobFailureResultErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutJobSuccessResultError {
pub kind: PutJobSuccessResultErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutJobSuccessResultError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutJobSuccessResultErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutJobSuccessResultErrorKind {
InvalidJobStateException(crate::error::InvalidJobStateException),
JobNotFoundException(crate::error::JobNotFoundException),
OutputVariablesSizeExceededException(crate::error::OutputVariablesSizeExceededException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutJobSuccessResultError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutJobSuccessResultErrorKind::InvalidJobStateException(_inner) => _inner.fmt(f),
PutJobSuccessResultErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
PutJobSuccessResultErrorKind::OutputVariablesSizeExceededException(_inner) => {
_inner.fmt(f)
}
PutJobSuccessResultErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutJobSuccessResultErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutJobSuccessResultError {
fn code(&self) -> Option<&str> {
PutJobSuccessResultError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutJobSuccessResultError {
pub fn new(kind: PutJobSuccessResultErrorKind, 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: PutJobSuccessResultErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutJobSuccessResultErrorKind::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_job_state_exception(&self) -> bool {
matches!(
&self.kind,
PutJobSuccessResultErrorKind::InvalidJobStateException(_)
)
}
pub fn is_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutJobSuccessResultErrorKind::JobNotFoundException(_)
)
}
pub fn is_output_variables_size_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
PutJobSuccessResultErrorKind::OutputVariablesSizeExceededException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
PutJobSuccessResultErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for PutJobSuccessResultError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutJobSuccessResultErrorKind::InvalidJobStateException(_inner) => Some(_inner),
PutJobSuccessResultErrorKind::JobNotFoundException(_inner) => Some(_inner),
PutJobSuccessResultErrorKind::OutputVariablesSizeExceededException(_inner) => {
Some(_inner)
}
PutJobSuccessResultErrorKind::ValidationException(_inner) => Some(_inner),
PutJobSuccessResultErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OutputVariablesSizeExceededException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl OutputVariablesSizeExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OutputVariablesSizeExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OutputVariablesSizeExceededException")?;
if let Some(inner_27) = &self.message {
{
write!(f, ": {}", inner_27)?;
}
}
Ok(())
}
}
impl std::error::Error for OutputVariablesSizeExceededException {}
pub mod output_variables_size_exceeded_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>,
}
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::OutputVariablesSizeExceededException {
crate::error::OutputVariablesSizeExceededException {
message: self.message,
}
}
}
}
impl OutputVariablesSizeExceededException {
pub fn builder() -> crate::error::output_variables_size_exceeded_exception::Builder {
crate::error::output_variables_size_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutJobFailureResultError {
pub kind: PutJobFailureResultErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutJobFailureResultError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutJobFailureResultErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutJobFailureResultErrorKind {
InvalidJobStateException(crate::error::InvalidJobStateException),
JobNotFoundException(crate::error::JobNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutJobFailureResultError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutJobFailureResultErrorKind::InvalidJobStateException(_inner) => _inner.fmt(f),
PutJobFailureResultErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
PutJobFailureResultErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutJobFailureResultErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutJobFailureResultError {
fn code(&self) -> Option<&str> {
PutJobFailureResultError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutJobFailureResultError {
pub fn new(kind: PutJobFailureResultErrorKind, 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: PutJobFailureResultErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutJobFailureResultErrorKind::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_job_state_exception(&self) -> bool {
matches!(
&self.kind,
PutJobFailureResultErrorKind::InvalidJobStateException(_)
)
}
pub fn is_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutJobFailureResultErrorKind::JobNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
PutJobFailureResultErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for PutJobFailureResultError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutJobFailureResultErrorKind::InvalidJobStateException(_inner) => Some(_inner),
PutJobFailureResultErrorKind::JobNotFoundException(_inner) => Some(_inner),
PutJobFailureResultErrorKind::ValidationException(_inner) => Some(_inner),
PutJobFailureResultErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutApprovalResultError {
pub kind: PutApprovalResultErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutApprovalResultError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutApprovalResultErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutApprovalResultErrorKind {
ActionNotFoundException(crate::error::ActionNotFoundException),
ApprovalAlreadyCompletedException(crate::error::ApprovalAlreadyCompletedException),
InvalidApprovalTokenException(crate::error::InvalidApprovalTokenException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
StageNotFoundException(crate::error::StageNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutApprovalResultError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutApprovalResultErrorKind::ActionNotFoundException(_inner) => _inner.fmt(f),
PutApprovalResultErrorKind::ApprovalAlreadyCompletedException(_inner) => _inner.fmt(f),
PutApprovalResultErrorKind::InvalidApprovalTokenException(_inner) => _inner.fmt(f),
PutApprovalResultErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
PutApprovalResultErrorKind::StageNotFoundException(_inner) => _inner.fmt(f),
PutApprovalResultErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutApprovalResultErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutApprovalResultError {
fn code(&self) -> Option<&str> {
PutApprovalResultError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutApprovalResultError {
pub fn new(kind: PutApprovalResultErrorKind, 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: PutApprovalResultErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutApprovalResultErrorKind::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_action_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutApprovalResultErrorKind::ActionNotFoundException(_)
)
}
pub fn is_approval_already_completed_exception(&self) -> bool {
matches!(
&self.kind,
PutApprovalResultErrorKind::ApprovalAlreadyCompletedException(_)
)
}
pub fn is_invalid_approval_token_exception(&self) -> bool {
matches!(
&self.kind,
PutApprovalResultErrorKind::InvalidApprovalTokenException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutApprovalResultErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_stage_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutApprovalResultErrorKind::StageNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
PutApprovalResultErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for PutApprovalResultError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutApprovalResultErrorKind::ActionNotFoundException(_inner) => Some(_inner),
PutApprovalResultErrorKind::ApprovalAlreadyCompletedException(_inner) => Some(_inner),
PutApprovalResultErrorKind::InvalidApprovalTokenException(_inner) => Some(_inner),
PutApprovalResultErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
PutApprovalResultErrorKind::StageNotFoundException(_inner) => Some(_inner),
PutApprovalResultErrorKind::ValidationException(_inner) => Some(_inner),
PutApprovalResultErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidApprovalTokenException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidApprovalTokenException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidApprovalTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidApprovalTokenException")?;
if let Some(inner_28) = &self.message {
{
write!(f, ": {}", inner_28)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidApprovalTokenException {}
pub mod invalid_approval_token_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidApprovalTokenException {
crate::error::InvalidApprovalTokenException {
message: self.message,
}
}
}
}
impl InvalidApprovalTokenException {
pub fn builder() -> crate::error::invalid_approval_token_exception::Builder {
crate::error::invalid_approval_token_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApprovalAlreadyCompletedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ApprovalAlreadyCompletedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ApprovalAlreadyCompletedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ApprovalAlreadyCompletedException")?;
if let Some(inner_29) = &self.message {
{
write!(f, ": {}", inner_29)?;
}
}
Ok(())
}
}
impl std::error::Error for ApprovalAlreadyCompletedException {}
pub mod approval_already_completed_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ApprovalAlreadyCompletedException {
crate::error::ApprovalAlreadyCompletedException {
message: self.message,
}
}
}
}
impl ApprovalAlreadyCompletedException {
pub fn builder() -> crate::error::approval_already_completed_exception::Builder {
crate::error::approval_already_completed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ActionNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ActionNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ActionNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ActionNotFoundException")?;
if let Some(inner_30) = &self.message {
{
write!(f, ": {}", inner_30)?;
}
}
Ok(())
}
}
impl std::error::Error for ActionNotFoundException {}
pub mod action_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ActionNotFoundException {
crate::error::ActionNotFoundException {
message: self.message,
}
}
}
}
impl ActionNotFoundException {
pub fn builder() -> crate::error::action_not_found_exception::Builder {
crate::error::action_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutActionRevisionError {
pub kind: PutActionRevisionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutActionRevisionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutActionRevisionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutActionRevisionErrorKind {
ActionNotFoundException(crate::error::ActionNotFoundException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
StageNotFoundException(crate::error::StageNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutActionRevisionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutActionRevisionErrorKind::ActionNotFoundException(_inner) => _inner.fmt(f),
PutActionRevisionErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
PutActionRevisionErrorKind::StageNotFoundException(_inner) => _inner.fmt(f),
PutActionRevisionErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutActionRevisionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutActionRevisionError {
fn code(&self) -> Option<&str> {
PutActionRevisionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutActionRevisionError {
pub fn new(kind: PutActionRevisionErrorKind, 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: PutActionRevisionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutActionRevisionErrorKind::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_action_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutActionRevisionErrorKind::ActionNotFoundException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutActionRevisionErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_stage_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutActionRevisionErrorKind::StageNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
PutActionRevisionErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for PutActionRevisionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutActionRevisionErrorKind::ActionNotFoundException(_inner) => Some(_inner),
PutActionRevisionErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
PutActionRevisionErrorKind::StageNotFoundException(_inner) => Some(_inner),
PutActionRevisionErrorKind::ValidationException(_inner) => Some(_inner),
PutActionRevisionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PollForThirdPartyJobsError {
pub kind: PollForThirdPartyJobsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PollForThirdPartyJobsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PollForThirdPartyJobsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PollForThirdPartyJobsErrorKind {
ActionTypeNotFoundException(crate::error::ActionTypeNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PollForThirdPartyJobsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PollForThirdPartyJobsErrorKind::ActionTypeNotFoundException(_inner) => _inner.fmt(f),
PollForThirdPartyJobsErrorKind::ValidationException(_inner) => _inner.fmt(f),
PollForThirdPartyJobsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PollForThirdPartyJobsError {
fn code(&self) -> Option<&str> {
PollForThirdPartyJobsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PollForThirdPartyJobsError {
pub fn new(kind: PollForThirdPartyJobsErrorKind, 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: PollForThirdPartyJobsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PollForThirdPartyJobsErrorKind::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_action_type_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PollForThirdPartyJobsErrorKind::ActionTypeNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
PollForThirdPartyJobsErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for PollForThirdPartyJobsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PollForThirdPartyJobsErrorKind::ActionTypeNotFoundException(_inner) => Some(_inner),
PollForThirdPartyJobsErrorKind::ValidationException(_inner) => Some(_inner),
PollForThirdPartyJobsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PollForJobsError {
pub kind: PollForJobsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PollForJobsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PollForJobsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PollForJobsErrorKind {
ActionTypeNotFoundException(crate::error::ActionTypeNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PollForJobsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PollForJobsErrorKind::ActionTypeNotFoundException(_inner) => _inner.fmt(f),
PollForJobsErrorKind::ValidationException(_inner) => _inner.fmt(f),
PollForJobsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PollForJobsError {
fn code(&self) -> Option<&str> {
PollForJobsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PollForJobsError {
pub fn new(kind: PollForJobsErrorKind, 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: PollForJobsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PollForJobsErrorKind::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_action_type_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PollForJobsErrorKind::ActionTypeNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, PollForJobsErrorKind::ValidationException(_))
}
}
impl std::error::Error for PollForJobsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PollForJobsErrorKind::ActionTypeNotFoundException(_inner) => Some(_inner),
PollForJobsErrorKind::ValidationException(_inner) => Some(_inner),
PollForJobsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListWebhooksError {
pub kind: ListWebhooksErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListWebhooksError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListWebhooksErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListWebhooksErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListWebhooksError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListWebhooksErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListWebhooksErrorKind::ValidationException(_inner) => _inner.fmt(f),
ListWebhooksErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListWebhooksError {
fn code(&self) -> Option<&str> {
ListWebhooksError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListWebhooksError {
pub fn new(kind: ListWebhooksErrorKind, 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: ListWebhooksErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListWebhooksErrorKind::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_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListWebhooksErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, ListWebhooksErrorKind::ValidationException(_))
}
}
impl std::error::Error for ListWebhooksError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListWebhooksErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListWebhooksErrorKind::ValidationException(_inner) => Some(_inner),
ListWebhooksErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidNextTokenException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidNextTokenException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidNextTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidNextTokenException")?;
if let Some(inner_31) = &self.message {
{
write!(f, ": {}", inner_31)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidNextTokenException {}
pub mod invalid_next_token_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidNextTokenException {
crate::error::InvalidNextTokenException {
message: self.message,
}
}
}
}
impl InvalidNextTokenException {
pub fn builder() -> crate::error::invalid_next_token_exception::Builder {
crate::error::invalid_next_token_exception::Builder::default()
}
}
#[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 {
InvalidArnException(crate::error::InvalidArnException),
InvalidNextTokenException(crate::error::InvalidNextTokenException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ValidationException(crate::error::ValidationException),
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::InvalidArnException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ValidationException(_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_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::InvalidArnException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ValidationException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListPipelinesError {
pub kind: ListPipelinesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListPipelinesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListPipelinesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListPipelinesErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListPipelinesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListPipelinesErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListPipelinesErrorKind::ValidationException(_inner) => _inner.fmt(f),
ListPipelinesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListPipelinesError {
fn code(&self) -> Option<&str> {
ListPipelinesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListPipelinesError {
pub fn new(kind: ListPipelinesErrorKind, 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: ListPipelinesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListPipelinesErrorKind::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_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListPipelinesErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, ListPipelinesErrorKind::ValidationException(_))
}
}
impl std::error::Error for ListPipelinesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListPipelinesErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListPipelinesErrorKind::ValidationException(_inner) => Some(_inner),
ListPipelinesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListPipelineExecutionsError {
pub kind: ListPipelineExecutionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListPipelineExecutionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListPipelineExecutionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListPipelineExecutionsErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListPipelineExecutionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListPipelineExecutionsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListPipelineExecutionsErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
ListPipelineExecutionsErrorKind::ValidationException(_inner) => _inner.fmt(f),
ListPipelineExecutionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListPipelineExecutionsError {
fn code(&self) -> Option<&str> {
ListPipelineExecutionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListPipelineExecutionsError {
pub fn new(kind: ListPipelineExecutionsErrorKind, 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: ListPipelineExecutionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListPipelineExecutionsErrorKind::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_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListPipelineExecutionsErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListPipelineExecutionsErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
ListPipelineExecutionsErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for ListPipelineExecutionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListPipelineExecutionsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListPipelineExecutionsErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
ListPipelineExecutionsErrorKind::ValidationException(_inner) => Some(_inner),
ListPipelineExecutionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListActionTypesError {
pub kind: ListActionTypesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListActionTypesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListActionTypesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListActionTypesErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListActionTypesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListActionTypesErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListActionTypesErrorKind::ValidationException(_inner) => _inner.fmt(f),
ListActionTypesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListActionTypesError {
fn code(&self) -> Option<&str> {
ListActionTypesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListActionTypesError {
pub fn new(kind: ListActionTypesErrorKind, 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: ListActionTypesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListActionTypesErrorKind::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_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListActionTypesErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, ListActionTypesErrorKind::ValidationException(_))
}
}
impl std::error::Error for ListActionTypesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListActionTypesErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListActionTypesErrorKind::ValidationException(_inner) => Some(_inner),
ListActionTypesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListActionExecutionsError {
pub kind: ListActionExecutionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListActionExecutionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListActionExecutionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListActionExecutionsErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
PipelineExecutionNotFoundException(crate::error::PipelineExecutionNotFoundException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListActionExecutionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListActionExecutionsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListActionExecutionsErrorKind::PipelineExecutionNotFoundException(_inner) => {
_inner.fmt(f)
}
ListActionExecutionsErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
ListActionExecutionsErrorKind::ValidationException(_inner) => _inner.fmt(f),
ListActionExecutionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListActionExecutionsError {
fn code(&self) -> Option<&str> {
ListActionExecutionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListActionExecutionsError {
pub fn new(kind: ListActionExecutionsErrorKind, 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: ListActionExecutionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListActionExecutionsErrorKind::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_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListActionExecutionsErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_pipeline_execution_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListActionExecutionsErrorKind::PipelineExecutionNotFoundException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListActionExecutionsErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
ListActionExecutionsErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for ListActionExecutionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListActionExecutionsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListActionExecutionsErrorKind::PipelineExecutionNotFoundException(_inner) => {
Some(_inner)
}
ListActionExecutionsErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
ListActionExecutionsErrorKind::ValidationException(_inner) => Some(_inner),
ListActionExecutionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PipelineExecutionNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl PipelineExecutionNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PipelineExecutionNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PipelineExecutionNotFoundException")?;
if let Some(inner_32) = &self.message {
{
write!(f, ": {}", inner_32)?;
}
}
Ok(())
}
}
impl std::error::Error for PipelineExecutionNotFoundException {}
pub mod pipeline_execution_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::PipelineExecutionNotFoundException {
crate::error::PipelineExecutionNotFoundException {
message: self.message,
}
}
}
}
impl PipelineExecutionNotFoundException {
pub fn builder() -> crate::error::pipeline_execution_not_found_exception::Builder {
crate::error::pipeline_execution_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetThirdPartyJobDetailsError {
pub kind: GetThirdPartyJobDetailsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetThirdPartyJobDetailsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetThirdPartyJobDetailsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetThirdPartyJobDetailsErrorKind {
InvalidClientTokenException(crate::error::InvalidClientTokenException),
InvalidJobException(crate::error::InvalidJobException),
JobNotFoundException(crate::error::JobNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetThirdPartyJobDetailsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetThirdPartyJobDetailsErrorKind::InvalidClientTokenException(_inner) => _inner.fmt(f),
GetThirdPartyJobDetailsErrorKind::InvalidJobException(_inner) => _inner.fmt(f),
GetThirdPartyJobDetailsErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
GetThirdPartyJobDetailsErrorKind::ValidationException(_inner) => _inner.fmt(f),
GetThirdPartyJobDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetThirdPartyJobDetailsError {
fn code(&self) -> Option<&str> {
GetThirdPartyJobDetailsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetThirdPartyJobDetailsError {
pub fn new(kind: GetThirdPartyJobDetailsErrorKind, 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: GetThirdPartyJobDetailsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetThirdPartyJobDetailsErrorKind::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_client_token_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyJobDetailsErrorKind::InvalidClientTokenException(_)
)
}
pub fn is_invalid_job_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyJobDetailsErrorKind::InvalidJobException(_)
)
}
pub fn is_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyJobDetailsErrorKind::JobNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyJobDetailsErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for GetThirdPartyJobDetailsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetThirdPartyJobDetailsErrorKind::InvalidClientTokenException(_inner) => Some(_inner),
GetThirdPartyJobDetailsErrorKind::InvalidJobException(_inner) => Some(_inner),
GetThirdPartyJobDetailsErrorKind::JobNotFoundException(_inner) => Some(_inner),
GetThirdPartyJobDetailsErrorKind::ValidationException(_inner) => Some(_inner),
GetThirdPartyJobDetailsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidJobException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidJobException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidJobException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidJobException")?;
if let Some(inner_33) = &self.message {
{
write!(f, ": {}", inner_33)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidJobException {}
pub mod invalid_job_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidJobException {
crate::error::InvalidJobException {
message: self.message,
}
}
}
}
impl InvalidJobException {
pub fn builder() -> crate::error::invalid_job_exception::Builder {
crate::error::invalid_job_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPipelineStateError {
pub kind: GetPipelineStateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetPipelineStateError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetPipelineStateErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPipelineStateErrorKind {
PipelineNotFoundException(crate::error::PipelineNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetPipelineStateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPipelineStateErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
GetPipelineStateErrorKind::ValidationException(_inner) => _inner.fmt(f),
GetPipelineStateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPipelineStateError {
fn code(&self) -> Option<&str> {
GetPipelineStateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPipelineStateError {
pub fn new(kind: GetPipelineStateErrorKind, 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: GetPipelineStateErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPipelineStateErrorKind::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_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetPipelineStateErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
GetPipelineStateErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for GetPipelineStateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPipelineStateErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
GetPipelineStateErrorKind::ValidationException(_inner) => Some(_inner),
GetPipelineStateErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPipelineExecutionError {
pub kind: GetPipelineExecutionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetPipelineExecutionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetPipelineExecutionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPipelineExecutionErrorKind {
PipelineExecutionNotFoundException(crate::error::PipelineExecutionNotFoundException),
PipelineNotFoundException(crate::error::PipelineNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetPipelineExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPipelineExecutionErrorKind::PipelineExecutionNotFoundException(_inner) => {
_inner.fmt(f)
}
GetPipelineExecutionErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
GetPipelineExecutionErrorKind::ValidationException(_inner) => _inner.fmt(f),
GetPipelineExecutionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPipelineExecutionError {
fn code(&self) -> Option<&str> {
GetPipelineExecutionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPipelineExecutionError {
pub fn new(kind: GetPipelineExecutionErrorKind, 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: GetPipelineExecutionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPipelineExecutionErrorKind::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_pipeline_execution_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetPipelineExecutionErrorKind::PipelineExecutionNotFoundException(_)
)
}
pub fn is_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetPipelineExecutionErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
GetPipelineExecutionErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for GetPipelineExecutionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPipelineExecutionErrorKind::PipelineExecutionNotFoundException(_inner) => {
Some(_inner)
}
GetPipelineExecutionErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
GetPipelineExecutionErrorKind::ValidationException(_inner) => Some(_inner),
GetPipelineExecutionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPipelineError {
pub kind: GetPipelineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetPipelineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetPipelineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPipelineErrorKind {
PipelineNotFoundException(crate::error::PipelineNotFoundException),
PipelineVersionNotFoundException(crate::error::PipelineVersionNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetPipelineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPipelineErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
GetPipelineErrorKind::PipelineVersionNotFoundException(_inner) => _inner.fmt(f),
GetPipelineErrorKind::ValidationException(_inner) => _inner.fmt(f),
GetPipelineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPipelineError {
fn code(&self) -> Option<&str> {
GetPipelineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPipelineError {
pub fn new(kind: GetPipelineErrorKind, 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: GetPipelineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPipelineErrorKind::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_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetPipelineErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_pipeline_version_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetPipelineErrorKind::PipelineVersionNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, GetPipelineErrorKind::ValidationException(_))
}
}
impl std::error::Error for GetPipelineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPipelineErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
GetPipelineErrorKind::PipelineVersionNotFoundException(_inner) => Some(_inner),
GetPipelineErrorKind::ValidationException(_inner) => Some(_inner),
GetPipelineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PipelineVersionNotFoundException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl PipelineVersionNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PipelineVersionNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PipelineVersionNotFoundException")?;
if let Some(inner_34) = &self.message {
{
write!(f, ": {}", inner_34)?;
}
}
Ok(())
}
}
impl std::error::Error for PipelineVersionNotFoundException {}
pub mod pipeline_version_not_found_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::PipelineVersionNotFoundException {
crate::error::PipelineVersionNotFoundException {
message: self.message,
}
}
}
}
impl PipelineVersionNotFoundException {
pub fn builder() -> crate::error::pipeline_version_not_found_exception::Builder {
crate::error::pipeline_version_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetJobDetailsError {
pub kind: GetJobDetailsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetJobDetailsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetJobDetailsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetJobDetailsErrorKind {
JobNotFoundException(crate::error::JobNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetJobDetailsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetJobDetailsErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
GetJobDetailsErrorKind::ValidationException(_inner) => _inner.fmt(f),
GetJobDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetJobDetailsError {
fn code(&self) -> Option<&str> {
GetJobDetailsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetJobDetailsError {
pub fn new(kind: GetJobDetailsErrorKind, 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: GetJobDetailsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetJobDetailsErrorKind::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_job_not_found_exception(&self) -> bool {
matches!(&self.kind, GetJobDetailsErrorKind::JobNotFoundException(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, GetJobDetailsErrorKind::ValidationException(_))
}
}
impl std::error::Error for GetJobDetailsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetJobDetailsErrorKind::JobNotFoundException(_inner) => Some(_inner),
GetJobDetailsErrorKind::ValidationException(_inner) => Some(_inner),
GetJobDetailsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetActionTypeError {
pub kind: GetActionTypeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetActionTypeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetActionTypeErrorKind {
ActionTypeNotFoundException(crate::error::ActionTypeNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetActionTypeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetActionTypeErrorKind::ActionTypeNotFoundException(_inner) => _inner.fmt(f),
GetActionTypeErrorKind::ValidationException(_inner) => _inner.fmt(f),
GetActionTypeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetActionTypeError {
fn code(&self) -> Option<&str> {
GetActionTypeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetActionTypeError {
pub fn new(kind: GetActionTypeErrorKind, 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: GetActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetActionTypeErrorKind::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_action_type_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetActionTypeErrorKind::ActionTypeNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, GetActionTypeErrorKind::ValidationException(_))
}
}
impl std::error::Error for GetActionTypeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetActionTypeErrorKind::ActionTypeNotFoundException(_inner) => Some(_inner),
GetActionTypeErrorKind::ValidationException(_inner) => Some(_inner),
GetActionTypeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct EnableStageTransitionError {
pub kind: EnableStageTransitionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for EnableStageTransitionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: EnableStageTransitionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum EnableStageTransitionErrorKind {
PipelineNotFoundException(crate::error::PipelineNotFoundException),
StageNotFoundException(crate::error::StageNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for EnableStageTransitionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
EnableStageTransitionErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
EnableStageTransitionErrorKind::StageNotFoundException(_inner) => _inner.fmt(f),
EnableStageTransitionErrorKind::ValidationException(_inner) => _inner.fmt(f),
EnableStageTransitionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for EnableStageTransitionError {
fn code(&self) -> Option<&str> {
EnableStageTransitionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl EnableStageTransitionError {
pub fn new(kind: EnableStageTransitionErrorKind, 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: EnableStageTransitionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: EnableStageTransitionErrorKind::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_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
EnableStageTransitionErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_stage_not_found_exception(&self) -> bool {
matches!(
&self.kind,
EnableStageTransitionErrorKind::StageNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
EnableStageTransitionErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for EnableStageTransitionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
EnableStageTransitionErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
EnableStageTransitionErrorKind::StageNotFoundException(_inner) => Some(_inner),
EnableStageTransitionErrorKind::ValidationException(_inner) => Some(_inner),
EnableStageTransitionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisableStageTransitionError {
pub kind: DisableStageTransitionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisableStageTransitionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisableStageTransitionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisableStageTransitionErrorKind {
PipelineNotFoundException(crate::error::PipelineNotFoundException),
StageNotFoundException(crate::error::StageNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisableStageTransitionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisableStageTransitionErrorKind::PipelineNotFoundException(_inner) => _inner.fmt(f),
DisableStageTransitionErrorKind::StageNotFoundException(_inner) => _inner.fmt(f),
DisableStageTransitionErrorKind::ValidationException(_inner) => _inner.fmt(f),
DisableStageTransitionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisableStageTransitionError {
fn code(&self) -> Option<&str> {
DisableStageTransitionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisableStageTransitionError {
pub fn new(kind: DisableStageTransitionErrorKind, 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: DisableStageTransitionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisableStageTransitionErrorKind::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_pipeline_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DisableStageTransitionErrorKind::PipelineNotFoundException(_)
)
}
pub fn is_stage_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DisableStageTransitionErrorKind::StageNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
DisableStageTransitionErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for DisableStageTransitionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisableStageTransitionErrorKind::PipelineNotFoundException(_inner) => Some(_inner),
DisableStageTransitionErrorKind::StageNotFoundException(_inner) => Some(_inner),
DisableStageTransitionErrorKind::ValidationException(_inner) => Some(_inner),
DisableStageTransitionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeregisterWebhookWithThirdPartyError {
pub kind: DeregisterWebhookWithThirdPartyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeregisterWebhookWithThirdPartyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeregisterWebhookWithThirdPartyErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeregisterWebhookWithThirdPartyErrorKind {
ValidationException(crate::error::ValidationException),
WebhookNotFoundException(crate::error::WebhookNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeregisterWebhookWithThirdPartyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeregisterWebhookWithThirdPartyErrorKind::ValidationException(_inner) => _inner.fmt(f),
DeregisterWebhookWithThirdPartyErrorKind::WebhookNotFoundException(_inner) => {
_inner.fmt(f)
}
DeregisterWebhookWithThirdPartyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeregisterWebhookWithThirdPartyError {
fn code(&self) -> Option<&str> {
DeregisterWebhookWithThirdPartyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeregisterWebhookWithThirdPartyError {
pub fn new(
kind: DeregisterWebhookWithThirdPartyErrorKind,
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: DeregisterWebhookWithThirdPartyErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeregisterWebhookWithThirdPartyErrorKind::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_validation_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterWebhookWithThirdPartyErrorKind::ValidationException(_)
)
}
pub fn is_webhook_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterWebhookWithThirdPartyErrorKind::WebhookNotFoundException(_)
)
}
}
impl std::error::Error for DeregisterWebhookWithThirdPartyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeregisterWebhookWithThirdPartyErrorKind::ValidationException(_inner) => Some(_inner),
DeregisterWebhookWithThirdPartyErrorKind::WebhookNotFoundException(_inner) => {
Some(_inner)
}
DeregisterWebhookWithThirdPartyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteWebhookError {
pub kind: DeleteWebhookErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteWebhookError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteWebhookErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteWebhookErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteWebhookError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteWebhookErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
DeleteWebhookErrorKind::ValidationException(_inner) => _inner.fmt(f),
DeleteWebhookErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteWebhookError {
fn code(&self) -> Option<&str> {
DeleteWebhookError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteWebhookError {
pub fn new(kind: DeleteWebhookErrorKind, 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: DeleteWebhookErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteWebhookErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
DeleteWebhookErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, DeleteWebhookErrorKind::ValidationException(_))
}
}
impl std::error::Error for DeleteWebhookError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteWebhookErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
DeleteWebhookErrorKind::ValidationException(_inner) => Some(_inner),
DeleteWebhookErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeletePipelineError {
pub kind: DeletePipelineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeletePipelineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeletePipelineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeletePipelineErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeletePipelineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeletePipelineErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
DeletePipelineErrorKind::ValidationException(_inner) => _inner.fmt(f),
DeletePipelineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeletePipelineError {
fn code(&self) -> Option<&str> {
DeletePipelineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeletePipelineError {
pub fn new(kind: DeletePipelineErrorKind, 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: DeletePipelineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeletePipelineErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
DeletePipelineErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, DeletePipelineErrorKind::ValidationException(_))
}
}
impl std::error::Error for DeletePipelineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeletePipelineErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
DeletePipelineErrorKind::ValidationException(_inner) => Some(_inner),
DeletePipelineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteCustomActionTypeError {
pub kind: DeleteCustomActionTypeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteCustomActionTypeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteCustomActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteCustomActionTypeErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteCustomActionTypeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteCustomActionTypeErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
DeleteCustomActionTypeErrorKind::ValidationException(_inner) => _inner.fmt(f),
DeleteCustomActionTypeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteCustomActionTypeError {
fn code(&self) -> Option<&str> {
DeleteCustomActionTypeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteCustomActionTypeError {
pub fn new(kind: DeleteCustomActionTypeErrorKind, 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: DeleteCustomActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteCustomActionTypeErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomActionTypeErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCustomActionTypeErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for DeleteCustomActionTypeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteCustomActionTypeErrorKind::ConcurrentModificationException(_inner) => {
Some(_inner)
}
DeleteCustomActionTypeErrorKind::ValidationException(_inner) => Some(_inner),
DeleteCustomActionTypeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreatePipelineError {
pub kind: CreatePipelineErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreatePipelineError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreatePipelineErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreatePipelineErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidActionDeclarationException(crate::error::InvalidActionDeclarationException),
InvalidBlockerDeclarationException(crate::error::InvalidBlockerDeclarationException),
InvalidStageDeclarationException(crate::error::InvalidStageDeclarationException),
InvalidStructureException(crate::error::InvalidStructureException),
InvalidTagsException(crate::error::InvalidTagsException),
LimitExceededException(crate::error::LimitExceededException),
PipelineNameInUseException(crate::error::PipelineNameInUseException),
TooManyTagsException(crate::error::TooManyTagsException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreatePipelineError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreatePipelineErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::InvalidActionDeclarationException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::InvalidBlockerDeclarationException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::InvalidStageDeclarationException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::InvalidStructureException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::InvalidTagsException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::PipelineNameInUseException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::ValidationException(_inner) => _inner.fmt(f),
CreatePipelineErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreatePipelineError {
fn code(&self) -> Option<&str> {
CreatePipelineError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreatePipelineError {
pub fn new(kind: CreatePipelineErrorKind, 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: CreatePipelineErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreatePipelineErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
CreatePipelineErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_action_declaration_exception(&self) -> bool {
matches!(
&self.kind,
CreatePipelineErrorKind::InvalidActionDeclarationException(_)
)
}
pub fn is_invalid_blocker_declaration_exception(&self) -> bool {
matches!(
&self.kind,
CreatePipelineErrorKind::InvalidBlockerDeclarationException(_)
)
}
pub fn is_invalid_stage_declaration_exception(&self) -> bool {
matches!(
&self.kind,
CreatePipelineErrorKind::InvalidStageDeclarationException(_)
)
}
pub fn is_invalid_structure_exception(&self) -> bool {
matches!(
&self.kind,
CreatePipelineErrorKind::InvalidStructureException(_)
)
}
pub fn is_invalid_tags_exception(&self) -> bool {
matches!(&self.kind, CreatePipelineErrorKind::InvalidTagsException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreatePipelineErrorKind::LimitExceededException(_)
)
}
pub fn is_pipeline_name_in_use_exception(&self) -> bool {
matches!(
&self.kind,
CreatePipelineErrorKind::PipelineNameInUseException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, CreatePipelineErrorKind::TooManyTagsException(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, CreatePipelineErrorKind::ValidationException(_))
}
}
impl std::error::Error for CreatePipelineError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreatePipelineErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
CreatePipelineErrorKind::InvalidActionDeclarationException(_inner) => Some(_inner),
CreatePipelineErrorKind::InvalidBlockerDeclarationException(_inner) => Some(_inner),
CreatePipelineErrorKind::InvalidStageDeclarationException(_inner) => Some(_inner),
CreatePipelineErrorKind::InvalidStructureException(_inner) => Some(_inner),
CreatePipelineErrorKind::InvalidTagsException(_inner) => Some(_inner),
CreatePipelineErrorKind::LimitExceededException(_inner) => Some(_inner),
CreatePipelineErrorKind::PipelineNameInUseException(_inner) => Some(_inner),
CreatePipelineErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreatePipelineErrorKind::ValidationException(_inner) => Some(_inner),
CreatePipelineErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PipelineNameInUseException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl PipelineNameInUseException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PipelineNameInUseException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PipelineNameInUseException")?;
if let Some(inner_35) = &self.message {
{
write!(f, ": {}", inner_35)?;
}
}
Ok(())
}
}
impl std::error::Error for PipelineNameInUseException {}
pub mod pipeline_name_in_use_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::PipelineNameInUseException {
crate::error::PipelineNameInUseException {
message: self.message,
}
}
}
}
impl PipelineNameInUseException {
pub fn builder() -> crate::error::pipeline_name_in_use_exception::Builder {
crate::error::pipeline_name_in_use_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCustomActionTypeError {
pub kind: CreateCustomActionTypeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateCustomActionTypeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateCustomActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCustomActionTypeErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidTagsException(crate::error::InvalidTagsException),
LimitExceededException(crate::error::LimitExceededException),
TooManyTagsException(crate::error::TooManyTagsException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateCustomActionTypeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCustomActionTypeErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
CreateCustomActionTypeErrorKind::InvalidTagsException(_inner) => _inner.fmt(f),
CreateCustomActionTypeErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateCustomActionTypeErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateCustomActionTypeErrorKind::ValidationException(_inner) => _inner.fmt(f),
CreateCustomActionTypeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCustomActionTypeError {
fn code(&self) -> Option<&str> {
CreateCustomActionTypeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCustomActionTypeError {
pub fn new(kind: CreateCustomActionTypeErrorKind, 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: CreateCustomActionTypeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCustomActionTypeErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomActionTypeErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_tags_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomActionTypeErrorKind::InvalidTagsException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomActionTypeErrorKind::LimitExceededException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomActionTypeErrorKind::TooManyTagsException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
CreateCustomActionTypeErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for CreateCustomActionTypeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCustomActionTypeErrorKind::ConcurrentModificationException(_inner) => {
Some(_inner)
}
CreateCustomActionTypeErrorKind::InvalidTagsException(_inner) => Some(_inner),
CreateCustomActionTypeErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateCustomActionTypeErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateCustomActionTypeErrorKind::ValidationException(_inner) => Some(_inner),
CreateCustomActionTypeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AcknowledgeThirdPartyJobError {
pub kind: AcknowledgeThirdPartyJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AcknowledgeThirdPartyJobError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AcknowledgeThirdPartyJobErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AcknowledgeThirdPartyJobErrorKind {
InvalidClientTokenException(crate::error::InvalidClientTokenException),
InvalidNonceException(crate::error::InvalidNonceException),
JobNotFoundException(crate::error::JobNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AcknowledgeThirdPartyJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AcknowledgeThirdPartyJobErrorKind::InvalidClientTokenException(_inner) => _inner.fmt(f),
AcknowledgeThirdPartyJobErrorKind::InvalidNonceException(_inner) => _inner.fmt(f),
AcknowledgeThirdPartyJobErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
AcknowledgeThirdPartyJobErrorKind::ValidationException(_inner) => _inner.fmt(f),
AcknowledgeThirdPartyJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AcknowledgeThirdPartyJobError {
fn code(&self) -> Option<&str> {
AcknowledgeThirdPartyJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AcknowledgeThirdPartyJobError {
pub fn new(kind: AcknowledgeThirdPartyJobErrorKind, 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: AcknowledgeThirdPartyJobErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AcknowledgeThirdPartyJobErrorKind::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_client_token_exception(&self) -> bool {
matches!(
&self.kind,
AcknowledgeThirdPartyJobErrorKind::InvalidClientTokenException(_)
)
}
pub fn is_invalid_nonce_exception(&self) -> bool {
matches!(
&self.kind,
AcknowledgeThirdPartyJobErrorKind::InvalidNonceException(_)
)
}
pub fn is_job_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AcknowledgeThirdPartyJobErrorKind::JobNotFoundException(_)
)
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
AcknowledgeThirdPartyJobErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for AcknowledgeThirdPartyJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AcknowledgeThirdPartyJobErrorKind::InvalidClientTokenException(_inner) => Some(_inner),
AcknowledgeThirdPartyJobErrorKind::InvalidNonceException(_inner) => Some(_inner),
AcknowledgeThirdPartyJobErrorKind::JobNotFoundException(_inner) => Some(_inner),
AcknowledgeThirdPartyJobErrorKind::ValidationException(_inner) => Some(_inner),
AcknowledgeThirdPartyJobErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidNonceException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidNonceException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidNonceException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidNonceException")?;
if let Some(inner_36) = &self.message {
{
write!(f, ": {}", inner_36)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidNonceException {}
pub mod invalid_nonce_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>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidNonceException {
crate::error::InvalidNonceException {
message: self.message,
}
}
}
}
impl InvalidNonceException {
pub fn builder() -> crate::error::invalid_nonce_exception::Builder {
crate::error::invalid_nonce_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AcknowledgeJobError {
pub kind: AcknowledgeJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AcknowledgeJobError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AcknowledgeJobErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AcknowledgeJobErrorKind {
InvalidNonceException(crate::error::InvalidNonceException),
JobNotFoundException(crate::error::JobNotFoundException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AcknowledgeJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AcknowledgeJobErrorKind::InvalidNonceException(_inner) => _inner.fmt(f),
AcknowledgeJobErrorKind::JobNotFoundException(_inner) => _inner.fmt(f),
AcknowledgeJobErrorKind::ValidationException(_inner) => _inner.fmt(f),
AcknowledgeJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AcknowledgeJobError {
fn code(&self) -> Option<&str> {
AcknowledgeJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AcknowledgeJobError {
pub fn new(kind: AcknowledgeJobErrorKind, 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: AcknowledgeJobErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AcknowledgeJobErrorKind::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_nonce_exception(&self) -> bool {
matches!(
&self.kind,
AcknowledgeJobErrorKind::InvalidNonceException(_)
)
}
pub fn is_job_not_found_exception(&self) -> bool {
matches!(&self.kind, AcknowledgeJobErrorKind::JobNotFoundException(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, AcknowledgeJobErrorKind::ValidationException(_))
}
}
impl std::error::Error for AcknowledgeJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AcknowledgeJobErrorKind::InvalidNonceException(_inner) => Some(_inner),
AcknowledgeJobErrorKind::JobNotFoundException(_inner) => Some(_inner),
AcknowledgeJobErrorKind::ValidationException(_inner) => Some(_inner),
AcknowledgeJobErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[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 _)
}
}