#[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 {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
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::InternalErrorException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidOperationException(_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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InvalidOperationException(_)
)
}
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::InternalErrorException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidOperationException(_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 message: std::option::Option<std::string::String>,
}
impl ResourceNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFoundException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundException {}
pub mod resource_not_found_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[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 {
message: self.message,
}
}
}
}
impl ResourceNotFoundException {
pub fn builder() -> crate::error::resource_not_found_exception::Builder {
crate::error::resource_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidOperationException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidOperationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOperationException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidOperationException {}
pub mod invalid_operation_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::InvalidOperationException {
crate::error::InvalidOperationException {
message: self.message,
}
}
}
}
impl InvalidOperationException {
pub fn builder() -> crate::error::invalid_operation_exception::Builder {
crate::error::invalid_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidInputException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidInputException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidInputException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidInputException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidInputException {}
pub mod invalid_input_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::InvalidInputException {
crate::error::InvalidInputException {
message: self.message,
}
}
}
}
impl InvalidInputException {
pub fn builder() -> crate::error::invalid_input_exception::Builder {
crate::error::invalid_input_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InternalErrorException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InternalErrorException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalErrorException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for InternalErrorException {}
pub mod internal_error_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::InternalErrorException {
crate::error::InternalErrorException {
message: self.message,
}
}
}
}
impl InternalErrorException {
pub fn builder() -> crate::error::internal_error_exception::Builder {
crate::error::internal_error_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 {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
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::InternalErrorException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
TagResourceErrorKind::LimitExceededException(_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_internal_error_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::LimitExceededException(_))
}
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::InternalErrorException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidOperationException(_inner) => Some(_inner),
TagResourceErrorKind::LimitExceededException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
TagResourceErrorKind::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_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
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 PutResourceSetError {
pub kind: PutResourceSetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutResourceSetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutResourceSetErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutResourceSetErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutResourceSetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutResourceSetErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutResourceSetErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
PutResourceSetErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutResourceSetErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutResourceSetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutResourceSetError {
fn code(&self) -> Option<&str> {
PutResourceSetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutResourceSetError {
pub fn new(kind: PutResourceSetErrorKind, 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: PutResourceSetErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutResourceSetErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
PutResourceSetErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
PutResourceSetErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutResourceSetErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
PutResourceSetErrorKind::LimitExceededException(_)
)
}
}
impl std::error::Error for PutResourceSetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutResourceSetErrorKind::InternalErrorException(_inner) => Some(_inner),
PutResourceSetErrorKind::InvalidInputException(_inner) => Some(_inner),
PutResourceSetErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutResourceSetErrorKind::LimitExceededException(_inner) => Some(_inner),
PutResourceSetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutProtocolsListError {
pub kind: PutProtocolsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutProtocolsListError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutProtocolsListErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutProtocolsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutProtocolsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutProtocolsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutProtocolsListError {
fn code(&self) -> Option<&str> {
PutProtocolsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutProtocolsListError {
pub fn new(kind: PutProtocolsListErrorKind, 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: PutProtocolsListErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutProtocolsListErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::LimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for PutProtocolsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutProtocolsListErrorKind::InternalErrorException(_inner) => Some(_inner),
PutProtocolsListErrorKind::InvalidInputException(_inner) => Some(_inner),
PutProtocolsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutProtocolsListErrorKind::LimitExceededException(_inner) => Some(_inner),
PutProtocolsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutProtocolsListErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutPolicyError {
pub kind: PutPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutPolicyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutPolicyErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutPolicyErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
InvalidTypeException(crate::error::InvalidTypeException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutPolicyErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidTypeException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutPolicyError {
fn code(&self) -> Option<&str> {
PutPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutPolicyError {
pub fn new(kind: PutPolicyErrorKind, 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: PutPolicyErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutPolicyErrorKind::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_internal_error_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidOperationException(_))
}
pub fn is_invalid_type_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidTypeException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::ResourceNotFoundException(_))
}
}
impl std::error::Error for PutPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutPolicyErrorKind::InternalErrorException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidInputException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidTypeException(_inner) => Some(_inner),
PutPolicyErrorKind::LimitExceededException(_inner) => Some(_inner),
PutPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutPolicyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTypeException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTypeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTypeException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTypeException {}
pub mod invalid_type_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::InvalidTypeException {
crate::error::InvalidTypeException {
message: self.message,
}
}
}
}
impl InvalidTypeException {
pub fn builder() -> crate::error::invalid_type_exception::Builder {
crate::error::invalid_type_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutNotificationChannelError {
pub kind: PutNotificationChannelErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutNotificationChannelError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutNotificationChannelErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutNotificationChannelErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutNotificationChannelError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutNotificationChannelErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutNotificationChannelErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutNotificationChannelErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutNotificationChannelErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutNotificationChannelError {
fn code(&self) -> Option<&str> {
PutNotificationChannelError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutNotificationChannelError {
pub fn new(kind: PutNotificationChannelErrorKind, 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: PutNotificationChannelErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutNotificationChannelErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
PutNotificationChannelErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutNotificationChannelErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutNotificationChannelErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for PutNotificationChannelError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutNotificationChannelErrorKind::InternalErrorException(_inner) => Some(_inner),
PutNotificationChannelErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutNotificationChannelErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutNotificationChannelErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutAppsListError {
pub kind: PutAppsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutAppsListError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutAppsListErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutAppsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutAppsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutAppsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutAppsListError {
fn code(&self) -> Option<&str> {
PutAppsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutAppsListError {
pub fn new(kind: PutAppsListErrorKind, 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: PutAppsListErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutAppsListErrorKind::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_internal_error_exception(&self) -> bool {
matches!(&self.kind, PutAppsListErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, PutAppsListErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutAppsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PutAppsListErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutAppsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for PutAppsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutAppsListErrorKind::InternalErrorException(_inner) => Some(_inner),
PutAppsListErrorKind::InvalidInputException(_inner) => Some(_inner),
PutAppsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutAppsListErrorKind::LimitExceededException(_inner) => Some(_inner),
PutAppsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutAppsListErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListThirdPartyFirewallFirewallPoliciesError {
pub kind: ListThirdPartyFirewallFirewallPoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListThirdPartyFirewallFirewallPoliciesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListThirdPartyFirewallFirewallPoliciesErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListThirdPartyFirewallFirewallPoliciesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListThirdPartyFirewallFirewallPoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListThirdPartyFirewallFirewallPoliciesErrorKind::InternalErrorException(_inner) => {
_inner.fmt(f)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::InvalidInputException(_inner) => {
_inner.fmt(f)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::InvalidOperationException(_inner) => {
_inner.fmt(f)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListThirdPartyFirewallFirewallPoliciesError {
fn code(&self) -> Option<&str> {
ListThirdPartyFirewallFirewallPoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListThirdPartyFirewallFirewallPoliciesError {
pub fn new(
kind: ListThirdPartyFirewallFirewallPoliciesErrorKind,
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: ListThirdPartyFirewallFirewallPoliciesErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListThirdPartyFirewallFirewallPoliciesErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListThirdPartyFirewallFirewallPoliciesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
ListThirdPartyFirewallFirewallPoliciesErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListThirdPartyFirewallFirewallPoliciesErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListThirdPartyFirewallFirewallPoliciesErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListThirdPartyFirewallFirewallPoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListThirdPartyFirewallFirewallPoliciesErrorKind::InternalErrorException(_inner) => {
Some(_inner)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::InvalidInputException(_inner) => {
Some(_inner)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::InvalidOperationException(_inner) => {
Some(_inner)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
ListThirdPartyFirewallFirewallPoliciesErrorKind::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 {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
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::InternalErrorException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidOperationException(_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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidOperationException(_)
)
}
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::InternalErrorException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListResourceSetsError {
pub kind: ListResourceSetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListResourceSetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListResourceSetsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListResourceSetsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListResourceSetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListResourceSetsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListResourceSetsErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
ListResourceSetsErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListResourceSetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListResourceSetsError {
fn code(&self) -> Option<&str> {
ListResourceSetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListResourceSetsError {
pub fn new(kind: ListResourceSetsErrorKind, 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: ListResourceSetsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListResourceSetsErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListResourceSetsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
ListResourceSetsErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListResourceSetsErrorKind::InvalidOperationException(_)
)
}
}
impl std::error::Error for ListResourceSetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListResourceSetsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListResourceSetsErrorKind::InvalidInputException(_inner) => Some(_inner),
ListResourceSetsErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListResourceSetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListResourceSetResourcesError {
pub kind: ListResourceSetResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListResourceSetResourcesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListResourceSetResourcesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListResourceSetResourcesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListResourceSetResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListResourceSetResourcesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListResourceSetResourcesErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
ListResourceSetResourcesErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListResourceSetResourcesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListResourceSetResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListResourceSetResourcesError {
fn code(&self) -> Option<&str> {
ListResourceSetResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListResourceSetResourcesError {
pub fn new(kind: ListResourceSetResourcesErrorKind, 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: ListResourceSetResourcesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListResourceSetResourcesErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListResourceSetResourcesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
ListResourceSetResourcesErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListResourceSetResourcesErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListResourceSetResourcesErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListResourceSetResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListResourceSetResourcesErrorKind::InternalErrorException(_inner) => Some(_inner),
ListResourceSetResourcesErrorKind::InvalidInputException(_inner) => Some(_inner),
ListResourceSetResourcesErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListResourceSetResourcesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListResourceSetResourcesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListProtocolsListsError {
pub kind: ListProtocolsListsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListProtocolsListsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListProtocolsListsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListProtocolsListsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListProtocolsListsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListProtocolsListsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListProtocolsListsErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListProtocolsListsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListProtocolsListsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListProtocolsListsError {
fn code(&self) -> Option<&str> {
ListProtocolsListsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListProtocolsListsError {
pub fn new(kind: ListProtocolsListsErrorKind, 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: ListProtocolsListsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListProtocolsListsErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListProtocolsListsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListProtocolsListsErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListProtocolsListsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListProtocolsListsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListProtocolsListsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListProtocolsListsErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListProtocolsListsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListProtocolsListsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListPoliciesError {
pub kind: ListPoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListPoliciesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListPoliciesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListPoliciesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListPoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListPoliciesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListPoliciesError {
fn code(&self) -> Option<&str> {
ListPoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListPoliciesError {
pub fn new(kind: ListPoliciesErrorKind, 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: ListPoliciesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListPoliciesErrorKind::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_internal_error_exception(&self) -> bool {
matches!(&self.kind, ListPoliciesErrorKind::InternalErrorException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListPoliciesErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, ListPoliciesErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListPoliciesErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListPoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListPoliciesErrorKind::InternalErrorException(_inner) => Some(_inner),
ListPoliciesErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListPoliciesErrorKind::LimitExceededException(_inner) => Some(_inner),
ListPoliciesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListPoliciesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListMemberAccountsError {
pub kind: ListMemberAccountsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListMemberAccountsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListMemberAccountsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListMemberAccountsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListMemberAccountsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListMemberAccountsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListMemberAccountsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListMemberAccountsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListMemberAccountsError {
fn code(&self) -> Option<&str> {
ListMemberAccountsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListMemberAccountsError {
pub fn new(kind: ListMemberAccountsErrorKind, 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: ListMemberAccountsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListMemberAccountsErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListMemberAccountsErrorKind::InternalErrorException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListMemberAccountsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListMemberAccountsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListMemberAccountsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListMemberAccountsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListMemberAccountsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDiscoveredResourcesError {
pub kind: ListDiscoveredResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDiscoveredResourcesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDiscoveredResourcesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDiscoveredResourcesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDiscoveredResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDiscoveredResourcesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListDiscoveredResourcesErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
ListDiscoveredResourcesErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListDiscoveredResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDiscoveredResourcesError {
fn code(&self) -> Option<&str> {
ListDiscoveredResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDiscoveredResourcesError {
pub fn new(kind: ListDiscoveredResourcesErrorKind, 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: ListDiscoveredResourcesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDiscoveredResourcesErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListDiscoveredResourcesErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
ListDiscoveredResourcesErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListDiscoveredResourcesErrorKind::InvalidOperationException(_)
)
}
}
impl std::error::Error for ListDiscoveredResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDiscoveredResourcesErrorKind::InternalErrorException(_inner) => Some(_inner),
ListDiscoveredResourcesErrorKind::InvalidInputException(_inner) => Some(_inner),
ListDiscoveredResourcesErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListDiscoveredResourcesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListComplianceStatusError {
pub kind: ListComplianceStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListComplianceStatusError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListComplianceStatusErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListComplianceStatusErrorKind {
InternalErrorException(crate::error::InternalErrorException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListComplianceStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListComplianceStatusErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListComplianceStatusErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListComplianceStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListComplianceStatusError {
fn code(&self) -> Option<&str> {
ListComplianceStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListComplianceStatusError {
pub fn new(kind: ListComplianceStatusErrorKind, 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: ListComplianceStatusErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListComplianceStatusErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListComplianceStatusErrorKind::InternalErrorException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListComplianceStatusErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListComplianceStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListComplianceStatusErrorKind::InternalErrorException(_inner) => Some(_inner),
ListComplianceStatusErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListComplianceStatusErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListAppsListsError {
pub kind: ListAppsListsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListAppsListsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListAppsListsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListAppsListsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListAppsListsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListAppsListsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListAppsListsError {
fn code(&self) -> Option<&str> {
ListAppsListsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListAppsListsError {
pub fn new(kind: ListAppsListsErrorKind, 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: ListAppsListsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListAppsListsErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::LimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListAppsListsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListAppsListsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListAppsListsErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListAppsListsErrorKind::LimitExceededException(_inner) => Some(_inner),
ListAppsListsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListAppsListsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetViolationDetailsError {
pub kind: GetViolationDetailsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetViolationDetailsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetViolationDetailsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetViolationDetailsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetViolationDetailsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetViolationDetailsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetViolationDetailsErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
GetViolationDetailsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetViolationDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetViolationDetailsError {
fn code(&self) -> Option<&str> {
GetViolationDetailsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetViolationDetailsError {
pub fn new(kind: GetViolationDetailsErrorKind, 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: GetViolationDetailsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetViolationDetailsErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetViolationDetailsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetViolationDetailsErrorKind::InvalidInputException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetViolationDetailsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetViolationDetailsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetViolationDetailsErrorKind::InternalErrorException(_inner) => Some(_inner),
GetViolationDetailsErrorKind::InvalidInputException(_inner) => Some(_inner),
GetViolationDetailsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetViolationDetailsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetThirdPartyFirewallAssociationStatusError {
pub kind: GetThirdPartyFirewallAssociationStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetThirdPartyFirewallAssociationStatusError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetThirdPartyFirewallAssociationStatusErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetThirdPartyFirewallAssociationStatusErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetThirdPartyFirewallAssociationStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetThirdPartyFirewallAssociationStatusErrorKind::InternalErrorException(_inner) => {
_inner.fmt(f)
}
GetThirdPartyFirewallAssociationStatusErrorKind::InvalidInputException(_inner) => {
_inner.fmt(f)
}
GetThirdPartyFirewallAssociationStatusErrorKind::InvalidOperationException(_inner) => {
_inner.fmt(f)
}
GetThirdPartyFirewallAssociationStatusErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
GetThirdPartyFirewallAssociationStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetThirdPartyFirewallAssociationStatusError {
fn code(&self) -> Option<&str> {
GetThirdPartyFirewallAssociationStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetThirdPartyFirewallAssociationStatusError {
pub fn new(
kind: GetThirdPartyFirewallAssociationStatusErrorKind,
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: GetThirdPartyFirewallAssociationStatusErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetThirdPartyFirewallAssociationStatusErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyFirewallAssociationStatusErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyFirewallAssociationStatusErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyFirewallAssociationStatusErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetThirdPartyFirewallAssociationStatusErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetThirdPartyFirewallAssociationStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetThirdPartyFirewallAssociationStatusErrorKind::InternalErrorException(_inner) => {
Some(_inner)
}
GetThirdPartyFirewallAssociationStatusErrorKind::InvalidInputException(_inner) => {
Some(_inner)
}
GetThirdPartyFirewallAssociationStatusErrorKind::InvalidOperationException(_inner) => {
Some(_inner)
}
GetThirdPartyFirewallAssociationStatusErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
GetThirdPartyFirewallAssociationStatusErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetResourceSetError {
pub kind: GetResourceSetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetResourceSetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetResourceSetErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetResourceSetErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetResourceSetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetResourceSetErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetResourceSetErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
GetResourceSetErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetResourceSetErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetResourceSetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetResourceSetError {
fn code(&self) -> Option<&str> {
GetResourceSetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetResourceSetError {
pub fn new(kind: GetResourceSetErrorKind, 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: GetResourceSetErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetResourceSetErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceSetErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceSetErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceSetErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetResourceSetErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetResourceSetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetResourceSetErrorKind::InternalErrorException(_inner) => Some(_inner),
GetResourceSetErrorKind::InvalidInputException(_inner) => Some(_inner),
GetResourceSetErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetResourceSetErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetResourceSetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetProtocolsListError {
pub kind: GetProtocolsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetProtocolsListError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetProtocolsListErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetProtocolsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetProtocolsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetProtocolsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetProtocolsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetProtocolsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetProtocolsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetProtocolsListError {
fn code(&self) -> Option<&str> {
GetProtocolsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetProtocolsListError {
pub fn new(kind: GetProtocolsListErrorKind, 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: GetProtocolsListErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetProtocolsListErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetProtocolsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetProtocolsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetProtocolsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetProtocolsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetProtocolsListErrorKind::InternalErrorException(_inner) => Some(_inner),
GetProtocolsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetProtocolsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetProtocolsListErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetProtectionStatusError {
pub kind: GetProtectionStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetProtectionStatusError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetProtectionStatusErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetProtectionStatusErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetProtectionStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetProtectionStatusErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetProtectionStatusErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
GetProtectionStatusErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetProtectionStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetProtectionStatusError {
fn code(&self) -> Option<&str> {
GetProtectionStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetProtectionStatusError {
pub fn new(kind: GetProtectionStatusErrorKind, 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: GetProtectionStatusErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetProtectionStatusErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetProtectionStatusErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetProtectionStatusErrorKind::InvalidInputException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetProtectionStatusErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetProtectionStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetProtectionStatusErrorKind::InternalErrorException(_inner) => Some(_inner),
GetProtectionStatusErrorKind::InvalidInputException(_inner) => Some(_inner),
GetProtectionStatusErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetProtectionStatusErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPolicyError {
pub kind: GetPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetPolicyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetPolicyErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPolicyErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
InvalidTypeException(crate::error::InvalidTypeException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPolicyErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::InvalidTypeException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPolicyError {
fn code(&self) -> Option<&str> {
GetPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPolicyError {
pub fn new(kind: GetPolicyErrorKind, 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: GetPolicyErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPolicyErrorKind::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_internal_error_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InternalErrorException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InvalidOperationException(_))
}
pub fn is_invalid_type_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InvalidTypeException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::ResourceNotFoundException(_))
}
}
impl std::error::Error for GetPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPolicyErrorKind::InternalErrorException(_inner) => Some(_inner),
GetPolicyErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetPolicyErrorKind::InvalidTypeException(_inner) => Some(_inner),
GetPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetPolicyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetNotificationChannelError {
pub kind: GetNotificationChannelErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetNotificationChannelError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetNotificationChannelErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetNotificationChannelErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetNotificationChannelError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetNotificationChannelErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetNotificationChannelErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetNotificationChannelErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetNotificationChannelErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetNotificationChannelError {
fn code(&self) -> Option<&str> {
GetNotificationChannelError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetNotificationChannelError {
pub fn new(kind: GetNotificationChannelErrorKind, 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: GetNotificationChannelErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetNotificationChannelErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetNotificationChannelErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetNotificationChannelErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetNotificationChannelErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetNotificationChannelError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetNotificationChannelErrorKind::InternalErrorException(_inner) => Some(_inner),
GetNotificationChannelErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetNotificationChannelErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetNotificationChannelErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetComplianceDetailError {
pub kind: GetComplianceDetailErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetComplianceDetailError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetComplianceDetailErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetComplianceDetailErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetComplianceDetailError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetComplianceDetailErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetComplianceDetailError {
fn code(&self) -> Option<&str> {
GetComplianceDetailError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetComplianceDetailError {
pub fn new(kind: GetComplianceDetailErrorKind, 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: GetComplianceDetailErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetComplianceDetailErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetComplianceDetailError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetComplianceDetailErrorKind::InternalErrorException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::InvalidInputException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppsListError {
pub kind: GetAppsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetAppsListError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetAppsListErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetAppsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetAppsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetAppsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetAppsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppsListError {
fn code(&self) -> Option<&str> {
GetAppsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppsListError {
pub fn new(kind: GetAppsListErrorKind, 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: GetAppsListErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppsListErrorKind::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_internal_error_exception(&self) -> bool {
matches!(&self.kind, GetAppsListErrorKind::InternalErrorException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAppsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetAppsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetAppsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppsListErrorKind::InternalErrorException(_inner) => Some(_inner),
GetAppsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetAppsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetAppsListErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAdminAccountError {
pub kind: GetAdminAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetAdminAccountError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetAdminAccountErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAdminAccountErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetAdminAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAdminAccountErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetAdminAccountErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetAdminAccountErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetAdminAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAdminAccountError {
fn code(&self) -> Option<&str> {
GetAdminAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAdminAccountError {
pub fn new(kind: GetAdminAccountErrorKind, 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: GetAdminAccountErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAdminAccountErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetAdminAccountErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAdminAccountErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetAdminAccountErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetAdminAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAdminAccountErrorKind::InternalErrorException(_inner) => Some(_inner),
GetAdminAccountErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetAdminAccountErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetAdminAccountErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisassociateThirdPartyFirewallError {
pub kind: DisassociateThirdPartyFirewallErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisassociateThirdPartyFirewallError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisassociateThirdPartyFirewallErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisassociateThirdPartyFirewallErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisassociateThirdPartyFirewallError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisassociateThirdPartyFirewallErrorKind::InternalErrorException(_inner) => {
_inner.fmt(f)
}
DisassociateThirdPartyFirewallErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
DisassociateThirdPartyFirewallErrorKind::InvalidOperationException(_inner) => {
_inner.fmt(f)
}
DisassociateThirdPartyFirewallErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
DisassociateThirdPartyFirewallErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisassociateThirdPartyFirewallError {
fn code(&self) -> Option<&str> {
DisassociateThirdPartyFirewallError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisassociateThirdPartyFirewallError {
pub fn new(
kind: DisassociateThirdPartyFirewallErrorKind,
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: DisassociateThirdPartyFirewallErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisassociateThirdPartyFirewallErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateThirdPartyFirewallErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateThirdPartyFirewallErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateThirdPartyFirewallErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateThirdPartyFirewallErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DisassociateThirdPartyFirewallError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisassociateThirdPartyFirewallErrorKind::InternalErrorException(_inner) => Some(_inner),
DisassociateThirdPartyFirewallErrorKind::InvalidInputException(_inner) => Some(_inner),
DisassociateThirdPartyFirewallErrorKind::InvalidOperationException(_inner) => {
Some(_inner)
}
DisassociateThirdPartyFirewallErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
DisassociateThirdPartyFirewallErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisassociateAdminAccountError {
pub kind: DisassociateAdminAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisassociateAdminAccountError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisassociateAdminAccountErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisassociateAdminAccountErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisassociateAdminAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisassociateAdminAccountErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DisassociateAdminAccountErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DisassociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DisassociateAdminAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisassociateAdminAccountError {
fn code(&self) -> Option<&str> {
DisassociateAdminAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisassociateAdminAccountError {
pub fn new(kind: DisassociateAdminAccountErrorKind, 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: DisassociateAdminAccountErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisassociateAdminAccountErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateAdminAccountErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateAdminAccountErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateAdminAccountErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DisassociateAdminAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisassociateAdminAccountErrorKind::InternalErrorException(_inner) => Some(_inner),
DisassociateAdminAccountErrorKind::InvalidOperationException(_inner) => Some(_inner),
DisassociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DisassociateAdminAccountErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteResourceSetError {
pub kind: DeleteResourceSetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteResourceSetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteResourceSetErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteResourceSetErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteResourceSetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteResourceSetErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteResourceSetErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
DeleteResourceSetErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteResourceSetErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteResourceSetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteResourceSetError {
fn code(&self) -> Option<&str> {
DeleteResourceSetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteResourceSetError {
pub fn new(kind: DeleteResourceSetErrorKind, 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: DeleteResourceSetErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteResourceSetErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceSetErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceSetErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceSetErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteResourceSetErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteResourceSetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteResourceSetErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteResourceSetErrorKind::InvalidInputException(_inner) => Some(_inner),
DeleteResourceSetErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteResourceSetErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteResourceSetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteProtocolsListError {
pub kind: DeleteProtocolsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteProtocolsListError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteProtocolsListErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteProtocolsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteProtocolsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteProtocolsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteProtocolsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteProtocolsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteProtocolsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteProtocolsListError {
fn code(&self) -> Option<&str> {
DeleteProtocolsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteProtocolsListError {
pub fn new(kind: DeleteProtocolsListErrorKind, 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: DeleteProtocolsListErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteProtocolsListErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteProtocolsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteProtocolsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteProtocolsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteProtocolsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteProtocolsListErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteProtocolsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteProtocolsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteProtocolsListErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeletePolicyError {
pub kind: DeletePolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeletePolicyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeletePolicyErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeletePolicyErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeletePolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeletePolicyErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeletePolicyError {
fn code(&self) -> Option<&str> {
DeletePolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeletePolicyError {
pub fn new(kind: DeletePolicyErrorKind, 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: DeletePolicyErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeletePolicyErrorKind::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_internal_error_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeletePolicyErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeletePolicyErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeletePolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeletePolicyErrorKind::InternalErrorException(_inner) => Some(_inner),
DeletePolicyErrorKind::InvalidInputException(_inner) => Some(_inner),
DeletePolicyErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeletePolicyErrorKind::LimitExceededException(_inner) => Some(_inner),
DeletePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeletePolicyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteNotificationChannelError {
pub kind: DeleteNotificationChannelErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteNotificationChannelError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteNotificationChannelErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteNotificationChannelErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteNotificationChannelError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteNotificationChannelErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteNotificationChannelErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteNotificationChannelErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteNotificationChannelErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteNotificationChannelError {
fn code(&self) -> Option<&str> {
DeleteNotificationChannelError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteNotificationChannelError {
pub fn new(kind: DeleteNotificationChannelErrorKind, 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: DeleteNotificationChannelErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteNotificationChannelErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationChannelErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationChannelErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationChannelErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteNotificationChannelError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteNotificationChannelErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteNotificationChannelErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteNotificationChannelErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteNotificationChannelErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAppsListError {
pub kind: DeleteAppsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteAppsListError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteAppsListErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAppsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteAppsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAppsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteAppsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteAppsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteAppsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAppsListError {
fn code(&self) -> Option<&str> {
DeleteAppsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAppsListError {
pub fn new(kind: DeleteAppsListErrorKind, 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: DeleteAppsListErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAppsListErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteAppsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAppsListErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteAppsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteAppsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteAppsListErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchDisassociateResourceError {
pub kind: BatchDisassociateResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchDisassociateResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchDisassociateResourceErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchDisassociateResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchDisassociateResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchDisassociateResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
BatchDisassociateResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
BatchDisassociateResourceErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
BatchDisassociateResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
BatchDisassociateResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchDisassociateResourceError {
fn code(&self) -> Option<&str> {
BatchDisassociateResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchDisassociateResourceError {
pub fn new(kind: BatchDisassociateResourceErrorKind, 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: BatchDisassociateResourceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchDisassociateResourceErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
BatchDisassociateResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
BatchDisassociateResourceErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
BatchDisassociateResourceErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
BatchDisassociateResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for BatchDisassociateResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchDisassociateResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
BatchDisassociateResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
BatchDisassociateResourceErrorKind::InvalidOperationException(_inner) => Some(_inner),
BatchDisassociateResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
BatchDisassociateResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchAssociateResourceError {
pub kind: BatchAssociateResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchAssociateResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchAssociateResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchAssociateResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchAssociateResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchAssociateResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
BatchAssociateResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
BatchAssociateResourceErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
BatchAssociateResourceErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
BatchAssociateResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
BatchAssociateResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchAssociateResourceError {
fn code(&self) -> Option<&str> {
BatchAssociateResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchAssociateResourceError {
pub fn new(kind: BatchAssociateResourceErrorKind, 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: BatchAssociateResourceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchAssociateResourceErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
BatchAssociateResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
BatchAssociateResourceErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
BatchAssociateResourceErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchAssociateResourceErrorKind::LimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
BatchAssociateResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for BatchAssociateResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchAssociateResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
BatchAssociateResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
BatchAssociateResourceErrorKind::InvalidOperationException(_inner) => Some(_inner),
BatchAssociateResourceErrorKind::LimitExceededException(_inner) => Some(_inner),
BatchAssociateResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
BatchAssociateResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssociateThirdPartyFirewallError {
pub kind: AssociateThirdPartyFirewallErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AssociateThirdPartyFirewallError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AssociateThirdPartyFirewallErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssociateThirdPartyFirewallErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AssociateThirdPartyFirewallError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssociateThirdPartyFirewallErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
AssociateThirdPartyFirewallErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
AssociateThirdPartyFirewallErrorKind::InvalidOperationException(_inner) => {
_inner.fmt(f)
}
AssociateThirdPartyFirewallErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
AssociateThirdPartyFirewallErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssociateThirdPartyFirewallError {
fn code(&self) -> Option<&str> {
AssociateThirdPartyFirewallError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssociateThirdPartyFirewallError {
pub fn new(kind: AssociateThirdPartyFirewallErrorKind, 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: AssociateThirdPartyFirewallErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssociateThirdPartyFirewallErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
AssociateThirdPartyFirewallErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
AssociateThirdPartyFirewallErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
AssociateThirdPartyFirewallErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AssociateThirdPartyFirewallErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for AssociateThirdPartyFirewallError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssociateThirdPartyFirewallErrorKind::InternalErrorException(_inner) => Some(_inner),
AssociateThirdPartyFirewallErrorKind::InvalidInputException(_inner) => Some(_inner),
AssociateThirdPartyFirewallErrorKind::InvalidOperationException(_inner) => Some(_inner),
AssociateThirdPartyFirewallErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
AssociateThirdPartyFirewallErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssociateAdminAccountError {
pub kind: AssociateAdminAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AssociateAdminAccountError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AssociateAdminAccountErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssociateAdminAccountErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AssociateAdminAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssociateAdminAccountErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssociateAdminAccountError {
fn code(&self) -> Option<&str> {
AssociateAdminAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssociateAdminAccountError {
pub fn new(kind: AssociateAdminAccountErrorKind, 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: AssociateAdminAccountErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssociateAdminAccountErrorKind::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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::LimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for AssociateAdminAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssociateAdminAccountErrorKind::InternalErrorException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::InvalidInputException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::InvalidOperationException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::LimitExceededException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::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 _)
}
}