#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateWebhookError {
pub kind: UpdateWebhookErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateWebhookError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateWebhookErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateWebhookErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateWebhookError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateWebhookErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UpdateWebhookErrorKind::DependentServiceFailureException(_inner) => _inner.fmt(f),
UpdateWebhookErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
UpdateWebhookErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateWebhookErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateWebhookErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateWebhookError {
fn code(&self) -> Option<&str> {
UpdateWebhookError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateWebhookError {
pub fn new(kind: UpdateWebhookErrorKind, 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: UpdateWebhookErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateWebhookErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, UpdateWebhookErrorKind::BadRequestException(_))
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateWebhookErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateWebhookErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateWebhookErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, UpdateWebhookErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for UpdateWebhookError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateWebhookErrorKind::BadRequestException(_inner) => Some(_inner),
UpdateWebhookErrorKind::DependentServiceFailureException(_inner) => Some(_inner),
UpdateWebhookErrorKind::InternalFailureException(_inner) => Some(_inner),
UpdateWebhookErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateWebhookErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateWebhookErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnauthorizedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UnauthorizedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnauthorizedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnauthorizedException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for UnauthorizedException {}
pub mod unauthorized_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::UnauthorizedException {
crate::error::UnauthorizedException {
message: self.message,
}
}
}
}
impl UnauthorizedException {
pub fn builder() -> crate::error::unauthorized_exception::Builder {
crate::error::unauthorized_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl NotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotFoundException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for NotFoundException {}
pub mod 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::NotFoundException {
crate::error::NotFoundException {
message: self.message,
}
}
}
}
impl NotFoundException {
pub fn builder() -> crate::error::not_found_exception::Builder {
crate::error::not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InternalFailureException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InternalFailureException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalFailureException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for InternalFailureException {}
pub mod internal_failure_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::InternalFailureException {
crate::error::InternalFailureException {
message: self.message,
}
}
}
}
impl InternalFailureException {
pub fn builder() -> crate::error::internal_failure_exception::Builder {
crate::error::internal_failure_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DependentServiceFailureException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DependentServiceFailureException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DependentServiceFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DependentServiceFailureException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for DependentServiceFailureException {}
pub mod dependent_service_failure_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::DependentServiceFailureException {
crate::error::DependentServiceFailureException {
message: self.message,
}
}
}
}
impl DependentServiceFailureException {
pub fn builder() -> crate::error::dependent_service_failure_exception::Builder {
crate::error::dependent_service_failure_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BadRequestException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl BadRequestException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for BadRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BadRequestException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for BadRequestException {}
pub mod bad_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::BadRequestException {
crate::error::BadRequestException {
message: self.message,
}
}
}
}
impl BadRequestException {
pub fn builder() -> crate::error::bad_request_exception::Builder {
crate::error::bad_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateDomainAssociationError {
pub kind: UpdateDomainAssociationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateDomainAssociationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDomainAssociationErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateDomainAssociationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDomainAssociationErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UpdateDomainAssociationErrorKind::DependentServiceFailureException(_inner) => {
_inner.fmt(f)
}
UpdateDomainAssociationErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
UpdateDomainAssociationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateDomainAssociationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateDomainAssociationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDomainAssociationError {
fn code(&self) -> Option<&str> {
UpdateDomainAssociationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDomainAssociationError {
pub fn new(kind: UpdateDomainAssociationErrorKind, 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: UpdateDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDomainAssociationErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDomainAssociationErrorKind::BadRequestException(_)
)
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDomainAssociationErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDomainAssociationErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDomainAssociationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDomainAssociationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateDomainAssociationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDomainAssociationErrorKind::BadRequestException(_inner) => Some(_inner),
UpdateDomainAssociationErrorKind::DependentServiceFailureException(_inner) => {
Some(_inner)
}
UpdateDomainAssociationErrorKind::InternalFailureException(_inner) => Some(_inner),
UpdateDomainAssociationErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateDomainAssociationErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateDomainAssociationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateBranchError {
pub kind: UpdateBranchErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateBranchError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateBranchErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateBranchErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateBranchError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateBranchErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UpdateBranchErrorKind::DependentServiceFailureException(_inner) => _inner.fmt(f),
UpdateBranchErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
UpdateBranchErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateBranchErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateBranchErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateBranchError {
fn code(&self) -> Option<&str> {
UpdateBranchError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateBranchError {
pub fn new(kind: UpdateBranchErrorKind, 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: UpdateBranchErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateBranchErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, UpdateBranchErrorKind::BadRequestException(_))
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateBranchErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
UpdateBranchErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateBranchErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, UpdateBranchErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for UpdateBranchError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateBranchErrorKind::BadRequestException(_inner) => Some(_inner),
UpdateBranchErrorKind::DependentServiceFailureException(_inner) => Some(_inner),
UpdateBranchErrorKind::InternalFailureException(_inner) => Some(_inner),
UpdateBranchErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateBranchErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateBranchErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateAppError {
pub kind: UpdateAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateAppError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateAppErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateAppErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateAppErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateAppError {
fn code(&self) -> Option<&str> {
UpdateAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateAppError {
pub fn new(kind: UpdateAppErrorKind, 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: UpdateAppErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateAppErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, UpdateAppErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, UpdateAppErrorKind::InternalFailureException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateAppErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, UpdateAppErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for UpdateAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateAppErrorKind::BadRequestException(_inner) => Some(_inner),
UpdateAppErrorKind::InternalFailureException(_inner) => Some(_inner),
UpdateAppErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateAppErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateAppErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[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 {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
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::BadRequestException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceNotFoundException(_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_bad_request_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InternalFailureException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::BadRequestException(_inner) => Some(_inner),
UntagResourceErrorKind::InternalFailureException(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub code: std::option::Option<std::string::String>,
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceNotFoundException {
#[allow(missing_docs)] pub fn code(&self) -> std::option::Option<&str> {
self.code.as_deref()
}
}
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_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
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) code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn code(mut self, input: impl Into<std::string::String>) -> Self {
self.code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.code = input;
self
}
#[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::ResourceNotFoundException {
crate::error::ResourceNotFoundException {
code: self.code,
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::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 {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
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::BadRequestException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceNotFoundException(_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_bad_request_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::InternalFailureException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::BadRequestException(_inner) => Some(_inner),
TagResourceErrorKind::InternalFailureException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopJobError {
pub kind: StopJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopJobError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopJobErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopJobErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopJobErrorKind::BadRequestException(_inner) => _inner.fmt(f),
StopJobErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
StopJobErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
StopJobErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StopJobErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
StopJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopJobError {
fn code(&self) -> Option<&str> {
StopJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopJobError {
pub fn new(kind: StopJobErrorKind, 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: StopJobErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopJobErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, StopJobErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, StopJobErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, StopJobErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, StopJobErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, StopJobErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for StopJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopJobErrorKind::BadRequestException(_inner) => Some(_inner),
StopJobErrorKind::InternalFailureException(_inner) => Some(_inner),
StopJobErrorKind::LimitExceededException(_inner) => Some(_inner),
StopJobErrorKind::NotFoundException(_inner) => Some(_inner),
StopJobErrorKind::UnauthorizedException(_inner) => Some(_inner),
StopJobErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LimitExceededException {
#[allow(missing_docs)] #[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_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
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 {
#[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::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::fmt::Debug)]
pub struct StartJobError {
pub kind: StartJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartJobError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartJobErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartJobErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartJobErrorKind::BadRequestException(_inner) => _inner.fmt(f),
StartJobErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
StartJobErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
StartJobErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StartJobErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
StartJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartJobError {
fn code(&self) -> Option<&str> {
StartJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartJobError {
pub fn new(kind: StartJobErrorKind, 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: StartJobErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartJobErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, StartJobErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, StartJobErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, StartJobErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, StartJobErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, StartJobErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for StartJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartJobErrorKind::BadRequestException(_inner) => Some(_inner),
StartJobErrorKind::InternalFailureException(_inner) => Some(_inner),
StartJobErrorKind::LimitExceededException(_inner) => Some(_inner),
StartJobErrorKind::NotFoundException(_inner) => Some(_inner),
StartJobErrorKind::UnauthorizedException(_inner) => Some(_inner),
StartJobErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartDeploymentError {
pub kind: StartDeploymentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartDeploymentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartDeploymentErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartDeploymentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartDeploymentErrorKind::BadRequestException(_inner) => _inner.fmt(f),
StartDeploymentErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
StartDeploymentErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
StartDeploymentErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StartDeploymentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
StartDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartDeploymentError {
fn code(&self) -> Option<&str> {
StartDeploymentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartDeploymentError {
pub fn new(kind: StartDeploymentErrorKind, 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: StartDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartDeploymentErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, StartDeploymentErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
StartDeploymentErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
StartDeploymentErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, StartDeploymentErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
StartDeploymentErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for StartDeploymentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartDeploymentErrorKind::BadRequestException(_inner) => Some(_inner),
StartDeploymentErrorKind::InternalFailureException(_inner) => Some(_inner),
StartDeploymentErrorKind::LimitExceededException(_inner) => Some(_inner),
StartDeploymentErrorKind::NotFoundException(_inner) => Some(_inner),
StartDeploymentErrorKind::UnauthorizedException(_inner) => Some(_inner),
StartDeploymentErrorKind::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 {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
UnauthorizedException(crate::error::UnauthorizedException),
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::BadRequestException(_inner) => _inner.fmt(f),
ListWebhooksErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListWebhooksErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
ListWebhooksErrorKind::UnauthorizedException(_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_bad_request_exception(&self) -> bool {
matches!(&self.kind, ListWebhooksErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListWebhooksErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, ListWebhooksErrorKind::LimitExceededException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListWebhooksErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListWebhooksError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListWebhooksErrorKind::BadRequestException(_inner) => Some(_inner),
ListWebhooksErrorKind::InternalFailureException(_inner) => Some(_inner),
ListWebhooksErrorKind::LimitExceededException(_inner) => Some(_inner),
ListWebhooksErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListWebhooksErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
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::BadRequestException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceNotFoundException(_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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalFailureException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::BadRequestException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InternalFailureException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListJobsError {
pub kind: ListJobsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListJobsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListJobsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListJobsErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListJobsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListJobsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListJobsErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListJobsErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
ListJobsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListJobsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListJobsError {
fn code(&self) -> Option<&str> {
ListJobsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListJobsError {
pub fn new(kind: ListJobsErrorKind, 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: ListJobsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListJobsErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, ListJobsErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, ListJobsErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, ListJobsErrorKind::LimitExceededException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListJobsErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListJobsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListJobsErrorKind::BadRequestException(_inner) => Some(_inner),
ListJobsErrorKind::InternalFailureException(_inner) => Some(_inner),
ListJobsErrorKind::LimitExceededException(_inner) => Some(_inner),
ListJobsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListJobsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDomainAssociationsError {
pub kind: ListDomainAssociationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDomainAssociationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDomainAssociationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDomainAssociationsErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDomainAssociationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDomainAssociationsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListDomainAssociationsErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListDomainAssociationsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListDomainAssociationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDomainAssociationsError {
fn code(&self) -> Option<&str> {
ListDomainAssociationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDomainAssociationsError {
pub fn new(kind: ListDomainAssociationsErrorKind, 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: ListDomainAssociationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDomainAssociationsErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
ListDomainAssociationsErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListDomainAssociationsErrorKind::InternalFailureException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
ListDomainAssociationsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for ListDomainAssociationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDomainAssociationsErrorKind::BadRequestException(_inner) => Some(_inner),
ListDomainAssociationsErrorKind::InternalFailureException(_inner) => Some(_inner),
ListDomainAssociationsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListDomainAssociationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListBranchesError {
pub kind: ListBranchesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListBranchesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListBranchesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListBranchesErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListBranchesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListBranchesErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListBranchesErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListBranchesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListBranchesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListBranchesError {
fn code(&self) -> Option<&str> {
ListBranchesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListBranchesError {
pub fn new(kind: ListBranchesErrorKind, 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: ListBranchesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListBranchesErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, ListBranchesErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListBranchesErrorKind::InternalFailureException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListBranchesErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListBranchesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListBranchesErrorKind::BadRequestException(_inner) => Some(_inner),
ListBranchesErrorKind::InternalFailureException(_inner) => Some(_inner),
ListBranchesErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListBranchesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListBackendEnvironmentsError {
pub kind: ListBackendEnvironmentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListBackendEnvironmentsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListBackendEnvironmentsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListBackendEnvironmentsErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListBackendEnvironmentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListBackendEnvironmentsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListBackendEnvironmentsErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListBackendEnvironmentsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListBackendEnvironmentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListBackendEnvironmentsError {
fn code(&self) -> Option<&str> {
ListBackendEnvironmentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListBackendEnvironmentsError {
pub fn new(kind: ListBackendEnvironmentsErrorKind, 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: ListBackendEnvironmentsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListBackendEnvironmentsErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
ListBackendEnvironmentsErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListBackendEnvironmentsErrorKind::InternalFailureException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
ListBackendEnvironmentsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for ListBackendEnvironmentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListBackendEnvironmentsErrorKind::BadRequestException(_inner) => Some(_inner),
ListBackendEnvironmentsErrorKind::InternalFailureException(_inner) => Some(_inner),
ListBackendEnvironmentsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListBackendEnvironmentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListArtifactsError {
pub kind: ListArtifactsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListArtifactsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListArtifactsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListArtifactsErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListArtifactsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListArtifactsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListArtifactsErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListArtifactsErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
ListArtifactsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListArtifactsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListArtifactsError {
fn code(&self) -> Option<&str> {
ListArtifactsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListArtifactsError {
pub fn new(kind: ListArtifactsErrorKind, 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: ListArtifactsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListArtifactsErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, ListArtifactsErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
ListArtifactsErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
ListArtifactsErrorKind::LimitExceededException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListArtifactsErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListArtifactsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListArtifactsErrorKind::BadRequestException(_inner) => Some(_inner),
ListArtifactsErrorKind::InternalFailureException(_inner) => Some(_inner),
ListArtifactsErrorKind::LimitExceededException(_inner) => Some(_inner),
ListArtifactsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListArtifactsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListAppsError {
pub kind: ListAppsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListAppsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListAppsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListAppsErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListAppsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListAppsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListAppsErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
ListAppsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListAppsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListAppsError {
fn code(&self) -> Option<&str> {
ListAppsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListAppsError {
pub fn new(kind: ListAppsErrorKind, 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: ListAppsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListAppsErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, ListAppsErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, ListAppsErrorKind::InternalFailureException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListAppsErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListAppsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListAppsErrorKind::BadRequestException(_inner) => Some(_inner),
ListAppsErrorKind::InternalFailureException(_inner) => Some(_inner),
ListAppsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListAppsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetWebhookError {
pub kind: GetWebhookErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetWebhookError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetWebhookErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetWebhookErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetWebhookError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetWebhookErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetWebhookErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetWebhookErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
GetWebhookErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetWebhookErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetWebhookErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetWebhookError {
fn code(&self) -> Option<&str> {
GetWebhookError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetWebhookError {
pub fn new(kind: GetWebhookErrorKind, 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: GetWebhookErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetWebhookErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, GetWebhookErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, GetWebhookErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, GetWebhookErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetWebhookErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, GetWebhookErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for GetWebhookError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetWebhookErrorKind::BadRequestException(_inner) => Some(_inner),
GetWebhookErrorKind::InternalFailureException(_inner) => Some(_inner),
GetWebhookErrorKind::LimitExceededException(_inner) => Some(_inner),
GetWebhookErrorKind::NotFoundException(_inner) => Some(_inner),
GetWebhookErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetWebhookErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetJobError {
pub kind: GetJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetJobError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetJobErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetJobErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetJobErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetJobErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetJobErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
GetJobErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetJobErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetJobError {
fn code(&self) -> Option<&str> {
GetJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetJobError {
pub fn new(kind: GetJobErrorKind, 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: GetJobErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetJobErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, GetJobErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, GetJobErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, GetJobErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetJobErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, GetJobErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for GetJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetJobErrorKind::BadRequestException(_inner) => Some(_inner),
GetJobErrorKind::InternalFailureException(_inner) => Some(_inner),
GetJobErrorKind::LimitExceededException(_inner) => Some(_inner),
GetJobErrorKind::NotFoundException(_inner) => Some(_inner),
GetJobErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetJobErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDomainAssociationError {
pub kind: GetDomainAssociationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDomainAssociationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDomainAssociationErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDomainAssociationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDomainAssociationErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetDomainAssociationErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetDomainAssociationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetDomainAssociationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetDomainAssociationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDomainAssociationError {
fn code(&self) -> Option<&str> {
GetDomainAssociationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDomainAssociationError {
pub fn new(kind: GetDomainAssociationErrorKind, 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: GetDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDomainAssociationErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
GetDomainAssociationErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
GetDomainAssociationErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetDomainAssociationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GetDomainAssociationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GetDomainAssociationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDomainAssociationErrorKind::BadRequestException(_inner) => Some(_inner),
GetDomainAssociationErrorKind::InternalFailureException(_inner) => Some(_inner),
GetDomainAssociationErrorKind::NotFoundException(_inner) => Some(_inner),
GetDomainAssociationErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetDomainAssociationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetBranchError {
pub kind: GetBranchErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetBranchError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetBranchErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetBranchErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetBranchError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetBranchErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetBranchErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetBranchErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetBranchErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetBranchErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetBranchError {
fn code(&self) -> Option<&str> {
GetBranchError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetBranchError {
pub fn new(kind: GetBranchErrorKind, 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: GetBranchErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetBranchErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, GetBranchErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, GetBranchErrorKind::InternalFailureException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetBranchErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, GetBranchErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for GetBranchError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetBranchErrorKind::BadRequestException(_inner) => Some(_inner),
GetBranchErrorKind::InternalFailureException(_inner) => Some(_inner),
GetBranchErrorKind::NotFoundException(_inner) => Some(_inner),
GetBranchErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetBranchErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetBackendEnvironmentError {
pub kind: GetBackendEnvironmentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetBackendEnvironmentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetBackendEnvironmentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetBackendEnvironmentErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetBackendEnvironmentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetBackendEnvironmentErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetBackendEnvironmentErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetBackendEnvironmentErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetBackendEnvironmentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetBackendEnvironmentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetBackendEnvironmentError {
fn code(&self) -> Option<&str> {
GetBackendEnvironmentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetBackendEnvironmentError {
pub fn new(kind: GetBackendEnvironmentErrorKind, 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: GetBackendEnvironmentErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetBackendEnvironmentErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
GetBackendEnvironmentErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
GetBackendEnvironmentErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetBackendEnvironmentErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GetBackendEnvironmentErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GetBackendEnvironmentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetBackendEnvironmentErrorKind::BadRequestException(_inner) => Some(_inner),
GetBackendEnvironmentErrorKind::InternalFailureException(_inner) => Some(_inner),
GetBackendEnvironmentErrorKind::NotFoundException(_inner) => Some(_inner),
GetBackendEnvironmentErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetBackendEnvironmentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetArtifactUrlError {
pub kind: GetArtifactUrlErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetArtifactUrlError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetArtifactUrlErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetArtifactUrlErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetArtifactUrlError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetArtifactUrlErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetArtifactUrlErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetArtifactUrlErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
GetArtifactUrlErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetArtifactUrlErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetArtifactUrlErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetArtifactUrlError {
fn code(&self) -> Option<&str> {
GetArtifactUrlError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetArtifactUrlError {
pub fn new(kind: GetArtifactUrlErrorKind, 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: GetArtifactUrlErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetArtifactUrlErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, GetArtifactUrlErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
GetArtifactUrlErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
GetArtifactUrlErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetArtifactUrlErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GetArtifactUrlErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GetArtifactUrlError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetArtifactUrlErrorKind::BadRequestException(_inner) => Some(_inner),
GetArtifactUrlErrorKind::InternalFailureException(_inner) => Some(_inner),
GetArtifactUrlErrorKind::LimitExceededException(_inner) => Some(_inner),
GetArtifactUrlErrorKind::NotFoundException(_inner) => Some(_inner),
GetArtifactUrlErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetArtifactUrlErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppError {
pub kind: GetAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetAppError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetAppErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetAppErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetAppErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetAppErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppError {
fn code(&self) -> Option<&str> {
GetAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppError {
pub fn new(kind: GetAppErrorKind, 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: GetAppErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, GetAppErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, GetAppErrorKind::InternalFailureException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetAppErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, GetAppErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for GetAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppErrorKind::BadRequestException(_inner) => Some(_inner),
GetAppErrorKind::InternalFailureException(_inner) => Some(_inner),
GetAppErrorKind::NotFoundException(_inner) => Some(_inner),
GetAppErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetAppErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GenerateAccessLogsError {
pub kind: GenerateAccessLogsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GenerateAccessLogsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GenerateAccessLogsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GenerateAccessLogsErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GenerateAccessLogsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GenerateAccessLogsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GenerateAccessLogsErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GenerateAccessLogsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GenerateAccessLogsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GenerateAccessLogsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GenerateAccessLogsError {
fn code(&self) -> Option<&str> {
GenerateAccessLogsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GenerateAccessLogsError {
pub fn new(kind: GenerateAccessLogsErrorKind, 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: GenerateAccessLogsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GenerateAccessLogsErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
GenerateAccessLogsErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
GenerateAccessLogsErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GenerateAccessLogsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GenerateAccessLogsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GenerateAccessLogsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GenerateAccessLogsErrorKind::BadRequestException(_inner) => Some(_inner),
GenerateAccessLogsErrorKind::InternalFailureException(_inner) => Some(_inner),
GenerateAccessLogsErrorKind::NotFoundException(_inner) => Some(_inner),
GenerateAccessLogsErrorKind::UnauthorizedException(_inner) => Some(_inner),
GenerateAccessLogsErrorKind::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 {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
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::BadRequestException(_inner) => _inner.fmt(f),
DeleteWebhookErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
DeleteWebhookErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
DeleteWebhookErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteWebhookErrorKind::UnauthorizedException(_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_bad_request_exception(&self) -> bool {
matches!(&self.kind, DeleteWebhookErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteWebhookErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
DeleteWebhookErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteWebhookErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteWebhookErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteWebhookError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteWebhookErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteWebhookErrorKind::InternalFailureException(_inner) => Some(_inner),
DeleteWebhookErrorKind::LimitExceededException(_inner) => Some(_inner),
DeleteWebhookErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteWebhookErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteWebhookErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteJobError {
pub kind: DeleteJobErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteJobError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteJobErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteJobErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteJobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteJobErrorKind::BadRequestException(_inner) => _inner.fmt(f),
DeleteJobErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
DeleteJobErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
DeleteJobErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteJobErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteJobErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteJobError {
fn code(&self) -> Option<&str> {
DeleteJobError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteJobError {
pub fn new(kind: DeleteJobErrorKind, 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: DeleteJobErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteJobErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, DeleteJobErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, DeleteJobErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, DeleteJobErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteJobErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteJobErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteJobError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteJobErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteJobErrorKind::InternalFailureException(_inner) => Some(_inner),
DeleteJobErrorKind::LimitExceededException(_inner) => Some(_inner),
DeleteJobErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteJobErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteJobErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDomainAssociationError {
pub kind: DeleteDomainAssociationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteDomainAssociationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDomainAssociationErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteDomainAssociationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDomainAssociationErrorKind::BadRequestException(_inner) => _inner.fmt(f),
DeleteDomainAssociationErrorKind::DependentServiceFailureException(_inner) => {
_inner.fmt(f)
}
DeleteDomainAssociationErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
DeleteDomainAssociationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteDomainAssociationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteDomainAssociationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDomainAssociationError {
fn code(&self) -> Option<&str> {
DeleteDomainAssociationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDomainAssociationError {
pub fn new(kind: DeleteDomainAssociationErrorKind, 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: DeleteDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDomainAssociationErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDomainAssociationErrorKind::BadRequestException(_)
)
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDomainAssociationErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDomainAssociationErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDomainAssociationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDomainAssociationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteDomainAssociationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDomainAssociationErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteDomainAssociationErrorKind::DependentServiceFailureException(_inner) => {
Some(_inner)
}
DeleteDomainAssociationErrorKind::InternalFailureException(_inner) => Some(_inner),
DeleteDomainAssociationErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteDomainAssociationErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteDomainAssociationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteBranchError {
pub kind: DeleteBranchErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteBranchError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteBranchErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteBranchErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteBranchError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteBranchErrorKind::BadRequestException(_inner) => _inner.fmt(f),
DeleteBranchErrorKind::DependentServiceFailureException(_inner) => _inner.fmt(f),
DeleteBranchErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
DeleteBranchErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteBranchErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteBranchErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteBranchError {
fn code(&self) -> Option<&str> {
DeleteBranchError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteBranchError {
pub fn new(kind: DeleteBranchErrorKind, 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: DeleteBranchErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteBranchErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, DeleteBranchErrorKind::BadRequestException(_))
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBranchErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBranchErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteBranchErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteBranchErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteBranchError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteBranchErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteBranchErrorKind::DependentServiceFailureException(_inner) => Some(_inner),
DeleteBranchErrorKind::InternalFailureException(_inner) => Some(_inner),
DeleteBranchErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteBranchErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteBranchErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteBackendEnvironmentError {
pub kind: DeleteBackendEnvironmentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteBackendEnvironmentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteBackendEnvironmentErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteBackendEnvironmentErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteBackendEnvironmentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteBackendEnvironmentErrorKind::BadRequestException(_inner) => _inner.fmt(f),
DeleteBackendEnvironmentErrorKind::DependentServiceFailureException(_inner) => {
_inner.fmt(f)
}
DeleteBackendEnvironmentErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
DeleteBackendEnvironmentErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteBackendEnvironmentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteBackendEnvironmentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteBackendEnvironmentError {
fn code(&self) -> Option<&str> {
DeleteBackendEnvironmentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteBackendEnvironmentError {
pub fn new(kind: DeleteBackendEnvironmentErrorKind, 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: DeleteBackendEnvironmentErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteBackendEnvironmentErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBackendEnvironmentErrorKind::BadRequestException(_)
)
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBackendEnvironmentErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBackendEnvironmentErrorKind::InternalFailureException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBackendEnvironmentErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBackendEnvironmentErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteBackendEnvironmentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteBackendEnvironmentErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteBackendEnvironmentErrorKind::DependentServiceFailureException(_inner) => {
Some(_inner)
}
DeleteBackendEnvironmentErrorKind::InternalFailureException(_inner) => Some(_inner),
DeleteBackendEnvironmentErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteBackendEnvironmentErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteBackendEnvironmentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAppError {
pub kind: DeleteAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteAppError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteAppErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAppErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAppErrorKind::BadRequestException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::DependentServiceFailureException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAppError {
fn code(&self) -> Option<&str> {
DeleteAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAppError {
pub fn new(kind: DeleteAppErrorKind, 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: DeleteAppErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAppErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, DeleteAppErrorKind::BadRequestException(_))
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, DeleteAppErrorKind::InternalFailureException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteAppErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteAppErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAppErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteAppErrorKind::DependentServiceFailureException(_inner) => Some(_inner),
DeleteAppErrorKind::InternalFailureException(_inner) => Some(_inner),
DeleteAppErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteAppErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteAppErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateWebhookError {
pub kind: CreateWebhookErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateWebhookError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateWebhookErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateWebhookErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateWebhookError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateWebhookErrorKind::BadRequestException(_inner) => _inner.fmt(f),
CreateWebhookErrorKind::DependentServiceFailureException(_inner) => _inner.fmt(f),
CreateWebhookErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
CreateWebhookErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateWebhookErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateWebhookErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateWebhookErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateWebhookError {
fn code(&self) -> Option<&str> {
CreateWebhookError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateWebhookError {
pub fn new(kind: CreateWebhookErrorKind, 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: CreateWebhookErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateWebhookErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, CreateWebhookErrorKind::BadRequestException(_))
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateWebhookErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateWebhookErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateWebhookErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, CreateWebhookErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, CreateWebhookErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for CreateWebhookError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateWebhookErrorKind::BadRequestException(_inner) => Some(_inner),
CreateWebhookErrorKind::DependentServiceFailureException(_inner) => Some(_inner),
CreateWebhookErrorKind::InternalFailureException(_inner) => Some(_inner),
CreateWebhookErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateWebhookErrorKind::NotFoundException(_inner) => Some(_inner),
CreateWebhookErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateWebhookErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDomainAssociationError {
pub kind: CreateDomainAssociationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateDomainAssociationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDomainAssociationErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateDomainAssociationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDomainAssociationErrorKind::BadRequestException(_inner) => _inner.fmt(f),
CreateDomainAssociationErrorKind::DependentServiceFailureException(_inner) => {
_inner.fmt(f)
}
CreateDomainAssociationErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
CreateDomainAssociationErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateDomainAssociationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateDomainAssociationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateDomainAssociationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDomainAssociationError {
fn code(&self) -> Option<&str> {
CreateDomainAssociationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDomainAssociationError {
pub fn new(kind: CreateDomainAssociationErrorKind, 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: CreateDomainAssociationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDomainAssociationErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateDomainAssociationErrorKind::BadRequestException(_)
)
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateDomainAssociationErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateDomainAssociationErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDomainAssociationErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateDomainAssociationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateDomainAssociationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateDomainAssociationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDomainAssociationErrorKind::BadRequestException(_inner) => Some(_inner),
CreateDomainAssociationErrorKind::DependentServiceFailureException(_inner) => {
Some(_inner)
}
CreateDomainAssociationErrorKind::InternalFailureException(_inner) => Some(_inner),
CreateDomainAssociationErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateDomainAssociationErrorKind::NotFoundException(_inner) => Some(_inner),
CreateDomainAssociationErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateDomainAssociationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDeploymentError {
pub kind: CreateDeploymentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateDeploymentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDeploymentErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateDeploymentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDeploymentErrorKind::BadRequestException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDeploymentError {
fn code(&self) -> Option<&str> {
CreateDeploymentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDeploymentError {
pub fn new(kind: CreateDeploymentErrorKind, 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: CreateDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDeploymentErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::LimitExceededException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateDeploymentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDeploymentErrorKind::BadRequestException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InternalFailureException(_inner) => Some(_inner),
CreateDeploymentErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateDeploymentErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateDeploymentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateBranchError {
pub kind: CreateBranchErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateBranchError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateBranchErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateBranchErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateBranchError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateBranchErrorKind::BadRequestException(_inner) => _inner.fmt(f),
CreateBranchErrorKind::DependentServiceFailureException(_inner) => _inner.fmt(f),
CreateBranchErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
CreateBranchErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateBranchErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateBranchErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateBranchErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateBranchError {
fn code(&self) -> Option<&str> {
CreateBranchError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateBranchError {
pub fn new(kind: CreateBranchErrorKind, 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: CreateBranchErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateBranchErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, CreateBranchErrorKind::BadRequestException(_))
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateBranchErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateBranchErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, CreateBranchErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, CreateBranchErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, CreateBranchErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for CreateBranchError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateBranchErrorKind::BadRequestException(_inner) => Some(_inner),
CreateBranchErrorKind::DependentServiceFailureException(_inner) => Some(_inner),
CreateBranchErrorKind::InternalFailureException(_inner) => Some(_inner),
CreateBranchErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateBranchErrorKind::NotFoundException(_inner) => Some(_inner),
CreateBranchErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateBranchErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateBackendEnvironmentError {
pub kind: CreateBackendEnvironmentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateBackendEnvironmentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateBackendEnvironmentErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateBackendEnvironmentErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateBackendEnvironmentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateBackendEnvironmentErrorKind::BadRequestException(_inner) => _inner.fmt(f),
CreateBackendEnvironmentErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
CreateBackendEnvironmentErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateBackendEnvironmentErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateBackendEnvironmentErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateBackendEnvironmentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateBackendEnvironmentError {
fn code(&self) -> Option<&str> {
CreateBackendEnvironmentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateBackendEnvironmentError {
pub fn new(kind: CreateBackendEnvironmentErrorKind, 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: CreateBackendEnvironmentErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateBackendEnvironmentErrorKind::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_bad_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateBackendEnvironmentErrorKind::BadRequestException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateBackendEnvironmentErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateBackendEnvironmentErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateBackendEnvironmentErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateBackendEnvironmentErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateBackendEnvironmentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateBackendEnvironmentErrorKind::BadRequestException(_inner) => Some(_inner),
CreateBackendEnvironmentErrorKind::InternalFailureException(_inner) => Some(_inner),
CreateBackendEnvironmentErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateBackendEnvironmentErrorKind::NotFoundException(_inner) => Some(_inner),
CreateBackendEnvironmentErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateBackendEnvironmentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateAppError {
pub kind: CreateAppErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateAppError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateAppErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateAppErrorKind {
BadRequestException(crate::error::BadRequestException),
DependentServiceFailureException(crate::error::DependentServiceFailureException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateAppError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateAppErrorKind::BadRequestException(_inner) => _inner.fmt(f),
CreateAppErrorKind::DependentServiceFailureException(_inner) => _inner.fmt(f),
CreateAppErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
CreateAppErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateAppErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateAppErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateAppError {
fn code(&self) -> Option<&str> {
CreateAppError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateAppError {
pub fn new(kind: CreateAppErrorKind, 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: CreateAppErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateAppErrorKind::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_bad_request_exception(&self) -> bool {
matches!(&self.kind, CreateAppErrorKind::BadRequestException(_))
}
pub fn is_dependent_service_failure_exception(&self) -> bool {
matches!(
&self.kind,
CreateAppErrorKind::DependentServiceFailureException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, CreateAppErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, CreateAppErrorKind::LimitExceededException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, CreateAppErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for CreateAppError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateAppErrorKind::BadRequestException(_inner) => Some(_inner),
CreateAppErrorKind::DependentServiceFailureException(_inner) => Some(_inner),
CreateAppErrorKind::InternalFailureException(_inner) => Some(_inner),
CreateAppErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateAppErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateAppErrorKind::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 _)
}
}