#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateApplicationError {
pub kind: UpdateApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateApplicationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateApplicationErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateApplicationErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateApplicationError {
fn code(&self) -> Option<&str> {
UpdateApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateApplicationError {
pub fn new(kind: UpdateApplicationErrorKind, 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: UpdateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateApplicationErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for UpdateApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateApplicationErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
UpdateApplicationErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
UpdateApplicationErrorKind::InvalidParameterException(_inner) => Some(_inner),
UpdateApplicationErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
UpdateApplicationErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
UpdateApplicationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServerInternalErrorException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ServerInternalErrorException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ServerInternalErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ServerInternalErrorException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for ServerInternalErrorException {}
pub mod server_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::ServerInternalErrorException {
crate::error::ServerInternalErrorException {
message: self.message,
}
}
}
}
impl ServerInternalErrorException {
pub fn builder() -> crate::error::server_internal_error_exception::Builder {
crate::error::server_internal_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidParameterValueException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidParameterValueException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidParameterValueException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidParameterValueException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidParameterValueException {}
pub mod invalid_parameter_value_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::InvalidParameterValueException {
crate::error::InvalidParameterValueException {
message: self.message,
}
}
}
}
impl InvalidParameterValueException {
pub fn builder() -> crate::error::invalid_parameter_value_exception::Builder {
crate::error::invalid_parameter_value_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidParameterException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidParameterException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidParameterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidParameterException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidParameterException {}
pub mod invalid_parameter_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::InvalidParameterException {
crate::error::InvalidParameterException {
message: self.message,
}
}
}
}
impl InvalidParameterException {
pub fn builder() -> crate::error::invalid_parameter_exception::Builder {
crate::error::invalid_parameter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct HomeRegionNotSetException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl HomeRegionNotSetException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for HomeRegionNotSetException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "HomeRegionNotSetException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for HomeRegionNotSetException {}
pub mod home_region_not_set_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::HomeRegionNotSetException {
crate::error::HomeRegionNotSetException {
message: self.message,
}
}
}
}
impl HomeRegionNotSetException {
pub fn builder() -> crate::error::home_region_not_set_exception::Builder {
crate::error::home_region_not_set_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AuthorizationErrorException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl AuthorizationErrorException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AuthorizationErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AuthorizationErrorException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for AuthorizationErrorException {}
pub mod authorization_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::AuthorizationErrorException {
crate::error::AuthorizationErrorException {
message: self.message,
}
}
}
}
impl AuthorizationErrorException {
pub fn builder() -> crate::error::authorization_error_exception::Builder {
crate::error::authorization_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopDataCollectionByAgentIdsError {
pub kind: StopDataCollectionByAgentIdsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopDataCollectionByAgentIdsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopDataCollectionByAgentIdsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopDataCollectionByAgentIdsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopDataCollectionByAgentIdsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopDataCollectionByAgentIdsErrorKind::AuthorizationErrorException(_inner) => {
_inner.fmt(f)
}
StopDataCollectionByAgentIdsErrorKind::HomeRegionNotSetException(_inner) => {
_inner.fmt(f)
}
StopDataCollectionByAgentIdsErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
StopDataCollectionByAgentIdsErrorKind::InvalidParameterValueException(_inner) => {
_inner.fmt(f)
}
StopDataCollectionByAgentIdsErrorKind::ServerInternalErrorException(_inner) => {
_inner.fmt(f)
}
StopDataCollectionByAgentIdsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopDataCollectionByAgentIdsError {
fn code(&self) -> Option<&str> {
StopDataCollectionByAgentIdsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopDataCollectionByAgentIdsError {
pub fn new(kind: StopDataCollectionByAgentIdsErrorKind, 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: StopDataCollectionByAgentIdsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopDataCollectionByAgentIdsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
StopDataCollectionByAgentIdsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
StopDataCollectionByAgentIdsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StopDataCollectionByAgentIdsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
StopDataCollectionByAgentIdsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
StopDataCollectionByAgentIdsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for StopDataCollectionByAgentIdsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopDataCollectionByAgentIdsErrorKind::AuthorizationErrorException(_inner) => {
Some(_inner)
}
StopDataCollectionByAgentIdsErrorKind::HomeRegionNotSetException(_inner) => {
Some(_inner)
}
StopDataCollectionByAgentIdsErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
StopDataCollectionByAgentIdsErrorKind::InvalidParameterValueException(_inner) => {
Some(_inner)
}
StopDataCollectionByAgentIdsErrorKind::ServerInternalErrorException(_inner) => {
Some(_inner)
}
StopDataCollectionByAgentIdsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopContinuousExportError {
pub kind: StopContinuousExportErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopContinuousExportError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopContinuousExportErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopContinuousExportErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ResourceInUseException(crate::error::ResourceInUseException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopContinuousExportError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopContinuousExportErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::ResourceInUseException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
StopContinuousExportErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopContinuousExportError {
fn code(&self) -> Option<&str> {
StopContinuousExportError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopContinuousExportError {
pub fn new(kind: StopContinuousExportErrorKind, 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: StopContinuousExportErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopContinuousExportErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_resource_in_use_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::ResourceInUseException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
StopContinuousExportErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for StopContinuousExportError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopContinuousExportErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
StopContinuousExportErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
StopContinuousExportErrorKind::InvalidParameterException(_inner) => Some(_inner),
StopContinuousExportErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
StopContinuousExportErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
StopContinuousExportErrorKind::ResourceInUseException(_inner) => Some(_inner),
StopContinuousExportErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
StopContinuousExportErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
StopContinuousExportErrorKind::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_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundException {}
pub mod resource_not_found_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) 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 ResourceInUseException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceInUseException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceInUseException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceInUseException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceInUseException {}
pub mod resource_in_use_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[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::ResourceInUseException {
crate::error::ResourceInUseException {
message: self.message,
}
}
}
}
impl ResourceInUseException {
pub fn builder() -> crate::error::resource_in_use_exception::Builder {
crate::error::resource_in_use_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OperationNotPermittedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl OperationNotPermittedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OperationNotPermittedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OperationNotPermittedException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for OperationNotPermittedException {}
pub mod operation_not_permitted_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::OperationNotPermittedException {
crate::error::OperationNotPermittedException {
message: self.message,
}
}
}
}
impl OperationNotPermittedException {
pub fn builder() -> crate::error::operation_not_permitted_exception::Builder {
crate::error::operation_not_permitted_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartImportTaskError {
pub kind: StartImportTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartImportTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartImportTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartImportTaskErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ResourceInUseException(crate::error::ResourceInUseException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartImportTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartImportTaskErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
StartImportTaskErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
StartImportTaskErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
StartImportTaskErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
StartImportTaskErrorKind::ResourceInUseException(_inner) => _inner.fmt(f),
StartImportTaskErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
StartImportTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartImportTaskError {
fn code(&self) -> Option<&str> {
StartImportTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartImportTaskError {
pub fn new(kind: StartImportTaskErrorKind, 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: StartImportTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartImportTaskErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
StartImportTaskErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
StartImportTaskErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartImportTaskErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
StartImportTaskErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_resource_in_use_exception(&self) -> bool {
matches!(
&self.kind,
StartImportTaskErrorKind::ResourceInUseException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
StartImportTaskErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for StartImportTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartImportTaskErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
StartImportTaskErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
StartImportTaskErrorKind::InvalidParameterException(_inner) => Some(_inner),
StartImportTaskErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
StartImportTaskErrorKind::ResourceInUseException(_inner) => Some(_inner),
StartImportTaskErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
StartImportTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartExportTaskError {
pub kind: StartExportTaskErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartExportTaskError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartExportTaskErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartExportTaskErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartExportTaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartExportTaskErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
StartExportTaskErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
StartExportTaskErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
StartExportTaskErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
StartExportTaskErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
StartExportTaskErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
StartExportTaskErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartExportTaskError {
fn code(&self) -> Option<&str> {
StartExportTaskError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartExportTaskError {
pub fn new(kind: StartExportTaskErrorKind, 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: StartExportTaskErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartExportTaskErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
StartExportTaskErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
StartExportTaskErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartExportTaskErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
StartExportTaskErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
StartExportTaskErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
StartExportTaskErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for StartExportTaskError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartExportTaskErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
StartExportTaskErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
StartExportTaskErrorKind::InvalidParameterException(_inner) => Some(_inner),
StartExportTaskErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
StartExportTaskErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
StartExportTaskErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
StartExportTaskErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartDataCollectionByAgentIdsError {
pub kind: StartDataCollectionByAgentIdsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartDataCollectionByAgentIdsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartDataCollectionByAgentIdsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartDataCollectionByAgentIdsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartDataCollectionByAgentIdsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartDataCollectionByAgentIdsErrorKind::AuthorizationErrorException(_inner) => {
_inner.fmt(f)
}
StartDataCollectionByAgentIdsErrorKind::HomeRegionNotSetException(_inner) => {
_inner.fmt(f)
}
StartDataCollectionByAgentIdsErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
StartDataCollectionByAgentIdsErrorKind::InvalidParameterValueException(_inner) => {
_inner.fmt(f)
}
StartDataCollectionByAgentIdsErrorKind::ServerInternalErrorException(_inner) => {
_inner.fmt(f)
}
StartDataCollectionByAgentIdsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartDataCollectionByAgentIdsError {
fn code(&self) -> Option<&str> {
StartDataCollectionByAgentIdsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartDataCollectionByAgentIdsError {
pub fn new(
kind: StartDataCollectionByAgentIdsErrorKind,
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: StartDataCollectionByAgentIdsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartDataCollectionByAgentIdsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
StartDataCollectionByAgentIdsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
StartDataCollectionByAgentIdsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartDataCollectionByAgentIdsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
StartDataCollectionByAgentIdsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
StartDataCollectionByAgentIdsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for StartDataCollectionByAgentIdsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartDataCollectionByAgentIdsErrorKind::AuthorizationErrorException(_inner) => {
Some(_inner)
}
StartDataCollectionByAgentIdsErrorKind::HomeRegionNotSetException(_inner) => {
Some(_inner)
}
StartDataCollectionByAgentIdsErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
StartDataCollectionByAgentIdsErrorKind::InvalidParameterValueException(_inner) => {
Some(_inner)
}
StartDataCollectionByAgentIdsErrorKind::ServerInternalErrorException(_inner) => {
Some(_inner)
}
StartDataCollectionByAgentIdsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartContinuousExportError {
pub kind: StartContinuousExportErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartContinuousExportError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartContinuousExportErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartContinuousExportErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
ConflictErrorException(crate::error::ConflictErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ResourceInUseException(crate::error::ResourceInUseException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartContinuousExportError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartContinuousExportErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::ConflictErrorException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::ResourceInUseException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
StartContinuousExportErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartContinuousExportError {
fn code(&self) -> Option<&str> {
StartContinuousExportError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartContinuousExportError {
pub fn new(kind: StartContinuousExportErrorKind, 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: StartContinuousExportErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartContinuousExportErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_conflict_error_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::ConflictErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_resource_in_use_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::ResourceInUseException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
StartContinuousExportErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for StartContinuousExportError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartContinuousExportErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
StartContinuousExportErrorKind::ConflictErrorException(_inner) => Some(_inner),
StartContinuousExportErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
StartContinuousExportErrorKind::InvalidParameterException(_inner) => Some(_inner),
StartContinuousExportErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
StartContinuousExportErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
StartContinuousExportErrorKind::ResourceInUseException(_inner) => Some(_inner),
StartContinuousExportErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
StartContinuousExportErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConflictErrorException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ConflictErrorException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConflictErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConflictErrorException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for ConflictErrorException {}
pub mod conflict_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::ConflictErrorException {
crate::error::ConflictErrorException {
message: self.message,
}
}
}
}
impl ConflictErrorException {
pub fn builder() -> crate::error::conflict_error_exception::Builder {
crate::error::conflict_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListServerNeighborsError {
pub kind: ListServerNeighborsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListServerNeighborsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListServerNeighborsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListServerNeighborsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListServerNeighborsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListServerNeighborsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
ListServerNeighborsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
ListServerNeighborsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ListServerNeighborsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
ListServerNeighborsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
ListServerNeighborsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListServerNeighborsError {
fn code(&self) -> Option<&str> {
ListServerNeighborsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListServerNeighborsError {
pub fn new(kind: ListServerNeighborsErrorKind, 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: ListServerNeighborsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListServerNeighborsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
ListServerNeighborsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
ListServerNeighborsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ListServerNeighborsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
ListServerNeighborsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListServerNeighborsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for ListServerNeighborsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListServerNeighborsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
ListServerNeighborsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
ListServerNeighborsErrorKind::InvalidParameterException(_inner) => Some(_inner),
ListServerNeighborsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
ListServerNeighborsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
ListServerNeighborsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListConfigurationsError {
pub kind: ListConfigurationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListConfigurationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListConfigurationsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListConfigurationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListConfigurationsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
ListConfigurationsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
ListConfigurationsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ListConfigurationsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
ListConfigurationsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListConfigurationsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
ListConfigurationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListConfigurationsError {
fn code(&self) -> Option<&str> {
ListConfigurationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListConfigurationsError {
pub fn new(kind: ListConfigurationsErrorKind, 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: ListConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListConfigurationsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
ListConfigurationsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
ListConfigurationsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ListConfigurationsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
ListConfigurationsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListConfigurationsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListConfigurationsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for ListConfigurationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListConfigurationsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
ListConfigurationsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
ListConfigurationsErrorKind::InvalidParameterException(_inner) => Some(_inner),
ListConfigurationsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
ListConfigurationsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListConfigurationsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
ListConfigurationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDiscoverySummaryError {
pub kind: GetDiscoverySummaryErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDiscoverySummaryError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDiscoverySummaryErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDiscoverySummaryErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDiscoverySummaryError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDiscoverySummaryErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
GetDiscoverySummaryErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
GetDiscoverySummaryErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
GetDiscoverySummaryErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
GetDiscoverySummaryErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
GetDiscoverySummaryErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDiscoverySummaryError {
fn code(&self) -> Option<&str> {
GetDiscoverySummaryError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDiscoverySummaryError {
pub fn new(kind: GetDiscoverySummaryErrorKind, 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: GetDiscoverySummaryErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDiscoverySummaryErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
GetDiscoverySummaryErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
GetDiscoverySummaryErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
GetDiscoverySummaryErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
GetDiscoverySummaryErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetDiscoverySummaryErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for GetDiscoverySummaryError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDiscoverySummaryErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
GetDiscoverySummaryErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
GetDiscoverySummaryErrorKind::InvalidParameterException(_inner) => Some(_inner),
GetDiscoverySummaryErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
GetDiscoverySummaryErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
GetDiscoverySummaryErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ExportConfigurationsError {
pub kind: ExportConfigurationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ExportConfigurationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ExportConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ExportConfigurationsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ExportConfigurationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ExportConfigurationsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
ExportConfigurationsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
ExportConfigurationsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
ExportConfigurationsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
ExportConfigurationsErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
ExportConfigurationsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
ExportConfigurationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ExportConfigurationsError {
fn code(&self) -> Option<&str> {
ExportConfigurationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ExportConfigurationsError {
pub fn new(kind: ExportConfigurationsErrorKind, 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: ExportConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ExportConfigurationsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
ExportConfigurationsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
ExportConfigurationsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
ExportConfigurationsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
ExportConfigurationsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
ExportConfigurationsErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ExportConfigurationsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for ExportConfigurationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ExportConfigurationsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
ExportConfigurationsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
ExportConfigurationsErrorKind::InvalidParameterException(_inner) => Some(_inner),
ExportConfigurationsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
ExportConfigurationsErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
ExportConfigurationsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
ExportConfigurationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisassociateConfigurationItemsFromApplicationError {
pub kind: DisassociateConfigurationItemsFromApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for DisassociateConfigurationItemsFromApplicationError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisassociateConfigurationItemsFromApplicationErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisassociateConfigurationItemsFromApplicationErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisassociateConfigurationItemsFromApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisassociateConfigurationItemsFromApplicationErrorKind::AuthorizationErrorException(_inner) =>
_inner.fmt(f)
,
DisassociateConfigurationItemsFromApplicationErrorKind::HomeRegionNotSetException(_inner) =>
_inner.fmt(f)
,
DisassociateConfigurationItemsFromApplicationErrorKind::InvalidParameterException(_inner) =>
_inner.fmt(f)
,
DisassociateConfigurationItemsFromApplicationErrorKind::InvalidParameterValueException(_inner) =>
_inner.fmt(f)
,
DisassociateConfigurationItemsFromApplicationErrorKind::ServerInternalErrorException(_inner) =>
_inner.fmt(f)
,
DisassociateConfigurationItemsFromApplicationErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind
for DisassociateConfigurationItemsFromApplicationError
{
fn code(&self) -> Option<&str> {
DisassociateConfigurationItemsFromApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisassociateConfigurationItemsFromApplicationError {
pub fn new(
kind: DisassociateConfigurationItemsFromApplicationErrorKind,
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: DisassociateConfigurationItemsFromApplicationErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisassociateConfigurationItemsFromApplicationErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConfigurationItemsFromApplicationErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConfigurationItemsFromApplicationErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConfigurationItemsFromApplicationErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConfigurationItemsFromApplicationErrorKind::InvalidParameterValueException(
_
)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateConfigurationItemsFromApplicationErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DisassociateConfigurationItemsFromApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisassociateConfigurationItemsFromApplicationErrorKind::AuthorizationErrorException(_inner) =>
Some(_inner)
,
DisassociateConfigurationItemsFromApplicationErrorKind::HomeRegionNotSetException(_inner) =>
Some(_inner)
,
DisassociateConfigurationItemsFromApplicationErrorKind::InvalidParameterException(_inner) =>
Some(_inner)
,
DisassociateConfigurationItemsFromApplicationErrorKind::InvalidParameterValueException(_inner) =>
Some(_inner)
,
DisassociateConfigurationItemsFromApplicationErrorKind::ServerInternalErrorException(_inner) =>
Some(_inner)
,
DisassociateConfigurationItemsFromApplicationErrorKind::Unhandled(_inner) => {
Some(_inner)
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTagsError {
pub kind: DescribeTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTagsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTagsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTagsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTagsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTagsError {
fn code(&self) -> Option<&str> {
DescribeTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTagsError {
pub fn new(kind: DescribeTagsErrorKind, 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: DescribeTagsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTagsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DescribeTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTagsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DescribeTagsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DescribeTagsErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeTagsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
DescribeTagsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DescribeTagsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
DescribeTagsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeImportTasksError {
pub kind: DescribeImportTasksErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeImportTasksError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeImportTasksErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeImportTasksErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeImportTasksError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeImportTasksErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
DescribeImportTasksErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DescribeImportTasksErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeImportTasksErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
DescribeImportTasksErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
DescribeImportTasksErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeImportTasksError {
fn code(&self) -> Option<&str> {
DescribeImportTasksError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeImportTasksError {
pub fn new(kind: DescribeImportTasksErrorKind, 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: DescribeImportTasksErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeImportTasksErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeImportTasksErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DescribeImportTasksErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeImportTasksErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DescribeImportTasksErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeImportTasksErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DescribeImportTasksError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeImportTasksErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DescribeImportTasksErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DescribeImportTasksErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeImportTasksErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
DescribeImportTasksErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
DescribeImportTasksErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeExportTasksError {
pub kind: DescribeExportTasksErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeExportTasksError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeExportTasksErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeExportTasksErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeExportTasksError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeExportTasksErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
DescribeExportTasksErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DescribeExportTasksErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeExportTasksErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
DescribeExportTasksErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
DescribeExportTasksErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeExportTasksError {
fn code(&self) -> Option<&str> {
DescribeExportTasksError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeExportTasksError {
pub fn new(kind: DescribeExportTasksErrorKind, 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: DescribeExportTasksErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeExportTasksErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportTasksErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportTasksErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportTasksErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportTasksErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportTasksErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DescribeExportTasksError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeExportTasksErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DescribeExportTasksErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DescribeExportTasksErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeExportTasksErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
DescribeExportTasksErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
DescribeExportTasksErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeExportConfigurationsError {
pub kind: DescribeExportConfigurationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeExportConfigurationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeExportConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeExportConfigurationsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeExportConfigurationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeExportConfigurationsErrorKind::AuthorizationErrorException(_inner) => {
_inner.fmt(f)
}
DescribeExportConfigurationsErrorKind::HomeRegionNotSetException(_inner) => {
_inner.fmt(f)
}
DescribeExportConfigurationsErrorKind::InvalidParameterException(_inner) => {
_inner.fmt(f)
}
DescribeExportConfigurationsErrorKind::InvalidParameterValueException(_inner) => {
_inner.fmt(f)
}
DescribeExportConfigurationsErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
DescribeExportConfigurationsErrorKind::ServerInternalErrorException(_inner) => {
_inner.fmt(f)
}
DescribeExportConfigurationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeExportConfigurationsError {
fn code(&self) -> Option<&str> {
DescribeExportConfigurationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeExportConfigurationsError {
pub fn new(kind: DescribeExportConfigurationsErrorKind, 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: DescribeExportConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeExportConfigurationsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportConfigurationsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportConfigurationsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportConfigurationsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportConfigurationsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportConfigurationsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeExportConfigurationsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DescribeExportConfigurationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeExportConfigurationsErrorKind::AuthorizationErrorException(_inner) => {
Some(_inner)
}
DescribeExportConfigurationsErrorKind::HomeRegionNotSetException(_inner) => {
Some(_inner)
}
DescribeExportConfigurationsErrorKind::InvalidParameterException(_inner) => {
Some(_inner)
}
DescribeExportConfigurationsErrorKind::InvalidParameterValueException(_inner) => {
Some(_inner)
}
DescribeExportConfigurationsErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
DescribeExportConfigurationsErrorKind::ServerInternalErrorException(_inner) => {
Some(_inner)
}
DescribeExportConfigurationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeContinuousExportsError {
pub kind: DescribeContinuousExportsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeContinuousExportsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeContinuousExportsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeContinuousExportsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeContinuousExportsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeContinuousExportsErrorKind::AuthorizationErrorException(_inner) => {
_inner.fmt(f)
}
DescribeContinuousExportsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DescribeContinuousExportsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeContinuousExportsErrorKind::InvalidParameterValueException(_inner) => {
_inner.fmt(f)
}
DescribeContinuousExportsErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
DescribeContinuousExportsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DescribeContinuousExportsErrorKind::ServerInternalErrorException(_inner) => {
_inner.fmt(f)
}
DescribeContinuousExportsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeContinuousExportsError {
fn code(&self) -> Option<&str> {
DescribeContinuousExportsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeContinuousExportsError {
pub fn new(kind: DescribeContinuousExportsErrorKind, 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: DescribeContinuousExportsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeContinuousExportsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeContinuousExportsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DescribeContinuousExportsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeContinuousExportsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DescribeContinuousExportsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DescribeContinuousExportsErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeContinuousExportsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeContinuousExportsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DescribeContinuousExportsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeContinuousExportsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DescribeContinuousExportsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DescribeContinuousExportsErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeContinuousExportsErrorKind::InvalidParameterValueException(_inner) => {
Some(_inner)
}
DescribeContinuousExportsErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
DescribeContinuousExportsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DescribeContinuousExportsErrorKind::ServerInternalErrorException(_inner) => {
Some(_inner)
}
DescribeContinuousExportsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeConfigurationsError {
pub kind: DescribeConfigurationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeConfigurationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeConfigurationsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeConfigurationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeConfigurationsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
DescribeConfigurationsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DescribeConfigurationsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeConfigurationsErrorKind::InvalidParameterValueException(_inner) => {
_inner.fmt(f)
}
DescribeConfigurationsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
DescribeConfigurationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeConfigurationsError {
fn code(&self) -> Option<&str> {
DescribeConfigurationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeConfigurationsError {
pub fn new(kind: DescribeConfigurationsErrorKind, 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: DescribeConfigurationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeConfigurationsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeConfigurationsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DescribeConfigurationsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeConfigurationsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DescribeConfigurationsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeConfigurationsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DescribeConfigurationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeConfigurationsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DescribeConfigurationsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DescribeConfigurationsErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeConfigurationsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
DescribeConfigurationsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
DescribeConfigurationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeAgentsError {
pub kind: DescribeAgentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeAgentsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeAgentsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeAgentsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeAgentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeAgentsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
DescribeAgentsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DescribeAgentsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DescribeAgentsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
DescribeAgentsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
DescribeAgentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeAgentsError {
fn code(&self) -> Option<&str> {
DescribeAgentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeAgentsError {
pub fn new(kind: DescribeAgentsErrorKind, 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: DescribeAgentsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeAgentsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAgentsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAgentsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAgentsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAgentsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAgentsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DescribeAgentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeAgentsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DescribeAgentsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DescribeAgentsErrorKind::InvalidParameterException(_inner) => Some(_inner),
DescribeAgentsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
DescribeAgentsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
DescribeAgentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteTagsError {
pub kind: DeleteTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteTagsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteTagsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteTagsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteTagsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteTagsError {
fn code(&self) -> Option<&str> {
DeleteTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteTagsError {
pub fn new(kind: DeleteTagsErrorKind, 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: DeleteTagsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteTagsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTagsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTagsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTagsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTagsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTagsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTagsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DeleteTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteTagsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DeleteTagsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DeleteTagsErrorKind::InvalidParameterException(_inner) => Some(_inner),
DeleteTagsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
DeleteTagsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteTagsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
DeleteTagsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteApplicationsError {
pub kind: DeleteApplicationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteApplicationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteApplicationsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteApplicationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteApplicationsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
DeleteApplicationsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
DeleteApplicationsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
DeleteApplicationsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
DeleteApplicationsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
DeleteApplicationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteApplicationsError {
fn code(&self) -> Option<&str> {
DeleteApplicationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteApplicationsError {
pub fn new(kind: DeleteApplicationsErrorKind, 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: DeleteApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteApplicationsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for DeleteApplicationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteApplicationsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
DeleteApplicationsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
DeleteApplicationsErrorKind::InvalidParameterException(_inner) => Some(_inner),
DeleteApplicationsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
DeleteApplicationsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
DeleteApplicationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateTagsError {
pub kind: CreateTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateTagsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateTagsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateTagsErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateTagsErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
CreateTagsErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
CreateTagsErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
CreateTagsErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
CreateTagsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
CreateTagsErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
CreateTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateTagsError {
fn code(&self) -> Option<&str> {
CreateTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateTagsError {
pub fn new(kind: CreateTagsErrorKind, 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: CreateTagsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateTagsErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateTagsErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
CreateTagsErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
CreateTagsErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
CreateTagsErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateTagsErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateTagsErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for CreateTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateTagsErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
CreateTagsErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
CreateTagsErrorKind::InvalidParameterException(_inner) => Some(_inner),
CreateTagsErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
CreateTagsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
CreateTagsErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
CreateTagsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateApplicationError {
pub kind: CreateApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateApplicationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateApplicationErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateApplicationErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateApplicationError {
fn code(&self) -> Option<&str> {
CreateApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateApplicationError {
pub fn new(kind: CreateApplicationErrorKind, 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: CreateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateApplicationErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for CreateApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateApplicationErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
CreateApplicationErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
CreateApplicationErrorKind::InvalidParameterException(_inner) => Some(_inner),
CreateApplicationErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
CreateApplicationErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
CreateApplicationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchDeleteImportDataError {
pub kind: BatchDeleteImportDataErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchDeleteImportDataError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchDeleteImportDataErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchDeleteImportDataErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchDeleteImportDataError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchDeleteImportDataErrorKind::AuthorizationErrorException(_inner) => _inner.fmt(f),
BatchDeleteImportDataErrorKind::HomeRegionNotSetException(_inner) => _inner.fmt(f),
BatchDeleteImportDataErrorKind::InvalidParameterException(_inner) => _inner.fmt(f),
BatchDeleteImportDataErrorKind::InvalidParameterValueException(_inner) => _inner.fmt(f),
BatchDeleteImportDataErrorKind::ServerInternalErrorException(_inner) => _inner.fmt(f),
BatchDeleteImportDataErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchDeleteImportDataError {
fn code(&self) -> Option<&str> {
BatchDeleteImportDataError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchDeleteImportDataError {
pub fn new(kind: BatchDeleteImportDataErrorKind, 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: BatchDeleteImportDataErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchDeleteImportDataErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
BatchDeleteImportDataErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
BatchDeleteImportDataErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
BatchDeleteImportDataErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
BatchDeleteImportDataErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
BatchDeleteImportDataErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for BatchDeleteImportDataError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchDeleteImportDataErrorKind::AuthorizationErrorException(_inner) => Some(_inner),
BatchDeleteImportDataErrorKind::HomeRegionNotSetException(_inner) => Some(_inner),
BatchDeleteImportDataErrorKind::InvalidParameterException(_inner) => Some(_inner),
BatchDeleteImportDataErrorKind::InvalidParameterValueException(_inner) => Some(_inner),
BatchDeleteImportDataErrorKind::ServerInternalErrorException(_inner) => Some(_inner),
BatchDeleteImportDataErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssociateConfigurationItemsToApplicationError {
pub kind: AssociateConfigurationItemsToApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for AssociateConfigurationItemsToApplicationError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AssociateConfigurationItemsToApplicationErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssociateConfigurationItemsToApplicationErrorKind {
AuthorizationErrorException(crate::error::AuthorizationErrorException),
HomeRegionNotSetException(crate::error::HomeRegionNotSetException),
InvalidParameterException(crate::error::InvalidParameterException),
InvalidParameterValueException(crate::error::InvalidParameterValueException),
ServerInternalErrorException(crate::error::ServerInternalErrorException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AssociateConfigurationItemsToApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssociateConfigurationItemsToApplicationErrorKind::AuthorizationErrorException(
_inner,
) => _inner.fmt(f),
AssociateConfigurationItemsToApplicationErrorKind::HomeRegionNotSetException(
_inner,
) => _inner.fmt(f),
AssociateConfigurationItemsToApplicationErrorKind::InvalidParameterException(
_inner,
) => _inner.fmt(f),
AssociateConfigurationItemsToApplicationErrorKind::InvalidParameterValueException(
_inner,
) => _inner.fmt(f),
AssociateConfigurationItemsToApplicationErrorKind::ServerInternalErrorException(
_inner,
) => _inner.fmt(f),
AssociateConfigurationItemsToApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssociateConfigurationItemsToApplicationError {
fn code(&self) -> Option<&str> {
AssociateConfigurationItemsToApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssociateConfigurationItemsToApplicationError {
pub fn new(
kind: AssociateConfigurationItemsToApplicationErrorKind,
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: AssociateConfigurationItemsToApplicationErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssociateConfigurationItemsToApplicationErrorKind::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_authorization_error_exception(&self) -> bool {
matches!(
&self.kind,
AssociateConfigurationItemsToApplicationErrorKind::AuthorizationErrorException(_)
)
}
pub fn is_home_region_not_set_exception(&self) -> bool {
matches!(
&self.kind,
AssociateConfigurationItemsToApplicationErrorKind::HomeRegionNotSetException(_)
)
}
pub fn is_invalid_parameter_exception(&self) -> bool {
matches!(
&self.kind,
AssociateConfigurationItemsToApplicationErrorKind::InvalidParameterException(_)
)
}
pub fn is_invalid_parameter_value_exception(&self) -> bool {
matches!(
&self.kind,
AssociateConfigurationItemsToApplicationErrorKind::InvalidParameterValueException(_)
)
}
pub fn is_server_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
AssociateConfigurationItemsToApplicationErrorKind::ServerInternalErrorException(_)
)
}
}
impl std::error::Error for AssociateConfigurationItemsToApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssociateConfigurationItemsToApplicationErrorKind::AuthorizationErrorException(
_inner,
) => Some(_inner),
AssociateConfigurationItemsToApplicationErrorKind::HomeRegionNotSetException(
_inner,
) => Some(_inner),
AssociateConfigurationItemsToApplicationErrorKind::InvalidParameterException(
_inner,
) => Some(_inner),
AssociateConfigurationItemsToApplicationErrorKind::InvalidParameterValueException(
_inner,
) => Some(_inner),
AssociateConfigurationItemsToApplicationErrorKind::ServerInternalErrorException(
_inner,
) => Some(_inner),
AssociateConfigurationItemsToApplicationErrorKind::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 _)
}
}