#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
BadRequestException(crate::types::error::BadRequestException),
InternalServerException(crate::types::error::InternalServerException),
ResourceInUseException(crate::types::error::ResourceInUseException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
TagsAlreadyExistException(crate::types::error::TagsAlreadyExistException),
TooManyTagsException(crate::types::error::TooManyTagsException),
ValidationException(crate::types::error::ValidationException),
Unhandled(::aws_smithy_types::error::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AccessDeniedException(inner) => inner.fmt(f),
Error::BadRequestException(inner) => inner.fmt(f),
Error::InternalServerException(inner) => inner.fmt(f),
Error::ResourceInUseException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::TagsAlreadyExistException(inner) => inner.fmt(f),
Error::TooManyTagsException(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::create_application::CreateApplicationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::create_application::CreateApplicationError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_application::CreateApplicationError> for Error {
fn from(err: crate::operation::create_application::CreateApplicationError) -> Self {
match err {
crate::operation::create_application::CreateApplicationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_application::CreateApplicationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_application::CreateApplicationError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::create_application::CreateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_application::CreateApplicationError::TagsAlreadyExistException(inner) => Error::TagsAlreadyExistException(inner),
crate::operation::create_application::CreateApplicationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_application::CreateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::create_component::CreateComponentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::create_component::CreateComponentError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_component::CreateComponentError> for Error {
fn from(err: crate::operation::create_component::CreateComponentError) -> Self {
match err {
crate::operation::create_component::CreateComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_component::CreateComponentError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::create_component::CreateComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_component::CreateComponentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_component::CreateComponentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::create_log_pattern::CreateLogPatternError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::create_log_pattern::CreateLogPatternError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_log_pattern::CreateLogPatternError> for Error {
fn from(err: crate::operation::create_log_pattern::CreateLogPatternError) -> Self {
match err {
crate::operation::create_log_pattern::CreateLogPatternError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_log_pattern::CreateLogPatternError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::create_log_pattern::CreateLogPatternError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_log_pattern::CreateLogPatternError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_log_pattern::CreateLogPatternError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
match err {
crate::operation::delete_application::DeleteApplicationError::BadRequestException(inner) => Error::BadRequestException(inner),
crate::operation::delete_application::DeleteApplicationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_application::DeleteApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_application::DeleteApplicationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::delete_component::DeleteComponentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::delete_component::DeleteComponentError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_component::DeleteComponentError> for Error {
fn from(err: crate::operation::delete_component::DeleteComponentError) -> Self {
match err {
crate::operation::delete_component::DeleteComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_component::DeleteComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_component::DeleteComponentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_component::DeleteComponentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::delete_log_pattern::DeleteLogPatternError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::delete_log_pattern::DeleteLogPatternError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_log_pattern::DeleteLogPatternError> for Error {
fn from(err: crate::operation::delete_log_pattern::DeleteLogPatternError) -> Self {
match err {
crate::operation::delete_log_pattern::DeleteLogPatternError::BadRequestException(inner) => Error::BadRequestException(inner),
crate::operation::delete_log_pattern::DeleteLogPatternError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_log_pattern::DeleteLogPatternError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_log_pattern::DeleteLogPatternError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_log_pattern::DeleteLogPatternError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_application::DescribeApplicationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::describe_application::DescribeApplicationError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_application::DescribeApplicationError> for Error {
fn from(err: crate::operation::describe_application::DescribeApplicationError) -> Self {
match err {
crate::operation::describe_application::DescribeApplicationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_application::DescribeApplicationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_application::DescribeApplicationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_application::DescribeApplicationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_component::DescribeComponentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::describe_component::DescribeComponentError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_component::DescribeComponentError> for Error {
fn from(err: crate::operation::describe_component::DescribeComponentError) -> Self {
match err {
crate::operation::describe_component::DescribeComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_component::DescribeComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_component::DescribeComponentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_component::DescribeComponentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_component_configuration::DescribeComponentConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::describe_component_configuration::DescribeComponentConfigurationError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_component_configuration::DescribeComponentConfigurationError> for Error {
fn from(err: crate::operation::describe_component_configuration::DescribeComponentConfigurationError) -> Self {
match err {
crate::operation::describe_component_configuration::DescribeComponentConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_component_configuration::DescribeComponentConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_component_configuration::DescribeComponentConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_component_configuration::DescribeComponentConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError> for Error {
fn from(err: crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError) -> Self {
match err {
crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_component_configuration_recommendation::DescribeComponentConfigurationRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_log_pattern::DescribeLogPatternError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::describe_log_pattern::DescribeLogPatternError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_log_pattern::DescribeLogPatternError> for Error {
fn from(err: crate::operation::describe_log_pattern::DescribeLogPatternError) -> Self {
match err {
crate::operation::describe_log_pattern::DescribeLogPatternError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_log_pattern::DescribeLogPatternError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_log_pattern::DescribeLogPatternError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_log_pattern::DescribeLogPatternError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_observation::DescribeObservationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::describe_observation::DescribeObservationError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_observation::DescribeObservationError> for Error {
fn from(err: crate::operation::describe_observation::DescribeObservationError) -> Self {
match err {
crate::operation::describe_observation::DescribeObservationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_observation::DescribeObservationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_observation::DescribeObservationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_observation::DescribeObservationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_problem::DescribeProblemError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::describe_problem::DescribeProblemError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_problem::DescribeProblemError> for Error {
fn from(err: crate::operation::describe_problem::DescribeProblemError) -> Self {
match err {
crate::operation::describe_problem::DescribeProblemError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_problem::DescribeProblemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_problem::DescribeProblemError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_problem::DescribeProblemError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_problem_observations::DescribeProblemObservationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::describe_problem_observations::DescribeProblemObservationsError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_problem_observations::DescribeProblemObservationsError> for Error {
fn from(err: crate::operation::describe_problem_observations::DescribeProblemObservationsError) -> Self {
match err {
crate::operation::describe_problem_observations::DescribeProblemObservationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_problem_observations::DescribeProblemObservationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_problem_observations::DescribeProblemObservationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_problem_observations::DescribeProblemObservationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_applications::ListApplicationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_applications::ListApplicationsError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_applications::ListApplicationsError> for Error {
fn from(err: crate::operation::list_applications::ListApplicationsError) -> Self {
match err {
crate::operation::list_applications::ListApplicationsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_applications::ListApplicationsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_applications::ListApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_components::ListComponentsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_components::ListComponentsError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_components::ListComponentsError> for Error {
fn from(err: crate::operation::list_components::ListComponentsError) -> Self {
match err {
crate::operation::list_components::ListComponentsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_components::ListComponentsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_components::ListComponentsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_components::ListComponentsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_configuration_history::ListConfigurationHistoryError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_configuration_history::ListConfigurationHistoryError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_configuration_history::ListConfigurationHistoryError> for Error {
fn from(err: crate::operation::list_configuration_history::ListConfigurationHistoryError) -> Self {
match err {
crate::operation::list_configuration_history::ListConfigurationHistoryError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_configuration_history::ListConfigurationHistoryError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_configuration_history::ListConfigurationHistoryError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_configuration_history::ListConfigurationHistoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_log_patterns::ListLogPatternsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_log_patterns::ListLogPatternsError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_log_patterns::ListLogPatternsError> for Error {
fn from(err: crate::operation::list_log_patterns::ListLogPatternsError) -> Self {
match err {
crate::operation::list_log_patterns::ListLogPatternsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_log_patterns::ListLogPatternsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_log_patterns::ListLogPatternsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_log_patterns::ListLogPatternsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_log_pattern_sets::ListLogPatternSetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_log_pattern_sets::ListLogPatternSetsError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_log_pattern_sets::ListLogPatternSetsError> for Error {
fn from(err: crate::operation::list_log_pattern_sets::ListLogPatternSetsError) -> Self {
match err {
crate::operation::list_log_pattern_sets::ListLogPatternSetsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_log_pattern_sets::ListLogPatternSetsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_log_pattern_sets::ListLogPatternSetsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_log_pattern_sets::ListLogPatternSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_problems::ListProblemsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_problems::ListProblemsError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_problems::ListProblemsError> for Error {
fn from(err: crate::operation::list_problems::ListProblemsError) -> Self {
match err {
crate::operation::list_problems::ListProblemsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_problems::ListProblemsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_problems::ListProblemsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_problems::ListProblemsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_application::UpdateApplicationError> for Error {
fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
match err {
crate::operation::update_application::UpdateApplicationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_application::UpdateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_application::UpdateApplicationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_component::UpdateComponentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::update_component::UpdateComponentError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_component::UpdateComponentError> for Error {
fn from(err: crate::operation::update_component::UpdateComponentError) -> Self {
match err {
crate::operation::update_component::UpdateComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_component::UpdateComponentError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::update_component::UpdateComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_component::UpdateComponentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_component::UpdateComponentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_component_configuration::UpdateComponentConfigurationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::update_component_configuration::UpdateComponentConfigurationError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_component_configuration::UpdateComponentConfigurationError> for Error {
fn from(err: crate::operation::update_component_configuration::UpdateComponentConfigurationError) -> Self {
match err {
crate::operation::update_component_configuration::UpdateComponentConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_component_configuration::UpdateComponentConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_component_configuration::UpdateComponentConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_component_configuration::UpdateComponentConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_log_pattern::UpdateLogPatternError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::update_log_pattern::UpdateLogPatternError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_log_pattern::UpdateLogPatternError> for Error {
fn from(err: crate::operation::update_log_pattern::UpdateLogPatternError) -> Self {
match err {
crate::operation::update_log_pattern::UpdateLogPatternError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_log_pattern::UpdateLogPatternError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
crate::operation::update_log_pattern::UpdateLogPatternError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_log_pattern::UpdateLogPatternError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_log_pattern::UpdateLogPatternError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AccessDeniedException(inner) => inner.source(),
Error::BadRequestException(inner) => inner.source(),
Error::InternalServerException(inner) => inner.source(),
Error::ResourceInUseException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::TagsAlreadyExistException(inner) => inner.source(),
Error::TooManyTagsException(inner) => inner.source(),
Error::ValidationException(inner) => inner.source(),
Error::Unhandled(inner) => inner.source(),
}
}
}
impl ::aws_http::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AccessDeniedException(e) => e.request_id(),
Self::BadRequestException(e) => e.request_id(),
Self::InternalServerException(e) => e.request_id(),
Self::ResourceInUseException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::TagsAlreadyExistException(e) => e.request_id(),
Self::TooManyTagsException(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.request_id(),
}
}
}