#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssociateAliasError {
pub kind: AssociateAliasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssociateAliasErrorKind {
AccessDenied(crate::error::AccessDenied),
IllegalUpdate(crate::error::IllegalUpdate),
InvalidArgument(crate::error::InvalidArgument),
NoSuchDistribution(crate::error::NoSuchDistribution),
TooManyDistributionCnamEs(crate::error::TooManyDistributionCnamEs),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for AssociateAliasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssociateAliasErrorKind::AccessDenied(_inner) => _inner.fmt(f),
AssociateAliasErrorKind::IllegalUpdate(_inner) => _inner.fmt(f),
AssociateAliasErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
AssociateAliasErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
AssociateAliasErrorKind::TooManyDistributionCnamEs(_inner) => _inner.fmt(f),
AssociateAliasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssociateAliasError {
fn code(&self) -> Option<&str> {
AssociateAliasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssociateAliasError {
pub fn new(kind: AssociateAliasErrorKind, 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: AssociateAliasErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssociateAliasErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, AssociateAliasErrorKind::AccessDenied(_))
}
pub fn is_illegal_update(&self) -> bool {
matches!(&self.kind, AssociateAliasErrorKind::IllegalUpdate(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, AssociateAliasErrorKind::InvalidArgument(_))
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(&self.kind, AssociateAliasErrorKind::NoSuchDistribution(_))
}
pub fn is_too_many_distribution_cnam_es(&self) -> bool {
matches!(
&self.kind,
AssociateAliasErrorKind::TooManyDistributionCnamEs(_)
)
}
}
impl std::error::Error for AssociateAliasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssociateAliasErrorKind::AccessDenied(_inner) => Some(_inner),
AssociateAliasErrorKind::IllegalUpdate(_inner) => Some(_inner),
AssociateAliasErrorKind::InvalidArgument(_inner) => Some(_inner),
AssociateAliasErrorKind::NoSuchDistribution(_inner) => Some(_inner),
AssociateAliasErrorKind::TooManyDistributionCnamEs(_inner) => Some(_inner),
AssociateAliasErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCachePolicyError {
pub kind: CreateCachePolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCachePolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
CachePolicyAlreadyExists(crate::error::CachePolicyAlreadyExists),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
TooManyCachePolicies(crate::error::TooManyCachePolicies),
TooManyCookiesInCachePolicy(crate::error::TooManyCookiesInCachePolicy),
TooManyHeadersInCachePolicy(crate::error::TooManyHeadersInCachePolicy),
TooManyQueryStringsInCachePolicy(crate::error::TooManyQueryStringsInCachePolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateCachePolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCachePolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::CachePolicyAlreadyExists(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::InconsistentQuantities(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::TooManyCachePolicies(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::TooManyCookiesInCachePolicy(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::TooManyHeadersInCachePolicy(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::TooManyQueryStringsInCachePolicy(_inner) => _inner.fmt(f),
CreateCachePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCachePolicyError {
fn code(&self) -> Option<&str> {
CreateCachePolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCachePolicyError {
pub fn new(kind: CreateCachePolicyErrorKind, 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: CreateCachePolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCachePolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, CreateCachePolicyErrorKind::AccessDenied(_))
}
pub fn is_cache_policy_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateCachePolicyErrorKind::CachePolicyAlreadyExists(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateCachePolicyErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, CreateCachePolicyErrorKind::InvalidArgument(_))
}
pub fn is_too_many_cache_policies(&self) -> bool {
matches!(
&self.kind,
CreateCachePolicyErrorKind::TooManyCachePolicies(_)
)
}
pub fn is_too_many_cookies_in_cache_policy(&self) -> bool {
matches!(
&self.kind,
CreateCachePolicyErrorKind::TooManyCookiesInCachePolicy(_)
)
}
pub fn is_too_many_headers_in_cache_policy(&self) -> bool {
matches!(
&self.kind,
CreateCachePolicyErrorKind::TooManyHeadersInCachePolicy(_)
)
}
pub fn is_too_many_query_strings_in_cache_policy(&self) -> bool {
matches!(
&self.kind,
CreateCachePolicyErrorKind::TooManyQueryStringsInCachePolicy(_)
)
}
}
impl std::error::Error for CreateCachePolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCachePolicyErrorKind::AccessDenied(_inner) => Some(_inner),
CreateCachePolicyErrorKind::CachePolicyAlreadyExists(_inner) => Some(_inner),
CreateCachePolicyErrorKind::InconsistentQuantities(_inner) => Some(_inner),
CreateCachePolicyErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateCachePolicyErrorKind::TooManyCachePolicies(_inner) => Some(_inner),
CreateCachePolicyErrorKind::TooManyCookiesInCachePolicy(_inner) => Some(_inner),
CreateCachePolicyErrorKind::TooManyHeadersInCachePolicy(_inner) => Some(_inner),
CreateCachePolicyErrorKind::TooManyQueryStringsInCachePolicy(_inner) => Some(_inner),
CreateCachePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCloudFrontOriginAccessIdentityError {
pub kind: CreateCloudFrontOriginAccessIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCloudFrontOriginAccessIdentityErrorKind {
CloudFrontOriginAccessIdentityAlreadyExists(
crate::error::CloudFrontOriginAccessIdentityAlreadyExists,
),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
MissingBody(crate::error::MissingBody),
TooManyCloudFrontOriginAccessIdentities(crate::error::TooManyCloudFrontOriginAccessIdentities),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateCloudFrontOriginAccessIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCloudFrontOriginAccessIdentityErrorKind::CloudFrontOriginAccessIdentityAlreadyExists(_inner) =>
_inner.fmt(f)
,
CreateCloudFrontOriginAccessIdentityErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
CreateCloudFrontOriginAccessIdentityErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
CreateCloudFrontOriginAccessIdentityErrorKind::MissingBody(_inner) =>
_inner.fmt(f)
,
CreateCloudFrontOriginAccessIdentityErrorKind::TooManyCloudFrontOriginAccessIdentities(_inner) =>
_inner.fmt(f)
,
CreateCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCloudFrontOriginAccessIdentityError {
fn code(&self) -> Option<&str> {
CreateCloudFrontOriginAccessIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCloudFrontOriginAccessIdentityError {
pub fn new(
kind: CreateCloudFrontOriginAccessIdentityErrorKind,
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: CreateCloudFrontOriginAccessIdentityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCloudFrontOriginAccessIdentityErrorKind::Unhandled(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_cloud_front_origin_access_identity_already_exists(&self) -> bool {
matches!(&self.kind, CreateCloudFrontOriginAccessIdentityErrorKind::CloudFrontOriginAccessIdentityAlreadyExists(_))
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateCloudFrontOriginAccessIdentityErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateCloudFrontOriginAccessIdentityErrorKind::InvalidArgument(_)
)
}
pub fn is_missing_body(&self) -> bool {
matches!(
&self.kind,
CreateCloudFrontOriginAccessIdentityErrorKind::MissingBody(_)
)
}
pub fn is_too_many_cloud_front_origin_access_identities(&self) -> bool {
matches!(
&self.kind,
CreateCloudFrontOriginAccessIdentityErrorKind::TooManyCloudFrontOriginAccessIdentities(
_
)
)
}
}
impl std::error::Error for CreateCloudFrontOriginAccessIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCloudFrontOriginAccessIdentityErrorKind::CloudFrontOriginAccessIdentityAlreadyExists(_inner) =>
Some(_inner)
,
CreateCloudFrontOriginAccessIdentityErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
CreateCloudFrontOriginAccessIdentityErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
CreateCloudFrontOriginAccessIdentityErrorKind::MissingBody(_inner) =>
Some(_inner)
,
CreateCloudFrontOriginAccessIdentityErrorKind::TooManyCloudFrontOriginAccessIdentities(_inner) =>
Some(_inner)
,
CreateCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDistributionError {
pub kind: CreateDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
CnameAlreadyExists(crate::error::CnameAlreadyExists),
DistributionAlreadyExists(crate::error::DistributionAlreadyExists),
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(
crate::error::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior,
),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidDefaultRootObject(crate::error::InvalidDefaultRootObject),
InvalidErrorCode(crate::error::InvalidErrorCode),
InvalidForwardCookies(crate::error::InvalidForwardCookies),
InvalidFunctionAssociation(crate::error::InvalidFunctionAssociation),
InvalidGeoRestrictionParameter(crate::error::InvalidGeoRestrictionParameter),
InvalidHeadersForS3Origin(crate::error::InvalidHeadersForS3Origin),
InvalidLambdaFunctionAssociation(crate::error::InvalidLambdaFunctionAssociation),
InvalidLocationCode(crate::error::InvalidLocationCode),
InvalidMinimumProtocolVersion(crate::error::InvalidMinimumProtocolVersion),
InvalidOrigin(crate::error::InvalidOrigin),
InvalidOriginAccessIdentity(crate::error::InvalidOriginAccessIdentity),
InvalidOriginKeepaliveTimeout(crate::error::InvalidOriginKeepaliveTimeout),
InvalidOriginReadTimeout(crate::error::InvalidOriginReadTimeout),
InvalidProtocolSettings(crate::error::InvalidProtocolSettings),
InvalidQueryStringParameters(crate::error::InvalidQueryStringParameters),
InvalidRelativePath(crate::error::InvalidRelativePath),
InvalidRequiredProtocol(crate::error::InvalidRequiredProtocol),
InvalidResponseCode(crate::error::InvalidResponseCode),
InvalidTtlOrder(crate::error::InvalidTtlOrder),
InvalidViewerCertificate(crate::error::InvalidViewerCertificate),
InvalidWebAclId(crate::error::InvalidWebAclId),
MissingBody(crate::error::MissingBody),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
NoSuchFieldLevelEncryptionConfig(crate::error::NoSuchFieldLevelEncryptionConfig),
NoSuchOrigin(crate::error::NoSuchOrigin),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
NoSuchRealtimeLogConfig(crate::error::NoSuchRealtimeLogConfig),
RealtimeLogConfigOwnerMismatch(crate::error::RealtimeLogConfigOwnerMismatch),
TooManyCacheBehaviors(crate::error::TooManyCacheBehaviors),
TooManyCertificates(crate::error::TooManyCertificates),
TooManyCookieNamesInWhiteList(crate::error::TooManyCookieNamesInWhiteList),
TooManyDistributionCnamEs(crate::error::TooManyDistributionCnamEs),
TooManyDistributions(crate::error::TooManyDistributions),
TooManyDistributionsAssociatedToCachePolicy(
crate::error::TooManyDistributionsAssociatedToCachePolicy,
),
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(
crate::error::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig,
),
TooManyDistributionsAssociatedToKeyGroup(
crate::error::TooManyDistributionsAssociatedToKeyGroup,
),
TooManyDistributionsAssociatedToOriginRequestPolicy(
crate::error::TooManyDistributionsAssociatedToOriginRequestPolicy,
),
TooManyDistributionsWithFunctionAssociations(
crate::error::TooManyDistributionsWithFunctionAssociations,
),
TooManyDistributionsWithLambdaAssociations(
crate::error::TooManyDistributionsWithLambdaAssociations,
),
TooManyDistributionsWithSingleFunctionArn(
crate::error::TooManyDistributionsWithSingleFunctionArn,
),
TooManyFunctionAssociations(crate::error::TooManyFunctionAssociations),
TooManyHeadersInForwardedValues(crate::error::TooManyHeadersInForwardedValues),
TooManyKeyGroupsAssociatedToDistribution(
crate::error::TooManyKeyGroupsAssociatedToDistribution,
),
TooManyLambdaFunctionAssociations(crate::error::TooManyLambdaFunctionAssociations),
TooManyOriginCustomHeaders(crate::error::TooManyOriginCustomHeaders),
TooManyOriginGroupsPerDistribution(crate::error::TooManyOriginGroupsPerDistribution),
TooManyOrigins(crate::error::TooManyOrigins),
TooManyQueryStringParameters(crate::error::TooManyQueryStringParameters),
TooManyTrustedSigners(crate::error::TooManyTrustedSigners),
TrustedKeyGroupDoesNotExist(crate::error::TrustedKeyGroupDoesNotExist),
TrustedSignerDoesNotExist(crate::error::TrustedSignerDoesNotExist),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDistributionErrorKind::AccessDenied(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::CnameAlreadyExists(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::DistributionAlreadyExists(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidDefaultRootObject(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidErrorCode(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidForwardCookies(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidFunctionAssociation(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidGeoRestrictionParameter(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidHeadersForS3Origin(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidLambdaFunctionAssociation(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidLocationCode(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidMinimumProtocolVersion(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidOrigin(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidOriginAccessIdentity(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidOriginKeepaliveTimeout(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidOriginReadTimeout(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidProtocolSettings(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidQueryStringParameters(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidRelativePath(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidRequiredProtocol(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidResponseCode(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidTtlOrder(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidViewerCertificate(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::InvalidWebAclId(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::MissingBody(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::NoSuchCachePolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::NoSuchOrigin(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::NoSuchOriginRequestPolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::NoSuchRealtimeLogConfig(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::RealtimeLogConfigOwnerMismatch(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyCacheBehaviors(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyCertificates(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyCookieNamesInWhiteList(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionCnamEs(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributions(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToCachePolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToKeyGroup(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionsWithFunctionAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionsWithLambdaAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyDistributionsWithSingleFunctionArn(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyFunctionAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyHeadersInForwardedValues(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyKeyGroupsAssociatedToDistribution(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyLambdaFunctionAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyOriginCustomHeaders(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyOriginGroupsPerDistribution(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyOrigins(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyQueryStringParameters(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TooManyTrustedSigners(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TrustedKeyGroupDoesNotExist(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::TrustedSignerDoesNotExist(_inner) =>
_inner.fmt(f)
,
CreateDistributionErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDistributionError {
fn code(&self) -> Option<&str> {
CreateDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDistributionError {
pub fn new(kind: CreateDistributionErrorKind, 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: CreateDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::AccessDenied(_))
}
pub fn is_cname_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::CnameAlreadyExists(_)
)
}
pub fn is_distribution_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::DistributionAlreadyExists(_)
)
}
pub fn is_illegal_field_level_encryption_config_association_with_cache_behavior(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_))
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::InvalidArgument(_))
}
pub fn is_invalid_default_root_object(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidDefaultRootObject(_)
)
}
pub fn is_invalid_error_code(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::InvalidErrorCode(_))
}
pub fn is_invalid_forward_cookies(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidForwardCookies(_)
)
}
pub fn is_invalid_function_association(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidFunctionAssociation(_)
)
}
pub fn is_invalid_geo_restriction_parameter(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidGeoRestrictionParameter(_)
)
}
pub fn is_invalid_headers_for_s3_origin(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidHeadersForS3Origin(_)
)
}
pub fn is_invalid_lambda_function_association(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidLambdaFunctionAssociation(_)
)
}
pub fn is_invalid_location_code(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidLocationCode(_)
)
}
pub fn is_invalid_minimum_protocol_version(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidMinimumProtocolVersion(_)
)
}
pub fn is_invalid_origin(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::InvalidOrigin(_))
}
pub fn is_invalid_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidOriginAccessIdentity(_)
)
}
pub fn is_invalid_origin_keepalive_timeout(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidOriginKeepaliveTimeout(_)
)
}
pub fn is_invalid_origin_read_timeout(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidOriginReadTimeout(_)
)
}
pub fn is_invalid_protocol_settings(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidProtocolSettings(_)
)
}
pub fn is_invalid_query_string_parameters(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidQueryStringParameters(_)
)
}
pub fn is_invalid_relative_path(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidRelativePath(_)
)
}
pub fn is_invalid_required_protocol(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidRequiredProtocol(_)
)
}
pub fn is_invalid_response_code(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidResponseCode(_)
)
}
pub fn is_invalid_ttl_order(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::InvalidTtlOrder(_))
}
pub fn is_invalid_viewer_certificate(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::InvalidViewerCertificate(_)
)
}
pub fn is_invalid_web_acl_id(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::InvalidWebAclId(_))
}
pub fn is_missing_body(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::MissingBody(_))
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::NoSuchCachePolicy(_)
)
}
pub fn is_no_such_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::NoSuchFieldLevelEncryptionConfig(_)
)
}
pub fn is_no_such_origin(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::NoSuchOrigin(_))
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::NoSuchOriginRequestPolicy(_)
)
}
pub fn is_no_such_realtime_log_config(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::NoSuchRealtimeLogConfig(_)
)
}
pub fn is_realtime_log_config_owner_mismatch(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::RealtimeLogConfigOwnerMismatch(_)
)
}
pub fn is_too_many_cache_behaviors(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyCacheBehaviors(_)
)
}
pub fn is_too_many_certificates(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyCertificates(_)
)
}
pub fn is_too_many_cookie_names_in_white_list(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyCookieNamesInWhiteList(_)
)
}
pub fn is_too_many_distribution_cnam_es(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionCnamEs(_)
)
}
pub fn is_too_many_distributions(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributions(_)
)
}
pub fn is_too_many_distributions_associated_to_cache_policy(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToCachePolicy(_)
)
}
pub fn is_too_many_distributions_associated_to_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(
_
)
)
}
pub fn is_too_many_distributions_associated_to_key_group(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToKeyGroup(_)
)
}
pub fn is_too_many_distributions_associated_to_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_)
)
}
pub fn is_too_many_distributions_with_function_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionsWithFunctionAssociations(_)
)
}
pub fn is_too_many_distributions_with_lambda_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionsWithLambdaAssociations(_)
)
}
pub fn is_too_many_distributions_with_single_function_arn(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyDistributionsWithSingleFunctionArn(_)
)
}
pub fn is_too_many_function_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyFunctionAssociations(_)
)
}
pub fn is_too_many_headers_in_forwarded_values(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyHeadersInForwardedValues(_)
)
}
pub fn is_too_many_key_groups_associated_to_distribution(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyKeyGroupsAssociatedToDistribution(_)
)
}
pub fn is_too_many_lambda_function_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyLambdaFunctionAssociations(_)
)
}
pub fn is_too_many_origin_custom_headers(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyOriginCustomHeaders(_)
)
}
pub fn is_too_many_origin_groups_per_distribution(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyOriginGroupsPerDistribution(_)
)
}
pub fn is_too_many_origins(&self) -> bool {
matches!(&self.kind, CreateDistributionErrorKind::TooManyOrigins(_))
}
pub fn is_too_many_query_string_parameters(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyQueryStringParameters(_)
)
}
pub fn is_too_many_trusted_signers(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TooManyTrustedSigners(_)
)
}
pub fn is_trusted_key_group_does_not_exist(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TrustedKeyGroupDoesNotExist(_)
)
}
pub fn is_trusted_signer_does_not_exist(&self) -> bool {
matches!(
&self.kind,
CreateDistributionErrorKind::TrustedSignerDoesNotExist(_)
)
}
}
impl std::error::Error for CreateDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDistributionErrorKind::AccessDenied(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::CnameAlreadyExists(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::DistributionAlreadyExists(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidDefaultRootObject(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidErrorCode(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidForwardCookies(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidFunctionAssociation(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidGeoRestrictionParameter(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidHeadersForS3Origin(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidLambdaFunctionAssociation(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidLocationCode(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidMinimumProtocolVersion(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidOrigin(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidOriginAccessIdentity(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidOriginKeepaliveTimeout(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidOriginReadTimeout(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidProtocolSettings(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidQueryStringParameters(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidRelativePath(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidRequiredProtocol(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidResponseCode(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidTtlOrder(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidViewerCertificate(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::InvalidWebAclId(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::MissingBody(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::NoSuchCachePolicy(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::NoSuchOrigin(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::NoSuchOriginRequestPolicy(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::NoSuchRealtimeLogConfig(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::RealtimeLogConfigOwnerMismatch(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyCacheBehaviors(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyCertificates(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyCookieNamesInWhiteList(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionCnamEs(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributions(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToCachePolicy(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToKeyGroup(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionsWithFunctionAssociations(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionsWithLambdaAssociations(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyDistributionsWithSingleFunctionArn(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyFunctionAssociations(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyHeadersInForwardedValues(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyKeyGroupsAssociatedToDistribution(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyLambdaFunctionAssociations(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyOriginCustomHeaders(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyOriginGroupsPerDistribution(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyOrigins(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyQueryStringParameters(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TooManyTrustedSigners(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TrustedKeyGroupDoesNotExist(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::TrustedSignerDoesNotExist(_inner) =>
Some(_inner)
,
CreateDistributionErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDistributionWithTagsError {
pub kind: CreateDistributionWithTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDistributionWithTagsErrorKind {
AccessDenied(crate::error::AccessDenied),
CnameAlreadyExists(crate::error::CnameAlreadyExists),
DistributionAlreadyExists(crate::error::DistributionAlreadyExists),
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(
crate::error::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior,
),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidDefaultRootObject(crate::error::InvalidDefaultRootObject),
InvalidErrorCode(crate::error::InvalidErrorCode),
InvalidForwardCookies(crate::error::InvalidForwardCookies),
InvalidFunctionAssociation(crate::error::InvalidFunctionAssociation),
InvalidGeoRestrictionParameter(crate::error::InvalidGeoRestrictionParameter),
InvalidHeadersForS3Origin(crate::error::InvalidHeadersForS3Origin),
InvalidLambdaFunctionAssociation(crate::error::InvalidLambdaFunctionAssociation),
InvalidLocationCode(crate::error::InvalidLocationCode),
InvalidMinimumProtocolVersion(crate::error::InvalidMinimumProtocolVersion),
InvalidOrigin(crate::error::InvalidOrigin),
InvalidOriginAccessIdentity(crate::error::InvalidOriginAccessIdentity),
InvalidOriginKeepaliveTimeout(crate::error::InvalidOriginKeepaliveTimeout),
InvalidOriginReadTimeout(crate::error::InvalidOriginReadTimeout),
InvalidProtocolSettings(crate::error::InvalidProtocolSettings),
InvalidQueryStringParameters(crate::error::InvalidQueryStringParameters),
InvalidRelativePath(crate::error::InvalidRelativePath),
InvalidRequiredProtocol(crate::error::InvalidRequiredProtocol),
InvalidResponseCode(crate::error::InvalidResponseCode),
InvalidTagging(crate::error::InvalidTagging),
InvalidTtlOrder(crate::error::InvalidTtlOrder),
InvalidViewerCertificate(crate::error::InvalidViewerCertificate),
InvalidWebAclId(crate::error::InvalidWebAclId),
MissingBody(crate::error::MissingBody),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
NoSuchFieldLevelEncryptionConfig(crate::error::NoSuchFieldLevelEncryptionConfig),
NoSuchOrigin(crate::error::NoSuchOrigin),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
NoSuchRealtimeLogConfig(crate::error::NoSuchRealtimeLogConfig),
RealtimeLogConfigOwnerMismatch(crate::error::RealtimeLogConfigOwnerMismatch),
TooManyCacheBehaviors(crate::error::TooManyCacheBehaviors),
TooManyCertificates(crate::error::TooManyCertificates),
TooManyCookieNamesInWhiteList(crate::error::TooManyCookieNamesInWhiteList),
TooManyDistributionCnamEs(crate::error::TooManyDistributionCnamEs),
TooManyDistributions(crate::error::TooManyDistributions),
TooManyDistributionsAssociatedToCachePolicy(
crate::error::TooManyDistributionsAssociatedToCachePolicy,
),
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(
crate::error::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig,
),
TooManyDistributionsAssociatedToKeyGroup(
crate::error::TooManyDistributionsAssociatedToKeyGroup,
),
TooManyDistributionsAssociatedToOriginRequestPolicy(
crate::error::TooManyDistributionsAssociatedToOriginRequestPolicy,
),
TooManyDistributionsWithFunctionAssociations(
crate::error::TooManyDistributionsWithFunctionAssociations,
),
TooManyDistributionsWithLambdaAssociations(
crate::error::TooManyDistributionsWithLambdaAssociations,
),
TooManyDistributionsWithSingleFunctionArn(
crate::error::TooManyDistributionsWithSingleFunctionArn,
),
TooManyFunctionAssociations(crate::error::TooManyFunctionAssociations),
TooManyHeadersInForwardedValues(crate::error::TooManyHeadersInForwardedValues),
TooManyKeyGroupsAssociatedToDistribution(
crate::error::TooManyKeyGroupsAssociatedToDistribution,
),
TooManyLambdaFunctionAssociations(crate::error::TooManyLambdaFunctionAssociations),
TooManyOriginCustomHeaders(crate::error::TooManyOriginCustomHeaders),
TooManyOriginGroupsPerDistribution(crate::error::TooManyOriginGroupsPerDistribution),
TooManyOrigins(crate::error::TooManyOrigins),
TooManyQueryStringParameters(crate::error::TooManyQueryStringParameters),
TooManyTrustedSigners(crate::error::TooManyTrustedSigners),
TrustedKeyGroupDoesNotExist(crate::error::TrustedKeyGroupDoesNotExist),
TrustedSignerDoesNotExist(crate::error::TrustedSignerDoesNotExist),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateDistributionWithTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDistributionWithTagsErrorKind::AccessDenied(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::CnameAlreadyExists(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::DistributionAlreadyExists(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidDefaultRootObject(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidErrorCode(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidForwardCookies(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidFunctionAssociation(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidGeoRestrictionParameter(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidHeadersForS3Origin(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidLambdaFunctionAssociation(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidLocationCode(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidMinimumProtocolVersion(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidOrigin(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidOriginAccessIdentity(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidOriginKeepaliveTimeout(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidOriginReadTimeout(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidProtocolSettings(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidQueryStringParameters(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidRelativePath(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidRequiredProtocol(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidResponseCode(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidTagging(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidTtlOrder(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidViewerCertificate(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::InvalidWebAclId(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::MissingBody(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::NoSuchCachePolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::NoSuchOrigin(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::NoSuchOriginRequestPolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::NoSuchRealtimeLogConfig(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::RealtimeLogConfigOwnerMismatch(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyCacheBehaviors(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyCertificates(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyCookieNamesInWhiteList(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionCnamEs(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributions(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToCachePolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToKeyGroup(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithFunctionAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithLambdaAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithSingleFunctionArn(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyFunctionAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyHeadersInForwardedValues(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyKeyGroupsAssociatedToDistribution(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyLambdaFunctionAssociations(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyOriginCustomHeaders(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyOriginGroupsPerDistribution(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyOrigins(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyQueryStringParameters(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TooManyTrustedSigners(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TrustedKeyGroupDoesNotExist(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::TrustedSignerDoesNotExist(_inner) =>
_inner.fmt(f)
,
CreateDistributionWithTagsErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDistributionWithTagsError {
fn code(&self) -> Option<&str> {
CreateDistributionWithTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDistributionWithTagsError {
pub fn new(kind: CreateDistributionWithTagsErrorKind, 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: CreateDistributionWithTagsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDistributionWithTagsErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::AccessDenied(_)
)
}
pub fn is_cname_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::CnameAlreadyExists(_)
)
}
pub fn is_distribution_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::DistributionAlreadyExists(_)
)
}
pub fn is_illegal_field_level_encryption_config_association_with_cache_behavior(&self) -> bool {
matches!(&self.kind, CreateDistributionWithTagsErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_))
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_default_root_object(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidDefaultRootObject(_)
)
}
pub fn is_invalid_error_code(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidErrorCode(_)
)
}
pub fn is_invalid_forward_cookies(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidForwardCookies(_)
)
}
pub fn is_invalid_function_association(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidFunctionAssociation(_)
)
}
pub fn is_invalid_geo_restriction_parameter(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidGeoRestrictionParameter(_)
)
}
pub fn is_invalid_headers_for_s3_origin(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidHeadersForS3Origin(_)
)
}
pub fn is_invalid_lambda_function_association(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidLambdaFunctionAssociation(_)
)
}
pub fn is_invalid_location_code(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidLocationCode(_)
)
}
pub fn is_invalid_minimum_protocol_version(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidMinimumProtocolVersion(_)
)
}
pub fn is_invalid_origin(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidOrigin(_)
)
}
pub fn is_invalid_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidOriginAccessIdentity(_)
)
}
pub fn is_invalid_origin_keepalive_timeout(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidOriginKeepaliveTimeout(_)
)
}
pub fn is_invalid_origin_read_timeout(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidOriginReadTimeout(_)
)
}
pub fn is_invalid_protocol_settings(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidProtocolSettings(_)
)
}
pub fn is_invalid_query_string_parameters(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidQueryStringParameters(_)
)
}
pub fn is_invalid_relative_path(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidRelativePath(_)
)
}
pub fn is_invalid_required_protocol(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidRequiredProtocol(_)
)
}
pub fn is_invalid_response_code(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidResponseCode(_)
)
}
pub fn is_invalid_tagging(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidTagging(_)
)
}
pub fn is_invalid_ttl_order(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidTtlOrder(_)
)
}
pub fn is_invalid_viewer_certificate(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidViewerCertificate(_)
)
}
pub fn is_invalid_web_acl_id(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::InvalidWebAclId(_)
)
}
pub fn is_missing_body(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::MissingBody(_)
)
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::NoSuchCachePolicy(_)
)
}
pub fn is_no_such_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::NoSuchFieldLevelEncryptionConfig(_)
)
}
pub fn is_no_such_origin(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::NoSuchOrigin(_)
)
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::NoSuchOriginRequestPolicy(_)
)
}
pub fn is_no_such_realtime_log_config(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::NoSuchRealtimeLogConfig(_)
)
}
pub fn is_realtime_log_config_owner_mismatch(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::RealtimeLogConfigOwnerMismatch(_)
)
}
pub fn is_too_many_cache_behaviors(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyCacheBehaviors(_)
)
}
pub fn is_too_many_certificates(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyCertificates(_)
)
}
pub fn is_too_many_cookie_names_in_white_list(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyCookieNamesInWhiteList(_)
)
}
pub fn is_too_many_distribution_cnam_es(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyDistributionCnamEs(_)
)
}
pub fn is_too_many_distributions(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyDistributions(_)
)
}
pub fn is_too_many_distributions_associated_to_cache_policy(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToCachePolicy(_)
)
}
pub fn is_too_many_distributions_associated_to_field_level_encryption_config(&self) -> bool {
matches!(&self.kind, CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_))
}
pub fn is_too_many_distributions_associated_to_key_group(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToKeyGroup(_)
)
}
pub fn is_too_many_distributions_associated_to_origin_request_policy(&self) -> bool {
matches!(&self.kind, CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_))
}
pub fn is_too_many_distributions_with_function_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithFunctionAssociations(_)
)
}
pub fn is_too_many_distributions_with_lambda_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithLambdaAssociations(_)
)
}
pub fn is_too_many_distributions_with_single_function_arn(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithSingleFunctionArn(_)
)
}
pub fn is_too_many_function_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyFunctionAssociations(_)
)
}
pub fn is_too_many_headers_in_forwarded_values(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyHeadersInForwardedValues(_)
)
}
pub fn is_too_many_key_groups_associated_to_distribution(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyKeyGroupsAssociatedToDistribution(_)
)
}
pub fn is_too_many_lambda_function_associations(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyLambdaFunctionAssociations(_)
)
}
pub fn is_too_many_origin_custom_headers(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyOriginCustomHeaders(_)
)
}
pub fn is_too_many_origin_groups_per_distribution(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyOriginGroupsPerDistribution(_)
)
}
pub fn is_too_many_origins(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyOrigins(_)
)
}
pub fn is_too_many_query_string_parameters(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyQueryStringParameters(_)
)
}
pub fn is_too_many_trusted_signers(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TooManyTrustedSigners(_)
)
}
pub fn is_trusted_key_group_does_not_exist(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TrustedKeyGroupDoesNotExist(_)
)
}
pub fn is_trusted_signer_does_not_exist(&self) -> bool {
matches!(
&self.kind,
CreateDistributionWithTagsErrorKind::TrustedSignerDoesNotExist(_)
)
}
}
impl std::error::Error for CreateDistributionWithTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDistributionWithTagsErrorKind::AccessDenied(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::CnameAlreadyExists(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::DistributionAlreadyExists(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidDefaultRootObject(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidErrorCode(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidForwardCookies(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidFunctionAssociation(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidGeoRestrictionParameter(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidHeadersForS3Origin(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidLambdaFunctionAssociation(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidLocationCode(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidMinimumProtocolVersion(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidOrigin(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidOriginAccessIdentity(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidOriginKeepaliveTimeout(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidOriginReadTimeout(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidProtocolSettings(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidQueryStringParameters(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidRelativePath(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidRequiredProtocol(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidResponseCode(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidTagging(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidTtlOrder(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidViewerCertificate(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::InvalidWebAclId(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::MissingBody(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::NoSuchCachePolicy(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::NoSuchOrigin(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::NoSuchOriginRequestPolicy(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::NoSuchRealtimeLogConfig(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::RealtimeLogConfigOwnerMismatch(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyCacheBehaviors(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyCertificates(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyCookieNamesInWhiteList(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionCnamEs(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributions(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToCachePolicy(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToKeyGroup(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithFunctionAssociations(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithLambdaAssociations(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyDistributionsWithSingleFunctionArn(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyFunctionAssociations(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyHeadersInForwardedValues(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyKeyGroupsAssociatedToDistribution(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyLambdaFunctionAssociations(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyOriginCustomHeaders(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyOriginGroupsPerDistribution(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyOrigins(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyQueryStringParameters(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TooManyTrustedSigners(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TrustedKeyGroupDoesNotExist(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::TrustedSignerDoesNotExist(_inner) =>
Some(_inner)
,
CreateDistributionWithTagsErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFieldLevelEncryptionConfigError {
pub kind: CreateFieldLevelEncryptionConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFieldLevelEncryptionConfigErrorKind {
FieldLevelEncryptionConfigAlreadyExists(crate::error::FieldLevelEncryptionConfigAlreadyExists),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
NoSuchFieldLevelEncryptionProfile(crate::error::NoSuchFieldLevelEncryptionProfile),
QueryArgProfileEmpty(crate::error::QueryArgProfileEmpty),
TooManyFieldLevelEncryptionConfigs(crate::error::TooManyFieldLevelEncryptionConfigs),
TooManyFieldLevelEncryptionContentTypeProfiles(
crate::error::TooManyFieldLevelEncryptionContentTypeProfiles,
),
TooManyFieldLevelEncryptionQueryArgProfiles(
crate::error::TooManyFieldLevelEncryptionQueryArgProfiles,
),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateFieldLevelEncryptionConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFieldLevelEncryptionConfigErrorKind::FieldLevelEncryptionConfigAlreadyExists(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::QueryArgProfileEmpty(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionConfigs(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionContentTypeProfiles(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionQueryArgProfiles(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFieldLevelEncryptionConfigError {
fn code(&self) -> Option<&str> {
CreateFieldLevelEncryptionConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFieldLevelEncryptionConfigError {
pub fn new(
kind: CreateFieldLevelEncryptionConfigErrorKind,
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: CreateFieldLevelEncryptionConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFieldLevelEncryptionConfigErrorKind::Unhandled(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_field_level_encryption_config_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionConfigErrorKind::FieldLevelEncryptionConfigAlreadyExists(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionConfigErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionConfigErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_field_level_encryption_profile(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionProfile(_)
)
}
pub fn is_query_arg_profile_empty(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionConfigErrorKind::QueryArgProfileEmpty(_)
)
}
pub fn is_too_many_field_level_encryption_configs(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionConfigs(_)
)
}
pub fn is_too_many_field_level_encryption_content_type_profiles(&self) -> bool {
matches!(&self.kind, CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionContentTypeProfiles(_))
}
pub fn is_too_many_field_level_encryption_query_arg_profiles(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionQueryArgProfiles(
_
)
)
}
}
impl std::error::Error for CreateFieldLevelEncryptionConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFieldLevelEncryptionConfigErrorKind::FieldLevelEncryptionConfigAlreadyExists(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::QueryArgProfileEmpty(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionConfigs(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionContentTypeProfiles(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionQueryArgProfiles(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFieldLevelEncryptionProfileError {
pub kind: CreateFieldLevelEncryptionProfileErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFieldLevelEncryptionProfileErrorKind {
FieldLevelEncryptionProfileAlreadyExists(
crate::error::FieldLevelEncryptionProfileAlreadyExists,
),
FieldLevelEncryptionProfileSizeExceeded(crate::error::FieldLevelEncryptionProfileSizeExceeded),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
NoSuchPublicKey(crate::error::NoSuchPublicKey),
TooManyFieldLevelEncryptionEncryptionEntities(
crate::error::TooManyFieldLevelEncryptionEncryptionEntities,
),
TooManyFieldLevelEncryptionFieldPatterns(
crate::error::TooManyFieldLevelEncryptionFieldPatterns,
),
TooManyFieldLevelEncryptionProfiles(crate::error::TooManyFieldLevelEncryptionProfiles),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateFieldLevelEncryptionProfileError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileAlreadyExists(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileSizeExceeded(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::NoSuchPublicKey(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionEncryptionEntities(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionFieldPatterns(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionProfiles(_inner) =>
_inner.fmt(f)
,
CreateFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFieldLevelEncryptionProfileError {
fn code(&self) -> Option<&str> {
CreateFieldLevelEncryptionProfileError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFieldLevelEncryptionProfileError {
pub fn new(
kind: CreateFieldLevelEncryptionProfileErrorKind,
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: CreateFieldLevelEncryptionProfileErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFieldLevelEncryptionProfileErrorKind::Unhandled(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_field_level_encryption_profile_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileAlreadyExists(_)
)
}
pub fn is_field_level_encryption_profile_size_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileSizeExceeded(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionProfileErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionProfileErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_public_key(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionProfileErrorKind::NoSuchPublicKey(_)
)
}
pub fn is_too_many_field_level_encryption_encryption_entities(&self) -> bool {
matches!(&self.kind, CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionEncryptionEntities(_))
}
pub fn is_too_many_field_level_encryption_field_patterns(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionFieldPatterns(_)
)
}
pub fn is_too_many_field_level_encryption_profiles(&self) -> bool {
matches!(
&self.kind,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionProfiles(_)
)
}
}
impl std::error::Error for CreateFieldLevelEncryptionProfileError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileAlreadyExists(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileSizeExceeded(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::NoSuchPublicKey(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionEncryptionEntities(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionFieldPatterns(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionProfiles(_inner) =>
Some(_inner)
,
CreateFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFunctionError {
pub kind: CreateFunctionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFunctionErrorKind {
FunctionAlreadyExists(crate::error::FunctionAlreadyExists),
FunctionSizeLimitExceeded(crate::error::FunctionSizeLimitExceeded),
InvalidArgument(crate::error::InvalidArgument),
TooManyFunctions(crate::error::TooManyFunctions),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateFunctionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFunctionErrorKind::FunctionAlreadyExists(_inner) => _inner.fmt(f),
CreateFunctionErrorKind::FunctionSizeLimitExceeded(_inner) => _inner.fmt(f),
CreateFunctionErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateFunctionErrorKind::TooManyFunctions(_inner) => _inner.fmt(f),
CreateFunctionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
CreateFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFunctionError {
fn code(&self) -> Option<&str> {
CreateFunctionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFunctionError {
pub fn new(kind: CreateFunctionErrorKind, 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: CreateFunctionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFunctionErrorKind::Unhandled(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_function_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateFunctionErrorKind::FunctionAlreadyExists(_)
)
}
pub fn is_function_size_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateFunctionErrorKind::FunctionSizeLimitExceeded(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, CreateFunctionErrorKind::InvalidArgument(_))
}
pub fn is_too_many_functions(&self) -> bool {
matches!(&self.kind, CreateFunctionErrorKind::TooManyFunctions(_))
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(&self.kind, CreateFunctionErrorKind::UnsupportedOperation(_))
}
}
impl std::error::Error for CreateFunctionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFunctionErrorKind::FunctionAlreadyExists(_inner) => Some(_inner),
CreateFunctionErrorKind::FunctionSizeLimitExceeded(_inner) => Some(_inner),
CreateFunctionErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateFunctionErrorKind::TooManyFunctions(_inner) => Some(_inner),
CreateFunctionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
CreateFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateInvalidationError {
pub kind: CreateInvalidationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateInvalidationErrorKind {
AccessDenied(crate::error::AccessDenied),
BatchTooLarge(crate::error::BatchTooLarge),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
MissingBody(crate::error::MissingBody),
NoSuchDistribution(crate::error::NoSuchDistribution),
TooManyInvalidationsInProgress(crate::error::TooManyInvalidationsInProgress),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateInvalidationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateInvalidationErrorKind::AccessDenied(_inner) => _inner.fmt(f),
CreateInvalidationErrorKind::BatchTooLarge(_inner) => _inner.fmt(f),
CreateInvalidationErrorKind::InconsistentQuantities(_inner) => _inner.fmt(f),
CreateInvalidationErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateInvalidationErrorKind::MissingBody(_inner) => _inner.fmt(f),
CreateInvalidationErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
CreateInvalidationErrorKind::TooManyInvalidationsInProgress(_inner) => _inner.fmt(f),
CreateInvalidationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateInvalidationError {
fn code(&self) -> Option<&str> {
CreateInvalidationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateInvalidationError {
pub fn new(kind: CreateInvalidationErrorKind, 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: CreateInvalidationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateInvalidationErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, CreateInvalidationErrorKind::AccessDenied(_))
}
pub fn is_batch_too_large(&self) -> bool {
matches!(&self.kind, CreateInvalidationErrorKind::BatchTooLarge(_))
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateInvalidationErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, CreateInvalidationErrorKind::InvalidArgument(_))
}
pub fn is_missing_body(&self) -> bool {
matches!(&self.kind, CreateInvalidationErrorKind::MissingBody(_))
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
CreateInvalidationErrorKind::NoSuchDistribution(_)
)
}
pub fn is_too_many_invalidations_in_progress(&self) -> bool {
matches!(
&self.kind,
CreateInvalidationErrorKind::TooManyInvalidationsInProgress(_)
)
}
}
impl std::error::Error for CreateInvalidationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateInvalidationErrorKind::AccessDenied(_inner) => Some(_inner),
CreateInvalidationErrorKind::BatchTooLarge(_inner) => Some(_inner),
CreateInvalidationErrorKind::InconsistentQuantities(_inner) => Some(_inner),
CreateInvalidationErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateInvalidationErrorKind::MissingBody(_inner) => Some(_inner),
CreateInvalidationErrorKind::NoSuchDistribution(_inner) => Some(_inner),
CreateInvalidationErrorKind::TooManyInvalidationsInProgress(_inner) => Some(_inner),
CreateInvalidationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateKeyGroupError {
pub kind: CreateKeyGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateKeyGroupErrorKind {
InvalidArgument(crate::error::InvalidArgument),
KeyGroupAlreadyExists(crate::error::KeyGroupAlreadyExists),
TooManyKeyGroups(crate::error::TooManyKeyGroups),
TooManyPublicKeysInKeyGroup(crate::error::TooManyPublicKeysInKeyGroup),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateKeyGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateKeyGroupErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateKeyGroupErrorKind::KeyGroupAlreadyExists(_inner) => _inner.fmt(f),
CreateKeyGroupErrorKind::TooManyKeyGroups(_inner) => _inner.fmt(f),
CreateKeyGroupErrorKind::TooManyPublicKeysInKeyGroup(_inner) => _inner.fmt(f),
CreateKeyGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateKeyGroupError {
fn code(&self) -> Option<&str> {
CreateKeyGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateKeyGroupError {
pub fn new(kind: CreateKeyGroupErrorKind, 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: CreateKeyGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateKeyGroupErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, CreateKeyGroupErrorKind::InvalidArgument(_))
}
pub fn is_key_group_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateKeyGroupErrorKind::KeyGroupAlreadyExists(_)
)
}
pub fn is_too_many_key_groups(&self) -> bool {
matches!(&self.kind, CreateKeyGroupErrorKind::TooManyKeyGroups(_))
}
pub fn is_too_many_public_keys_in_key_group(&self) -> bool {
matches!(
&self.kind,
CreateKeyGroupErrorKind::TooManyPublicKeysInKeyGroup(_)
)
}
}
impl std::error::Error for CreateKeyGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateKeyGroupErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateKeyGroupErrorKind::KeyGroupAlreadyExists(_inner) => Some(_inner),
CreateKeyGroupErrorKind::TooManyKeyGroups(_inner) => Some(_inner),
CreateKeyGroupErrorKind::TooManyPublicKeysInKeyGroup(_inner) => Some(_inner),
CreateKeyGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateMonitoringSubscriptionError {
pub kind: CreateMonitoringSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateMonitoringSubscriptionErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchDistribution(crate::error::NoSuchDistribution),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateMonitoringSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateMonitoringSubscriptionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
CreateMonitoringSubscriptionErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
CreateMonitoringSubscriptionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
CreateMonitoringSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateMonitoringSubscriptionError {
fn code(&self) -> Option<&str> {
CreateMonitoringSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateMonitoringSubscriptionError {
pub fn new(kind: CreateMonitoringSubscriptionErrorKind, 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: CreateMonitoringSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateMonitoringSubscriptionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
CreateMonitoringSubscriptionErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
CreateMonitoringSubscriptionErrorKind::NoSuchDistribution(_)
)
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(
&self.kind,
CreateMonitoringSubscriptionErrorKind::UnsupportedOperation(_)
)
}
}
impl std::error::Error for CreateMonitoringSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateMonitoringSubscriptionErrorKind::AccessDenied(_inner) => Some(_inner),
CreateMonitoringSubscriptionErrorKind::NoSuchDistribution(_inner) => Some(_inner),
CreateMonitoringSubscriptionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
CreateMonitoringSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateOriginRequestPolicyError {
pub kind: CreateOriginRequestPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateOriginRequestPolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
OriginRequestPolicyAlreadyExists(crate::error::OriginRequestPolicyAlreadyExists),
TooManyCookiesInOriginRequestPolicy(crate::error::TooManyCookiesInOriginRequestPolicy),
TooManyHeadersInOriginRequestPolicy(crate::error::TooManyHeadersInOriginRequestPolicy),
TooManyOriginRequestPolicies(crate::error::TooManyOriginRequestPolicies),
TooManyQueryStringsInOriginRequestPolicy(
crate::error::TooManyQueryStringsInOriginRequestPolicy,
),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateOriginRequestPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateOriginRequestPolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
CreateOriginRequestPolicyErrorKind::InconsistentQuantities(_inner) => _inner.fmt(f),
CreateOriginRequestPolicyErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateOriginRequestPolicyErrorKind::OriginRequestPolicyAlreadyExists(_inner) => {
_inner.fmt(f)
}
CreateOriginRequestPolicyErrorKind::TooManyCookiesInOriginRequestPolicy(_inner) => {
_inner.fmt(f)
}
CreateOriginRequestPolicyErrorKind::TooManyHeadersInOriginRequestPolicy(_inner) => {
_inner.fmt(f)
}
CreateOriginRequestPolicyErrorKind::TooManyOriginRequestPolicies(_inner) => {
_inner.fmt(f)
}
CreateOriginRequestPolicyErrorKind::TooManyQueryStringsInOriginRequestPolicy(
_inner,
) => _inner.fmt(f),
CreateOriginRequestPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateOriginRequestPolicyError {
fn code(&self) -> Option<&str> {
CreateOriginRequestPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateOriginRequestPolicyError {
pub fn new(kind: CreateOriginRequestPolicyErrorKind, 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: CreateOriginRequestPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateOriginRequestPolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::AccessDenied(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::InvalidArgument(_)
)
}
pub fn is_origin_request_policy_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::OriginRequestPolicyAlreadyExists(_)
)
}
pub fn is_too_many_cookies_in_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::TooManyCookiesInOriginRequestPolicy(_)
)
}
pub fn is_too_many_headers_in_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::TooManyHeadersInOriginRequestPolicy(_)
)
}
pub fn is_too_many_origin_request_policies(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::TooManyOriginRequestPolicies(_)
)
}
pub fn is_too_many_query_strings_in_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
CreateOriginRequestPolicyErrorKind::TooManyQueryStringsInOriginRequestPolicy(_)
)
}
}
impl std::error::Error for CreateOriginRequestPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateOriginRequestPolicyErrorKind::AccessDenied(_inner) => Some(_inner),
CreateOriginRequestPolicyErrorKind::InconsistentQuantities(_inner) => Some(_inner),
CreateOriginRequestPolicyErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateOriginRequestPolicyErrorKind::OriginRequestPolicyAlreadyExists(_inner) => {
Some(_inner)
}
CreateOriginRequestPolicyErrorKind::TooManyCookiesInOriginRequestPolicy(_inner) => {
Some(_inner)
}
CreateOriginRequestPolicyErrorKind::TooManyHeadersInOriginRequestPolicy(_inner) => {
Some(_inner)
}
CreateOriginRequestPolicyErrorKind::TooManyOriginRequestPolicies(_inner) => {
Some(_inner)
}
CreateOriginRequestPolicyErrorKind::TooManyQueryStringsInOriginRequestPolicy(
_inner,
) => Some(_inner),
CreateOriginRequestPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreatePublicKeyError {
pub kind: CreatePublicKeyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreatePublicKeyErrorKind {
InvalidArgument(crate::error::InvalidArgument),
PublicKeyAlreadyExists(crate::error::PublicKeyAlreadyExists),
TooManyPublicKeys(crate::error::TooManyPublicKeys),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreatePublicKeyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreatePublicKeyErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreatePublicKeyErrorKind::PublicKeyAlreadyExists(_inner) => _inner.fmt(f),
CreatePublicKeyErrorKind::TooManyPublicKeys(_inner) => _inner.fmt(f),
CreatePublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreatePublicKeyError {
fn code(&self) -> Option<&str> {
CreatePublicKeyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreatePublicKeyError {
pub fn new(kind: CreatePublicKeyErrorKind, 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: CreatePublicKeyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreatePublicKeyErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, CreatePublicKeyErrorKind::InvalidArgument(_))
}
pub fn is_public_key_already_exists(&self) -> bool {
matches!(
&self.kind,
CreatePublicKeyErrorKind::PublicKeyAlreadyExists(_)
)
}
pub fn is_too_many_public_keys(&self) -> bool {
matches!(&self.kind, CreatePublicKeyErrorKind::TooManyPublicKeys(_))
}
}
impl std::error::Error for CreatePublicKeyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreatePublicKeyErrorKind::InvalidArgument(_inner) => Some(_inner),
CreatePublicKeyErrorKind::PublicKeyAlreadyExists(_inner) => Some(_inner),
CreatePublicKeyErrorKind::TooManyPublicKeys(_inner) => Some(_inner),
CreatePublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateRealtimeLogConfigError {
pub kind: CreateRealtimeLogConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateRealtimeLogConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
RealtimeLogConfigAlreadyExists(crate::error::RealtimeLogConfigAlreadyExists),
TooManyRealtimeLogConfigs(crate::error::TooManyRealtimeLogConfigs),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateRealtimeLogConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateRealtimeLogConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
CreateRealtimeLogConfigErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateRealtimeLogConfigErrorKind::RealtimeLogConfigAlreadyExists(_inner) => {
_inner.fmt(f)
}
CreateRealtimeLogConfigErrorKind::TooManyRealtimeLogConfigs(_inner) => _inner.fmt(f),
CreateRealtimeLogConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateRealtimeLogConfigError {
fn code(&self) -> Option<&str> {
CreateRealtimeLogConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateRealtimeLogConfigError {
pub fn new(kind: CreateRealtimeLogConfigErrorKind, 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: CreateRealtimeLogConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateRealtimeLogConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
CreateRealtimeLogConfigErrorKind::AccessDenied(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateRealtimeLogConfigErrorKind::InvalidArgument(_)
)
}
pub fn is_realtime_log_config_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateRealtimeLogConfigErrorKind::RealtimeLogConfigAlreadyExists(_)
)
}
pub fn is_too_many_realtime_log_configs(&self) -> bool {
matches!(
&self.kind,
CreateRealtimeLogConfigErrorKind::TooManyRealtimeLogConfigs(_)
)
}
}
impl std::error::Error for CreateRealtimeLogConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateRealtimeLogConfigErrorKind::AccessDenied(_inner) => Some(_inner),
CreateRealtimeLogConfigErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateRealtimeLogConfigErrorKind::RealtimeLogConfigAlreadyExists(_inner) => {
Some(_inner)
}
CreateRealtimeLogConfigErrorKind::TooManyRealtimeLogConfigs(_inner) => Some(_inner),
CreateRealtimeLogConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateStreamingDistributionError {
pub kind: CreateStreamingDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateStreamingDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
CnameAlreadyExists(crate::error::CnameAlreadyExists),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidOrigin(crate::error::InvalidOrigin),
InvalidOriginAccessIdentity(crate::error::InvalidOriginAccessIdentity),
MissingBody(crate::error::MissingBody),
StreamingDistributionAlreadyExists(crate::error::StreamingDistributionAlreadyExists),
TooManyStreamingDistributionCnamEs(crate::error::TooManyStreamingDistributionCnamEs),
TooManyStreamingDistributions(crate::error::TooManyStreamingDistributions),
TooManyTrustedSigners(crate::error::TooManyTrustedSigners),
TrustedSignerDoesNotExist(crate::error::TrustedSignerDoesNotExist),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateStreamingDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateStreamingDistributionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
CreateStreamingDistributionErrorKind::CnameAlreadyExists(_inner) => _inner.fmt(f),
CreateStreamingDistributionErrorKind::InconsistentQuantities(_inner) => _inner.fmt(f),
CreateStreamingDistributionErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateStreamingDistributionErrorKind::InvalidOrigin(_inner) => _inner.fmt(f),
CreateStreamingDistributionErrorKind::InvalidOriginAccessIdentity(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionErrorKind::MissingBody(_inner) => _inner.fmt(f),
CreateStreamingDistributionErrorKind::StreamingDistributionAlreadyExists(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionErrorKind::TooManyStreamingDistributionCnamEs(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionErrorKind::TooManyStreamingDistributions(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionErrorKind::TooManyTrustedSigners(_inner) => _inner.fmt(f),
CreateStreamingDistributionErrorKind::TrustedSignerDoesNotExist(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateStreamingDistributionError {
fn code(&self) -> Option<&str> {
CreateStreamingDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateStreamingDistributionError {
pub fn new(kind: CreateStreamingDistributionErrorKind, 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: CreateStreamingDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateStreamingDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::AccessDenied(_)
)
}
pub fn is_cname_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::CnameAlreadyExists(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_origin(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::InvalidOrigin(_)
)
}
pub fn is_invalid_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::InvalidOriginAccessIdentity(_)
)
}
pub fn is_missing_body(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::MissingBody(_)
)
}
pub fn is_streaming_distribution_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::StreamingDistributionAlreadyExists(_)
)
}
pub fn is_too_many_streaming_distribution_cnam_es(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::TooManyStreamingDistributionCnamEs(_)
)
}
pub fn is_too_many_streaming_distributions(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::TooManyStreamingDistributions(_)
)
}
pub fn is_too_many_trusted_signers(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::TooManyTrustedSigners(_)
)
}
pub fn is_trusted_signer_does_not_exist(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionErrorKind::TrustedSignerDoesNotExist(_)
)
}
}
impl std::error::Error for CreateStreamingDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateStreamingDistributionErrorKind::AccessDenied(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::CnameAlreadyExists(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::InconsistentQuantities(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::InvalidOrigin(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::InvalidOriginAccessIdentity(_inner) => {
Some(_inner)
}
CreateStreamingDistributionErrorKind::MissingBody(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::StreamingDistributionAlreadyExists(_inner) => {
Some(_inner)
}
CreateStreamingDistributionErrorKind::TooManyStreamingDistributionCnamEs(_inner) => {
Some(_inner)
}
CreateStreamingDistributionErrorKind::TooManyStreamingDistributions(_inner) => {
Some(_inner)
}
CreateStreamingDistributionErrorKind::TooManyTrustedSigners(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::TrustedSignerDoesNotExist(_inner) => Some(_inner),
CreateStreamingDistributionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateStreamingDistributionWithTagsError {
pub kind: CreateStreamingDistributionWithTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateStreamingDistributionWithTagsErrorKind {
AccessDenied(crate::error::AccessDenied),
CnameAlreadyExists(crate::error::CnameAlreadyExists),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidOrigin(crate::error::InvalidOrigin),
InvalidOriginAccessIdentity(crate::error::InvalidOriginAccessIdentity),
InvalidTagging(crate::error::InvalidTagging),
MissingBody(crate::error::MissingBody),
StreamingDistributionAlreadyExists(crate::error::StreamingDistributionAlreadyExists),
TooManyStreamingDistributionCnamEs(crate::error::TooManyStreamingDistributionCnamEs),
TooManyStreamingDistributions(crate::error::TooManyStreamingDistributions),
TooManyTrustedSigners(crate::error::TooManyTrustedSigners),
TrustedSignerDoesNotExist(crate::error::TrustedSignerDoesNotExist),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateStreamingDistributionWithTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateStreamingDistributionWithTagsErrorKind::AccessDenied(_inner) => _inner.fmt(f),
CreateStreamingDistributionWithTagsErrorKind::CnameAlreadyExists(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionWithTagsErrorKind::InconsistentQuantities(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionWithTagsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
CreateStreamingDistributionWithTagsErrorKind::InvalidOrigin(_inner) => _inner.fmt(f),
CreateStreamingDistributionWithTagsErrorKind::InvalidOriginAccessIdentity(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionWithTagsErrorKind::InvalidTagging(_inner) => _inner.fmt(f),
CreateStreamingDistributionWithTagsErrorKind::MissingBody(_inner) => _inner.fmt(f),
CreateStreamingDistributionWithTagsErrorKind::StreamingDistributionAlreadyExists(
_inner,
) => _inner.fmt(f),
CreateStreamingDistributionWithTagsErrorKind::TooManyStreamingDistributionCnamEs(
_inner,
) => _inner.fmt(f),
CreateStreamingDistributionWithTagsErrorKind::TooManyStreamingDistributions(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionWithTagsErrorKind::TooManyTrustedSigners(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionWithTagsErrorKind::TrustedSignerDoesNotExist(_inner) => {
_inner.fmt(f)
}
CreateStreamingDistributionWithTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateStreamingDistributionWithTagsError {
fn code(&self) -> Option<&str> {
CreateStreamingDistributionWithTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateStreamingDistributionWithTagsError {
pub fn new(
kind: CreateStreamingDistributionWithTagsErrorKind,
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: CreateStreamingDistributionWithTagsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateStreamingDistributionWithTagsErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::AccessDenied(_)
)
}
pub fn is_cname_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::CnameAlreadyExists(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_origin(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::InvalidOrigin(_)
)
}
pub fn is_invalid_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::InvalidOriginAccessIdentity(_)
)
}
pub fn is_invalid_tagging(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::InvalidTagging(_)
)
}
pub fn is_missing_body(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::MissingBody(_)
)
}
pub fn is_streaming_distribution_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::StreamingDistributionAlreadyExists(_)
)
}
pub fn is_too_many_streaming_distribution_cnam_es(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::TooManyStreamingDistributionCnamEs(_)
)
}
pub fn is_too_many_streaming_distributions(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::TooManyStreamingDistributions(_)
)
}
pub fn is_too_many_trusted_signers(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::TooManyTrustedSigners(_)
)
}
pub fn is_trusted_signer_does_not_exist(&self) -> bool {
matches!(
&self.kind,
CreateStreamingDistributionWithTagsErrorKind::TrustedSignerDoesNotExist(_)
)
}
}
impl std::error::Error for CreateStreamingDistributionWithTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateStreamingDistributionWithTagsErrorKind::AccessDenied(_inner) => Some(_inner),
CreateStreamingDistributionWithTagsErrorKind::CnameAlreadyExists(_inner) => {
Some(_inner)
}
CreateStreamingDistributionWithTagsErrorKind::InconsistentQuantities(_inner) => {
Some(_inner)
}
CreateStreamingDistributionWithTagsErrorKind::InvalidArgument(_inner) => Some(_inner),
CreateStreamingDistributionWithTagsErrorKind::InvalidOrigin(_inner) => Some(_inner),
CreateStreamingDistributionWithTagsErrorKind::InvalidOriginAccessIdentity(_inner) => {
Some(_inner)
}
CreateStreamingDistributionWithTagsErrorKind::InvalidTagging(_inner) => Some(_inner),
CreateStreamingDistributionWithTagsErrorKind::MissingBody(_inner) => Some(_inner),
CreateStreamingDistributionWithTagsErrorKind::StreamingDistributionAlreadyExists(
_inner,
) => Some(_inner),
CreateStreamingDistributionWithTagsErrorKind::TooManyStreamingDistributionCnamEs(
_inner,
) => Some(_inner),
CreateStreamingDistributionWithTagsErrorKind::TooManyStreamingDistributions(_inner) => {
Some(_inner)
}
CreateStreamingDistributionWithTagsErrorKind::TooManyTrustedSigners(_inner) => {
Some(_inner)
}
CreateStreamingDistributionWithTagsErrorKind::TrustedSignerDoesNotExist(_inner) => {
Some(_inner)
}
CreateStreamingDistributionWithTagsErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteCachePolicyError {
pub kind: DeleteCachePolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteCachePolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
CachePolicyInUse(crate::error::CachePolicyInUse),
IllegalDelete(crate::error::IllegalDelete),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteCachePolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteCachePolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteCachePolicyErrorKind::CachePolicyInUse(_inner) => _inner.fmt(f),
DeleteCachePolicyErrorKind::IllegalDelete(_inner) => _inner.fmt(f),
DeleteCachePolicyErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
DeleteCachePolicyErrorKind::NoSuchCachePolicy(_inner) => _inner.fmt(f),
DeleteCachePolicyErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteCachePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteCachePolicyError {
fn code(&self) -> Option<&str> {
DeleteCachePolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteCachePolicyError {
pub fn new(kind: DeleteCachePolicyErrorKind, 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: DeleteCachePolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteCachePolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, DeleteCachePolicyErrorKind::AccessDenied(_))
}
pub fn is_cache_policy_in_use(&self) -> bool {
matches!(&self.kind, DeleteCachePolicyErrorKind::CachePolicyInUse(_))
}
pub fn is_illegal_delete(&self) -> bool {
matches!(&self.kind, DeleteCachePolicyErrorKind::IllegalDelete(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteCachePolicyErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(&self.kind, DeleteCachePolicyErrorKind::NoSuchCachePolicy(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
DeleteCachePolicyErrorKind::PreconditionFailed(_)
)
}
}
impl std::error::Error for DeleteCachePolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteCachePolicyErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteCachePolicyErrorKind::CachePolicyInUse(_inner) => Some(_inner),
DeleteCachePolicyErrorKind::IllegalDelete(_inner) => Some(_inner),
DeleteCachePolicyErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
DeleteCachePolicyErrorKind::NoSuchCachePolicy(_inner) => Some(_inner),
DeleteCachePolicyErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteCachePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteCloudFrontOriginAccessIdentityError {
pub kind: DeleteCloudFrontOriginAccessIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteCloudFrontOriginAccessIdentityErrorKind {
AccessDenied(crate::error::AccessDenied),
CloudFrontOriginAccessIdentityInUse(crate::error::CloudFrontOriginAccessIdentityInUse),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchCloudFrontOriginAccessIdentity(crate::error::NoSuchCloudFrontOriginAccessIdentity),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteCloudFrontOriginAccessIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteCloudFrontOriginAccessIdentityErrorKind::CloudFrontOriginAccessIdentityInUse(
_inner,
) => _inner.fmt(f),
DeleteCloudFrontOriginAccessIdentityErrorKind::InvalidIfMatchVersion(_inner) => {
_inner.fmt(f)
}
DeleteCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(
_inner,
) => _inner.fmt(f),
DeleteCloudFrontOriginAccessIdentityErrorKind::PreconditionFailed(_inner) => {
_inner.fmt(f)
}
DeleteCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteCloudFrontOriginAccessIdentityError {
fn code(&self) -> Option<&str> {
DeleteCloudFrontOriginAccessIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteCloudFrontOriginAccessIdentityError {
pub fn new(
kind: DeleteCloudFrontOriginAccessIdentityErrorKind,
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: DeleteCloudFrontOriginAccessIdentityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteCloudFrontOriginAccessIdentityErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
DeleteCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_)
)
}
pub fn is_cloud_front_origin_access_identity_in_use(&self) -> bool {
matches!(
&self.kind,
DeleteCloudFrontOriginAccessIdentityErrorKind::CloudFrontOriginAccessIdentityInUse(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteCloudFrontOriginAccessIdentityErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_cloud_front_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
DeleteCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
DeleteCloudFrontOriginAccessIdentityErrorKind::PreconditionFailed(_)
)
}
}
impl std::error::Error for DeleteCloudFrontOriginAccessIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteCloudFrontOriginAccessIdentityErrorKind::CloudFrontOriginAccessIdentityInUse(
_inner,
) => Some(_inner),
DeleteCloudFrontOriginAccessIdentityErrorKind::InvalidIfMatchVersion(_inner) => {
Some(_inner)
}
DeleteCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(
_inner,
) => Some(_inner),
DeleteCloudFrontOriginAccessIdentityErrorKind::PreconditionFailed(_inner) => {
Some(_inner)
}
DeleteCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDistributionError {
pub kind: DeleteDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
DistributionNotDisabled(crate::error::DistributionNotDisabled),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchDistribution(crate::error::NoSuchDistribution),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDistributionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteDistributionErrorKind::DistributionNotDisabled(_inner) => _inner.fmt(f),
DeleteDistributionErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
DeleteDistributionErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
DeleteDistributionErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteDistributionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDistributionError {
fn code(&self) -> Option<&str> {
DeleteDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDistributionError {
pub fn new(kind: DeleteDistributionErrorKind, 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: DeleteDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, DeleteDistributionErrorKind::AccessDenied(_))
}
pub fn is_distribution_not_disabled(&self) -> bool {
matches!(
&self.kind,
DeleteDistributionErrorKind::DistributionNotDisabled(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteDistributionErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
DeleteDistributionErrorKind::NoSuchDistribution(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
DeleteDistributionErrorKind::PreconditionFailed(_)
)
}
}
impl std::error::Error for DeleteDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDistributionErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteDistributionErrorKind::DistributionNotDisabled(_inner) => Some(_inner),
DeleteDistributionErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
DeleteDistributionErrorKind::NoSuchDistribution(_inner) => Some(_inner),
DeleteDistributionErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteDistributionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFieldLevelEncryptionConfigError {
pub kind: DeleteFieldLevelEncryptionConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFieldLevelEncryptionConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
FieldLevelEncryptionConfigInUse(crate::error::FieldLevelEncryptionConfigInUse),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFieldLevelEncryptionConfig(crate::error::NoSuchFieldLevelEncryptionConfig),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteFieldLevelEncryptionConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFieldLevelEncryptionConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteFieldLevelEncryptionConfigErrorKind::FieldLevelEncryptionConfigInUse(_inner) => {
_inner.fmt(f)
}
DeleteFieldLevelEncryptionConfigErrorKind::InvalidIfMatchVersion(_inner) => {
_inner.fmt(f)
}
DeleteFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) => {
_inner.fmt(f)
}
DeleteFieldLevelEncryptionConfigErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFieldLevelEncryptionConfigError {
fn code(&self) -> Option<&str> {
DeleteFieldLevelEncryptionConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFieldLevelEncryptionConfigError {
pub fn new(
kind: DeleteFieldLevelEncryptionConfigErrorKind,
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: DeleteFieldLevelEncryptionConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFieldLevelEncryptionConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionConfigErrorKind::AccessDenied(_)
)
}
pub fn is_field_level_encryption_config_in_use(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionConfigErrorKind::FieldLevelEncryptionConfigInUse(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionConfigErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionConfigErrorKind::PreconditionFailed(_)
)
}
}
impl std::error::Error for DeleteFieldLevelEncryptionConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFieldLevelEncryptionConfigErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteFieldLevelEncryptionConfigErrorKind::FieldLevelEncryptionConfigInUse(_inner) => {
Some(_inner)
}
DeleteFieldLevelEncryptionConfigErrorKind::InvalidIfMatchVersion(_inner) => {
Some(_inner)
}
DeleteFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) => {
Some(_inner)
}
DeleteFieldLevelEncryptionConfigErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFieldLevelEncryptionProfileError {
pub kind: DeleteFieldLevelEncryptionProfileErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFieldLevelEncryptionProfileErrorKind {
AccessDenied(crate::error::AccessDenied),
FieldLevelEncryptionProfileInUse(crate::error::FieldLevelEncryptionProfileInUse),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFieldLevelEncryptionProfile(crate::error::NoSuchFieldLevelEncryptionProfile),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteFieldLevelEncryptionProfileError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFieldLevelEncryptionProfileErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileInUse(
_inner,
) => _inner.fmt(f),
DeleteFieldLevelEncryptionProfileErrorKind::InvalidIfMatchVersion(_inner) => {
_inner.fmt(f)
}
DeleteFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(
_inner,
) => _inner.fmt(f),
DeleteFieldLevelEncryptionProfileErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFieldLevelEncryptionProfileError {
fn code(&self) -> Option<&str> {
DeleteFieldLevelEncryptionProfileError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFieldLevelEncryptionProfileError {
pub fn new(
kind: DeleteFieldLevelEncryptionProfileErrorKind,
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: DeleteFieldLevelEncryptionProfileErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFieldLevelEncryptionProfileErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionProfileErrorKind::AccessDenied(_)
)
}
pub fn is_field_level_encryption_profile_in_use(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileInUse(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionProfileErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_field_level_encryption_profile(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
DeleteFieldLevelEncryptionProfileErrorKind::PreconditionFailed(_)
)
}
}
impl std::error::Error for DeleteFieldLevelEncryptionProfileError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFieldLevelEncryptionProfileErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileInUse(
_inner,
) => Some(_inner),
DeleteFieldLevelEncryptionProfileErrorKind::InvalidIfMatchVersion(_inner) => {
Some(_inner)
}
DeleteFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(
_inner,
) => Some(_inner),
DeleteFieldLevelEncryptionProfileErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFunctionError {
pub kind: DeleteFunctionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFunctionErrorKind {
FunctionInUse(crate::error::FunctionInUse),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFunctionExists(crate::error::NoSuchFunctionExists),
PreconditionFailed(crate::error::PreconditionFailed),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteFunctionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFunctionErrorKind::FunctionInUse(_inner) => _inner.fmt(f),
DeleteFunctionErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
DeleteFunctionErrorKind::NoSuchFunctionExists(_inner) => _inner.fmt(f),
DeleteFunctionErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteFunctionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
DeleteFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFunctionError {
fn code(&self) -> Option<&str> {
DeleteFunctionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFunctionError {
pub fn new(kind: DeleteFunctionErrorKind, 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: DeleteFunctionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFunctionErrorKind::Unhandled(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_function_in_use(&self) -> bool {
matches!(&self.kind, DeleteFunctionErrorKind::FunctionInUse(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteFunctionErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_function_exists(&self) -> bool {
matches!(&self.kind, DeleteFunctionErrorKind::NoSuchFunctionExists(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(&self.kind, DeleteFunctionErrorKind::PreconditionFailed(_))
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(&self.kind, DeleteFunctionErrorKind::UnsupportedOperation(_))
}
}
impl std::error::Error for DeleteFunctionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFunctionErrorKind::FunctionInUse(_inner) => Some(_inner),
DeleteFunctionErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
DeleteFunctionErrorKind::NoSuchFunctionExists(_inner) => Some(_inner),
DeleteFunctionErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteFunctionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
DeleteFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteKeyGroupError {
pub kind: DeleteKeyGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteKeyGroupErrorKind {
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchResource(crate::error::NoSuchResource),
PreconditionFailed(crate::error::PreconditionFailed),
ResourceInUse(crate::error::ResourceInUse),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteKeyGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteKeyGroupErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
DeleteKeyGroupErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
DeleteKeyGroupErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteKeyGroupErrorKind::ResourceInUse(_inner) => _inner.fmt(f),
DeleteKeyGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteKeyGroupError {
fn code(&self) -> Option<&str> {
DeleteKeyGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteKeyGroupError {
pub fn new(kind: DeleteKeyGroupErrorKind, 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: DeleteKeyGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteKeyGroupErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteKeyGroupErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_resource(&self) -> bool {
matches!(&self.kind, DeleteKeyGroupErrorKind::NoSuchResource(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(&self.kind, DeleteKeyGroupErrorKind::PreconditionFailed(_))
}
pub fn is_resource_in_use(&self) -> bool {
matches!(&self.kind, DeleteKeyGroupErrorKind::ResourceInUse(_))
}
}
impl std::error::Error for DeleteKeyGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteKeyGroupErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
DeleteKeyGroupErrorKind::NoSuchResource(_inner) => Some(_inner),
DeleteKeyGroupErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteKeyGroupErrorKind::ResourceInUse(_inner) => Some(_inner),
DeleteKeyGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteMonitoringSubscriptionError {
pub kind: DeleteMonitoringSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteMonitoringSubscriptionErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchDistribution(crate::error::NoSuchDistribution),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteMonitoringSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteMonitoringSubscriptionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteMonitoringSubscriptionErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
DeleteMonitoringSubscriptionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
DeleteMonitoringSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteMonitoringSubscriptionError {
fn code(&self) -> Option<&str> {
DeleteMonitoringSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteMonitoringSubscriptionError {
pub fn new(kind: DeleteMonitoringSubscriptionErrorKind, 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: DeleteMonitoringSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteMonitoringSubscriptionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
DeleteMonitoringSubscriptionErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
DeleteMonitoringSubscriptionErrorKind::NoSuchDistribution(_)
)
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(
&self.kind,
DeleteMonitoringSubscriptionErrorKind::UnsupportedOperation(_)
)
}
}
impl std::error::Error for DeleteMonitoringSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteMonitoringSubscriptionErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteMonitoringSubscriptionErrorKind::NoSuchDistribution(_inner) => Some(_inner),
DeleteMonitoringSubscriptionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
DeleteMonitoringSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteOriginRequestPolicyError {
pub kind: DeleteOriginRequestPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteOriginRequestPolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
IllegalDelete(crate::error::IllegalDelete),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
OriginRequestPolicyInUse(crate::error::OriginRequestPolicyInUse),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteOriginRequestPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteOriginRequestPolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteOriginRequestPolicyErrorKind::IllegalDelete(_inner) => _inner.fmt(f),
DeleteOriginRequestPolicyErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
DeleteOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_inner) => _inner.fmt(f),
DeleteOriginRequestPolicyErrorKind::OriginRequestPolicyInUse(_inner) => _inner.fmt(f),
DeleteOriginRequestPolicyErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteOriginRequestPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteOriginRequestPolicyError {
fn code(&self) -> Option<&str> {
DeleteOriginRequestPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteOriginRequestPolicyError {
pub fn new(kind: DeleteOriginRequestPolicyErrorKind, 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: DeleteOriginRequestPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteOriginRequestPolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
DeleteOriginRequestPolicyErrorKind::AccessDenied(_)
)
}
pub fn is_illegal_delete(&self) -> bool {
matches!(
&self.kind,
DeleteOriginRequestPolicyErrorKind::IllegalDelete(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteOriginRequestPolicyErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
DeleteOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_)
)
}
pub fn is_origin_request_policy_in_use(&self) -> bool {
matches!(
&self.kind,
DeleteOriginRequestPolicyErrorKind::OriginRequestPolicyInUse(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
DeleteOriginRequestPolicyErrorKind::PreconditionFailed(_)
)
}
}
impl std::error::Error for DeleteOriginRequestPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteOriginRequestPolicyErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteOriginRequestPolicyErrorKind::IllegalDelete(_inner) => Some(_inner),
DeleteOriginRequestPolicyErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
DeleteOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_inner) => Some(_inner),
DeleteOriginRequestPolicyErrorKind::OriginRequestPolicyInUse(_inner) => Some(_inner),
DeleteOriginRequestPolicyErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteOriginRequestPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeletePublicKeyError {
pub kind: DeletePublicKeyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeletePublicKeyErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchPublicKey(crate::error::NoSuchPublicKey),
PreconditionFailed(crate::error::PreconditionFailed),
PublicKeyInUse(crate::error::PublicKeyInUse),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeletePublicKeyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeletePublicKeyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeletePublicKeyErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
DeletePublicKeyErrorKind::NoSuchPublicKey(_inner) => _inner.fmt(f),
DeletePublicKeyErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeletePublicKeyErrorKind::PublicKeyInUse(_inner) => _inner.fmt(f),
DeletePublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeletePublicKeyError {
fn code(&self) -> Option<&str> {
DeletePublicKeyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeletePublicKeyError {
pub fn new(kind: DeletePublicKeyErrorKind, 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: DeletePublicKeyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeletePublicKeyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, DeletePublicKeyErrorKind::AccessDenied(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeletePublicKeyErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_public_key(&self) -> bool {
matches!(&self.kind, DeletePublicKeyErrorKind::NoSuchPublicKey(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(&self.kind, DeletePublicKeyErrorKind::PreconditionFailed(_))
}
pub fn is_public_key_in_use(&self) -> bool {
matches!(&self.kind, DeletePublicKeyErrorKind::PublicKeyInUse(_))
}
}
impl std::error::Error for DeletePublicKeyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeletePublicKeyErrorKind::AccessDenied(_inner) => Some(_inner),
DeletePublicKeyErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
DeletePublicKeyErrorKind::NoSuchPublicKey(_inner) => Some(_inner),
DeletePublicKeyErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeletePublicKeyErrorKind::PublicKeyInUse(_inner) => Some(_inner),
DeletePublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteRealtimeLogConfigError {
pub kind: DeleteRealtimeLogConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteRealtimeLogConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchRealtimeLogConfig(crate::error::NoSuchRealtimeLogConfig),
RealtimeLogConfigInUse(crate::error::RealtimeLogConfigInUse),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteRealtimeLogConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteRealtimeLogConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteRealtimeLogConfigErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
DeleteRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_inner) => _inner.fmt(f),
DeleteRealtimeLogConfigErrorKind::RealtimeLogConfigInUse(_inner) => _inner.fmt(f),
DeleteRealtimeLogConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteRealtimeLogConfigError {
fn code(&self) -> Option<&str> {
DeleteRealtimeLogConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteRealtimeLogConfigError {
pub fn new(kind: DeleteRealtimeLogConfigErrorKind, 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: DeleteRealtimeLogConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteRealtimeLogConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
DeleteRealtimeLogConfigErrorKind::AccessDenied(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
DeleteRealtimeLogConfigErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_realtime_log_config(&self) -> bool {
matches!(
&self.kind,
DeleteRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_)
)
}
pub fn is_realtime_log_config_in_use(&self) -> bool {
matches!(
&self.kind,
DeleteRealtimeLogConfigErrorKind::RealtimeLogConfigInUse(_)
)
}
}
impl std::error::Error for DeleteRealtimeLogConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteRealtimeLogConfigErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteRealtimeLogConfigErrorKind::InvalidArgument(_inner) => Some(_inner),
DeleteRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_inner) => Some(_inner),
DeleteRealtimeLogConfigErrorKind::RealtimeLogConfigInUse(_inner) => Some(_inner),
DeleteRealtimeLogConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteStreamingDistributionError {
pub kind: DeleteStreamingDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteStreamingDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchStreamingDistribution(crate::error::NoSuchStreamingDistribution),
PreconditionFailed(crate::error::PreconditionFailed),
StreamingDistributionNotDisabled(crate::error::StreamingDistributionNotDisabled),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteStreamingDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteStreamingDistributionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
DeleteStreamingDistributionErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
DeleteStreamingDistributionErrorKind::NoSuchStreamingDistribution(_inner) => {
_inner.fmt(f)
}
DeleteStreamingDistributionErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
DeleteStreamingDistributionErrorKind::StreamingDistributionNotDisabled(_inner) => {
_inner.fmt(f)
}
DeleteStreamingDistributionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteStreamingDistributionError {
fn code(&self) -> Option<&str> {
DeleteStreamingDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteStreamingDistributionError {
pub fn new(kind: DeleteStreamingDistributionErrorKind, 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: DeleteStreamingDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteStreamingDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
DeleteStreamingDistributionErrorKind::AccessDenied(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
DeleteStreamingDistributionErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_streaming_distribution(&self) -> bool {
matches!(
&self.kind,
DeleteStreamingDistributionErrorKind::NoSuchStreamingDistribution(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
DeleteStreamingDistributionErrorKind::PreconditionFailed(_)
)
}
pub fn is_streaming_distribution_not_disabled(&self) -> bool {
matches!(
&self.kind,
DeleteStreamingDistributionErrorKind::StreamingDistributionNotDisabled(_)
)
}
}
impl std::error::Error for DeleteStreamingDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteStreamingDistributionErrorKind::AccessDenied(_inner) => Some(_inner),
DeleteStreamingDistributionErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
DeleteStreamingDistributionErrorKind::NoSuchStreamingDistribution(_inner) => {
Some(_inner)
}
DeleteStreamingDistributionErrorKind::PreconditionFailed(_inner) => Some(_inner),
DeleteStreamingDistributionErrorKind::StreamingDistributionNotDisabled(_inner) => {
Some(_inner)
}
DeleteStreamingDistributionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFunctionError {
pub kind: DescribeFunctionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFunctionErrorKind {
NoSuchFunctionExists(crate::error::NoSuchFunctionExists),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeFunctionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFunctionErrorKind::NoSuchFunctionExists(_inner) => _inner.fmt(f),
DescribeFunctionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
DescribeFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFunctionError {
fn code(&self) -> Option<&str> {
DescribeFunctionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFunctionError {
pub fn new(kind: DescribeFunctionErrorKind, 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: DescribeFunctionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFunctionErrorKind::Unhandled(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_no_such_function_exists(&self) -> bool {
matches!(
&self.kind,
DescribeFunctionErrorKind::NoSuchFunctionExists(_)
)
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(
&self.kind,
DescribeFunctionErrorKind::UnsupportedOperation(_)
)
}
}
impl std::error::Error for DescribeFunctionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFunctionErrorKind::NoSuchFunctionExists(_inner) => Some(_inner),
DescribeFunctionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
DescribeFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCachePolicyError {
pub kind: GetCachePolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCachePolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetCachePolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCachePolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetCachePolicyErrorKind::NoSuchCachePolicy(_inner) => _inner.fmt(f),
GetCachePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCachePolicyError {
fn code(&self) -> Option<&str> {
GetCachePolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCachePolicyError {
pub fn new(kind: GetCachePolicyErrorKind, 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: GetCachePolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCachePolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetCachePolicyErrorKind::AccessDenied(_))
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(&self.kind, GetCachePolicyErrorKind::NoSuchCachePolicy(_))
}
}
impl std::error::Error for GetCachePolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCachePolicyErrorKind::AccessDenied(_inner) => Some(_inner),
GetCachePolicyErrorKind::NoSuchCachePolicy(_inner) => Some(_inner),
GetCachePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCachePolicyConfigError {
pub kind: GetCachePolicyConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCachePolicyConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetCachePolicyConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCachePolicyConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetCachePolicyConfigErrorKind::NoSuchCachePolicy(_inner) => _inner.fmt(f),
GetCachePolicyConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCachePolicyConfigError {
fn code(&self) -> Option<&str> {
GetCachePolicyConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCachePolicyConfigError {
pub fn new(kind: GetCachePolicyConfigErrorKind, 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: GetCachePolicyConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCachePolicyConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetCachePolicyConfigErrorKind::AccessDenied(_))
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(
&self.kind,
GetCachePolicyConfigErrorKind::NoSuchCachePolicy(_)
)
}
}
impl std::error::Error for GetCachePolicyConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCachePolicyConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetCachePolicyConfigErrorKind::NoSuchCachePolicy(_inner) => Some(_inner),
GetCachePolicyConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCloudFrontOriginAccessIdentityError {
pub kind: GetCloudFrontOriginAccessIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCloudFrontOriginAccessIdentityErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchCloudFrontOriginAccessIdentity(crate::error::NoSuchCloudFrontOriginAccessIdentity),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetCloudFrontOriginAccessIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(
_inner,
) => _inner.fmt(f),
GetCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCloudFrontOriginAccessIdentityError {
fn code(&self) -> Option<&str> {
GetCloudFrontOriginAccessIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCloudFrontOriginAccessIdentityError {
pub fn new(
kind: GetCloudFrontOriginAccessIdentityErrorKind,
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: GetCloudFrontOriginAccessIdentityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCloudFrontOriginAccessIdentityErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_cloud_front_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
GetCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(_)
)
}
}
impl std::error::Error for GetCloudFrontOriginAccessIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_inner) => Some(_inner),
GetCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(
_inner,
) => Some(_inner),
GetCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCloudFrontOriginAccessIdentityConfigError {
pub kind: GetCloudFrontOriginAccessIdentityConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCloudFrontOriginAccessIdentityConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchCloudFrontOriginAccessIdentity(crate::error::NoSuchCloudFrontOriginAccessIdentity),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetCloudFrontOriginAccessIdentityConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCloudFrontOriginAccessIdentityConfigErrorKind::AccessDenied(_inner) =>
_inner.fmt(f)
,
GetCloudFrontOriginAccessIdentityConfigErrorKind::NoSuchCloudFrontOriginAccessIdentity(_inner) =>
_inner.fmt(f)
,
GetCloudFrontOriginAccessIdentityConfigErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCloudFrontOriginAccessIdentityConfigError {
fn code(&self) -> Option<&str> {
GetCloudFrontOriginAccessIdentityConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCloudFrontOriginAccessIdentityConfigError {
pub fn new(
kind: GetCloudFrontOriginAccessIdentityConfigErrorKind,
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: GetCloudFrontOriginAccessIdentityConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCloudFrontOriginAccessIdentityConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetCloudFrontOriginAccessIdentityConfigErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_cloud_front_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
GetCloudFrontOriginAccessIdentityConfigErrorKind::NoSuchCloudFrontOriginAccessIdentity(
_
)
)
}
}
impl std::error::Error for GetCloudFrontOriginAccessIdentityConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCloudFrontOriginAccessIdentityConfigErrorKind::AccessDenied(_inner) =>
Some(_inner)
,
GetCloudFrontOriginAccessIdentityConfigErrorKind::NoSuchCloudFrontOriginAccessIdentity(_inner) =>
Some(_inner)
,
GetCloudFrontOriginAccessIdentityConfigErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDistributionError {
pub kind: GetDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchDistribution(crate::error::NoSuchDistribution),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDistributionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetDistributionErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
GetDistributionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDistributionError {
fn code(&self) -> Option<&str> {
GetDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDistributionError {
pub fn new(kind: GetDistributionErrorKind, 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: GetDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetDistributionErrorKind::AccessDenied(_))
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(&self.kind, GetDistributionErrorKind::NoSuchDistribution(_))
}
}
impl std::error::Error for GetDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDistributionErrorKind::AccessDenied(_inner) => Some(_inner),
GetDistributionErrorKind::NoSuchDistribution(_inner) => Some(_inner),
GetDistributionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDistributionConfigError {
pub kind: GetDistributionConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDistributionConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchDistribution(crate::error::NoSuchDistribution),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetDistributionConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDistributionConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetDistributionConfigErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
GetDistributionConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDistributionConfigError {
fn code(&self) -> Option<&str> {
GetDistributionConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDistributionConfigError {
pub fn new(kind: GetDistributionConfigErrorKind, 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: GetDistributionConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDistributionConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetDistributionConfigErrorKind::AccessDenied(_))
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
GetDistributionConfigErrorKind::NoSuchDistribution(_)
)
}
}
impl std::error::Error for GetDistributionConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDistributionConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetDistributionConfigErrorKind::NoSuchDistribution(_inner) => Some(_inner),
GetDistributionConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetFieldLevelEncryptionError {
pub kind: GetFieldLevelEncryptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetFieldLevelEncryptionErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchFieldLevelEncryptionConfig(crate::error::NoSuchFieldLevelEncryptionConfig),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetFieldLevelEncryptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetFieldLevelEncryptionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetFieldLevelEncryptionErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) => {
_inner.fmt(f)
}
GetFieldLevelEncryptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetFieldLevelEncryptionError {
fn code(&self) -> Option<&str> {
GetFieldLevelEncryptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetFieldLevelEncryptionError {
pub fn new(kind: GetFieldLevelEncryptionErrorKind, 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: GetFieldLevelEncryptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetFieldLevelEncryptionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionErrorKind::NoSuchFieldLevelEncryptionConfig(_)
)
}
}
impl std::error::Error for GetFieldLevelEncryptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetFieldLevelEncryptionErrorKind::AccessDenied(_inner) => Some(_inner),
GetFieldLevelEncryptionErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) => {
Some(_inner)
}
GetFieldLevelEncryptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetFieldLevelEncryptionConfigError {
pub kind: GetFieldLevelEncryptionConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetFieldLevelEncryptionConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchFieldLevelEncryptionConfig(crate::error::NoSuchFieldLevelEncryptionConfig),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetFieldLevelEncryptionConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetFieldLevelEncryptionConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) => {
_inner.fmt(f)
}
GetFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetFieldLevelEncryptionConfigError {
fn code(&self) -> Option<&str> {
GetFieldLevelEncryptionConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetFieldLevelEncryptionConfigError {
pub fn new(
kind: GetFieldLevelEncryptionConfigErrorKind,
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: GetFieldLevelEncryptionConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetFieldLevelEncryptionConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionConfigErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_)
)
}
}
impl std::error::Error for GetFieldLevelEncryptionConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetFieldLevelEncryptionConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) => {
Some(_inner)
}
GetFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetFieldLevelEncryptionProfileError {
pub kind: GetFieldLevelEncryptionProfileErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetFieldLevelEncryptionProfileErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchFieldLevelEncryptionProfile(crate::error::NoSuchFieldLevelEncryptionProfile),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetFieldLevelEncryptionProfileError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetFieldLevelEncryptionProfileErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) => {
_inner.fmt(f)
}
GetFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetFieldLevelEncryptionProfileError {
fn code(&self) -> Option<&str> {
GetFieldLevelEncryptionProfileError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetFieldLevelEncryptionProfileError {
pub fn new(
kind: GetFieldLevelEncryptionProfileErrorKind,
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: GetFieldLevelEncryptionProfileErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetFieldLevelEncryptionProfileErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionProfileErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_field_level_encryption_profile(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(_)
)
}
}
impl std::error::Error for GetFieldLevelEncryptionProfileError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetFieldLevelEncryptionProfileErrorKind::AccessDenied(_inner) => Some(_inner),
GetFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) => {
Some(_inner)
}
GetFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetFieldLevelEncryptionProfileConfigError {
pub kind: GetFieldLevelEncryptionProfileConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetFieldLevelEncryptionProfileConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchFieldLevelEncryptionProfile(crate::error::NoSuchFieldLevelEncryptionProfile),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetFieldLevelEncryptionProfileConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetFieldLevelEncryptionProfileConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetFieldLevelEncryptionProfileConfigErrorKind::NoSuchFieldLevelEncryptionProfile(
_inner,
) => _inner.fmt(f),
GetFieldLevelEncryptionProfileConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetFieldLevelEncryptionProfileConfigError {
fn code(&self) -> Option<&str> {
GetFieldLevelEncryptionProfileConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetFieldLevelEncryptionProfileConfigError {
pub fn new(
kind: GetFieldLevelEncryptionProfileConfigErrorKind,
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: GetFieldLevelEncryptionProfileConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetFieldLevelEncryptionProfileConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionProfileConfigErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_field_level_encryption_profile(&self) -> bool {
matches!(
&self.kind,
GetFieldLevelEncryptionProfileConfigErrorKind::NoSuchFieldLevelEncryptionProfile(_)
)
}
}
impl std::error::Error for GetFieldLevelEncryptionProfileConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetFieldLevelEncryptionProfileConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetFieldLevelEncryptionProfileConfigErrorKind::NoSuchFieldLevelEncryptionProfile(
_inner,
) => Some(_inner),
GetFieldLevelEncryptionProfileConfigErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetFunctionError {
pub kind: GetFunctionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetFunctionErrorKind {
NoSuchFunctionExists(crate::error::NoSuchFunctionExists),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetFunctionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetFunctionErrorKind::NoSuchFunctionExists(_inner) => _inner.fmt(f),
GetFunctionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
GetFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetFunctionError {
fn code(&self) -> Option<&str> {
GetFunctionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetFunctionError {
pub fn new(kind: GetFunctionErrorKind, 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: GetFunctionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetFunctionErrorKind::Unhandled(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_no_such_function_exists(&self) -> bool {
matches!(&self.kind, GetFunctionErrorKind::NoSuchFunctionExists(_))
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(&self.kind, GetFunctionErrorKind::UnsupportedOperation(_))
}
}
impl std::error::Error for GetFunctionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetFunctionErrorKind::NoSuchFunctionExists(_inner) => Some(_inner),
GetFunctionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
GetFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetInvalidationError {
pub kind: GetInvalidationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetInvalidationErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchDistribution(crate::error::NoSuchDistribution),
NoSuchInvalidation(crate::error::NoSuchInvalidation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetInvalidationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetInvalidationErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetInvalidationErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
GetInvalidationErrorKind::NoSuchInvalidation(_inner) => _inner.fmt(f),
GetInvalidationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetInvalidationError {
fn code(&self) -> Option<&str> {
GetInvalidationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetInvalidationError {
pub fn new(kind: GetInvalidationErrorKind, 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: GetInvalidationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetInvalidationErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetInvalidationErrorKind::AccessDenied(_))
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(&self.kind, GetInvalidationErrorKind::NoSuchDistribution(_))
}
pub fn is_no_such_invalidation(&self) -> bool {
matches!(&self.kind, GetInvalidationErrorKind::NoSuchInvalidation(_))
}
}
impl std::error::Error for GetInvalidationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetInvalidationErrorKind::AccessDenied(_inner) => Some(_inner),
GetInvalidationErrorKind::NoSuchDistribution(_inner) => Some(_inner),
GetInvalidationErrorKind::NoSuchInvalidation(_inner) => Some(_inner),
GetInvalidationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetKeyGroupError {
pub kind: GetKeyGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetKeyGroupErrorKind {
NoSuchResource(crate::error::NoSuchResource),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetKeyGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetKeyGroupErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
GetKeyGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetKeyGroupError {
fn code(&self) -> Option<&str> {
GetKeyGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetKeyGroupError {
pub fn new(kind: GetKeyGroupErrorKind, 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: GetKeyGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetKeyGroupErrorKind::Unhandled(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_no_such_resource(&self) -> bool {
matches!(&self.kind, GetKeyGroupErrorKind::NoSuchResource(_))
}
}
impl std::error::Error for GetKeyGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetKeyGroupErrorKind::NoSuchResource(_inner) => Some(_inner),
GetKeyGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetKeyGroupConfigError {
pub kind: GetKeyGroupConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetKeyGroupConfigErrorKind {
NoSuchResource(crate::error::NoSuchResource),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetKeyGroupConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetKeyGroupConfigErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
GetKeyGroupConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetKeyGroupConfigError {
fn code(&self) -> Option<&str> {
GetKeyGroupConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetKeyGroupConfigError {
pub fn new(kind: GetKeyGroupConfigErrorKind, 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: GetKeyGroupConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetKeyGroupConfigErrorKind::Unhandled(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_no_such_resource(&self) -> bool {
matches!(&self.kind, GetKeyGroupConfigErrorKind::NoSuchResource(_))
}
}
impl std::error::Error for GetKeyGroupConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetKeyGroupConfigErrorKind::NoSuchResource(_inner) => Some(_inner),
GetKeyGroupConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetMonitoringSubscriptionError {
pub kind: GetMonitoringSubscriptionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetMonitoringSubscriptionErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchDistribution(crate::error::NoSuchDistribution),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetMonitoringSubscriptionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetMonitoringSubscriptionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetMonitoringSubscriptionErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
GetMonitoringSubscriptionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
GetMonitoringSubscriptionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetMonitoringSubscriptionError {
fn code(&self) -> Option<&str> {
GetMonitoringSubscriptionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetMonitoringSubscriptionError {
pub fn new(kind: GetMonitoringSubscriptionErrorKind, 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: GetMonitoringSubscriptionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetMonitoringSubscriptionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetMonitoringSubscriptionErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
GetMonitoringSubscriptionErrorKind::NoSuchDistribution(_)
)
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(
&self.kind,
GetMonitoringSubscriptionErrorKind::UnsupportedOperation(_)
)
}
}
impl std::error::Error for GetMonitoringSubscriptionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetMonitoringSubscriptionErrorKind::AccessDenied(_inner) => Some(_inner),
GetMonitoringSubscriptionErrorKind::NoSuchDistribution(_inner) => Some(_inner),
GetMonitoringSubscriptionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
GetMonitoringSubscriptionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetOriginRequestPolicyError {
pub kind: GetOriginRequestPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetOriginRequestPolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetOriginRequestPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetOriginRequestPolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_inner) => _inner.fmt(f),
GetOriginRequestPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetOriginRequestPolicyError {
fn code(&self) -> Option<&str> {
GetOriginRequestPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetOriginRequestPolicyError {
pub fn new(kind: GetOriginRequestPolicyErrorKind, 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: GetOriginRequestPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetOriginRequestPolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetOriginRequestPolicyErrorKind::AccessDenied(_))
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
GetOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_)
)
}
}
impl std::error::Error for GetOriginRequestPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetOriginRequestPolicyErrorKind::AccessDenied(_inner) => Some(_inner),
GetOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_inner) => Some(_inner),
GetOriginRequestPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetOriginRequestPolicyConfigError {
pub kind: GetOriginRequestPolicyConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetOriginRequestPolicyConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetOriginRequestPolicyConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetOriginRequestPolicyConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetOriginRequestPolicyConfigErrorKind::NoSuchOriginRequestPolicy(_inner) => {
_inner.fmt(f)
}
GetOriginRequestPolicyConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetOriginRequestPolicyConfigError {
fn code(&self) -> Option<&str> {
GetOriginRequestPolicyConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetOriginRequestPolicyConfigError {
pub fn new(kind: GetOriginRequestPolicyConfigErrorKind, 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: GetOriginRequestPolicyConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetOriginRequestPolicyConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetOriginRequestPolicyConfigErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
GetOriginRequestPolicyConfigErrorKind::NoSuchOriginRequestPolicy(_)
)
}
}
impl std::error::Error for GetOriginRequestPolicyConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetOriginRequestPolicyConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetOriginRequestPolicyConfigErrorKind::NoSuchOriginRequestPolicy(_inner) => {
Some(_inner)
}
GetOriginRequestPolicyConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPublicKeyError {
pub kind: GetPublicKeyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPublicKeyErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchPublicKey(crate::error::NoSuchPublicKey),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetPublicKeyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPublicKeyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetPublicKeyErrorKind::NoSuchPublicKey(_inner) => _inner.fmt(f),
GetPublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPublicKeyError {
fn code(&self) -> Option<&str> {
GetPublicKeyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPublicKeyError {
pub fn new(kind: GetPublicKeyErrorKind, 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: GetPublicKeyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPublicKeyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetPublicKeyErrorKind::AccessDenied(_))
}
pub fn is_no_such_public_key(&self) -> bool {
matches!(&self.kind, GetPublicKeyErrorKind::NoSuchPublicKey(_))
}
}
impl std::error::Error for GetPublicKeyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPublicKeyErrorKind::AccessDenied(_inner) => Some(_inner),
GetPublicKeyErrorKind::NoSuchPublicKey(_inner) => Some(_inner),
GetPublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPublicKeyConfigError {
pub kind: GetPublicKeyConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPublicKeyConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchPublicKey(crate::error::NoSuchPublicKey),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetPublicKeyConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPublicKeyConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetPublicKeyConfigErrorKind::NoSuchPublicKey(_inner) => _inner.fmt(f),
GetPublicKeyConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPublicKeyConfigError {
fn code(&self) -> Option<&str> {
GetPublicKeyConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPublicKeyConfigError {
pub fn new(kind: GetPublicKeyConfigErrorKind, 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: GetPublicKeyConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPublicKeyConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetPublicKeyConfigErrorKind::AccessDenied(_))
}
pub fn is_no_such_public_key(&self) -> bool {
matches!(&self.kind, GetPublicKeyConfigErrorKind::NoSuchPublicKey(_))
}
}
impl std::error::Error for GetPublicKeyConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPublicKeyConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetPublicKeyConfigErrorKind::NoSuchPublicKey(_inner) => Some(_inner),
GetPublicKeyConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetRealtimeLogConfigError {
pub kind: GetRealtimeLogConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetRealtimeLogConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchRealtimeLogConfig(crate::error::NoSuchRealtimeLogConfig),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetRealtimeLogConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetRealtimeLogConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetRealtimeLogConfigErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
GetRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_inner) => _inner.fmt(f),
GetRealtimeLogConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetRealtimeLogConfigError {
fn code(&self) -> Option<&str> {
GetRealtimeLogConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetRealtimeLogConfigError {
pub fn new(kind: GetRealtimeLogConfigErrorKind, 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: GetRealtimeLogConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetRealtimeLogConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, GetRealtimeLogConfigErrorKind::AccessDenied(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
GetRealtimeLogConfigErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_realtime_log_config(&self) -> bool {
matches!(
&self.kind,
GetRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_)
)
}
}
impl std::error::Error for GetRealtimeLogConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetRealtimeLogConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetRealtimeLogConfigErrorKind::InvalidArgument(_inner) => Some(_inner),
GetRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_inner) => Some(_inner),
GetRealtimeLogConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetStreamingDistributionError {
pub kind: GetStreamingDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetStreamingDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchStreamingDistribution(crate::error::NoSuchStreamingDistribution),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetStreamingDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetStreamingDistributionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetStreamingDistributionErrorKind::NoSuchStreamingDistribution(_inner) => _inner.fmt(f),
GetStreamingDistributionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetStreamingDistributionError {
fn code(&self) -> Option<&str> {
GetStreamingDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetStreamingDistributionError {
pub fn new(kind: GetStreamingDistributionErrorKind, 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: GetStreamingDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetStreamingDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetStreamingDistributionErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_streaming_distribution(&self) -> bool {
matches!(
&self.kind,
GetStreamingDistributionErrorKind::NoSuchStreamingDistribution(_)
)
}
}
impl std::error::Error for GetStreamingDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetStreamingDistributionErrorKind::AccessDenied(_inner) => Some(_inner),
GetStreamingDistributionErrorKind::NoSuchStreamingDistribution(_inner) => Some(_inner),
GetStreamingDistributionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetStreamingDistributionConfigError {
pub kind: GetStreamingDistributionConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetStreamingDistributionConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
NoSuchStreamingDistribution(crate::error::NoSuchStreamingDistribution),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetStreamingDistributionConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetStreamingDistributionConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
GetStreamingDistributionConfigErrorKind::NoSuchStreamingDistribution(_inner) => {
_inner.fmt(f)
}
GetStreamingDistributionConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetStreamingDistributionConfigError {
fn code(&self) -> Option<&str> {
GetStreamingDistributionConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetStreamingDistributionConfigError {
pub fn new(
kind: GetStreamingDistributionConfigErrorKind,
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: GetStreamingDistributionConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetStreamingDistributionConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
GetStreamingDistributionConfigErrorKind::AccessDenied(_)
)
}
pub fn is_no_such_streaming_distribution(&self) -> bool {
matches!(
&self.kind,
GetStreamingDistributionConfigErrorKind::NoSuchStreamingDistribution(_)
)
}
}
impl std::error::Error for GetStreamingDistributionConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetStreamingDistributionConfigErrorKind::AccessDenied(_inner) => Some(_inner),
GetStreamingDistributionConfigErrorKind::NoSuchStreamingDistribution(_inner) => {
Some(_inner)
}
GetStreamingDistributionConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListCachePoliciesError {
pub kind: ListCachePoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListCachePoliciesErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListCachePoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListCachePoliciesErrorKind::AccessDenied(_inner) => _inner.fmt(f),
ListCachePoliciesErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListCachePoliciesErrorKind::NoSuchCachePolicy(_inner) => _inner.fmt(f),
ListCachePoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListCachePoliciesError {
fn code(&self) -> Option<&str> {
ListCachePoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListCachePoliciesError {
pub fn new(kind: ListCachePoliciesErrorKind, 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: ListCachePoliciesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListCachePoliciesErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, ListCachePoliciesErrorKind::AccessDenied(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, ListCachePoliciesErrorKind::InvalidArgument(_))
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(&self.kind, ListCachePoliciesErrorKind::NoSuchCachePolicy(_))
}
}
impl std::error::Error for ListCachePoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListCachePoliciesErrorKind::AccessDenied(_inner) => Some(_inner),
ListCachePoliciesErrorKind::InvalidArgument(_inner) => Some(_inner),
ListCachePoliciesErrorKind::NoSuchCachePolicy(_inner) => Some(_inner),
ListCachePoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListCloudFrontOriginAccessIdentitiesError {
pub kind: ListCloudFrontOriginAccessIdentitiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListCloudFrontOriginAccessIdentitiesErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListCloudFrontOriginAccessIdentitiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListCloudFrontOriginAccessIdentitiesErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListCloudFrontOriginAccessIdentitiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListCloudFrontOriginAccessIdentitiesError {
fn code(&self) -> Option<&str> {
ListCloudFrontOriginAccessIdentitiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListCloudFrontOriginAccessIdentitiesError {
pub fn new(
kind: ListCloudFrontOriginAccessIdentitiesErrorKind,
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: ListCloudFrontOriginAccessIdentitiesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListCloudFrontOriginAccessIdentitiesErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListCloudFrontOriginAccessIdentitiesErrorKind::InvalidArgument(_)
)
}
}
impl std::error::Error for ListCloudFrontOriginAccessIdentitiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListCloudFrontOriginAccessIdentitiesErrorKind::InvalidArgument(_inner) => Some(_inner),
ListCloudFrontOriginAccessIdentitiesErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListConflictingAliasesError {
pub kind: ListConflictingAliasesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListConflictingAliasesErrorKind {
InvalidArgument(crate::error::InvalidArgument),
NoSuchDistribution(crate::error::NoSuchDistribution),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListConflictingAliasesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListConflictingAliasesErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListConflictingAliasesErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
ListConflictingAliasesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListConflictingAliasesError {
fn code(&self) -> Option<&str> {
ListConflictingAliasesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListConflictingAliasesError {
pub fn new(kind: ListConflictingAliasesErrorKind, 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: ListConflictingAliasesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListConflictingAliasesErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListConflictingAliasesErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
ListConflictingAliasesErrorKind::NoSuchDistribution(_)
)
}
}
impl std::error::Error for ListConflictingAliasesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListConflictingAliasesErrorKind::InvalidArgument(_inner) => Some(_inner),
ListConflictingAliasesErrorKind::NoSuchDistribution(_inner) => Some(_inner),
ListConflictingAliasesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDistributionsError {
pub kind: ListDistributionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDistributionsErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListDistributionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDistributionsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListDistributionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDistributionsError {
fn code(&self) -> Option<&str> {
ListDistributionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDistributionsError {
pub fn new(kind: ListDistributionsErrorKind, 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: ListDistributionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDistributionsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, ListDistributionsErrorKind::InvalidArgument(_))
}
}
impl std::error::Error for ListDistributionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDistributionsErrorKind::InvalidArgument(_inner) => Some(_inner),
ListDistributionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDistributionsByCachePolicyIdError {
pub kind: ListDistributionsByCachePolicyIdErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDistributionsByCachePolicyIdErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListDistributionsByCachePolicyIdError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDistributionsByCachePolicyIdErrorKind::AccessDenied(_inner) => _inner.fmt(f),
ListDistributionsByCachePolicyIdErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListDistributionsByCachePolicyIdErrorKind::NoSuchCachePolicy(_inner) => _inner.fmt(f),
ListDistributionsByCachePolicyIdErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDistributionsByCachePolicyIdError {
fn code(&self) -> Option<&str> {
ListDistributionsByCachePolicyIdError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDistributionsByCachePolicyIdError {
pub fn new(
kind: ListDistributionsByCachePolicyIdErrorKind,
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: ListDistributionsByCachePolicyIdErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDistributionsByCachePolicyIdErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByCachePolicyIdErrorKind::AccessDenied(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByCachePolicyIdErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByCachePolicyIdErrorKind::NoSuchCachePolicy(_)
)
}
}
impl std::error::Error for ListDistributionsByCachePolicyIdError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDistributionsByCachePolicyIdErrorKind::AccessDenied(_inner) => Some(_inner),
ListDistributionsByCachePolicyIdErrorKind::InvalidArgument(_inner) => Some(_inner),
ListDistributionsByCachePolicyIdErrorKind::NoSuchCachePolicy(_inner) => Some(_inner),
ListDistributionsByCachePolicyIdErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDistributionsByKeyGroupError {
pub kind: ListDistributionsByKeyGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDistributionsByKeyGroupErrorKind {
InvalidArgument(crate::error::InvalidArgument),
NoSuchResource(crate::error::NoSuchResource),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListDistributionsByKeyGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDistributionsByKeyGroupErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListDistributionsByKeyGroupErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
ListDistributionsByKeyGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDistributionsByKeyGroupError {
fn code(&self) -> Option<&str> {
ListDistributionsByKeyGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDistributionsByKeyGroupError {
pub fn new(kind: ListDistributionsByKeyGroupErrorKind, 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: ListDistributionsByKeyGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDistributionsByKeyGroupErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByKeyGroupErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_resource(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByKeyGroupErrorKind::NoSuchResource(_)
)
}
}
impl std::error::Error for ListDistributionsByKeyGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDistributionsByKeyGroupErrorKind::InvalidArgument(_inner) => Some(_inner),
ListDistributionsByKeyGroupErrorKind::NoSuchResource(_inner) => Some(_inner),
ListDistributionsByKeyGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDistributionsByOriginRequestPolicyIdError {
pub kind: ListDistributionsByOriginRequestPolicyIdErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDistributionsByOriginRequestPolicyIdErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListDistributionsByOriginRequestPolicyIdError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDistributionsByOriginRequestPolicyIdErrorKind::AccessDenied(_inner) => {
_inner.fmt(f)
}
ListDistributionsByOriginRequestPolicyIdErrorKind::InvalidArgument(_inner) => {
_inner.fmt(f)
}
ListDistributionsByOriginRequestPolicyIdErrorKind::NoSuchOriginRequestPolicy(
_inner,
) => _inner.fmt(f),
ListDistributionsByOriginRequestPolicyIdErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDistributionsByOriginRequestPolicyIdError {
fn code(&self) -> Option<&str> {
ListDistributionsByOriginRequestPolicyIdError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDistributionsByOriginRequestPolicyIdError {
pub fn new(
kind: ListDistributionsByOriginRequestPolicyIdErrorKind,
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: ListDistributionsByOriginRequestPolicyIdErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDistributionsByOriginRequestPolicyIdErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByOriginRequestPolicyIdErrorKind::AccessDenied(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByOriginRequestPolicyIdErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByOriginRequestPolicyIdErrorKind::NoSuchOriginRequestPolicy(_)
)
}
}
impl std::error::Error for ListDistributionsByOriginRequestPolicyIdError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDistributionsByOriginRequestPolicyIdErrorKind::AccessDenied(_inner) => Some(_inner),
ListDistributionsByOriginRequestPolicyIdErrorKind::InvalidArgument(_inner) => {
Some(_inner)
}
ListDistributionsByOriginRequestPolicyIdErrorKind::NoSuchOriginRequestPolicy(
_inner,
) => Some(_inner),
ListDistributionsByOriginRequestPolicyIdErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDistributionsByRealtimeLogConfigError {
pub kind: ListDistributionsByRealtimeLogConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDistributionsByRealtimeLogConfigErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListDistributionsByRealtimeLogConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDistributionsByRealtimeLogConfigErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListDistributionsByRealtimeLogConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDistributionsByRealtimeLogConfigError {
fn code(&self) -> Option<&str> {
ListDistributionsByRealtimeLogConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDistributionsByRealtimeLogConfigError {
pub fn new(
kind: ListDistributionsByRealtimeLogConfigErrorKind,
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: ListDistributionsByRealtimeLogConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDistributionsByRealtimeLogConfigErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByRealtimeLogConfigErrorKind::InvalidArgument(_)
)
}
}
impl std::error::Error for ListDistributionsByRealtimeLogConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDistributionsByRealtimeLogConfigErrorKind::InvalidArgument(_inner) => Some(_inner),
ListDistributionsByRealtimeLogConfigErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDistributionsByWebACLIdError {
pub kind: ListDistributionsByWebACLIdErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDistributionsByWebACLIdErrorKind {
InvalidArgument(crate::error::InvalidArgument),
InvalidWebAclId(crate::error::InvalidWebAclId),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListDistributionsByWebACLIdError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDistributionsByWebACLIdErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListDistributionsByWebACLIdErrorKind::InvalidWebAclId(_inner) => _inner.fmt(f),
ListDistributionsByWebACLIdErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDistributionsByWebACLIdError {
fn code(&self) -> Option<&str> {
ListDistributionsByWebACLIdError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDistributionsByWebACLIdError {
pub fn new(kind: ListDistributionsByWebACLIdErrorKind, 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: ListDistributionsByWebACLIdErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDistributionsByWebACLIdErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByWebACLIdErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_web_acl_id(&self) -> bool {
matches!(
&self.kind,
ListDistributionsByWebACLIdErrorKind::InvalidWebAclId(_)
)
}
}
impl std::error::Error for ListDistributionsByWebACLIdError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDistributionsByWebACLIdErrorKind::InvalidArgument(_inner) => Some(_inner),
ListDistributionsByWebACLIdErrorKind::InvalidWebAclId(_inner) => Some(_inner),
ListDistributionsByWebACLIdErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListFieldLevelEncryptionConfigsError {
pub kind: ListFieldLevelEncryptionConfigsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListFieldLevelEncryptionConfigsErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListFieldLevelEncryptionConfigsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListFieldLevelEncryptionConfigsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListFieldLevelEncryptionConfigsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListFieldLevelEncryptionConfigsError {
fn code(&self) -> Option<&str> {
ListFieldLevelEncryptionConfigsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListFieldLevelEncryptionConfigsError {
pub fn new(
kind: ListFieldLevelEncryptionConfigsErrorKind,
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: ListFieldLevelEncryptionConfigsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListFieldLevelEncryptionConfigsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListFieldLevelEncryptionConfigsErrorKind::InvalidArgument(_)
)
}
}
impl std::error::Error for ListFieldLevelEncryptionConfigsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListFieldLevelEncryptionConfigsErrorKind::InvalidArgument(_inner) => Some(_inner),
ListFieldLevelEncryptionConfigsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListFieldLevelEncryptionProfilesError {
pub kind: ListFieldLevelEncryptionProfilesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListFieldLevelEncryptionProfilesErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListFieldLevelEncryptionProfilesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListFieldLevelEncryptionProfilesErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListFieldLevelEncryptionProfilesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListFieldLevelEncryptionProfilesError {
fn code(&self) -> Option<&str> {
ListFieldLevelEncryptionProfilesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListFieldLevelEncryptionProfilesError {
pub fn new(
kind: ListFieldLevelEncryptionProfilesErrorKind,
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: ListFieldLevelEncryptionProfilesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListFieldLevelEncryptionProfilesErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListFieldLevelEncryptionProfilesErrorKind::InvalidArgument(_)
)
}
}
impl std::error::Error for ListFieldLevelEncryptionProfilesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListFieldLevelEncryptionProfilesErrorKind::InvalidArgument(_inner) => Some(_inner),
ListFieldLevelEncryptionProfilesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListFunctionsError {
pub kind: ListFunctionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListFunctionsErrorKind {
InvalidArgument(crate::error::InvalidArgument),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListFunctionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListFunctionsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListFunctionsErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
ListFunctionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListFunctionsError {
fn code(&self) -> Option<&str> {
ListFunctionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListFunctionsError {
pub fn new(kind: ListFunctionsErrorKind, 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: ListFunctionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListFunctionsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, ListFunctionsErrorKind::InvalidArgument(_))
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(&self.kind, ListFunctionsErrorKind::UnsupportedOperation(_))
}
}
impl std::error::Error for ListFunctionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListFunctionsErrorKind::InvalidArgument(_inner) => Some(_inner),
ListFunctionsErrorKind::UnsupportedOperation(_inner) => Some(_inner),
ListFunctionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListInvalidationsError {
pub kind: ListInvalidationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListInvalidationsErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchDistribution(crate::error::NoSuchDistribution),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListInvalidationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListInvalidationsErrorKind::AccessDenied(_inner) => _inner.fmt(f),
ListInvalidationsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListInvalidationsErrorKind::NoSuchDistribution(_inner) => _inner.fmt(f),
ListInvalidationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListInvalidationsError {
fn code(&self) -> Option<&str> {
ListInvalidationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListInvalidationsError {
pub fn new(kind: ListInvalidationsErrorKind, 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: ListInvalidationsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListInvalidationsErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, ListInvalidationsErrorKind::AccessDenied(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, ListInvalidationsErrorKind::InvalidArgument(_))
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
ListInvalidationsErrorKind::NoSuchDistribution(_)
)
}
}
impl std::error::Error for ListInvalidationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListInvalidationsErrorKind::AccessDenied(_inner) => Some(_inner),
ListInvalidationsErrorKind::InvalidArgument(_inner) => Some(_inner),
ListInvalidationsErrorKind::NoSuchDistribution(_inner) => Some(_inner),
ListInvalidationsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListKeyGroupsError {
pub kind: ListKeyGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListKeyGroupsErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListKeyGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListKeyGroupsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListKeyGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListKeyGroupsError {
fn code(&self) -> Option<&str> {
ListKeyGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListKeyGroupsError {
pub fn new(kind: ListKeyGroupsErrorKind, 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: ListKeyGroupsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListKeyGroupsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, ListKeyGroupsErrorKind::InvalidArgument(_))
}
}
impl std::error::Error for ListKeyGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListKeyGroupsErrorKind::InvalidArgument(_inner) => Some(_inner),
ListKeyGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListOriginRequestPoliciesError {
pub kind: ListOriginRequestPoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListOriginRequestPoliciesErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListOriginRequestPoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListOriginRequestPoliciesErrorKind::AccessDenied(_inner) => _inner.fmt(f),
ListOriginRequestPoliciesErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListOriginRequestPoliciesErrorKind::NoSuchOriginRequestPolicy(_inner) => _inner.fmt(f),
ListOriginRequestPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListOriginRequestPoliciesError {
fn code(&self) -> Option<&str> {
ListOriginRequestPoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListOriginRequestPoliciesError {
pub fn new(kind: ListOriginRequestPoliciesErrorKind, 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: ListOriginRequestPoliciesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListOriginRequestPoliciesErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
ListOriginRequestPoliciesErrorKind::AccessDenied(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListOriginRequestPoliciesErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
ListOriginRequestPoliciesErrorKind::NoSuchOriginRequestPolicy(_)
)
}
}
impl std::error::Error for ListOriginRequestPoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListOriginRequestPoliciesErrorKind::AccessDenied(_inner) => Some(_inner),
ListOriginRequestPoliciesErrorKind::InvalidArgument(_inner) => Some(_inner),
ListOriginRequestPoliciesErrorKind::NoSuchOriginRequestPolicy(_inner) => Some(_inner),
ListOriginRequestPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListPublicKeysError {
pub kind: ListPublicKeysErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListPublicKeysErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListPublicKeysError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListPublicKeysErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListPublicKeysErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListPublicKeysError {
fn code(&self) -> Option<&str> {
ListPublicKeysError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListPublicKeysError {
pub fn new(kind: ListPublicKeysErrorKind, 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: ListPublicKeysErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListPublicKeysErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, ListPublicKeysErrorKind::InvalidArgument(_))
}
}
impl std::error::Error for ListPublicKeysError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListPublicKeysErrorKind::InvalidArgument(_inner) => Some(_inner),
ListPublicKeysErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListRealtimeLogConfigsError {
pub kind: ListRealtimeLogConfigsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListRealtimeLogConfigsErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchRealtimeLogConfig(crate::error::NoSuchRealtimeLogConfig),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListRealtimeLogConfigsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListRealtimeLogConfigsErrorKind::AccessDenied(_inner) => _inner.fmt(f),
ListRealtimeLogConfigsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListRealtimeLogConfigsErrorKind::NoSuchRealtimeLogConfig(_inner) => _inner.fmt(f),
ListRealtimeLogConfigsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListRealtimeLogConfigsError {
fn code(&self) -> Option<&str> {
ListRealtimeLogConfigsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListRealtimeLogConfigsError {
pub fn new(kind: ListRealtimeLogConfigsErrorKind, 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: ListRealtimeLogConfigsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListRealtimeLogConfigsErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, ListRealtimeLogConfigsErrorKind::AccessDenied(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListRealtimeLogConfigsErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_realtime_log_config(&self) -> bool {
matches!(
&self.kind,
ListRealtimeLogConfigsErrorKind::NoSuchRealtimeLogConfig(_)
)
}
}
impl std::error::Error for ListRealtimeLogConfigsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListRealtimeLogConfigsErrorKind::AccessDenied(_inner) => Some(_inner),
ListRealtimeLogConfigsErrorKind::InvalidArgument(_inner) => Some(_inner),
ListRealtimeLogConfigsErrorKind::NoSuchRealtimeLogConfig(_inner) => Some(_inner),
ListRealtimeLogConfigsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListStreamingDistributionsError {
pub kind: ListStreamingDistributionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListStreamingDistributionsErrorKind {
InvalidArgument(crate::error::InvalidArgument),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListStreamingDistributionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListStreamingDistributionsErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListStreamingDistributionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListStreamingDistributionsError {
fn code(&self) -> Option<&str> {
ListStreamingDistributionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListStreamingDistributionsError {
pub fn new(kind: ListStreamingDistributionsErrorKind, 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: ListStreamingDistributionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListStreamingDistributionsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
ListStreamingDistributionsErrorKind::InvalidArgument(_)
)
}
}
impl std::error::Error for ListStreamingDistributionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListStreamingDistributionsErrorKind::InvalidArgument(_inner) => Some(_inner),
ListStreamingDistributionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
InvalidTagging(crate::error::InvalidTagging),
NoSuchResource(crate::error::NoSuchResource),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::AccessDenied(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidTagging(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, ListTagsForResourceErrorKind::AccessDenied(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, ListTagsForResourceErrorKind::InvalidArgument(_))
}
pub fn is_invalid_tagging(&self) -> bool {
matches!(&self.kind, ListTagsForResourceErrorKind::InvalidTagging(_))
}
pub fn is_no_such_resource(&self) -> bool {
matches!(&self.kind, ListTagsForResourceErrorKind::NoSuchResource(_))
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::AccessDenied(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidArgument(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidTagging(_inner) => Some(_inner),
ListTagsForResourceErrorKind::NoSuchResource(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PublishFunctionError {
pub kind: PublishFunctionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PublishFunctionErrorKind {
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFunctionExists(crate::error::NoSuchFunctionExists),
PreconditionFailed(crate::error::PreconditionFailed),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PublishFunctionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PublishFunctionErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
PublishFunctionErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
PublishFunctionErrorKind::NoSuchFunctionExists(_inner) => _inner.fmt(f),
PublishFunctionErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
PublishFunctionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
PublishFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PublishFunctionError {
fn code(&self) -> Option<&str> {
PublishFunctionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PublishFunctionError {
pub fn new(kind: PublishFunctionErrorKind, 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: PublishFunctionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PublishFunctionErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, PublishFunctionErrorKind::InvalidArgument(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
PublishFunctionErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_function_exists(&self) -> bool {
matches!(
&self.kind,
PublishFunctionErrorKind::NoSuchFunctionExists(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(&self.kind, PublishFunctionErrorKind::PreconditionFailed(_))
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(
&self.kind,
PublishFunctionErrorKind::UnsupportedOperation(_)
)
}
}
impl std::error::Error for PublishFunctionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PublishFunctionErrorKind::InvalidArgument(_inner) => Some(_inner),
PublishFunctionErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
PublishFunctionErrorKind::NoSuchFunctionExists(_inner) => Some(_inner),
PublishFunctionErrorKind::PreconditionFailed(_inner) => Some(_inner),
PublishFunctionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
PublishFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
InvalidTagging(crate::error::InvalidTagging),
NoSuchResource(crate::error::NoSuchResource),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::AccessDenied(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidTagging(_inner) => _inner.fmt(f),
TagResourceErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::AccessDenied(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidArgument(_))
}
pub fn is_invalid_tagging(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidTagging(_))
}
pub fn is_no_such_resource(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::NoSuchResource(_))
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::AccessDenied(_inner) => Some(_inner),
TagResourceErrorKind::InvalidArgument(_inner) => Some(_inner),
TagResourceErrorKind::InvalidTagging(_inner) => Some(_inner),
TagResourceErrorKind::NoSuchResource(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TestFunctionError {
pub kind: TestFunctionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TestFunctionErrorKind {
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFunctionExists(crate::error::NoSuchFunctionExists),
TestFunctionFailed(crate::error::TestFunctionFailed),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TestFunctionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TestFunctionErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
TestFunctionErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
TestFunctionErrorKind::NoSuchFunctionExists(_inner) => _inner.fmt(f),
TestFunctionErrorKind::TestFunctionFailed(_inner) => _inner.fmt(f),
TestFunctionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
TestFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TestFunctionError {
fn code(&self) -> Option<&str> {
TestFunctionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TestFunctionError {
pub fn new(kind: TestFunctionErrorKind, 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: TestFunctionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TestFunctionErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, TestFunctionErrorKind::InvalidArgument(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(&self.kind, TestFunctionErrorKind::InvalidIfMatchVersion(_))
}
pub fn is_no_such_function_exists(&self) -> bool {
matches!(&self.kind, TestFunctionErrorKind::NoSuchFunctionExists(_))
}
pub fn is_test_function_failed(&self) -> bool {
matches!(&self.kind, TestFunctionErrorKind::TestFunctionFailed(_))
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(&self.kind, TestFunctionErrorKind::UnsupportedOperation(_))
}
}
impl std::error::Error for TestFunctionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TestFunctionErrorKind::InvalidArgument(_inner) => Some(_inner),
TestFunctionErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
TestFunctionErrorKind::NoSuchFunctionExists(_inner) => Some(_inner),
TestFunctionErrorKind::TestFunctionFailed(_inner) => Some(_inner),
TestFunctionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
TestFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
InvalidTagging(crate::error::InvalidTagging),
NoSuchResource(crate::error::NoSuchResource),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::AccessDenied(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidTagging(_inner) => _inner.fmt(f),
UntagResourceErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::AccessDenied(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidArgument(_))
}
pub fn is_invalid_tagging(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidTagging(_))
}
pub fn is_no_such_resource(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::NoSuchResource(_))
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::AccessDenied(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidArgument(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidTagging(_inner) => Some(_inner),
UntagResourceErrorKind::NoSuchResource(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateCachePolicyError {
pub kind: UpdateCachePolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateCachePolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
CachePolicyAlreadyExists(crate::error::CachePolicyAlreadyExists),
IllegalUpdate(crate::error::IllegalUpdate),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
PreconditionFailed(crate::error::PreconditionFailed),
TooManyCookiesInCachePolicy(crate::error::TooManyCookiesInCachePolicy),
TooManyHeadersInCachePolicy(crate::error::TooManyHeadersInCachePolicy),
TooManyQueryStringsInCachePolicy(crate::error::TooManyQueryStringsInCachePolicy),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateCachePolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateCachePolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::CachePolicyAlreadyExists(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::IllegalUpdate(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::InconsistentQuantities(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::NoSuchCachePolicy(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::TooManyCookiesInCachePolicy(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::TooManyHeadersInCachePolicy(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::TooManyQueryStringsInCachePolicy(_inner) => _inner.fmt(f),
UpdateCachePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateCachePolicyError {
fn code(&self) -> Option<&str> {
UpdateCachePolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateCachePolicyError {
pub fn new(kind: UpdateCachePolicyErrorKind, 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: UpdateCachePolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateCachePolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, UpdateCachePolicyErrorKind::AccessDenied(_))
}
pub fn is_cache_policy_already_exists(&self) -> bool {
matches!(
&self.kind,
UpdateCachePolicyErrorKind::CachePolicyAlreadyExists(_)
)
}
pub fn is_illegal_update(&self) -> bool {
matches!(&self.kind, UpdateCachePolicyErrorKind::IllegalUpdate(_))
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
UpdateCachePolicyErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, UpdateCachePolicyErrorKind::InvalidArgument(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateCachePolicyErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(&self.kind, UpdateCachePolicyErrorKind::NoSuchCachePolicy(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
UpdateCachePolicyErrorKind::PreconditionFailed(_)
)
}
pub fn is_too_many_cookies_in_cache_policy(&self) -> bool {
matches!(
&self.kind,
UpdateCachePolicyErrorKind::TooManyCookiesInCachePolicy(_)
)
}
pub fn is_too_many_headers_in_cache_policy(&self) -> bool {
matches!(
&self.kind,
UpdateCachePolicyErrorKind::TooManyHeadersInCachePolicy(_)
)
}
pub fn is_too_many_query_strings_in_cache_policy(&self) -> bool {
matches!(
&self.kind,
UpdateCachePolicyErrorKind::TooManyQueryStringsInCachePolicy(_)
)
}
}
impl std::error::Error for UpdateCachePolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateCachePolicyErrorKind::AccessDenied(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::CachePolicyAlreadyExists(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::IllegalUpdate(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::InconsistentQuantities(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::NoSuchCachePolicy(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::PreconditionFailed(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::TooManyCookiesInCachePolicy(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::TooManyHeadersInCachePolicy(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::TooManyQueryStringsInCachePolicy(_inner) => Some(_inner),
UpdateCachePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateCloudFrontOriginAccessIdentityError {
pub kind: UpdateCloudFrontOriginAccessIdentityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateCloudFrontOriginAccessIdentityErrorKind {
AccessDenied(crate::error::AccessDenied),
IllegalUpdate(crate::error::IllegalUpdate),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
MissingBody(crate::error::MissingBody),
NoSuchCloudFrontOriginAccessIdentity(crate::error::NoSuchCloudFrontOriginAccessIdentity),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateCloudFrontOriginAccessIdentityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_inner) => _inner.fmt(f),
UpdateCloudFrontOriginAccessIdentityErrorKind::IllegalUpdate(_inner) => _inner.fmt(f),
UpdateCloudFrontOriginAccessIdentityErrorKind::InconsistentQuantities(_inner) => {
_inner.fmt(f)
}
UpdateCloudFrontOriginAccessIdentityErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdateCloudFrontOriginAccessIdentityErrorKind::InvalidIfMatchVersion(_inner) => {
_inner.fmt(f)
}
UpdateCloudFrontOriginAccessIdentityErrorKind::MissingBody(_inner) => _inner.fmt(f),
UpdateCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(
_inner,
) => _inner.fmt(f),
UpdateCloudFrontOriginAccessIdentityErrorKind::PreconditionFailed(_inner) => {
_inner.fmt(f)
}
UpdateCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateCloudFrontOriginAccessIdentityError {
fn code(&self) -> Option<&str> {
UpdateCloudFrontOriginAccessIdentityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateCloudFrontOriginAccessIdentityError {
pub fn new(
kind: UpdateCloudFrontOriginAccessIdentityErrorKind,
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: UpdateCloudFrontOriginAccessIdentityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateCloudFrontOriginAccessIdentityErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_)
)
}
pub fn is_illegal_update(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::IllegalUpdate(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_missing_body(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::MissingBody(_)
)
}
pub fn is_no_such_cloud_front_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
UpdateCloudFrontOriginAccessIdentityErrorKind::PreconditionFailed(_)
)
}
}
impl std::error::Error for UpdateCloudFrontOriginAccessIdentityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateCloudFrontOriginAccessIdentityErrorKind::AccessDenied(_inner) => Some(_inner),
UpdateCloudFrontOriginAccessIdentityErrorKind::IllegalUpdate(_inner) => Some(_inner),
UpdateCloudFrontOriginAccessIdentityErrorKind::InconsistentQuantities(_inner) => {
Some(_inner)
}
UpdateCloudFrontOriginAccessIdentityErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdateCloudFrontOriginAccessIdentityErrorKind::InvalidIfMatchVersion(_inner) => {
Some(_inner)
}
UpdateCloudFrontOriginAccessIdentityErrorKind::MissingBody(_inner) => Some(_inner),
UpdateCloudFrontOriginAccessIdentityErrorKind::NoSuchCloudFrontOriginAccessIdentity(
_inner,
) => Some(_inner),
UpdateCloudFrontOriginAccessIdentityErrorKind::PreconditionFailed(_inner) => {
Some(_inner)
}
UpdateCloudFrontOriginAccessIdentityErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateDistributionError {
pub kind: UpdateDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
CnameAlreadyExists(crate::error::CnameAlreadyExists),
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(
crate::error::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior,
),
IllegalUpdate(crate::error::IllegalUpdate),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidDefaultRootObject(crate::error::InvalidDefaultRootObject),
InvalidErrorCode(crate::error::InvalidErrorCode),
InvalidForwardCookies(crate::error::InvalidForwardCookies),
InvalidFunctionAssociation(crate::error::InvalidFunctionAssociation),
InvalidGeoRestrictionParameter(crate::error::InvalidGeoRestrictionParameter),
InvalidHeadersForS3Origin(crate::error::InvalidHeadersForS3Origin),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
InvalidLambdaFunctionAssociation(crate::error::InvalidLambdaFunctionAssociation),
InvalidLocationCode(crate::error::InvalidLocationCode),
InvalidMinimumProtocolVersion(crate::error::InvalidMinimumProtocolVersion),
InvalidOriginAccessIdentity(crate::error::InvalidOriginAccessIdentity),
InvalidOriginKeepaliveTimeout(crate::error::InvalidOriginKeepaliveTimeout),
InvalidOriginReadTimeout(crate::error::InvalidOriginReadTimeout),
InvalidQueryStringParameters(crate::error::InvalidQueryStringParameters),
InvalidRelativePath(crate::error::InvalidRelativePath),
InvalidRequiredProtocol(crate::error::InvalidRequiredProtocol),
InvalidResponseCode(crate::error::InvalidResponseCode),
InvalidTtlOrder(crate::error::InvalidTtlOrder),
InvalidViewerCertificate(crate::error::InvalidViewerCertificate),
InvalidWebAclId(crate::error::InvalidWebAclId),
MissingBody(crate::error::MissingBody),
NoSuchCachePolicy(crate::error::NoSuchCachePolicy),
NoSuchDistribution(crate::error::NoSuchDistribution),
NoSuchFieldLevelEncryptionConfig(crate::error::NoSuchFieldLevelEncryptionConfig),
NoSuchOrigin(crate::error::NoSuchOrigin),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
NoSuchRealtimeLogConfig(crate::error::NoSuchRealtimeLogConfig),
PreconditionFailed(crate::error::PreconditionFailed),
RealtimeLogConfigOwnerMismatch(crate::error::RealtimeLogConfigOwnerMismatch),
TooManyCacheBehaviors(crate::error::TooManyCacheBehaviors),
TooManyCertificates(crate::error::TooManyCertificates),
TooManyCookieNamesInWhiteList(crate::error::TooManyCookieNamesInWhiteList),
TooManyDistributionCnamEs(crate::error::TooManyDistributionCnamEs),
TooManyDistributionsAssociatedToCachePolicy(
crate::error::TooManyDistributionsAssociatedToCachePolicy,
),
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(
crate::error::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig,
),
TooManyDistributionsAssociatedToKeyGroup(
crate::error::TooManyDistributionsAssociatedToKeyGroup,
),
TooManyDistributionsAssociatedToOriginRequestPolicy(
crate::error::TooManyDistributionsAssociatedToOriginRequestPolicy,
),
TooManyDistributionsWithFunctionAssociations(
crate::error::TooManyDistributionsWithFunctionAssociations,
),
TooManyDistributionsWithLambdaAssociations(
crate::error::TooManyDistributionsWithLambdaAssociations,
),
TooManyDistributionsWithSingleFunctionArn(
crate::error::TooManyDistributionsWithSingleFunctionArn,
),
TooManyFunctionAssociations(crate::error::TooManyFunctionAssociations),
TooManyHeadersInForwardedValues(crate::error::TooManyHeadersInForwardedValues),
TooManyKeyGroupsAssociatedToDistribution(
crate::error::TooManyKeyGroupsAssociatedToDistribution,
),
TooManyLambdaFunctionAssociations(crate::error::TooManyLambdaFunctionAssociations),
TooManyOriginCustomHeaders(crate::error::TooManyOriginCustomHeaders),
TooManyOriginGroupsPerDistribution(crate::error::TooManyOriginGroupsPerDistribution),
TooManyOrigins(crate::error::TooManyOrigins),
TooManyQueryStringParameters(crate::error::TooManyQueryStringParameters),
TooManyTrustedSigners(crate::error::TooManyTrustedSigners),
TrustedKeyGroupDoesNotExist(crate::error::TrustedKeyGroupDoesNotExist),
TrustedSignerDoesNotExist(crate::error::TrustedSignerDoesNotExist),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDistributionErrorKind::AccessDenied(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::CnameAlreadyExists(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::IllegalUpdate(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidDefaultRootObject(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidErrorCode(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidForwardCookies(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidFunctionAssociation(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidGeoRestrictionParameter(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidHeadersForS3Origin(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidIfMatchVersion(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidLambdaFunctionAssociation(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidLocationCode(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidMinimumProtocolVersion(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidOriginAccessIdentity(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidOriginKeepaliveTimeout(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidOriginReadTimeout(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidQueryStringParameters(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidRelativePath(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidRequiredProtocol(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidResponseCode(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidTtlOrder(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidViewerCertificate(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::InvalidWebAclId(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::MissingBody(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::NoSuchCachePolicy(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::NoSuchDistribution(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::NoSuchOrigin(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::NoSuchOriginRequestPolicy(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::NoSuchRealtimeLogConfig(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::PreconditionFailed(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::RealtimeLogConfigOwnerMismatch(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyCacheBehaviors(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyCertificates(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyCookieNamesInWhiteList(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionCnamEs(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToCachePolicy(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToKeyGroup(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionsWithFunctionAssociations(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionsWithLambdaAssociations(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyDistributionsWithSingleFunctionArn(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyFunctionAssociations(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyHeadersInForwardedValues(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyKeyGroupsAssociatedToDistribution(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyLambdaFunctionAssociations(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyOriginCustomHeaders(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyOriginGroupsPerDistribution(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyOrigins(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyQueryStringParameters(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TooManyTrustedSigners(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TrustedKeyGroupDoesNotExist(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::TrustedSignerDoesNotExist(_inner) =>
_inner.fmt(f)
,
UpdateDistributionErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDistributionError {
fn code(&self) -> Option<&str> {
UpdateDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDistributionError {
pub fn new(kind: UpdateDistributionErrorKind, 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: UpdateDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::AccessDenied(_))
}
pub fn is_cname_already_exists(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::CnameAlreadyExists(_)
)
}
pub fn is_illegal_field_level_encryption_config_association_with_cache_behavior(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_))
}
pub fn is_illegal_update(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::IllegalUpdate(_))
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::InvalidArgument(_))
}
pub fn is_invalid_default_root_object(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidDefaultRootObject(_)
)
}
pub fn is_invalid_error_code(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::InvalidErrorCode(_))
}
pub fn is_invalid_forward_cookies(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidForwardCookies(_)
)
}
pub fn is_invalid_function_association(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidFunctionAssociation(_)
)
}
pub fn is_invalid_geo_restriction_parameter(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidGeoRestrictionParameter(_)
)
}
pub fn is_invalid_headers_for_s3_origin(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidHeadersForS3Origin(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_invalid_lambda_function_association(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidLambdaFunctionAssociation(_)
)
}
pub fn is_invalid_location_code(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidLocationCode(_)
)
}
pub fn is_invalid_minimum_protocol_version(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidMinimumProtocolVersion(_)
)
}
pub fn is_invalid_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidOriginAccessIdentity(_)
)
}
pub fn is_invalid_origin_keepalive_timeout(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidOriginKeepaliveTimeout(_)
)
}
pub fn is_invalid_origin_read_timeout(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidOriginReadTimeout(_)
)
}
pub fn is_invalid_query_string_parameters(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidQueryStringParameters(_)
)
}
pub fn is_invalid_relative_path(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidRelativePath(_)
)
}
pub fn is_invalid_required_protocol(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidRequiredProtocol(_)
)
}
pub fn is_invalid_response_code(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidResponseCode(_)
)
}
pub fn is_invalid_ttl_order(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::InvalidTtlOrder(_))
}
pub fn is_invalid_viewer_certificate(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::InvalidViewerCertificate(_)
)
}
pub fn is_invalid_web_acl_id(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::InvalidWebAclId(_))
}
pub fn is_missing_body(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::MissingBody(_))
}
pub fn is_no_such_cache_policy(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::NoSuchCachePolicy(_)
)
}
pub fn is_no_such_distribution(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::NoSuchDistribution(_)
)
}
pub fn is_no_such_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::NoSuchFieldLevelEncryptionConfig(_)
)
}
pub fn is_no_such_origin(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::NoSuchOrigin(_))
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::NoSuchOriginRequestPolicy(_)
)
}
pub fn is_no_such_realtime_log_config(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::NoSuchRealtimeLogConfig(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::PreconditionFailed(_)
)
}
pub fn is_realtime_log_config_owner_mismatch(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::RealtimeLogConfigOwnerMismatch(_)
)
}
pub fn is_too_many_cache_behaviors(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyCacheBehaviors(_)
)
}
pub fn is_too_many_certificates(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyCertificates(_)
)
}
pub fn is_too_many_cookie_names_in_white_list(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyCookieNamesInWhiteList(_)
)
}
pub fn is_too_many_distribution_cnam_es(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionCnamEs(_)
)
}
pub fn is_too_many_distributions_associated_to_cache_policy(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToCachePolicy(_)
)
}
pub fn is_too_many_distributions_associated_to_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(
_
)
)
}
pub fn is_too_many_distributions_associated_to_key_group(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToKeyGroup(_)
)
}
pub fn is_too_many_distributions_associated_to_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_)
)
}
pub fn is_too_many_distributions_with_function_associations(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionsWithFunctionAssociations(_)
)
}
pub fn is_too_many_distributions_with_lambda_associations(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionsWithLambdaAssociations(_)
)
}
pub fn is_too_many_distributions_with_single_function_arn(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyDistributionsWithSingleFunctionArn(_)
)
}
pub fn is_too_many_function_associations(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyFunctionAssociations(_)
)
}
pub fn is_too_many_headers_in_forwarded_values(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyHeadersInForwardedValues(_)
)
}
pub fn is_too_many_key_groups_associated_to_distribution(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyKeyGroupsAssociatedToDistribution(_)
)
}
pub fn is_too_many_lambda_function_associations(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyLambdaFunctionAssociations(_)
)
}
pub fn is_too_many_origin_custom_headers(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyOriginCustomHeaders(_)
)
}
pub fn is_too_many_origin_groups_per_distribution(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyOriginGroupsPerDistribution(_)
)
}
pub fn is_too_many_origins(&self) -> bool {
matches!(&self.kind, UpdateDistributionErrorKind::TooManyOrigins(_))
}
pub fn is_too_many_query_string_parameters(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyQueryStringParameters(_)
)
}
pub fn is_too_many_trusted_signers(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TooManyTrustedSigners(_)
)
}
pub fn is_trusted_key_group_does_not_exist(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TrustedKeyGroupDoesNotExist(_)
)
}
pub fn is_trusted_signer_does_not_exist(&self) -> bool {
matches!(
&self.kind,
UpdateDistributionErrorKind::TrustedSignerDoesNotExist(_)
)
}
}
impl std::error::Error for UpdateDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDistributionErrorKind::AccessDenied(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::CnameAlreadyExists(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::IllegalUpdate(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidDefaultRootObject(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidErrorCode(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidForwardCookies(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidFunctionAssociation(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidGeoRestrictionParameter(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidHeadersForS3Origin(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidIfMatchVersion(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidLambdaFunctionAssociation(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidLocationCode(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidMinimumProtocolVersion(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidOriginAccessIdentity(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidOriginKeepaliveTimeout(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidOriginReadTimeout(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidQueryStringParameters(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidRelativePath(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidRequiredProtocol(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidResponseCode(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidTtlOrder(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidViewerCertificate(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::InvalidWebAclId(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::MissingBody(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::NoSuchCachePolicy(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::NoSuchDistribution(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::NoSuchOrigin(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::NoSuchOriginRequestPolicy(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::NoSuchRealtimeLogConfig(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::PreconditionFailed(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::RealtimeLogConfigOwnerMismatch(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyCacheBehaviors(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyCertificates(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyCookieNamesInWhiteList(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionCnamEs(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToCachePolicy(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToKeyGroup(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionsWithFunctionAssociations(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionsWithLambdaAssociations(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyDistributionsWithSingleFunctionArn(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyFunctionAssociations(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyHeadersInForwardedValues(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyKeyGroupsAssociatedToDistribution(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyLambdaFunctionAssociations(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyOriginCustomHeaders(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyOriginGroupsPerDistribution(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyOrigins(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyQueryStringParameters(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TooManyTrustedSigners(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TrustedKeyGroupDoesNotExist(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::TrustedSignerDoesNotExist(_inner) =>
Some(_inner)
,
UpdateDistributionErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFieldLevelEncryptionConfigError {
pub kind: UpdateFieldLevelEncryptionConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFieldLevelEncryptionConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
IllegalUpdate(crate::error::IllegalUpdate),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFieldLevelEncryptionConfig(crate::error::NoSuchFieldLevelEncryptionConfig),
NoSuchFieldLevelEncryptionProfile(crate::error::NoSuchFieldLevelEncryptionProfile),
PreconditionFailed(crate::error::PreconditionFailed),
QueryArgProfileEmpty(crate::error::QueryArgProfileEmpty),
TooManyFieldLevelEncryptionContentTypeProfiles(
crate::error::TooManyFieldLevelEncryptionContentTypeProfiles,
),
TooManyFieldLevelEncryptionQueryArgProfiles(
crate::error::TooManyFieldLevelEncryptionQueryArgProfiles,
),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateFieldLevelEncryptionConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFieldLevelEncryptionConfigErrorKind::AccessDenied(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::IllegalUpdate(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::InvalidIfMatchVersion(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::PreconditionFailed(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::QueryArgProfileEmpty(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionContentTypeProfiles(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionQueryArgProfiles(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFieldLevelEncryptionConfigError {
fn code(&self) -> Option<&str> {
UpdateFieldLevelEncryptionConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFieldLevelEncryptionConfigError {
pub fn new(
kind: UpdateFieldLevelEncryptionConfigErrorKind,
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: UpdateFieldLevelEncryptionConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFieldLevelEncryptionConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::AccessDenied(_)
)
}
pub fn is_illegal_update(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::IllegalUpdate(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_field_level_encryption_config(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_)
)
}
pub fn is_no_such_field_level_encryption_profile(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionProfile(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::PreconditionFailed(_)
)
}
pub fn is_query_arg_profile_empty(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::QueryArgProfileEmpty(_)
)
}
pub fn is_too_many_field_level_encryption_content_type_profiles(&self) -> bool {
matches!(&self.kind, UpdateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionContentTypeProfiles(_))
}
pub fn is_too_many_field_level_encryption_query_arg_profiles(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionQueryArgProfiles(
_
)
)
}
}
impl std::error::Error for UpdateFieldLevelEncryptionConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFieldLevelEncryptionConfigErrorKind::AccessDenied(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::IllegalUpdate(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::InvalidIfMatchVersion(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionConfig(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::PreconditionFailed(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::QueryArgProfileEmpty(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionContentTypeProfiles(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::TooManyFieldLevelEncryptionQueryArgProfiles(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionConfigErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFieldLevelEncryptionProfileError {
pub kind: UpdateFieldLevelEncryptionProfileErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFieldLevelEncryptionProfileErrorKind {
AccessDenied(crate::error::AccessDenied),
FieldLevelEncryptionProfileAlreadyExists(
crate::error::FieldLevelEncryptionProfileAlreadyExists,
),
FieldLevelEncryptionProfileSizeExceeded(crate::error::FieldLevelEncryptionProfileSizeExceeded),
IllegalUpdate(crate::error::IllegalUpdate),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFieldLevelEncryptionProfile(crate::error::NoSuchFieldLevelEncryptionProfile),
NoSuchPublicKey(crate::error::NoSuchPublicKey),
PreconditionFailed(crate::error::PreconditionFailed),
TooManyFieldLevelEncryptionEncryptionEntities(
crate::error::TooManyFieldLevelEncryptionEncryptionEntities,
),
TooManyFieldLevelEncryptionFieldPatterns(
crate::error::TooManyFieldLevelEncryptionFieldPatterns,
),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateFieldLevelEncryptionProfileError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFieldLevelEncryptionProfileErrorKind::AccessDenied(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileAlreadyExists(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileSizeExceeded(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::IllegalUpdate(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::InconsistentQuantities(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::InvalidArgument(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::InvalidIfMatchVersion(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::NoSuchPublicKey(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::PreconditionFailed(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionEncryptionEntities(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionFieldPatterns(_inner) =>
_inner.fmt(f)
,
UpdateFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFieldLevelEncryptionProfileError {
fn code(&self) -> Option<&str> {
UpdateFieldLevelEncryptionProfileError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFieldLevelEncryptionProfileError {
pub fn new(
kind: UpdateFieldLevelEncryptionProfileErrorKind,
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: UpdateFieldLevelEncryptionProfileErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFieldLevelEncryptionProfileErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::AccessDenied(_)
)
}
pub fn is_field_level_encryption_profile_already_exists(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileAlreadyExists(_)
)
}
pub fn is_field_level_encryption_profile_size_exceeded(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileSizeExceeded(_)
)
}
pub fn is_illegal_update(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::IllegalUpdate(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_field_level_encryption_profile(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(_)
)
}
pub fn is_no_such_public_key(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::NoSuchPublicKey(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::PreconditionFailed(_)
)
}
pub fn is_too_many_field_level_encryption_encryption_entities(&self) -> bool {
matches!(&self.kind, UpdateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionEncryptionEntities(_))
}
pub fn is_too_many_field_level_encryption_field_patterns(&self) -> bool {
matches!(
&self.kind,
UpdateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionFieldPatterns(_)
)
}
}
impl std::error::Error for UpdateFieldLevelEncryptionProfileError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFieldLevelEncryptionProfileErrorKind::AccessDenied(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileAlreadyExists(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileSizeExceeded(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::IllegalUpdate(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::InconsistentQuantities(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::InvalidArgument(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::InvalidIfMatchVersion(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::NoSuchFieldLevelEncryptionProfile(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::NoSuchPublicKey(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::PreconditionFailed(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionEncryptionEntities(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionFieldPatterns(_inner) =>
Some(_inner)
,
UpdateFieldLevelEncryptionProfileErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFunctionError {
pub kind: UpdateFunctionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFunctionErrorKind {
FunctionSizeLimitExceeded(crate::error::FunctionSizeLimitExceeded),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchFunctionExists(crate::error::NoSuchFunctionExists),
PreconditionFailed(crate::error::PreconditionFailed),
UnsupportedOperation(crate::error::UnsupportedOperation),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateFunctionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFunctionErrorKind::FunctionSizeLimitExceeded(_inner) => _inner.fmt(f),
UpdateFunctionErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdateFunctionErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
UpdateFunctionErrorKind::NoSuchFunctionExists(_inner) => _inner.fmt(f),
UpdateFunctionErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
UpdateFunctionErrorKind::UnsupportedOperation(_inner) => _inner.fmt(f),
UpdateFunctionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFunctionError {
fn code(&self) -> Option<&str> {
UpdateFunctionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFunctionError {
pub fn new(kind: UpdateFunctionErrorKind, 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: UpdateFunctionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFunctionErrorKind::Unhandled(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_function_size_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
UpdateFunctionErrorKind::FunctionSizeLimitExceeded(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, UpdateFunctionErrorKind::InvalidArgument(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateFunctionErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_function_exists(&self) -> bool {
matches!(&self.kind, UpdateFunctionErrorKind::NoSuchFunctionExists(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(&self.kind, UpdateFunctionErrorKind::PreconditionFailed(_))
}
pub fn is_unsupported_operation(&self) -> bool {
matches!(&self.kind, UpdateFunctionErrorKind::UnsupportedOperation(_))
}
}
impl std::error::Error for UpdateFunctionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFunctionErrorKind::FunctionSizeLimitExceeded(_inner) => Some(_inner),
UpdateFunctionErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdateFunctionErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
UpdateFunctionErrorKind::NoSuchFunctionExists(_inner) => Some(_inner),
UpdateFunctionErrorKind::PreconditionFailed(_inner) => Some(_inner),
UpdateFunctionErrorKind::UnsupportedOperation(_inner) => Some(_inner),
UpdateFunctionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateKeyGroupError {
pub kind: UpdateKeyGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateKeyGroupErrorKind {
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
KeyGroupAlreadyExists(crate::error::KeyGroupAlreadyExists),
NoSuchResource(crate::error::NoSuchResource),
PreconditionFailed(crate::error::PreconditionFailed),
TooManyPublicKeysInKeyGroup(crate::error::TooManyPublicKeysInKeyGroup),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateKeyGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateKeyGroupErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdateKeyGroupErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
UpdateKeyGroupErrorKind::KeyGroupAlreadyExists(_inner) => _inner.fmt(f),
UpdateKeyGroupErrorKind::NoSuchResource(_inner) => _inner.fmt(f),
UpdateKeyGroupErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
UpdateKeyGroupErrorKind::TooManyPublicKeysInKeyGroup(_inner) => _inner.fmt(f),
UpdateKeyGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateKeyGroupError {
fn code(&self) -> Option<&str> {
UpdateKeyGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateKeyGroupError {
pub fn new(kind: UpdateKeyGroupErrorKind, 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: UpdateKeyGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateKeyGroupErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, UpdateKeyGroupErrorKind::InvalidArgument(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateKeyGroupErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_key_group_already_exists(&self) -> bool {
matches!(
&self.kind,
UpdateKeyGroupErrorKind::KeyGroupAlreadyExists(_)
)
}
pub fn is_no_such_resource(&self) -> bool {
matches!(&self.kind, UpdateKeyGroupErrorKind::NoSuchResource(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(&self.kind, UpdateKeyGroupErrorKind::PreconditionFailed(_))
}
pub fn is_too_many_public_keys_in_key_group(&self) -> bool {
matches!(
&self.kind,
UpdateKeyGroupErrorKind::TooManyPublicKeysInKeyGroup(_)
)
}
}
impl std::error::Error for UpdateKeyGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateKeyGroupErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdateKeyGroupErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
UpdateKeyGroupErrorKind::KeyGroupAlreadyExists(_inner) => Some(_inner),
UpdateKeyGroupErrorKind::NoSuchResource(_inner) => Some(_inner),
UpdateKeyGroupErrorKind::PreconditionFailed(_inner) => Some(_inner),
UpdateKeyGroupErrorKind::TooManyPublicKeysInKeyGroup(_inner) => Some(_inner),
UpdateKeyGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateOriginRequestPolicyError {
pub kind: UpdateOriginRequestPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateOriginRequestPolicyErrorKind {
AccessDenied(crate::error::AccessDenied),
IllegalUpdate(crate::error::IllegalUpdate),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchOriginRequestPolicy(crate::error::NoSuchOriginRequestPolicy),
OriginRequestPolicyAlreadyExists(crate::error::OriginRequestPolicyAlreadyExists),
PreconditionFailed(crate::error::PreconditionFailed),
TooManyCookiesInOriginRequestPolicy(crate::error::TooManyCookiesInOriginRequestPolicy),
TooManyHeadersInOriginRequestPolicy(crate::error::TooManyHeadersInOriginRequestPolicy),
TooManyQueryStringsInOriginRequestPolicy(
crate::error::TooManyQueryStringsInOriginRequestPolicy,
),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateOriginRequestPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateOriginRequestPolicyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::IllegalUpdate(_inner) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::InconsistentQuantities(_inner) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_inner) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::OriginRequestPolicyAlreadyExists(_inner) => {
_inner.fmt(f)
}
UpdateOriginRequestPolicyErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::TooManyCookiesInOriginRequestPolicy(_inner) => {
_inner.fmt(f)
}
UpdateOriginRequestPolicyErrorKind::TooManyHeadersInOriginRequestPolicy(_inner) => {
_inner.fmt(f)
}
UpdateOriginRequestPolicyErrorKind::TooManyQueryStringsInOriginRequestPolicy(
_inner,
) => _inner.fmt(f),
UpdateOriginRequestPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateOriginRequestPolicyError {
fn code(&self) -> Option<&str> {
UpdateOriginRequestPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateOriginRequestPolicyError {
pub fn new(kind: UpdateOriginRequestPolicyErrorKind, 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: UpdateOriginRequestPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateOriginRequestPolicyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::AccessDenied(_)
)
}
pub fn is_illegal_update(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::IllegalUpdate(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_)
)
}
pub fn is_origin_request_policy_already_exists(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::OriginRequestPolicyAlreadyExists(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::PreconditionFailed(_)
)
}
pub fn is_too_many_cookies_in_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::TooManyCookiesInOriginRequestPolicy(_)
)
}
pub fn is_too_many_headers_in_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::TooManyHeadersInOriginRequestPolicy(_)
)
}
pub fn is_too_many_query_strings_in_origin_request_policy(&self) -> bool {
matches!(
&self.kind,
UpdateOriginRequestPolicyErrorKind::TooManyQueryStringsInOriginRequestPolicy(_)
)
}
}
impl std::error::Error for UpdateOriginRequestPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateOriginRequestPolicyErrorKind::AccessDenied(_inner) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::IllegalUpdate(_inner) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::InconsistentQuantities(_inner) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::NoSuchOriginRequestPolicy(_inner) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::OriginRequestPolicyAlreadyExists(_inner) => {
Some(_inner)
}
UpdateOriginRequestPolicyErrorKind::PreconditionFailed(_inner) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::TooManyCookiesInOriginRequestPolicy(_inner) => {
Some(_inner)
}
UpdateOriginRequestPolicyErrorKind::TooManyHeadersInOriginRequestPolicy(_inner) => {
Some(_inner)
}
UpdateOriginRequestPolicyErrorKind::TooManyQueryStringsInOriginRequestPolicy(
_inner,
) => Some(_inner),
UpdateOriginRequestPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdatePublicKeyError {
pub kind: UpdatePublicKeyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdatePublicKeyErrorKind {
AccessDenied(crate::error::AccessDenied),
CannotChangeImmutablePublicKeyFields(crate::error::CannotChangeImmutablePublicKeyFields),
IllegalUpdate(crate::error::IllegalUpdate),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
NoSuchPublicKey(crate::error::NoSuchPublicKey),
PreconditionFailed(crate::error::PreconditionFailed),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdatePublicKeyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdatePublicKeyErrorKind::AccessDenied(_inner) => _inner.fmt(f),
UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields(_inner) => _inner.fmt(f),
UpdatePublicKeyErrorKind::IllegalUpdate(_inner) => _inner.fmt(f),
UpdatePublicKeyErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdatePublicKeyErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
UpdatePublicKeyErrorKind::NoSuchPublicKey(_inner) => _inner.fmt(f),
UpdatePublicKeyErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
UpdatePublicKeyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdatePublicKeyError {
fn code(&self) -> Option<&str> {
UpdatePublicKeyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdatePublicKeyError {
pub fn new(kind: UpdatePublicKeyErrorKind, 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: UpdatePublicKeyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdatePublicKeyErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(&self.kind, UpdatePublicKeyErrorKind::AccessDenied(_))
}
pub fn is_cannot_change_immutable_public_key_fields(&self) -> bool {
matches!(
&self.kind,
UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields(_)
)
}
pub fn is_illegal_update(&self) -> bool {
matches!(&self.kind, UpdatePublicKeyErrorKind::IllegalUpdate(_))
}
pub fn is_invalid_argument(&self) -> bool {
matches!(&self.kind, UpdatePublicKeyErrorKind::InvalidArgument(_))
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdatePublicKeyErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_no_such_public_key(&self) -> bool {
matches!(&self.kind, UpdatePublicKeyErrorKind::NoSuchPublicKey(_))
}
pub fn is_precondition_failed(&self) -> bool {
matches!(&self.kind, UpdatePublicKeyErrorKind::PreconditionFailed(_))
}
}
impl std::error::Error for UpdatePublicKeyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdatePublicKeyErrorKind::AccessDenied(_inner) => Some(_inner),
UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields(_inner) => Some(_inner),
UpdatePublicKeyErrorKind::IllegalUpdate(_inner) => Some(_inner),
UpdatePublicKeyErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdatePublicKeyErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
UpdatePublicKeyErrorKind::NoSuchPublicKey(_inner) => Some(_inner),
UpdatePublicKeyErrorKind::PreconditionFailed(_inner) => Some(_inner),
UpdatePublicKeyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateRealtimeLogConfigError {
pub kind: UpdateRealtimeLogConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateRealtimeLogConfigErrorKind {
AccessDenied(crate::error::AccessDenied),
InvalidArgument(crate::error::InvalidArgument),
NoSuchRealtimeLogConfig(crate::error::NoSuchRealtimeLogConfig),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateRealtimeLogConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateRealtimeLogConfigErrorKind::AccessDenied(_inner) => _inner.fmt(f),
UpdateRealtimeLogConfigErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdateRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_inner) => _inner.fmt(f),
UpdateRealtimeLogConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateRealtimeLogConfigError {
fn code(&self) -> Option<&str> {
UpdateRealtimeLogConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateRealtimeLogConfigError {
pub fn new(kind: UpdateRealtimeLogConfigErrorKind, 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: UpdateRealtimeLogConfigErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateRealtimeLogConfigErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
UpdateRealtimeLogConfigErrorKind::AccessDenied(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
UpdateRealtimeLogConfigErrorKind::InvalidArgument(_)
)
}
pub fn is_no_such_realtime_log_config(&self) -> bool {
matches!(
&self.kind,
UpdateRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_)
)
}
}
impl std::error::Error for UpdateRealtimeLogConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateRealtimeLogConfigErrorKind::AccessDenied(_inner) => Some(_inner),
UpdateRealtimeLogConfigErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdateRealtimeLogConfigErrorKind::NoSuchRealtimeLogConfig(_inner) => Some(_inner),
UpdateRealtimeLogConfigErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateStreamingDistributionError {
pub kind: UpdateStreamingDistributionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateStreamingDistributionErrorKind {
AccessDenied(crate::error::AccessDenied),
CnameAlreadyExists(crate::error::CnameAlreadyExists),
IllegalUpdate(crate::error::IllegalUpdate),
InconsistentQuantities(crate::error::InconsistentQuantities),
InvalidArgument(crate::error::InvalidArgument),
InvalidIfMatchVersion(crate::error::InvalidIfMatchVersion),
InvalidOriginAccessIdentity(crate::error::InvalidOriginAccessIdentity),
MissingBody(crate::error::MissingBody),
NoSuchStreamingDistribution(crate::error::NoSuchStreamingDistribution),
PreconditionFailed(crate::error::PreconditionFailed),
TooManyStreamingDistributionCnamEs(crate::error::TooManyStreamingDistributionCnamEs),
TooManyTrustedSigners(crate::error::TooManyTrustedSigners),
TrustedSignerDoesNotExist(crate::error::TrustedSignerDoesNotExist),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateStreamingDistributionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateStreamingDistributionErrorKind::AccessDenied(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::CnameAlreadyExists(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::IllegalUpdate(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::InconsistentQuantities(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::InvalidArgument(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::InvalidOriginAccessIdentity(_inner) => {
_inner.fmt(f)
}
UpdateStreamingDistributionErrorKind::MissingBody(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::NoSuchStreamingDistribution(_inner) => {
_inner.fmt(f)
}
UpdateStreamingDistributionErrorKind::PreconditionFailed(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::TooManyStreamingDistributionCnamEs(_inner) => {
_inner.fmt(f)
}
UpdateStreamingDistributionErrorKind::TooManyTrustedSigners(_inner) => _inner.fmt(f),
UpdateStreamingDistributionErrorKind::TrustedSignerDoesNotExist(_inner) => {
_inner.fmt(f)
}
UpdateStreamingDistributionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateStreamingDistributionError {
fn code(&self) -> Option<&str> {
UpdateStreamingDistributionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateStreamingDistributionError {
pub fn new(kind: UpdateStreamingDistributionErrorKind, 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: UpdateStreamingDistributionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateStreamingDistributionErrorKind::Unhandled(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_access_denied(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::AccessDenied(_)
)
}
pub fn is_cname_already_exists(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::CnameAlreadyExists(_)
)
}
pub fn is_illegal_update(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::IllegalUpdate(_)
)
}
pub fn is_inconsistent_quantities(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::InconsistentQuantities(_)
)
}
pub fn is_invalid_argument(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::InvalidArgument(_)
)
}
pub fn is_invalid_if_match_version(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::InvalidIfMatchVersion(_)
)
}
pub fn is_invalid_origin_access_identity(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::InvalidOriginAccessIdentity(_)
)
}
pub fn is_missing_body(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::MissingBody(_)
)
}
pub fn is_no_such_streaming_distribution(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::NoSuchStreamingDistribution(_)
)
}
pub fn is_precondition_failed(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::PreconditionFailed(_)
)
}
pub fn is_too_many_streaming_distribution_cnam_es(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::TooManyStreamingDistributionCnamEs(_)
)
}
pub fn is_too_many_trusted_signers(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::TooManyTrustedSigners(_)
)
}
pub fn is_trusted_signer_does_not_exist(&self) -> bool {
matches!(
&self.kind,
UpdateStreamingDistributionErrorKind::TrustedSignerDoesNotExist(_)
)
}
}
impl std::error::Error for UpdateStreamingDistributionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateStreamingDistributionErrorKind::AccessDenied(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::CnameAlreadyExists(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::IllegalUpdate(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::InconsistentQuantities(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::InvalidArgument(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::InvalidIfMatchVersion(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::InvalidOriginAccessIdentity(_inner) => {
Some(_inner)
}
UpdateStreamingDistributionErrorKind::MissingBody(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::NoSuchStreamingDistribution(_inner) => {
Some(_inner)
}
UpdateStreamingDistributionErrorKind::PreconditionFailed(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::TooManyStreamingDistributionCnamEs(_inner) => {
Some(_inner)
}
UpdateStreamingDistributionErrorKind::TooManyTrustedSigners(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::TrustedSignerDoesNotExist(_inner) => Some(_inner),
UpdateStreamingDistributionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TrustedSignerDoesNotExist {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TrustedSignerDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TrustedSignerDoesNotExist");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TrustedSignerDoesNotExist {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TrustedSignerDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TrustedSignerDoesNotExist")?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for TrustedSignerDoesNotExist {}
pub mod trusted_signer_does_not_exist {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TrustedSignerDoesNotExist {
crate::error::TrustedSignerDoesNotExist {
message: self.message,
}
}
}
}
impl TrustedSignerDoesNotExist {
pub fn builder() -> crate::error::trusted_signer_does_not_exist::Builder {
crate::error::trusted_signer_does_not_exist::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyTrustedSigners {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyTrustedSigners {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyTrustedSigners");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyTrustedSigners {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTrustedSigners {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTrustedSigners")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for TooManyTrustedSigners {}
pub mod too_many_trusted_signers {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyTrustedSigners {
crate::error::TooManyTrustedSigners {
message: self.message,
}
}
}
}
impl TooManyTrustedSigners {
pub fn builder() -> crate::error::too_many_trusted_signers::Builder {
crate::error::too_many_trusted_signers::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyStreamingDistributionCnamEs {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyStreamingDistributionCnamEs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyStreamingDistributionCnamEs");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyStreamingDistributionCnamEs {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyStreamingDistributionCnamEs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"TooManyStreamingDistributionCnamEs [TooManyStreamingDistributionCNAMEs]"
)?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for TooManyStreamingDistributionCnamEs {}
pub mod too_many_streaming_distribution_cnam_es {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyStreamingDistributionCnamEs {
crate::error::TooManyStreamingDistributionCnamEs {
message: self.message,
}
}
}
}
impl TooManyStreamingDistributionCnamEs {
pub fn builder() -> crate::error::too_many_streaming_distribution_cnam_es::Builder {
crate::error::too_many_streaming_distribution_cnam_es::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PreconditionFailed {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for PreconditionFailed {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PreconditionFailed");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl PreconditionFailed {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PreconditionFailed {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PreconditionFailed")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for PreconditionFailed {}
pub mod precondition_failed {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::PreconditionFailed {
crate::error::PreconditionFailed {
message: self.message,
}
}
}
}
impl PreconditionFailed {
pub fn builder() -> crate::error::precondition_failed::Builder {
crate::error::precondition_failed::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchStreamingDistribution {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchStreamingDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchStreamingDistribution");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchStreamingDistribution {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchStreamingDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchStreamingDistribution")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchStreamingDistribution {}
pub mod no_such_streaming_distribution {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchStreamingDistribution {
crate::error::NoSuchStreamingDistribution {
message: self.message,
}
}
}
}
impl NoSuchStreamingDistribution {
pub fn builder() -> crate::error::no_such_streaming_distribution::Builder {
crate::error::no_such_streaming_distribution::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MissingBody {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for MissingBody {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MissingBody");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl MissingBody {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MissingBody {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MissingBody")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for MissingBody {}
pub mod missing_body {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::MissingBody {
crate::error::MissingBody {
message: self.message,
}
}
}
}
impl MissingBody {
pub fn builder() -> crate::error::missing_body::Builder {
crate::error::missing_body::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidOriginAccessIdentity {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidOriginAccessIdentity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidOriginAccessIdentity");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidOriginAccessIdentity {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOriginAccessIdentity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOriginAccessIdentity")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for InvalidOriginAccessIdentity {}
pub mod invalid_origin_access_identity {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidOriginAccessIdentity {
crate::error::InvalidOriginAccessIdentity {
message: self.message,
}
}
}
}
impl InvalidOriginAccessIdentity {
pub fn builder() -> crate::error::invalid_origin_access_identity::Builder {
crate::error::invalid_origin_access_identity::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidIfMatchVersion {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidIfMatchVersion {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidIfMatchVersion");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidIfMatchVersion {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidIfMatchVersion {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidIfMatchVersion")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for InvalidIfMatchVersion {}
pub mod invalid_if_match_version {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidIfMatchVersion {
crate::error::InvalidIfMatchVersion {
message: self.message,
}
}
}
}
impl InvalidIfMatchVersion {
pub fn builder() -> crate::error::invalid_if_match_version::Builder {
crate::error::invalid_if_match_version::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidArgument {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidArgument {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidArgument");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidArgument {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidArgument {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidArgument")?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for InvalidArgument {}
pub mod invalid_argument {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidArgument {
crate::error::InvalidArgument {
message: self.message,
}
}
}
}
impl InvalidArgument {
pub fn builder() -> crate::error::invalid_argument::Builder {
crate::error::invalid_argument::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InconsistentQuantities {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InconsistentQuantities {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InconsistentQuantities");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InconsistentQuantities {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InconsistentQuantities {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InconsistentQuantities")?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for InconsistentQuantities {}
pub mod inconsistent_quantities {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InconsistentQuantities {
crate::error::InconsistentQuantities {
message: self.message,
}
}
}
}
impl InconsistentQuantities {
pub fn builder() -> crate::error::inconsistent_quantities::Builder {
crate::error::inconsistent_quantities::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IllegalUpdate {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for IllegalUpdate {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IllegalUpdate");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl IllegalUpdate {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IllegalUpdate {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IllegalUpdate")?;
if let Some(inner_11) = &self.message {
write!(f, ": {}", inner_11)?;
}
Ok(())
}
}
impl std::error::Error for IllegalUpdate {}
pub mod illegal_update {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::IllegalUpdate {
crate::error::IllegalUpdate {
message: self.message,
}
}
}
}
impl IllegalUpdate {
pub fn builder() -> crate::error::illegal_update::Builder {
crate::error::illegal_update::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CnameAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CnameAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CnameAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CnameAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CnameAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CnameAlreadyExists [CNAMEAlreadyExists]")?;
if let Some(inner_12) = &self.message {
write!(f, ": {}", inner_12)?;
}
Ok(())
}
}
impl std::error::Error for CnameAlreadyExists {}
pub mod cname_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::CnameAlreadyExists {
crate::error::CnameAlreadyExists {
message: self.message,
}
}
}
}
impl CnameAlreadyExists {
pub fn builder() -> crate::error::cname_already_exists::Builder {
crate::error::cname_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AccessDenied {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for AccessDenied {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AccessDenied");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl AccessDenied {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AccessDenied {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AccessDenied")?;
if let Some(inner_13) = &self.message {
write!(f, ": {}", inner_13)?;
}
Ok(())
}
}
impl std::error::Error for AccessDenied {}
pub mod access_denied {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::AccessDenied {
crate::error::AccessDenied {
message: self.message,
}
}
}
}
impl AccessDenied {
pub fn builder() -> crate::error::access_denied::Builder {
crate::error::access_denied::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchRealtimeLogConfig {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchRealtimeLogConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchRealtimeLogConfig");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchRealtimeLogConfig {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchRealtimeLogConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchRealtimeLogConfig")?;
if let Some(inner_14) = &self.message {
write!(f, ": {}", inner_14)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchRealtimeLogConfig {}
pub mod no_such_realtime_log_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchRealtimeLogConfig {
crate::error::NoSuchRealtimeLogConfig {
message: self.message,
}
}
}
}
impl NoSuchRealtimeLogConfig {
pub fn builder() -> crate::error::no_such_realtime_log_config::Builder {
crate::error::no_such_realtime_log_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchPublicKey {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchPublicKey {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchPublicKey");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchPublicKey {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchPublicKey {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchPublicKey")?;
if let Some(inner_15) = &self.message {
write!(f, ": {}", inner_15)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchPublicKey {}
pub mod no_such_public_key {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchPublicKey {
crate::error::NoSuchPublicKey {
message: self.message,
}
}
}
}
impl NoSuchPublicKey {
pub fn builder() -> crate::error::no_such_public_key::Builder {
crate::error::no_such_public_key::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CannotChangeImmutablePublicKeyFields {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CannotChangeImmutablePublicKeyFields {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CannotChangeImmutablePublicKeyFields");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CannotChangeImmutablePublicKeyFields {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CannotChangeImmutablePublicKeyFields {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CannotChangeImmutablePublicKeyFields")?;
if let Some(inner_16) = &self.message {
write!(f, ": {}", inner_16)?;
}
Ok(())
}
}
impl std::error::Error for CannotChangeImmutablePublicKeyFields {}
pub mod cannot_change_immutable_public_key_fields {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::CannotChangeImmutablePublicKeyFields {
crate::error::CannotChangeImmutablePublicKeyFields {
message: self.message,
}
}
}
}
impl CannotChangeImmutablePublicKeyFields {
pub fn builder() -> crate::error::cannot_change_immutable_public_key_fields::Builder {
crate::error::cannot_change_immutable_public_key_fields::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyQueryStringsInOriginRequestPolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyQueryStringsInOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyQueryStringsInOriginRequestPolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyQueryStringsInOriginRequestPolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyQueryStringsInOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyQueryStringsInOriginRequestPolicy")?;
if let Some(inner_17) = &self.message {
write!(f, ": {}", inner_17)?;
}
Ok(())
}
}
impl std::error::Error for TooManyQueryStringsInOriginRequestPolicy {}
pub mod too_many_query_strings_in_origin_request_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyQueryStringsInOriginRequestPolicy {
crate::error::TooManyQueryStringsInOriginRequestPolicy {
message: self.message,
}
}
}
}
impl TooManyQueryStringsInOriginRequestPolicy {
pub fn builder() -> crate::error::too_many_query_strings_in_origin_request_policy::Builder {
crate::error::too_many_query_strings_in_origin_request_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyHeadersInOriginRequestPolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyHeadersInOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyHeadersInOriginRequestPolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyHeadersInOriginRequestPolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyHeadersInOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyHeadersInOriginRequestPolicy")?;
if let Some(inner_18) = &self.message {
write!(f, ": {}", inner_18)?;
}
Ok(())
}
}
impl std::error::Error for TooManyHeadersInOriginRequestPolicy {}
pub mod too_many_headers_in_origin_request_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyHeadersInOriginRequestPolicy {
crate::error::TooManyHeadersInOriginRequestPolicy {
message: self.message,
}
}
}
}
impl TooManyHeadersInOriginRequestPolicy {
pub fn builder() -> crate::error::too_many_headers_in_origin_request_policy::Builder {
crate::error::too_many_headers_in_origin_request_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyCookiesInOriginRequestPolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyCookiesInOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyCookiesInOriginRequestPolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyCookiesInOriginRequestPolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCookiesInOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCookiesInOriginRequestPolicy")?;
if let Some(inner_19) = &self.message {
write!(f, ": {}", inner_19)?;
}
Ok(())
}
}
impl std::error::Error for TooManyCookiesInOriginRequestPolicy {}
pub mod too_many_cookies_in_origin_request_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyCookiesInOriginRequestPolicy {
crate::error::TooManyCookiesInOriginRequestPolicy {
message: self.message,
}
}
}
}
impl TooManyCookiesInOriginRequestPolicy {
pub fn builder() -> crate::error::too_many_cookies_in_origin_request_policy::Builder {
crate::error::too_many_cookies_in_origin_request_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct OriginRequestPolicyAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for OriginRequestPolicyAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("OriginRequestPolicyAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl OriginRequestPolicyAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OriginRequestPolicyAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OriginRequestPolicyAlreadyExists")?;
if let Some(inner_20) = &self.message {
write!(f, ": {}", inner_20)?;
}
Ok(())
}
}
impl std::error::Error for OriginRequestPolicyAlreadyExists {}
pub mod origin_request_policy_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::OriginRequestPolicyAlreadyExists {
crate::error::OriginRequestPolicyAlreadyExists {
message: self.message,
}
}
}
}
impl OriginRequestPolicyAlreadyExists {
pub fn builder() -> crate::error::origin_request_policy_already_exists::Builder {
crate::error::origin_request_policy_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchOriginRequestPolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchOriginRequestPolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchOriginRequestPolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchOriginRequestPolicy")?;
if let Some(inner_21) = &self.message {
write!(f, ": {}", inner_21)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchOriginRequestPolicy {}
pub mod no_such_origin_request_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchOriginRequestPolicy {
crate::error::NoSuchOriginRequestPolicy {
message: self.message,
}
}
}
}
impl NoSuchOriginRequestPolicy {
pub fn builder() -> crate::error::no_such_origin_request_policy::Builder {
crate::error::no_such_origin_request_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyPublicKeysInKeyGroup {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyPublicKeysInKeyGroup {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyPublicKeysInKeyGroup");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyPublicKeysInKeyGroup {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyPublicKeysInKeyGroup {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyPublicKeysInKeyGroup")?;
if let Some(inner_22) = &self.message {
write!(f, ": {}", inner_22)?;
}
Ok(())
}
}
impl std::error::Error for TooManyPublicKeysInKeyGroup {}
pub mod too_many_public_keys_in_key_group {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyPublicKeysInKeyGroup {
crate::error::TooManyPublicKeysInKeyGroup {
message: self.message,
}
}
}
}
impl TooManyPublicKeysInKeyGroup {
pub fn builder() -> crate::error::too_many_public_keys_in_key_group::Builder {
crate::error::too_many_public_keys_in_key_group::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchResource {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchResource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchResource");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchResource {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchResource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchResource")?;
if let Some(inner_23) = &self.message {
write!(f, ": {}", inner_23)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchResource {}
pub mod no_such_resource {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchResource {
crate::error::NoSuchResource {
message: self.message,
}
}
}
}
impl NoSuchResource {
pub fn builder() -> crate::error::no_such_resource::Builder {
crate::error::no_such_resource::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct KeyGroupAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for KeyGroupAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("KeyGroupAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl KeyGroupAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for KeyGroupAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "KeyGroupAlreadyExists")?;
if let Some(inner_24) = &self.message {
write!(f, ": {}", inner_24)?;
}
Ok(())
}
}
impl std::error::Error for KeyGroupAlreadyExists {}
pub mod key_group_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::KeyGroupAlreadyExists {
crate::error::KeyGroupAlreadyExists {
message: self.message,
}
}
}
}
impl KeyGroupAlreadyExists {
pub fn builder() -> crate::error::key_group_already_exists::Builder {
crate::error::key_group_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UnsupportedOperation {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for UnsupportedOperation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UnsupportedOperation");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl UnsupportedOperation {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedOperation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedOperation")?;
if let Some(inner_25) = &self.message {
write!(f, ": {}", inner_25)?;
}
Ok(())
}
}
impl std::error::Error for UnsupportedOperation {}
pub mod unsupported_operation {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::UnsupportedOperation {
crate::error::UnsupportedOperation {
message: self.message,
}
}
}
}
impl UnsupportedOperation {
pub fn builder() -> crate::error::unsupported_operation::Builder {
crate::error::unsupported_operation::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchFunctionExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchFunctionExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchFunctionExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchFunctionExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchFunctionExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchFunctionExists")?;
if let Some(inner_26) = &self.message {
write!(f, ": {}", inner_26)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchFunctionExists {}
pub mod no_such_function_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchFunctionExists {
crate::error::NoSuchFunctionExists {
message: self.message,
}
}
}
}
impl NoSuchFunctionExists {
pub fn builder() -> crate::error::no_such_function_exists::Builder {
crate::error::no_such_function_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FunctionSizeLimitExceeded {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FunctionSizeLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FunctionSizeLimitExceeded");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FunctionSizeLimitExceeded {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FunctionSizeLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FunctionSizeLimitExceeded")?;
if let Some(inner_27) = &self.message {
write!(f, ": {}", inner_27)?;
}
Ok(())
}
}
impl std::error::Error for FunctionSizeLimitExceeded {}
pub mod function_size_limit_exceeded {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FunctionSizeLimitExceeded {
crate::error::FunctionSizeLimitExceeded {
message: self.message,
}
}
}
}
impl FunctionSizeLimitExceeded {
pub fn builder() -> crate::error::function_size_limit_exceeded::Builder {
crate::error::function_size_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFieldLevelEncryptionFieldPatterns {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFieldLevelEncryptionFieldPatterns {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFieldLevelEncryptionFieldPatterns");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFieldLevelEncryptionFieldPatterns {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFieldLevelEncryptionFieldPatterns {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFieldLevelEncryptionFieldPatterns")?;
if let Some(inner_28) = &self.message {
write!(f, ": {}", inner_28)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFieldLevelEncryptionFieldPatterns {}
pub mod too_many_field_level_encryption_field_patterns {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFieldLevelEncryptionFieldPatterns {
crate::error::TooManyFieldLevelEncryptionFieldPatterns {
message: self.message,
}
}
}
}
impl TooManyFieldLevelEncryptionFieldPatterns {
pub fn builder() -> crate::error::too_many_field_level_encryption_field_patterns::Builder {
crate::error::too_many_field_level_encryption_field_patterns::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFieldLevelEncryptionEncryptionEntities {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFieldLevelEncryptionEncryptionEntities {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFieldLevelEncryptionEncryptionEntities");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFieldLevelEncryptionEncryptionEntities {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFieldLevelEncryptionEncryptionEntities {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFieldLevelEncryptionEncryptionEntities")?;
if let Some(inner_29) = &self.message {
write!(f, ": {}", inner_29)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFieldLevelEncryptionEncryptionEntities {}
pub mod too_many_field_level_encryption_encryption_entities {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFieldLevelEncryptionEncryptionEntities {
crate::error::TooManyFieldLevelEncryptionEncryptionEntities {
message: self.message,
}
}
}
}
impl TooManyFieldLevelEncryptionEncryptionEntities {
pub fn builder() -> crate::error::too_many_field_level_encryption_encryption_entities::Builder {
crate::error::too_many_field_level_encryption_encryption_entities::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchFieldLevelEncryptionProfile {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchFieldLevelEncryptionProfile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchFieldLevelEncryptionProfile");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchFieldLevelEncryptionProfile {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchFieldLevelEncryptionProfile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchFieldLevelEncryptionProfile")?;
if let Some(inner_30) = &self.message {
write!(f, ": {}", inner_30)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchFieldLevelEncryptionProfile {}
pub mod no_such_field_level_encryption_profile {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchFieldLevelEncryptionProfile {
crate::error::NoSuchFieldLevelEncryptionProfile {
message: self.message,
}
}
}
}
impl NoSuchFieldLevelEncryptionProfile {
pub fn builder() -> crate::error::no_such_field_level_encryption_profile::Builder {
crate::error::no_such_field_level_encryption_profile::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FieldLevelEncryptionProfileSizeExceeded {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FieldLevelEncryptionProfileSizeExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FieldLevelEncryptionProfileSizeExceeded");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FieldLevelEncryptionProfileSizeExceeded {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FieldLevelEncryptionProfileSizeExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FieldLevelEncryptionProfileSizeExceeded")?;
if let Some(inner_31) = &self.message {
write!(f, ": {}", inner_31)?;
}
Ok(())
}
}
impl std::error::Error for FieldLevelEncryptionProfileSizeExceeded {}
pub mod field_level_encryption_profile_size_exceeded {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FieldLevelEncryptionProfileSizeExceeded {
crate::error::FieldLevelEncryptionProfileSizeExceeded {
message: self.message,
}
}
}
}
impl FieldLevelEncryptionProfileSizeExceeded {
pub fn builder() -> crate::error::field_level_encryption_profile_size_exceeded::Builder {
crate::error::field_level_encryption_profile_size_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FieldLevelEncryptionProfileAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FieldLevelEncryptionProfileAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FieldLevelEncryptionProfileAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FieldLevelEncryptionProfileAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FieldLevelEncryptionProfileAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FieldLevelEncryptionProfileAlreadyExists")?;
if let Some(inner_32) = &self.message {
write!(f, ": {}", inner_32)?;
}
Ok(())
}
}
impl std::error::Error for FieldLevelEncryptionProfileAlreadyExists {}
pub mod field_level_encryption_profile_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FieldLevelEncryptionProfileAlreadyExists {
crate::error::FieldLevelEncryptionProfileAlreadyExists {
message: self.message,
}
}
}
}
impl FieldLevelEncryptionProfileAlreadyExists {
pub fn builder() -> crate::error::field_level_encryption_profile_already_exists::Builder {
crate::error::field_level_encryption_profile_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFieldLevelEncryptionQueryArgProfiles {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFieldLevelEncryptionQueryArgProfiles {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFieldLevelEncryptionQueryArgProfiles");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFieldLevelEncryptionQueryArgProfiles {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFieldLevelEncryptionQueryArgProfiles {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFieldLevelEncryptionQueryArgProfiles")?;
if let Some(inner_33) = &self.message {
write!(f, ": {}", inner_33)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFieldLevelEncryptionQueryArgProfiles {}
pub mod too_many_field_level_encryption_query_arg_profiles {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFieldLevelEncryptionQueryArgProfiles {
crate::error::TooManyFieldLevelEncryptionQueryArgProfiles {
message: self.message,
}
}
}
}
impl TooManyFieldLevelEncryptionQueryArgProfiles {
pub fn builder() -> crate::error::too_many_field_level_encryption_query_arg_profiles::Builder {
crate::error::too_many_field_level_encryption_query_arg_profiles::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFieldLevelEncryptionContentTypeProfiles {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFieldLevelEncryptionContentTypeProfiles {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFieldLevelEncryptionContentTypeProfiles");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFieldLevelEncryptionContentTypeProfiles {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFieldLevelEncryptionContentTypeProfiles {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFieldLevelEncryptionContentTypeProfiles")?;
if let Some(inner_34) = &self.message {
write!(f, ": {}", inner_34)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFieldLevelEncryptionContentTypeProfiles {}
pub mod too_many_field_level_encryption_content_type_profiles {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFieldLevelEncryptionContentTypeProfiles {
crate::error::TooManyFieldLevelEncryptionContentTypeProfiles {
message: self.message,
}
}
}
}
impl TooManyFieldLevelEncryptionContentTypeProfiles {
pub fn builder() -> crate::error::too_many_field_level_encryption_content_type_profiles::Builder
{
crate::error::too_many_field_level_encryption_content_type_profiles::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct QueryArgProfileEmpty {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for QueryArgProfileEmpty {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("QueryArgProfileEmpty");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl QueryArgProfileEmpty {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for QueryArgProfileEmpty {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "QueryArgProfileEmpty")?;
if let Some(inner_35) = &self.message {
write!(f, ": {}", inner_35)?;
}
Ok(())
}
}
impl std::error::Error for QueryArgProfileEmpty {}
pub mod query_arg_profile_empty {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::QueryArgProfileEmpty {
crate::error::QueryArgProfileEmpty {
message: self.message,
}
}
}
}
impl QueryArgProfileEmpty {
pub fn builder() -> crate::error::query_arg_profile_empty::Builder {
crate::error::query_arg_profile_empty::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchFieldLevelEncryptionConfig {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchFieldLevelEncryptionConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchFieldLevelEncryptionConfig");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchFieldLevelEncryptionConfig {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchFieldLevelEncryptionConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchFieldLevelEncryptionConfig")?;
if let Some(inner_36) = &self.message {
write!(f, ": {}", inner_36)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchFieldLevelEncryptionConfig {}
pub mod no_such_field_level_encryption_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchFieldLevelEncryptionConfig {
crate::error::NoSuchFieldLevelEncryptionConfig {
message: self.message,
}
}
}
}
impl NoSuchFieldLevelEncryptionConfig {
pub fn builder() -> crate::error::no_such_field_level_encryption_config::Builder {
crate::error::no_such_field_level_encryption_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TrustedKeyGroupDoesNotExist {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TrustedKeyGroupDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TrustedKeyGroupDoesNotExist");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TrustedKeyGroupDoesNotExist {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TrustedKeyGroupDoesNotExist {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TrustedKeyGroupDoesNotExist")?;
if let Some(inner_37) = &self.message {
write!(f, ": {}", inner_37)?;
}
Ok(())
}
}
impl std::error::Error for TrustedKeyGroupDoesNotExist {}
pub mod trusted_key_group_does_not_exist {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TrustedKeyGroupDoesNotExist {
crate::error::TrustedKeyGroupDoesNotExist {
message: self.message,
}
}
}
}
impl TrustedKeyGroupDoesNotExist {
pub fn builder() -> crate::error::trusted_key_group_does_not_exist::Builder {
crate::error::trusted_key_group_does_not_exist::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyQueryStringParameters {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyQueryStringParameters {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyQueryStringParameters");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyQueryStringParameters {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyQueryStringParameters {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyQueryStringParameters")?;
if let Some(inner_38) = &self.message {
write!(f, ": {}", inner_38)?;
}
Ok(())
}
}
impl std::error::Error for TooManyQueryStringParameters {}
pub mod too_many_query_string_parameters {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyQueryStringParameters {
crate::error::TooManyQueryStringParameters {
message: self.message,
}
}
}
}
impl TooManyQueryStringParameters {
pub fn builder() -> crate::error::too_many_query_string_parameters::Builder {
crate::error::too_many_query_string_parameters::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyOrigins {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyOrigins {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyOrigins");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyOrigins {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyOrigins {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyOrigins")?;
if let Some(inner_39) = &self.message {
write!(f, ": {}", inner_39)?;
}
Ok(())
}
}
impl std::error::Error for TooManyOrigins {}
pub mod too_many_origins {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyOrigins {
crate::error::TooManyOrigins {
message: self.message,
}
}
}
}
impl TooManyOrigins {
pub fn builder() -> crate::error::too_many_origins::Builder {
crate::error::too_many_origins::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyOriginGroupsPerDistribution {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyOriginGroupsPerDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyOriginGroupsPerDistribution");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyOriginGroupsPerDistribution {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyOriginGroupsPerDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyOriginGroupsPerDistribution")?;
if let Some(inner_40) = &self.message {
write!(f, ": {}", inner_40)?;
}
Ok(())
}
}
impl std::error::Error for TooManyOriginGroupsPerDistribution {}
pub mod too_many_origin_groups_per_distribution {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyOriginGroupsPerDistribution {
crate::error::TooManyOriginGroupsPerDistribution {
message: self.message,
}
}
}
}
impl TooManyOriginGroupsPerDistribution {
pub fn builder() -> crate::error::too_many_origin_groups_per_distribution::Builder {
crate::error::too_many_origin_groups_per_distribution::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyOriginCustomHeaders {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyOriginCustomHeaders {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyOriginCustomHeaders");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyOriginCustomHeaders {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyOriginCustomHeaders {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyOriginCustomHeaders")?;
if let Some(inner_41) = &self.message {
write!(f, ": {}", inner_41)?;
}
Ok(())
}
}
impl std::error::Error for TooManyOriginCustomHeaders {}
pub mod too_many_origin_custom_headers {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyOriginCustomHeaders {
crate::error::TooManyOriginCustomHeaders {
message: self.message,
}
}
}
}
impl TooManyOriginCustomHeaders {
pub fn builder() -> crate::error::too_many_origin_custom_headers::Builder {
crate::error::too_many_origin_custom_headers::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyLambdaFunctionAssociations {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyLambdaFunctionAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyLambdaFunctionAssociations");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyLambdaFunctionAssociations {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyLambdaFunctionAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyLambdaFunctionAssociations")?;
if let Some(inner_42) = &self.message {
write!(f, ": {}", inner_42)?;
}
Ok(())
}
}
impl std::error::Error for TooManyLambdaFunctionAssociations {}
pub mod too_many_lambda_function_associations {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyLambdaFunctionAssociations {
crate::error::TooManyLambdaFunctionAssociations {
message: self.message,
}
}
}
}
impl TooManyLambdaFunctionAssociations {
pub fn builder() -> crate::error::too_many_lambda_function_associations::Builder {
crate::error::too_many_lambda_function_associations::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyKeyGroupsAssociatedToDistribution {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyKeyGroupsAssociatedToDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyKeyGroupsAssociatedToDistribution");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyKeyGroupsAssociatedToDistribution {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyKeyGroupsAssociatedToDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyKeyGroupsAssociatedToDistribution")?;
if let Some(inner_43) = &self.message {
write!(f, ": {}", inner_43)?;
}
Ok(())
}
}
impl std::error::Error for TooManyKeyGroupsAssociatedToDistribution {}
pub mod too_many_key_groups_associated_to_distribution {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyKeyGroupsAssociatedToDistribution {
crate::error::TooManyKeyGroupsAssociatedToDistribution {
message: self.message,
}
}
}
}
impl TooManyKeyGroupsAssociatedToDistribution {
pub fn builder() -> crate::error::too_many_key_groups_associated_to_distribution::Builder {
crate::error::too_many_key_groups_associated_to_distribution::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyHeadersInForwardedValues {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyHeadersInForwardedValues {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyHeadersInForwardedValues");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyHeadersInForwardedValues {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyHeadersInForwardedValues {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyHeadersInForwardedValues")?;
if let Some(inner_44) = &self.message {
write!(f, ": {}", inner_44)?;
}
Ok(())
}
}
impl std::error::Error for TooManyHeadersInForwardedValues {}
pub mod too_many_headers_in_forwarded_values {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyHeadersInForwardedValues {
crate::error::TooManyHeadersInForwardedValues {
message: self.message,
}
}
}
}
impl TooManyHeadersInForwardedValues {
pub fn builder() -> crate::error::too_many_headers_in_forwarded_values::Builder {
crate::error::too_many_headers_in_forwarded_values::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFunctionAssociations {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFunctionAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFunctionAssociations");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFunctionAssociations {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFunctionAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFunctionAssociations")?;
if let Some(inner_45) = &self.message {
write!(f, ": {}", inner_45)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFunctionAssociations {}
pub mod too_many_function_associations {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFunctionAssociations {
crate::error::TooManyFunctionAssociations {
message: self.message,
}
}
}
}
impl TooManyFunctionAssociations {
pub fn builder() -> crate::error::too_many_function_associations::Builder {
crate::error::too_many_function_associations::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionsWithSingleFunctionArn {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionsWithSingleFunctionArn {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributionsWithSingleFunctionArn");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionsWithSingleFunctionArn {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionsWithSingleFunctionArn {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"TooManyDistributionsWithSingleFunctionArn [TooManyDistributionsWithSingleFunctionARN]"
)?;
if let Some(inner_46) = &self.message {
write!(f, ": {}", inner_46)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionsWithSingleFunctionArn {}
pub mod too_many_distributions_with_single_function_arn {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionsWithSingleFunctionArn {
crate::error::TooManyDistributionsWithSingleFunctionArn {
message: self.message,
}
}
}
}
impl TooManyDistributionsWithSingleFunctionArn {
pub fn builder() -> crate::error::too_many_distributions_with_single_function_arn::Builder {
crate::error::too_many_distributions_with_single_function_arn::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionsWithLambdaAssociations {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionsWithLambdaAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributionsWithLambdaAssociations");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionsWithLambdaAssociations {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionsWithLambdaAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyDistributionsWithLambdaAssociations")?;
if let Some(inner_47) = &self.message {
write!(f, ": {}", inner_47)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionsWithLambdaAssociations {}
pub mod too_many_distributions_with_lambda_associations {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionsWithLambdaAssociations {
crate::error::TooManyDistributionsWithLambdaAssociations {
message: self.message,
}
}
}
}
impl TooManyDistributionsWithLambdaAssociations {
pub fn builder() -> crate::error::too_many_distributions_with_lambda_associations::Builder {
crate::error::too_many_distributions_with_lambda_associations::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionsWithFunctionAssociations {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionsWithFunctionAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributionsWithFunctionAssociations");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionsWithFunctionAssociations {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionsWithFunctionAssociations {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyDistributionsWithFunctionAssociations")?;
if let Some(inner_48) = &self.message {
write!(f, ": {}", inner_48)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionsWithFunctionAssociations {}
pub mod too_many_distributions_with_function_associations {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionsWithFunctionAssociations {
crate::error::TooManyDistributionsWithFunctionAssociations {
message: self.message,
}
}
}
}
impl TooManyDistributionsWithFunctionAssociations {
pub fn builder() -> crate::error::too_many_distributions_with_function_associations::Builder {
crate::error::too_many_distributions_with_function_associations::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionsAssociatedToOriginRequestPolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionsAssociatedToOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributionsAssociatedToOriginRequestPolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionsAssociatedToOriginRequestPolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionsAssociatedToOriginRequestPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyDistributionsAssociatedToOriginRequestPolicy")?;
if let Some(inner_49) = &self.message {
write!(f, ": {}", inner_49)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionsAssociatedToOriginRequestPolicy {}
pub mod too_many_distributions_associated_to_origin_request_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionsAssociatedToOriginRequestPolicy {
crate::error::TooManyDistributionsAssociatedToOriginRequestPolicy {
message: self.message,
}
}
}
}
impl TooManyDistributionsAssociatedToOriginRequestPolicy {
pub fn builder(
) -> crate::error::too_many_distributions_associated_to_origin_request_policy::Builder {
crate::error::too_many_distributions_associated_to_origin_request_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionsAssociatedToKeyGroup {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionsAssociatedToKeyGroup {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributionsAssociatedToKeyGroup");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionsAssociatedToKeyGroup {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionsAssociatedToKeyGroup {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyDistributionsAssociatedToKeyGroup")?;
if let Some(inner_50) = &self.message {
write!(f, ": {}", inner_50)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionsAssociatedToKeyGroup {}
pub mod too_many_distributions_associated_to_key_group {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionsAssociatedToKeyGroup {
crate::error::TooManyDistributionsAssociatedToKeyGroup {
message: self.message,
}
}
}
}
impl TooManyDistributionsAssociatedToKeyGroup {
pub fn builder() -> crate::error::too_many_distributions_associated_to_key_group::Builder {
crate::error::too_many_distributions_associated_to_key_group::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter =
f.debug_struct("TooManyDistributionsAssociatedToFieldLevelEncryptionConfig");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"
)?;
if let Some(inner_51) = &self.message {
write!(f, ": {}", inner_51)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {}
pub mod too_many_distributions_associated_to_field_level_encryption_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {
crate::error::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {
message: self.message,
}
}
}
}
impl TooManyDistributionsAssociatedToFieldLevelEncryptionConfig {
pub fn builder(
) -> crate::error::too_many_distributions_associated_to_field_level_encryption_config::Builder
{
crate::error::too_many_distributions_associated_to_field_level_encryption_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionsAssociatedToCachePolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionsAssociatedToCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributionsAssociatedToCachePolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionsAssociatedToCachePolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionsAssociatedToCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyDistributionsAssociatedToCachePolicy")?;
if let Some(inner_52) = &self.message {
write!(f, ": {}", inner_52)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionsAssociatedToCachePolicy {}
pub mod too_many_distributions_associated_to_cache_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionsAssociatedToCachePolicy {
crate::error::TooManyDistributionsAssociatedToCachePolicy {
message: self.message,
}
}
}
}
impl TooManyDistributionsAssociatedToCachePolicy {
pub fn builder() -> crate::error::too_many_distributions_associated_to_cache_policy::Builder {
crate::error::too_many_distributions_associated_to_cache_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributionCnamEs {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributionCnamEs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributionCnamEs");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributionCnamEs {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributionCnamEs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyDistributionCnamEs [TooManyDistributionCNAMEs]")?;
if let Some(inner_53) = &self.message {
write!(f, ": {}", inner_53)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributionCnamEs {}
pub mod too_many_distribution_cnam_es {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributionCnamEs {
crate::error::TooManyDistributionCnamEs {
message: self.message,
}
}
}
}
impl TooManyDistributionCnamEs {
pub fn builder() -> crate::error::too_many_distribution_cnam_es::Builder {
crate::error::too_many_distribution_cnam_es::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyCookieNamesInWhiteList {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyCookieNamesInWhiteList {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyCookieNamesInWhiteList");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyCookieNamesInWhiteList {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCookieNamesInWhiteList {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCookieNamesInWhiteList")?;
if let Some(inner_54) = &self.message {
write!(f, ": {}", inner_54)?;
}
Ok(())
}
}
impl std::error::Error for TooManyCookieNamesInWhiteList {}
pub mod too_many_cookie_names_in_white_list {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyCookieNamesInWhiteList {
crate::error::TooManyCookieNamesInWhiteList {
message: self.message,
}
}
}
}
impl TooManyCookieNamesInWhiteList {
pub fn builder() -> crate::error::too_many_cookie_names_in_white_list::Builder {
crate::error::too_many_cookie_names_in_white_list::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyCertificates {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyCertificates {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyCertificates");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyCertificates {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCertificates {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCertificates")?;
if let Some(inner_55) = &self.message {
write!(f, ": {}", inner_55)?;
}
Ok(())
}
}
impl std::error::Error for TooManyCertificates {}
pub mod too_many_certificates {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyCertificates {
crate::error::TooManyCertificates {
message: self.message,
}
}
}
}
impl TooManyCertificates {
pub fn builder() -> crate::error::too_many_certificates::Builder {
crate::error::too_many_certificates::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyCacheBehaviors {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyCacheBehaviors {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyCacheBehaviors");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyCacheBehaviors {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCacheBehaviors {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCacheBehaviors")?;
if let Some(inner_56) = &self.message {
write!(f, ": {}", inner_56)?;
}
Ok(())
}
}
impl std::error::Error for TooManyCacheBehaviors {}
pub mod too_many_cache_behaviors {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyCacheBehaviors {
crate::error::TooManyCacheBehaviors {
message: self.message,
}
}
}
}
impl TooManyCacheBehaviors {
pub fn builder() -> crate::error::too_many_cache_behaviors::Builder {
crate::error::too_many_cache_behaviors::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RealtimeLogConfigOwnerMismatch {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RealtimeLogConfigOwnerMismatch {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RealtimeLogConfigOwnerMismatch");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RealtimeLogConfigOwnerMismatch {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RealtimeLogConfigOwnerMismatch {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RealtimeLogConfigOwnerMismatch")?;
if let Some(inner_57) = &self.message {
write!(f, ": {}", inner_57)?;
}
Ok(())
}
}
impl std::error::Error for RealtimeLogConfigOwnerMismatch {}
pub mod realtime_log_config_owner_mismatch {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::RealtimeLogConfigOwnerMismatch {
crate::error::RealtimeLogConfigOwnerMismatch {
message: self.message,
}
}
}
}
impl RealtimeLogConfigOwnerMismatch {
pub fn builder() -> crate::error::realtime_log_config_owner_mismatch::Builder {
crate::error::realtime_log_config_owner_mismatch::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchOrigin {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchOrigin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchOrigin");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchOrigin {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchOrigin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchOrigin")?;
if let Some(inner_58) = &self.message {
write!(f, ": {}", inner_58)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchOrigin {}
pub mod no_such_origin {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchOrigin {
crate::error::NoSuchOrigin {
message: self.message,
}
}
}
}
impl NoSuchOrigin {
pub fn builder() -> crate::error::no_such_origin::Builder {
crate::error::no_such_origin::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchDistribution {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchDistribution");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchDistribution {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchDistribution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchDistribution")?;
if let Some(inner_59) = &self.message {
write!(f, ": {}", inner_59)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchDistribution {}
pub mod no_such_distribution {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchDistribution {
crate::error::NoSuchDistribution {
message: self.message,
}
}
}
}
impl NoSuchDistribution {
pub fn builder() -> crate::error::no_such_distribution::Builder {
crate::error::no_such_distribution::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchCachePolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchCachePolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchCachePolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchCachePolicy")?;
if let Some(inner_60) = &self.message {
write!(f, ": {}", inner_60)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchCachePolicy {}
pub mod no_such_cache_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchCachePolicy {
crate::error::NoSuchCachePolicy {
message: self.message,
}
}
}
}
impl NoSuchCachePolicy {
pub fn builder() -> crate::error::no_such_cache_policy::Builder {
crate::error::no_such_cache_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidWebAclId {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidWebAclId {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidWebAclId");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidWebAclId {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidWebAclId {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidWebAclId [InvalidWebACLId]")?;
if let Some(inner_61) = &self.message {
write!(f, ": {}", inner_61)?;
}
Ok(())
}
}
impl std::error::Error for InvalidWebAclId {}
pub mod invalid_web_acl_id {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidWebAclId {
crate::error::InvalidWebAclId {
message: self.message,
}
}
}
}
impl InvalidWebAclId {
pub fn builder() -> crate::error::invalid_web_acl_id::Builder {
crate::error::invalid_web_acl_id::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidViewerCertificate {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidViewerCertificate {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidViewerCertificate");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidViewerCertificate {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidViewerCertificate {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidViewerCertificate")?;
if let Some(inner_62) = &self.message {
write!(f, ": {}", inner_62)?;
}
Ok(())
}
}
impl std::error::Error for InvalidViewerCertificate {}
pub mod invalid_viewer_certificate {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidViewerCertificate {
crate::error::InvalidViewerCertificate {
message: self.message,
}
}
}
}
impl InvalidViewerCertificate {
pub fn builder() -> crate::error::invalid_viewer_certificate::Builder {
crate::error::invalid_viewer_certificate::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidTtlOrder {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidTtlOrder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidTtlOrder");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidTtlOrder {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTtlOrder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTtlOrder [InvalidTTLOrder]")?;
if let Some(inner_63) = &self.message {
write!(f, ": {}", inner_63)?;
}
Ok(())
}
}
impl std::error::Error for InvalidTtlOrder {}
pub mod invalid_ttl_order {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidTtlOrder {
crate::error::InvalidTtlOrder {
message: self.message,
}
}
}
}
impl InvalidTtlOrder {
pub fn builder() -> crate::error::invalid_ttl_order::Builder {
crate::error::invalid_ttl_order::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidResponseCode {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidResponseCode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidResponseCode");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidResponseCode {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidResponseCode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidResponseCode")?;
if let Some(inner_64) = &self.message {
write!(f, ": {}", inner_64)?;
}
Ok(())
}
}
impl std::error::Error for InvalidResponseCode {}
pub mod invalid_response_code {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidResponseCode {
crate::error::InvalidResponseCode {
message: self.message,
}
}
}
}
impl InvalidResponseCode {
pub fn builder() -> crate::error::invalid_response_code::Builder {
crate::error::invalid_response_code::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidRequiredProtocol {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidRequiredProtocol {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidRequiredProtocol");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidRequiredProtocol {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRequiredProtocol {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRequiredProtocol")?;
if let Some(inner_65) = &self.message {
write!(f, ": {}", inner_65)?;
}
Ok(())
}
}
impl std::error::Error for InvalidRequiredProtocol {}
pub mod invalid_required_protocol {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidRequiredProtocol {
crate::error::InvalidRequiredProtocol {
message: self.message,
}
}
}
}
impl InvalidRequiredProtocol {
pub fn builder() -> crate::error::invalid_required_protocol::Builder {
crate::error::invalid_required_protocol::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidRelativePath {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidRelativePath {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidRelativePath");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidRelativePath {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRelativePath {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRelativePath")?;
if let Some(inner_66) = &self.message {
write!(f, ": {}", inner_66)?;
}
Ok(())
}
}
impl std::error::Error for InvalidRelativePath {}
pub mod invalid_relative_path {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidRelativePath {
crate::error::InvalidRelativePath {
message: self.message,
}
}
}
}
impl InvalidRelativePath {
pub fn builder() -> crate::error::invalid_relative_path::Builder {
crate::error::invalid_relative_path::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidQueryStringParameters {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidQueryStringParameters {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidQueryStringParameters");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidQueryStringParameters {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidQueryStringParameters {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidQueryStringParameters")?;
if let Some(inner_67) = &self.message {
write!(f, ": {}", inner_67)?;
}
Ok(())
}
}
impl std::error::Error for InvalidQueryStringParameters {}
pub mod invalid_query_string_parameters {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidQueryStringParameters {
crate::error::InvalidQueryStringParameters {
message: self.message,
}
}
}
}
impl InvalidQueryStringParameters {
pub fn builder() -> crate::error::invalid_query_string_parameters::Builder {
crate::error::invalid_query_string_parameters::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidOriginReadTimeout {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidOriginReadTimeout {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidOriginReadTimeout");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidOriginReadTimeout {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOriginReadTimeout {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOriginReadTimeout")?;
if let Some(inner_68) = &self.message {
write!(f, ": {}", inner_68)?;
}
Ok(())
}
}
impl std::error::Error for InvalidOriginReadTimeout {}
pub mod invalid_origin_read_timeout {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidOriginReadTimeout {
crate::error::InvalidOriginReadTimeout {
message: self.message,
}
}
}
}
impl InvalidOriginReadTimeout {
pub fn builder() -> crate::error::invalid_origin_read_timeout::Builder {
crate::error::invalid_origin_read_timeout::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidOriginKeepaliveTimeout {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidOriginKeepaliveTimeout {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidOriginKeepaliveTimeout");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidOriginKeepaliveTimeout {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOriginKeepaliveTimeout {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOriginKeepaliveTimeout")?;
if let Some(inner_69) = &self.message {
write!(f, ": {}", inner_69)?;
}
Ok(())
}
}
impl std::error::Error for InvalidOriginKeepaliveTimeout {}
pub mod invalid_origin_keepalive_timeout {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidOriginKeepaliveTimeout {
crate::error::InvalidOriginKeepaliveTimeout {
message: self.message,
}
}
}
}
impl InvalidOriginKeepaliveTimeout {
pub fn builder() -> crate::error::invalid_origin_keepalive_timeout::Builder {
crate::error::invalid_origin_keepalive_timeout::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidMinimumProtocolVersion {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidMinimumProtocolVersion {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidMinimumProtocolVersion");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidMinimumProtocolVersion {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidMinimumProtocolVersion {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidMinimumProtocolVersion")?;
if let Some(inner_70) = &self.message {
write!(f, ": {}", inner_70)?;
}
Ok(())
}
}
impl std::error::Error for InvalidMinimumProtocolVersion {}
pub mod invalid_minimum_protocol_version {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidMinimumProtocolVersion {
crate::error::InvalidMinimumProtocolVersion {
message: self.message,
}
}
}
}
impl InvalidMinimumProtocolVersion {
pub fn builder() -> crate::error::invalid_minimum_protocol_version::Builder {
crate::error::invalid_minimum_protocol_version::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidLocationCode {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidLocationCode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidLocationCode");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidLocationCode {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidLocationCode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidLocationCode")?;
if let Some(inner_71) = &self.message {
write!(f, ": {}", inner_71)?;
}
Ok(())
}
}
impl std::error::Error for InvalidLocationCode {}
pub mod invalid_location_code {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidLocationCode {
crate::error::InvalidLocationCode {
message: self.message,
}
}
}
}
impl InvalidLocationCode {
pub fn builder() -> crate::error::invalid_location_code::Builder {
crate::error::invalid_location_code::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidLambdaFunctionAssociation {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidLambdaFunctionAssociation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidLambdaFunctionAssociation");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidLambdaFunctionAssociation {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidLambdaFunctionAssociation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidLambdaFunctionAssociation")?;
if let Some(inner_72) = &self.message {
write!(f, ": {}", inner_72)?;
}
Ok(())
}
}
impl std::error::Error for InvalidLambdaFunctionAssociation {}
pub mod invalid_lambda_function_association {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidLambdaFunctionAssociation {
crate::error::InvalidLambdaFunctionAssociation {
message: self.message,
}
}
}
}
impl InvalidLambdaFunctionAssociation {
pub fn builder() -> crate::error::invalid_lambda_function_association::Builder {
crate::error::invalid_lambda_function_association::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidHeadersForS3Origin {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidHeadersForS3Origin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidHeadersForS3Origin");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidHeadersForS3Origin {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidHeadersForS3Origin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidHeadersForS3Origin")?;
if let Some(inner_73) = &self.message {
write!(f, ": {}", inner_73)?;
}
Ok(())
}
}
impl std::error::Error for InvalidHeadersForS3Origin {}
pub mod invalid_headers_for_s3_origin {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidHeadersForS3Origin {
crate::error::InvalidHeadersForS3Origin {
message: self.message,
}
}
}
}
impl InvalidHeadersForS3Origin {
pub fn builder() -> crate::error::invalid_headers_for_s3_origin::Builder {
crate::error::invalid_headers_for_s3_origin::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidGeoRestrictionParameter {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidGeoRestrictionParameter {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidGeoRestrictionParameter");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidGeoRestrictionParameter {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidGeoRestrictionParameter {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidGeoRestrictionParameter")?;
if let Some(inner_74) = &self.message {
write!(f, ": {}", inner_74)?;
}
Ok(())
}
}
impl std::error::Error for InvalidGeoRestrictionParameter {}
pub mod invalid_geo_restriction_parameter {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidGeoRestrictionParameter {
crate::error::InvalidGeoRestrictionParameter {
message: self.message,
}
}
}
}
impl InvalidGeoRestrictionParameter {
pub fn builder() -> crate::error::invalid_geo_restriction_parameter::Builder {
crate::error::invalid_geo_restriction_parameter::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidFunctionAssociation {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidFunctionAssociation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidFunctionAssociation");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidFunctionAssociation {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidFunctionAssociation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidFunctionAssociation")?;
if let Some(inner_75) = &self.message {
write!(f, ": {}", inner_75)?;
}
Ok(())
}
}
impl std::error::Error for InvalidFunctionAssociation {}
pub mod invalid_function_association {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidFunctionAssociation {
crate::error::InvalidFunctionAssociation {
message: self.message,
}
}
}
}
impl InvalidFunctionAssociation {
pub fn builder() -> crate::error::invalid_function_association::Builder {
crate::error::invalid_function_association::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidForwardCookies {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidForwardCookies {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidForwardCookies");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidForwardCookies {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidForwardCookies {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidForwardCookies")?;
if let Some(inner_76) = &self.message {
write!(f, ": {}", inner_76)?;
}
Ok(())
}
}
impl std::error::Error for InvalidForwardCookies {}
pub mod invalid_forward_cookies {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidForwardCookies {
crate::error::InvalidForwardCookies {
message: self.message,
}
}
}
}
impl InvalidForwardCookies {
pub fn builder() -> crate::error::invalid_forward_cookies::Builder {
crate::error::invalid_forward_cookies::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidErrorCode {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidErrorCode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidErrorCode");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidErrorCode {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidErrorCode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidErrorCode")?;
if let Some(inner_77) = &self.message {
write!(f, ": {}", inner_77)?;
}
Ok(())
}
}
impl std::error::Error for InvalidErrorCode {}
pub mod invalid_error_code {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidErrorCode {
crate::error::InvalidErrorCode {
message: self.message,
}
}
}
}
impl InvalidErrorCode {
pub fn builder() -> crate::error::invalid_error_code::Builder {
crate::error::invalid_error_code::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidDefaultRootObject {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidDefaultRootObject {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidDefaultRootObject");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidDefaultRootObject {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDefaultRootObject {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDefaultRootObject")?;
if let Some(inner_78) = &self.message {
write!(f, ": {}", inner_78)?;
}
Ok(())
}
}
impl std::error::Error for InvalidDefaultRootObject {}
pub mod invalid_default_root_object {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidDefaultRootObject {
crate::error::InvalidDefaultRootObject {
message: self.message,
}
}
}
}
impl InvalidDefaultRootObject {
pub fn builder() -> crate::error::invalid_default_root_object::Builder {
crate::error::invalid_default_root_object::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter =
f.debug_struct("IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"
)?;
if let Some(inner_79) = &self.message {
write!(f, ": {}", inner_79)?;
}
Ok(())
}
}
impl std::error::Error for IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {}
pub mod illegal_field_level_encryption_config_association_with_cache_behavior {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {
crate::error::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {
message: self.message,
}
}
}
}
impl IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior {
pub fn builder(
) -> crate::error::illegal_field_level_encryption_config_association_with_cache_behavior::Builder
{
crate::error::illegal_field_level_encryption_config_association_with_cache_behavior::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchCloudFrontOriginAccessIdentity {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchCloudFrontOriginAccessIdentity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchCloudFrontOriginAccessIdentity");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchCloudFrontOriginAccessIdentity {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchCloudFrontOriginAccessIdentity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchCloudFrontOriginAccessIdentity")?;
if let Some(inner_80) = &self.message {
write!(f, ": {}", inner_80)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchCloudFrontOriginAccessIdentity {}
pub mod no_such_cloud_front_origin_access_identity {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchCloudFrontOriginAccessIdentity {
crate::error::NoSuchCloudFrontOriginAccessIdentity {
message: self.message,
}
}
}
}
impl NoSuchCloudFrontOriginAccessIdentity {
pub fn builder() -> crate::error::no_such_cloud_front_origin_access_identity::Builder {
crate::error::no_such_cloud_front_origin_access_identity::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyQueryStringsInCachePolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyQueryStringsInCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyQueryStringsInCachePolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyQueryStringsInCachePolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyQueryStringsInCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyQueryStringsInCachePolicy")?;
if let Some(inner_81) = &self.message {
write!(f, ": {}", inner_81)?;
}
Ok(())
}
}
impl std::error::Error for TooManyQueryStringsInCachePolicy {}
pub mod too_many_query_strings_in_cache_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyQueryStringsInCachePolicy {
crate::error::TooManyQueryStringsInCachePolicy {
message: self.message,
}
}
}
}
impl TooManyQueryStringsInCachePolicy {
pub fn builder() -> crate::error::too_many_query_strings_in_cache_policy::Builder {
crate::error::too_many_query_strings_in_cache_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyHeadersInCachePolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyHeadersInCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyHeadersInCachePolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyHeadersInCachePolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyHeadersInCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyHeadersInCachePolicy")?;
if let Some(inner_82) = &self.message {
write!(f, ": {}", inner_82)?;
}
Ok(())
}
}
impl std::error::Error for TooManyHeadersInCachePolicy {}
pub mod too_many_headers_in_cache_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyHeadersInCachePolicy {
crate::error::TooManyHeadersInCachePolicy {
message: self.message,
}
}
}
}
impl TooManyHeadersInCachePolicy {
pub fn builder() -> crate::error::too_many_headers_in_cache_policy::Builder {
crate::error::too_many_headers_in_cache_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyCookiesInCachePolicy {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyCookiesInCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyCookiesInCachePolicy");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyCookiesInCachePolicy {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCookiesInCachePolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCookiesInCachePolicy")?;
if let Some(inner_83) = &self.message {
write!(f, ": {}", inner_83)?;
}
Ok(())
}
}
impl std::error::Error for TooManyCookiesInCachePolicy {}
pub mod too_many_cookies_in_cache_policy {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyCookiesInCachePolicy {
crate::error::TooManyCookiesInCachePolicy {
message: self.message,
}
}
}
}
impl TooManyCookiesInCachePolicy {
pub fn builder() -> crate::error::too_many_cookies_in_cache_policy::Builder {
crate::error::too_many_cookies_in_cache_policy::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CachePolicyAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CachePolicyAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CachePolicyAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CachePolicyAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CachePolicyAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CachePolicyAlreadyExists")?;
if let Some(inner_84) = &self.message {
write!(f, ": {}", inner_84)?;
}
Ok(())
}
}
impl std::error::Error for CachePolicyAlreadyExists {}
pub mod cache_policy_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::CachePolicyAlreadyExists {
crate::error::CachePolicyAlreadyExists {
message: self.message,
}
}
}
}
impl CachePolicyAlreadyExists {
pub fn builder() -> crate::error::cache_policy_already_exists::Builder {
crate::error::cache_policy_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidTagging {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidTagging {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidTagging");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidTagging {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTagging {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTagging")?;
if let Some(inner_85) = &self.message {
write!(f, ": {}", inner_85)?;
}
Ok(())
}
}
impl std::error::Error for InvalidTagging {}
pub mod invalid_tagging {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidTagging {
crate::error::InvalidTagging {
message: self.message,
}
}
}
}
impl InvalidTagging {
pub fn builder() -> crate::error::invalid_tagging::Builder {
crate::error::invalid_tagging::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TestFunctionFailed {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TestFunctionFailed {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TestFunctionFailed");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TestFunctionFailed {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TestFunctionFailed {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TestFunctionFailed")?;
if let Some(inner_86) = &self.message {
write!(f, ": {}", inner_86)?;
}
Ok(())
}
}
impl std::error::Error for TestFunctionFailed {}
pub mod test_function_failed {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TestFunctionFailed {
crate::error::TestFunctionFailed {
message: self.message,
}
}
}
}
impl TestFunctionFailed {
pub fn builder() -> crate::error::test_function_failed::Builder {
crate::error::test_function_failed::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoSuchInvalidation {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NoSuchInvalidation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoSuchInvalidation");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoSuchInvalidation {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoSuchInvalidation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoSuchInvalidation")?;
if let Some(inner_87) = &self.message {
write!(f, ": {}", inner_87)?;
}
Ok(())
}
}
impl std::error::Error for NoSuchInvalidation {}
pub mod no_such_invalidation {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::NoSuchInvalidation {
crate::error::NoSuchInvalidation {
message: self.message,
}
}
}
}
impl NoSuchInvalidation {
pub fn builder() -> crate::error::no_such_invalidation::Builder {
crate::error::no_such_invalidation::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct StreamingDistributionNotDisabled {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for StreamingDistributionNotDisabled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("StreamingDistributionNotDisabled");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl StreamingDistributionNotDisabled {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StreamingDistributionNotDisabled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StreamingDistributionNotDisabled")?;
if let Some(inner_88) = &self.message {
write!(f, ": {}", inner_88)?;
}
Ok(())
}
}
impl std::error::Error for StreamingDistributionNotDisabled {}
pub mod streaming_distribution_not_disabled {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::StreamingDistributionNotDisabled {
crate::error::StreamingDistributionNotDisabled {
message: self.message,
}
}
}
}
impl StreamingDistributionNotDisabled {
pub fn builder() -> crate::error::streaming_distribution_not_disabled::Builder {
crate::error::streaming_distribution_not_disabled::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RealtimeLogConfigInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RealtimeLogConfigInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RealtimeLogConfigInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RealtimeLogConfigInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RealtimeLogConfigInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RealtimeLogConfigInUse")?;
if let Some(inner_89) = &self.message {
write!(f, ": {}", inner_89)?;
}
Ok(())
}
}
impl std::error::Error for RealtimeLogConfigInUse {}
pub mod realtime_log_config_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::RealtimeLogConfigInUse {
crate::error::RealtimeLogConfigInUse {
message: self.message,
}
}
}
}
impl RealtimeLogConfigInUse {
pub fn builder() -> crate::error::realtime_log_config_in_use::Builder {
crate::error::realtime_log_config_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PublicKeyInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for PublicKeyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PublicKeyInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl PublicKeyInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PublicKeyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PublicKeyInUse")?;
if let Some(inner_90) = &self.message {
write!(f, ": {}", inner_90)?;
}
Ok(())
}
}
impl std::error::Error for PublicKeyInUse {}
pub mod public_key_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::PublicKeyInUse {
crate::error::PublicKeyInUse {
message: self.message,
}
}
}
}
impl PublicKeyInUse {
pub fn builder() -> crate::error::public_key_in_use::Builder {
crate::error::public_key_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct OriginRequestPolicyInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for OriginRequestPolicyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("OriginRequestPolicyInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl OriginRequestPolicyInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OriginRequestPolicyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OriginRequestPolicyInUse")?;
if let Some(inner_91) = &self.message {
write!(f, ": {}", inner_91)?;
}
Ok(())
}
}
impl std::error::Error for OriginRequestPolicyInUse {}
pub mod origin_request_policy_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::OriginRequestPolicyInUse {
crate::error::OriginRequestPolicyInUse {
message: self.message,
}
}
}
}
impl OriginRequestPolicyInUse {
pub fn builder() -> crate::error::origin_request_policy_in_use::Builder {
crate::error::origin_request_policy_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IllegalDelete {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for IllegalDelete {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IllegalDelete");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl IllegalDelete {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IllegalDelete {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IllegalDelete")?;
if let Some(inner_92) = &self.message {
write!(f, ": {}", inner_92)?;
}
Ok(())
}
}
impl std::error::Error for IllegalDelete {}
pub mod illegal_delete {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::IllegalDelete {
crate::error::IllegalDelete {
message: self.message,
}
}
}
}
impl IllegalDelete {
pub fn builder() -> crate::error::illegal_delete::Builder {
crate::error::illegal_delete::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceInUse")?;
if let Some(inner_93) = &self.message {
write!(f, ": {}", inner_93)?;
}
Ok(())
}
}
impl std::error::Error for ResourceInUse {}
pub mod resource_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ResourceInUse {
crate::error::ResourceInUse {
message: self.message,
}
}
}
}
impl ResourceInUse {
pub fn builder() -> crate::error::resource_in_use::Builder {
crate::error::resource_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FunctionInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FunctionInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FunctionInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FunctionInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FunctionInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FunctionInUse")?;
if let Some(inner_94) = &self.message {
write!(f, ": {}", inner_94)?;
}
Ok(())
}
}
impl std::error::Error for FunctionInUse {}
pub mod function_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FunctionInUse {
crate::error::FunctionInUse {
message: self.message,
}
}
}
}
impl FunctionInUse {
pub fn builder() -> crate::error::function_in_use::Builder {
crate::error::function_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FieldLevelEncryptionProfileInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FieldLevelEncryptionProfileInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FieldLevelEncryptionProfileInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FieldLevelEncryptionProfileInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FieldLevelEncryptionProfileInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FieldLevelEncryptionProfileInUse")?;
if let Some(inner_95) = &self.message {
write!(f, ": {}", inner_95)?;
}
Ok(())
}
}
impl std::error::Error for FieldLevelEncryptionProfileInUse {}
pub mod field_level_encryption_profile_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FieldLevelEncryptionProfileInUse {
crate::error::FieldLevelEncryptionProfileInUse {
message: self.message,
}
}
}
}
impl FieldLevelEncryptionProfileInUse {
pub fn builder() -> crate::error::field_level_encryption_profile_in_use::Builder {
crate::error::field_level_encryption_profile_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FieldLevelEncryptionConfigInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FieldLevelEncryptionConfigInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FieldLevelEncryptionConfigInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FieldLevelEncryptionConfigInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FieldLevelEncryptionConfigInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FieldLevelEncryptionConfigInUse")?;
if let Some(inner_96) = &self.message {
write!(f, ": {}", inner_96)?;
}
Ok(())
}
}
impl std::error::Error for FieldLevelEncryptionConfigInUse {}
pub mod field_level_encryption_config_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FieldLevelEncryptionConfigInUse {
crate::error::FieldLevelEncryptionConfigInUse {
message: self.message,
}
}
}
}
impl FieldLevelEncryptionConfigInUse {
pub fn builder() -> crate::error::field_level_encryption_config_in_use::Builder {
crate::error::field_level_encryption_config_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DistributionNotDisabled {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DistributionNotDisabled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DistributionNotDisabled");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DistributionNotDisabled {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DistributionNotDisabled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DistributionNotDisabled")?;
if let Some(inner_97) = &self.message {
write!(f, ": {}", inner_97)?;
}
Ok(())
}
}
impl std::error::Error for DistributionNotDisabled {}
pub mod distribution_not_disabled {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::DistributionNotDisabled {
crate::error::DistributionNotDisabled {
message: self.message,
}
}
}
}
impl DistributionNotDisabled {
pub fn builder() -> crate::error::distribution_not_disabled::Builder {
crate::error::distribution_not_disabled::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CloudFrontOriginAccessIdentityInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CloudFrontOriginAccessIdentityInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CloudFrontOriginAccessIdentityInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CloudFrontOriginAccessIdentityInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CloudFrontOriginAccessIdentityInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CloudFrontOriginAccessIdentityInUse")?;
if let Some(inner_98) = &self.message {
write!(f, ": {}", inner_98)?;
}
Ok(())
}
}
impl std::error::Error for CloudFrontOriginAccessIdentityInUse {}
pub mod cloud_front_origin_access_identity_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::CloudFrontOriginAccessIdentityInUse {
crate::error::CloudFrontOriginAccessIdentityInUse {
message: self.message,
}
}
}
}
impl CloudFrontOriginAccessIdentityInUse {
pub fn builder() -> crate::error::cloud_front_origin_access_identity_in_use::Builder {
crate::error::cloud_front_origin_access_identity_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CachePolicyInUse {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CachePolicyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CachePolicyInUse");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CachePolicyInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CachePolicyInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CachePolicyInUse")?;
if let Some(inner_99) = &self.message {
write!(f, ": {}", inner_99)?;
}
Ok(())
}
}
impl std::error::Error for CachePolicyInUse {}
pub mod cache_policy_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::CachePolicyInUse {
crate::error::CachePolicyInUse {
message: self.message,
}
}
}
}
impl CachePolicyInUse {
pub fn builder() -> crate::error::cache_policy_in_use::Builder {
crate::error::cache_policy_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyStreamingDistributions {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyStreamingDistributions {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyStreamingDistributions");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyStreamingDistributions {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyStreamingDistributions {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyStreamingDistributions")?;
if let Some(inner_100) = &self.message {
write!(f, ": {}", inner_100)?;
}
Ok(())
}
}
impl std::error::Error for TooManyStreamingDistributions {}
pub mod too_many_streaming_distributions {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyStreamingDistributions {
crate::error::TooManyStreamingDistributions {
message: self.message,
}
}
}
}
impl TooManyStreamingDistributions {
pub fn builder() -> crate::error::too_many_streaming_distributions::Builder {
crate::error::too_many_streaming_distributions::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct StreamingDistributionAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for StreamingDistributionAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("StreamingDistributionAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl StreamingDistributionAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for StreamingDistributionAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "StreamingDistributionAlreadyExists")?;
if let Some(inner_101) = &self.message {
write!(f, ": {}", inner_101)?;
}
Ok(())
}
}
impl std::error::Error for StreamingDistributionAlreadyExists {}
pub mod streaming_distribution_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::StreamingDistributionAlreadyExists {
crate::error::StreamingDistributionAlreadyExists {
message: self.message,
}
}
}
}
impl StreamingDistributionAlreadyExists {
pub fn builder() -> crate::error::streaming_distribution_already_exists::Builder {
crate::error::streaming_distribution_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidOrigin {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidOrigin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidOrigin");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidOrigin {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOrigin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOrigin")?;
if let Some(inner_102) = &self.message {
write!(f, ": {}", inner_102)?;
}
Ok(())
}
}
impl std::error::Error for InvalidOrigin {}
pub mod invalid_origin {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidOrigin {
crate::error::InvalidOrigin {
message: self.message,
}
}
}
}
impl InvalidOrigin {
pub fn builder() -> crate::error::invalid_origin::Builder {
crate::error::invalid_origin::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyRealtimeLogConfigs {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyRealtimeLogConfigs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyRealtimeLogConfigs");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyRealtimeLogConfigs {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyRealtimeLogConfigs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyRealtimeLogConfigs")?;
if let Some(inner_103) = &self.message {
write!(f, ": {}", inner_103)?;
}
Ok(())
}
}
impl std::error::Error for TooManyRealtimeLogConfigs {}
pub mod too_many_realtime_log_configs {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyRealtimeLogConfigs {
crate::error::TooManyRealtimeLogConfigs {
message: self.message,
}
}
}
}
impl TooManyRealtimeLogConfigs {
pub fn builder() -> crate::error::too_many_realtime_log_configs::Builder {
crate::error::too_many_realtime_log_configs::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RealtimeLogConfigAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RealtimeLogConfigAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RealtimeLogConfigAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RealtimeLogConfigAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RealtimeLogConfigAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RealtimeLogConfigAlreadyExists")?;
if let Some(inner_104) = &self.message {
write!(f, ": {}", inner_104)?;
}
Ok(())
}
}
impl std::error::Error for RealtimeLogConfigAlreadyExists {}
pub mod realtime_log_config_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::RealtimeLogConfigAlreadyExists {
crate::error::RealtimeLogConfigAlreadyExists {
message: self.message,
}
}
}
}
impl RealtimeLogConfigAlreadyExists {
pub fn builder() -> crate::error::realtime_log_config_already_exists::Builder {
crate::error::realtime_log_config_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyPublicKeys {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyPublicKeys {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyPublicKeys");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyPublicKeys {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyPublicKeys {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyPublicKeys")?;
if let Some(inner_105) = &self.message {
write!(f, ": {}", inner_105)?;
}
Ok(())
}
}
impl std::error::Error for TooManyPublicKeys {}
pub mod too_many_public_keys {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyPublicKeys {
crate::error::TooManyPublicKeys {
message: self.message,
}
}
}
}
impl TooManyPublicKeys {
pub fn builder() -> crate::error::too_many_public_keys::Builder {
crate::error::too_many_public_keys::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PublicKeyAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for PublicKeyAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PublicKeyAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl PublicKeyAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PublicKeyAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PublicKeyAlreadyExists")?;
if let Some(inner_106) = &self.message {
write!(f, ": {}", inner_106)?;
}
Ok(())
}
}
impl std::error::Error for PublicKeyAlreadyExists {}
pub mod public_key_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::PublicKeyAlreadyExists {
crate::error::PublicKeyAlreadyExists {
message: self.message,
}
}
}
}
impl PublicKeyAlreadyExists {
pub fn builder() -> crate::error::public_key_already_exists::Builder {
crate::error::public_key_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyOriginRequestPolicies {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyOriginRequestPolicies {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyOriginRequestPolicies");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyOriginRequestPolicies {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyOriginRequestPolicies {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyOriginRequestPolicies")?;
if let Some(inner_107) = &self.message {
write!(f, ": {}", inner_107)?;
}
Ok(())
}
}
impl std::error::Error for TooManyOriginRequestPolicies {}
pub mod too_many_origin_request_policies {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyOriginRequestPolicies {
crate::error::TooManyOriginRequestPolicies {
message: self.message,
}
}
}
}
impl TooManyOriginRequestPolicies {
pub fn builder() -> crate::error::too_many_origin_request_policies::Builder {
crate::error::too_many_origin_request_policies::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyKeyGroups {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyKeyGroups {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyKeyGroups");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyKeyGroups {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyKeyGroups {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyKeyGroups")?;
if let Some(inner_108) = &self.message {
write!(f, ": {}", inner_108)?;
}
Ok(())
}
}
impl std::error::Error for TooManyKeyGroups {}
pub mod too_many_key_groups {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyKeyGroups {
crate::error::TooManyKeyGroups {
message: self.message,
}
}
}
}
impl TooManyKeyGroups {
pub fn builder() -> crate::error::too_many_key_groups::Builder {
crate::error::too_many_key_groups::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyInvalidationsInProgress {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyInvalidationsInProgress {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyInvalidationsInProgress");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyInvalidationsInProgress {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyInvalidationsInProgress {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyInvalidationsInProgress")?;
if let Some(inner_109) = &self.message {
write!(f, ": {}", inner_109)?;
}
Ok(())
}
}
impl std::error::Error for TooManyInvalidationsInProgress {}
pub mod too_many_invalidations_in_progress {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyInvalidationsInProgress {
crate::error::TooManyInvalidationsInProgress {
message: self.message,
}
}
}
}
impl TooManyInvalidationsInProgress {
pub fn builder() -> crate::error::too_many_invalidations_in_progress::Builder {
crate::error::too_many_invalidations_in_progress::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BatchTooLarge {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for BatchTooLarge {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("BatchTooLarge");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl BatchTooLarge {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for BatchTooLarge {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BatchTooLarge")?;
if let Some(inner_110) = &self.message {
write!(f, ": {}", inner_110)?;
}
Ok(())
}
}
impl std::error::Error for BatchTooLarge {}
pub mod batch_too_large {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::BatchTooLarge {
crate::error::BatchTooLarge {
message: self.message,
}
}
}
}
impl BatchTooLarge {
pub fn builder() -> crate::error::batch_too_large::Builder {
crate::error::batch_too_large::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFunctions {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFunctions {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFunctions");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFunctions {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFunctions {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFunctions")?;
if let Some(inner_111) = &self.message {
write!(f, ": {}", inner_111)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFunctions {}
pub mod too_many_functions {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFunctions {
crate::error::TooManyFunctions {
message: self.message,
}
}
}
}
impl TooManyFunctions {
pub fn builder() -> crate::error::too_many_functions::Builder {
crate::error::too_many_functions::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FunctionAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FunctionAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FunctionAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FunctionAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FunctionAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FunctionAlreadyExists")?;
if let Some(inner_112) = &self.message {
write!(f, ": {}", inner_112)?;
}
Ok(())
}
}
impl std::error::Error for FunctionAlreadyExists {}
pub mod function_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FunctionAlreadyExists {
crate::error::FunctionAlreadyExists {
message: self.message,
}
}
}
}
impl FunctionAlreadyExists {
pub fn builder() -> crate::error::function_already_exists::Builder {
crate::error::function_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFieldLevelEncryptionProfiles {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFieldLevelEncryptionProfiles {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFieldLevelEncryptionProfiles");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFieldLevelEncryptionProfiles {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFieldLevelEncryptionProfiles {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFieldLevelEncryptionProfiles")?;
if let Some(inner_113) = &self.message {
write!(f, ": {}", inner_113)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFieldLevelEncryptionProfiles {}
pub mod too_many_field_level_encryption_profiles {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFieldLevelEncryptionProfiles {
crate::error::TooManyFieldLevelEncryptionProfiles {
message: self.message,
}
}
}
}
impl TooManyFieldLevelEncryptionProfiles {
pub fn builder() -> crate::error::too_many_field_level_encryption_profiles::Builder {
crate::error::too_many_field_level_encryption_profiles::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyFieldLevelEncryptionConfigs {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyFieldLevelEncryptionConfigs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyFieldLevelEncryptionConfigs");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyFieldLevelEncryptionConfigs {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyFieldLevelEncryptionConfigs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyFieldLevelEncryptionConfigs")?;
if let Some(inner_114) = &self.message {
write!(f, ": {}", inner_114)?;
}
Ok(())
}
}
impl std::error::Error for TooManyFieldLevelEncryptionConfigs {}
pub mod too_many_field_level_encryption_configs {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyFieldLevelEncryptionConfigs {
crate::error::TooManyFieldLevelEncryptionConfigs {
message: self.message,
}
}
}
}
impl TooManyFieldLevelEncryptionConfigs {
pub fn builder() -> crate::error::too_many_field_level_encryption_configs::Builder {
crate::error::too_many_field_level_encryption_configs::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FieldLevelEncryptionConfigAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for FieldLevelEncryptionConfigAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FieldLevelEncryptionConfigAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FieldLevelEncryptionConfigAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FieldLevelEncryptionConfigAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FieldLevelEncryptionConfigAlreadyExists")?;
if let Some(inner_115) = &self.message {
write!(f, ": {}", inner_115)?;
}
Ok(())
}
}
impl std::error::Error for FieldLevelEncryptionConfigAlreadyExists {}
pub mod field_level_encryption_config_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::FieldLevelEncryptionConfigAlreadyExists {
crate::error::FieldLevelEncryptionConfigAlreadyExists {
message: self.message,
}
}
}
}
impl FieldLevelEncryptionConfigAlreadyExists {
pub fn builder() -> crate::error::field_level_encryption_config_already_exists::Builder {
crate::error::field_level_encryption_config_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyDistributions {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyDistributions {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyDistributions");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyDistributions {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyDistributions {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyDistributions")?;
if let Some(inner_116) = &self.message {
write!(f, ": {}", inner_116)?;
}
Ok(())
}
}
impl std::error::Error for TooManyDistributions {}
pub mod too_many_distributions {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyDistributions {
crate::error::TooManyDistributions {
message: self.message,
}
}
}
}
impl TooManyDistributions {
pub fn builder() -> crate::error::too_many_distributions::Builder {
crate::error::too_many_distributions::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidProtocolSettings {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidProtocolSettings {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidProtocolSettings");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidProtocolSettings {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidProtocolSettings {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidProtocolSettings")?;
if let Some(inner_117) = &self.message {
write!(f, ": {}", inner_117)?;
}
Ok(())
}
}
impl std::error::Error for InvalidProtocolSettings {}
pub mod invalid_protocol_settings {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidProtocolSettings {
crate::error::InvalidProtocolSettings {
message: self.message,
}
}
}
}
impl InvalidProtocolSettings {
pub fn builder() -> crate::error::invalid_protocol_settings::Builder {
crate::error::invalid_protocol_settings::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DistributionAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DistributionAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DistributionAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DistributionAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DistributionAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DistributionAlreadyExists")?;
if let Some(inner_118) = &self.message {
write!(f, ": {}", inner_118)?;
}
Ok(())
}
}
impl std::error::Error for DistributionAlreadyExists {}
pub mod distribution_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::DistributionAlreadyExists {
crate::error::DistributionAlreadyExists {
message: self.message,
}
}
}
}
impl DistributionAlreadyExists {
pub fn builder() -> crate::error::distribution_already_exists::Builder {
crate::error::distribution_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyCloudFrontOriginAccessIdentities {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyCloudFrontOriginAccessIdentities {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyCloudFrontOriginAccessIdentities");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyCloudFrontOriginAccessIdentities {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCloudFrontOriginAccessIdentities {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCloudFrontOriginAccessIdentities")?;
if let Some(inner_119) = &self.message {
write!(f, ": {}", inner_119)?;
}
Ok(())
}
}
impl std::error::Error for TooManyCloudFrontOriginAccessIdentities {}
pub mod too_many_cloud_front_origin_access_identities {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyCloudFrontOriginAccessIdentities {
crate::error::TooManyCloudFrontOriginAccessIdentities {
message: self.message,
}
}
}
}
impl TooManyCloudFrontOriginAccessIdentities {
pub fn builder() -> crate::error::too_many_cloud_front_origin_access_identities::Builder {
crate::error::too_many_cloud_front_origin_access_identities::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CloudFrontOriginAccessIdentityAlreadyExists {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CloudFrontOriginAccessIdentityAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CloudFrontOriginAccessIdentityAlreadyExists");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CloudFrontOriginAccessIdentityAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CloudFrontOriginAccessIdentityAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CloudFrontOriginAccessIdentityAlreadyExists")?;
if let Some(inner_120) = &self.message {
write!(f, ": {}", inner_120)?;
}
Ok(())
}
}
impl std::error::Error for CloudFrontOriginAccessIdentityAlreadyExists {}
pub mod cloud_front_origin_access_identity_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::CloudFrontOriginAccessIdentityAlreadyExists {
crate::error::CloudFrontOriginAccessIdentityAlreadyExists {
message: self.message,
}
}
}
}
impl CloudFrontOriginAccessIdentityAlreadyExists {
pub fn builder() -> crate::error::cloud_front_origin_access_identity_already_exists::Builder {
crate::error::cloud_front_origin_access_identity_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyCachePolicies {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyCachePolicies {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyCachePolicies");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyCachePolicies {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCachePolicies {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCachePolicies")?;
if let Some(inner_121) = &self.message {
write!(f, ": {}", inner_121)?;
}
Ok(())
}
}
impl std::error::Error for TooManyCachePolicies {}
pub mod too_many_cache_policies {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::TooManyCachePolicies {
crate::error::TooManyCachePolicies {
message: self.message,
}
}
}
}
impl TooManyCachePolicies {
pub fn builder() -> crate::error::too_many_cache_policies::Builder {
crate::error::too_many_cache_policies::Builder::default()
}
}