#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCertificateAuthorityError {
pub kind: CreateCertificateAuthorityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCertificateAuthorityErrorKind {
InvalidArgsException(crate::error::InvalidArgsException),
InvalidPolicyException(crate::error::InvalidPolicyException),
InvalidTagException(crate::error::InvalidTagException),
LimitExceededException(crate::error::LimitExceededException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateCertificateAuthorityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCertificateAuthorityErrorKind::InvalidArgsException(_inner) => _inner.fmt(f),
CreateCertificateAuthorityErrorKind::InvalidPolicyException(_inner) => _inner.fmt(f),
CreateCertificateAuthorityErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
CreateCertificateAuthorityErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateCertificateAuthorityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCertificateAuthorityError {
fn code(&self) -> Option<&str> {
CreateCertificateAuthorityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCertificateAuthorityError {
pub fn new(kind: CreateCertificateAuthorityErrorKind, 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: CreateCertificateAuthorityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCertificateAuthorityErrorKind::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_args_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityErrorKind::InvalidArgsException(_)
)
}
pub fn is_invalid_policy_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityErrorKind::InvalidPolicyException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityErrorKind::InvalidTagException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityErrorKind::LimitExceededException(_)
)
}
}
impl std::error::Error for CreateCertificateAuthorityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCertificateAuthorityErrorKind::InvalidArgsException(_inner) => Some(_inner),
CreateCertificateAuthorityErrorKind::InvalidPolicyException(_inner) => Some(_inner),
CreateCertificateAuthorityErrorKind::InvalidTagException(_inner) => Some(_inner),
CreateCertificateAuthorityErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateCertificateAuthorityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCertificateAuthorityAuditReportError {
pub kind: CreateCertificateAuthorityAuditReportErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCertificateAuthorityAuditReportErrorKind {
InvalidArgsException(crate::error::InvalidArgsException),
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
RequestFailedException(crate::error::RequestFailedException),
RequestInProgressException(crate::error::RequestInProgressException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateCertificateAuthorityAuditReportError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCertificateAuthorityAuditReportErrorKind::InvalidArgsException(_inner) => {
_inner.fmt(f)
}
CreateCertificateAuthorityAuditReportErrorKind::InvalidArnException(_inner) => {
_inner.fmt(f)
}
CreateCertificateAuthorityAuditReportErrorKind::InvalidStateException(_inner) => {
_inner.fmt(f)
}
CreateCertificateAuthorityAuditReportErrorKind::RequestFailedException(_inner) => {
_inner.fmt(f)
}
CreateCertificateAuthorityAuditReportErrorKind::RequestInProgressException(_inner) => {
_inner.fmt(f)
}
CreateCertificateAuthorityAuditReportErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
CreateCertificateAuthorityAuditReportErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCertificateAuthorityAuditReportError {
fn code(&self) -> Option<&str> {
CreateCertificateAuthorityAuditReportError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCertificateAuthorityAuditReportError {
pub fn new(
kind: CreateCertificateAuthorityAuditReportErrorKind,
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: CreateCertificateAuthorityAuditReportErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCertificateAuthorityAuditReportErrorKind::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_args_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityAuditReportErrorKind::InvalidArgsException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityAuditReportErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityAuditReportErrorKind::InvalidStateException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityAuditReportErrorKind::RequestFailedException(_)
)
}
pub fn is_request_in_progress_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityAuditReportErrorKind::RequestInProgressException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateCertificateAuthorityAuditReportErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for CreateCertificateAuthorityAuditReportError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCertificateAuthorityAuditReportErrorKind::InvalidArgsException(_inner) => {
Some(_inner)
}
CreateCertificateAuthorityAuditReportErrorKind::InvalidArnException(_inner) => {
Some(_inner)
}
CreateCertificateAuthorityAuditReportErrorKind::InvalidStateException(_inner) => {
Some(_inner)
}
CreateCertificateAuthorityAuditReportErrorKind::RequestFailedException(_inner) => {
Some(_inner)
}
CreateCertificateAuthorityAuditReportErrorKind::RequestInProgressException(_inner) => {
Some(_inner)
}
CreateCertificateAuthorityAuditReportErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
CreateCertificateAuthorityAuditReportErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreatePermissionError {
pub kind: CreatePermissionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreatePermissionErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
LimitExceededException(crate::error::LimitExceededException),
PermissionAlreadyExistsException(crate::error::PermissionAlreadyExistsException),
RequestFailedException(crate::error::RequestFailedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreatePermissionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreatePermissionErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
CreatePermissionErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
CreatePermissionErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreatePermissionErrorKind::PermissionAlreadyExistsException(_inner) => _inner.fmt(f),
CreatePermissionErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
CreatePermissionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
CreatePermissionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreatePermissionError {
fn code(&self) -> Option<&str> {
CreatePermissionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreatePermissionError {
pub fn new(kind: CreatePermissionErrorKind, 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: CreatePermissionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreatePermissionErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
CreatePermissionErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
CreatePermissionErrorKind::InvalidStateException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreatePermissionErrorKind::LimitExceededException(_)
)
}
pub fn is_permission_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreatePermissionErrorKind::PermissionAlreadyExistsException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
CreatePermissionErrorKind::RequestFailedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreatePermissionErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for CreatePermissionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreatePermissionErrorKind::InvalidArnException(_inner) => Some(_inner),
CreatePermissionErrorKind::InvalidStateException(_inner) => Some(_inner),
CreatePermissionErrorKind::LimitExceededException(_inner) => Some(_inner),
CreatePermissionErrorKind::PermissionAlreadyExistsException(_inner) => Some(_inner),
CreatePermissionErrorKind::RequestFailedException(_inner) => Some(_inner),
CreatePermissionErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
CreatePermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteCertificateAuthorityError {
pub kind: DeleteCertificateAuthorityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteCertificateAuthorityErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteCertificateAuthorityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteCertificateAuthorityErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
DeleteCertificateAuthorityErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
DeleteCertificateAuthorityErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
DeleteCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteCertificateAuthorityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteCertificateAuthorityError {
fn code(&self) -> Option<&str> {
DeleteCertificateAuthorityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteCertificateAuthorityError {
pub fn new(kind: DeleteCertificateAuthorityErrorKind, 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: DeleteCertificateAuthorityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteCertificateAuthorityErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCertificateAuthorityErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCertificateAuthorityErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCertificateAuthorityErrorKind::InvalidStateException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteCertificateAuthorityErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteCertificateAuthorityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteCertificateAuthorityErrorKind::ConcurrentModificationException(_inner) => {
Some(_inner)
}
DeleteCertificateAuthorityErrorKind::InvalidArnException(_inner) => Some(_inner),
DeleteCertificateAuthorityErrorKind::InvalidStateException(_inner) => Some(_inner),
DeleteCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteCertificateAuthorityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeletePermissionError {
pub kind: DeletePermissionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeletePermissionErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
RequestFailedException(crate::error::RequestFailedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeletePermissionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeletePermissionErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
DeletePermissionErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
DeletePermissionErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
DeletePermissionErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeletePermissionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeletePermissionError {
fn code(&self) -> Option<&str> {
DeletePermissionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeletePermissionError {
pub fn new(kind: DeletePermissionErrorKind, 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: DeletePermissionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeletePermissionErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
DeletePermissionErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
DeletePermissionErrorKind::InvalidStateException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
DeletePermissionErrorKind::RequestFailedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeletePermissionErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeletePermissionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeletePermissionErrorKind::InvalidArnException(_inner) => Some(_inner),
DeletePermissionErrorKind::InvalidStateException(_inner) => Some(_inner),
DeletePermissionErrorKind::RequestFailedException(_inner) => Some(_inner),
DeletePermissionErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeletePermissionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeletePolicyError {
pub kind: DeletePolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeletePolicyErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
LockoutPreventedException(crate::error::LockoutPreventedException),
RequestFailedException(crate::error::RequestFailedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeletePolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeletePolicyErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::LockoutPreventedException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeletePolicyError {
fn code(&self) -> Option<&str> {
DeletePolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeletePolicyError {
pub fn new(kind: DeletePolicyErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeletePolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeletePolicyErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
DeletePolicyErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::InvalidArnException(_))
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::InvalidStateException(_))
}
pub fn is_lockout_prevented_exception(&self) -> bool {
matches!(
&self.kind,
DeletePolicyErrorKind::LockoutPreventedException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::RequestFailedException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeletePolicyErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeletePolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeletePolicyErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
DeletePolicyErrorKind::InvalidArnException(_inner) => Some(_inner),
DeletePolicyErrorKind::InvalidStateException(_inner) => Some(_inner),
DeletePolicyErrorKind::LockoutPreventedException(_inner) => Some(_inner),
DeletePolicyErrorKind::RequestFailedException(_inner) => Some(_inner),
DeletePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeletePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeCertificateAuthorityError {
pub kind: DescribeCertificateAuthorityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeCertificateAuthorityErrorKind {
InvalidArnException(crate::error::InvalidArnException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeCertificateAuthorityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeCertificateAuthorityErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
DescribeCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
DescribeCertificateAuthorityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeCertificateAuthorityError {
fn code(&self) -> Option<&str> {
DescribeCertificateAuthorityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeCertificateAuthorityError {
pub fn new(kind: DescribeCertificateAuthorityErrorKind, 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: DescribeCertificateAuthorityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeCertificateAuthorityErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCertificateAuthorityErrorKind::InvalidArnException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCertificateAuthorityErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DescribeCertificateAuthorityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeCertificateAuthorityErrorKind::InvalidArnException(_inner) => Some(_inner),
DescribeCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
DescribeCertificateAuthorityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeCertificateAuthorityAuditReportError {
pub kind: DescribeCertificateAuthorityAuditReportErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeCertificateAuthorityAuditReportErrorKind {
InvalidArgsException(crate::error::InvalidArgsException),
InvalidArnException(crate::error::InvalidArnException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeCertificateAuthorityAuditReportError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeCertificateAuthorityAuditReportErrorKind::InvalidArgsException(_inner) => {
_inner.fmt(f)
}
DescribeCertificateAuthorityAuditReportErrorKind::InvalidArnException(_inner) => {
_inner.fmt(f)
}
DescribeCertificateAuthorityAuditReportErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
DescribeCertificateAuthorityAuditReportErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeCertificateAuthorityAuditReportError {
fn code(&self) -> Option<&str> {
DescribeCertificateAuthorityAuditReportError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeCertificateAuthorityAuditReportError {
pub fn new(
kind: DescribeCertificateAuthorityAuditReportErrorKind,
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: DescribeCertificateAuthorityAuditReportErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeCertificateAuthorityAuditReportErrorKind::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_args_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCertificateAuthorityAuditReportErrorKind::InvalidArgsException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCertificateAuthorityAuditReportErrorKind::InvalidArnException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCertificateAuthorityAuditReportErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DescribeCertificateAuthorityAuditReportError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeCertificateAuthorityAuditReportErrorKind::InvalidArgsException(_inner) => {
Some(_inner)
}
DescribeCertificateAuthorityAuditReportErrorKind::InvalidArnException(_inner) => {
Some(_inner)
}
DescribeCertificateAuthorityAuditReportErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
DescribeCertificateAuthorityAuditReportErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCertificateError {
pub kind: GetCertificateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCertificateErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
RequestFailedException(crate::error::RequestFailedException),
RequestInProgressException(crate::error::RequestInProgressException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetCertificateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCertificateErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
GetCertificateErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
GetCertificateErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
GetCertificateErrorKind::RequestInProgressException(_inner) => _inner.fmt(f),
GetCertificateErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCertificateError {
fn code(&self) -> Option<&str> {
GetCertificateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCertificateError {
pub fn new(kind: GetCertificateErrorKind, 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: GetCertificateErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCertificateErrorKind::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_arn_exception(&self) -> bool {
matches!(&self.kind, GetCertificateErrorKind::InvalidArnException(_))
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateErrorKind::InvalidStateException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateErrorKind::RequestFailedException(_)
)
}
pub fn is_request_in_progress_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateErrorKind::RequestInProgressException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetCertificateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCertificateErrorKind::InvalidArnException(_inner) => Some(_inner),
GetCertificateErrorKind::InvalidStateException(_inner) => Some(_inner),
GetCertificateErrorKind::RequestFailedException(_inner) => Some(_inner),
GetCertificateErrorKind::RequestInProgressException(_inner) => Some(_inner),
GetCertificateErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCertificateAuthorityCertificateError {
pub kind: GetCertificateAuthorityCertificateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCertificateAuthorityCertificateErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetCertificateAuthorityCertificateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCertificateAuthorityCertificateErrorKind::InvalidArnException(_inner) => {
_inner.fmt(f)
}
GetCertificateAuthorityCertificateErrorKind::InvalidStateException(_inner) => {
_inner.fmt(f)
}
GetCertificateAuthorityCertificateErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
GetCertificateAuthorityCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCertificateAuthorityCertificateError {
fn code(&self) -> Option<&str> {
GetCertificateAuthorityCertificateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCertificateAuthorityCertificateError {
pub fn new(
kind: GetCertificateAuthorityCertificateErrorKind,
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: GetCertificateAuthorityCertificateErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCertificateAuthorityCertificateErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCertificateErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCertificateErrorKind::InvalidStateException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCertificateErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetCertificateAuthorityCertificateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCertificateAuthorityCertificateErrorKind::InvalidArnException(_inner) => {
Some(_inner)
}
GetCertificateAuthorityCertificateErrorKind::InvalidStateException(_inner) => {
Some(_inner)
}
GetCertificateAuthorityCertificateErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
GetCertificateAuthorityCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetCertificateAuthorityCsrError {
pub kind: GetCertificateAuthorityCsrErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetCertificateAuthorityCsrErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
RequestFailedException(crate::error::RequestFailedException),
RequestInProgressException(crate::error::RequestInProgressException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetCertificateAuthorityCsrError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetCertificateAuthorityCsrErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
GetCertificateAuthorityCsrErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
GetCertificateAuthorityCsrErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
GetCertificateAuthorityCsrErrorKind::RequestInProgressException(_inner) => {
_inner.fmt(f)
}
GetCertificateAuthorityCsrErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetCertificateAuthorityCsrErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetCertificateAuthorityCsrError {
fn code(&self) -> Option<&str> {
GetCertificateAuthorityCsrError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetCertificateAuthorityCsrError {
pub fn new(kind: GetCertificateAuthorityCsrErrorKind, 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: GetCertificateAuthorityCsrErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetCertificateAuthorityCsrErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCsrErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCsrErrorKind::InvalidStateException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCsrErrorKind::RequestFailedException(_)
)
}
pub fn is_request_in_progress_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCsrErrorKind::RequestInProgressException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetCertificateAuthorityCsrErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetCertificateAuthorityCsrError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetCertificateAuthorityCsrErrorKind::InvalidArnException(_inner) => Some(_inner),
GetCertificateAuthorityCsrErrorKind::InvalidStateException(_inner) => Some(_inner),
GetCertificateAuthorityCsrErrorKind::RequestFailedException(_inner) => Some(_inner),
GetCertificateAuthorityCsrErrorKind::RequestInProgressException(_inner) => Some(_inner),
GetCertificateAuthorityCsrErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetCertificateAuthorityCsrErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPolicyError {
pub kind: GetPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPolicyErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
RequestFailedException(crate::error::RequestFailedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPolicyErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPolicyError {
fn code(&self) -> Option<&str> {
GetPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPolicyError {
pub fn new(kind: GetPolicyErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPolicyErrorKind::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_arn_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InvalidArnException(_))
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InvalidStateException(_))
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::RequestFailedException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::ResourceNotFoundException(_))
}
}
impl std::error::Error for GetPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPolicyErrorKind::InvalidArnException(_inner) => Some(_inner),
GetPolicyErrorKind::InvalidStateException(_inner) => Some(_inner),
GetPolicyErrorKind::RequestFailedException(_inner) => Some(_inner),
GetPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ImportCertificateAuthorityCertificateError {
pub kind: ImportCertificateAuthorityCertificateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ImportCertificateAuthorityCertificateErrorKind {
CertificateMismatchException(crate::error::CertificateMismatchException),
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArnException(crate::error::InvalidArnException),
InvalidRequestException(crate::error::InvalidRequestException),
InvalidStateException(crate::error::InvalidStateException),
MalformedCertificateException(crate::error::MalformedCertificateException),
RequestFailedException(crate::error::RequestFailedException),
RequestInProgressException(crate::error::RequestInProgressException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ImportCertificateAuthorityCertificateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ImportCertificateAuthorityCertificateErrorKind::CertificateMismatchException(
_inner,
) => _inner.fmt(f),
ImportCertificateAuthorityCertificateErrorKind::ConcurrentModificationException(
_inner,
) => _inner.fmt(f),
ImportCertificateAuthorityCertificateErrorKind::InvalidArnException(_inner) => {
_inner.fmt(f)
}
ImportCertificateAuthorityCertificateErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
ImportCertificateAuthorityCertificateErrorKind::InvalidStateException(_inner) => {
_inner.fmt(f)
}
ImportCertificateAuthorityCertificateErrorKind::MalformedCertificateException(
_inner,
) => _inner.fmt(f),
ImportCertificateAuthorityCertificateErrorKind::RequestFailedException(_inner) => {
_inner.fmt(f)
}
ImportCertificateAuthorityCertificateErrorKind::RequestInProgressException(_inner) => {
_inner.fmt(f)
}
ImportCertificateAuthorityCertificateErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
ImportCertificateAuthorityCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ImportCertificateAuthorityCertificateError {
fn code(&self) -> Option<&str> {
ImportCertificateAuthorityCertificateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ImportCertificateAuthorityCertificateError {
pub fn new(
kind: ImportCertificateAuthorityCertificateErrorKind,
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: ImportCertificateAuthorityCertificateErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ImportCertificateAuthorityCertificateErrorKind::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_certificate_mismatch_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::CertificateMismatchException(_)
)
}
pub fn is_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::InvalidRequestException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::InvalidStateException(_)
)
}
pub fn is_malformed_certificate_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::MalformedCertificateException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::RequestFailedException(_)
)
}
pub fn is_request_in_progress_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::RequestInProgressException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ImportCertificateAuthorityCertificateErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ImportCertificateAuthorityCertificateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ImportCertificateAuthorityCertificateErrorKind::CertificateMismatchException(
_inner,
) => Some(_inner),
ImportCertificateAuthorityCertificateErrorKind::ConcurrentModificationException(
_inner,
) => Some(_inner),
ImportCertificateAuthorityCertificateErrorKind::InvalidArnException(_inner) => {
Some(_inner)
}
ImportCertificateAuthorityCertificateErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
ImportCertificateAuthorityCertificateErrorKind::InvalidStateException(_inner) => {
Some(_inner)
}
ImportCertificateAuthorityCertificateErrorKind::MalformedCertificateException(
_inner,
) => Some(_inner),
ImportCertificateAuthorityCertificateErrorKind::RequestFailedException(_inner) => {
Some(_inner)
}
ImportCertificateAuthorityCertificateErrorKind::RequestInProgressException(_inner) => {
Some(_inner)
}
ImportCertificateAuthorityCertificateErrorKind::ResourceNotFoundException(_inner) => {
Some(_inner)
}
ImportCertificateAuthorityCertificateErrorKind::Unhandled(_inner) => {
Some(_inner.as_ref())
}
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct IssueCertificateError {
pub kind: IssueCertificateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum IssueCertificateErrorKind {
InvalidArgsException(crate::error::InvalidArgsException),
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
LimitExceededException(crate::error::LimitExceededException),
MalformedCsrException(crate::error::MalformedCsrException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for IssueCertificateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
IssueCertificateErrorKind::InvalidArgsException(_inner) => _inner.fmt(f),
IssueCertificateErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
IssueCertificateErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
IssueCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
IssueCertificateErrorKind::MalformedCsrException(_inner) => _inner.fmt(f),
IssueCertificateErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
IssueCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for IssueCertificateError {
fn code(&self) -> Option<&str> {
IssueCertificateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl IssueCertificateError {
pub fn new(kind: IssueCertificateErrorKind, 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: IssueCertificateErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: IssueCertificateErrorKind::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_args_exception(&self) -> bool {
matches!(
&self.kind,
IssueCertificateErrorKind::InvalidArgsException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
IssueCertificateErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
IssueCertificateErrorKind::InvalidStateException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
IssueCertificateErrorKind::LimitExceededException(_)
)
}
pub fn is_malformed_csr_exception(&self) -> bool {
matches!(
&self.kind,
IssueCertificateErrorKind::MalformedCsrException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
IssueCertificateErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for IssueCertificateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
IssueCertificateErrorKind::InvalidArgsException(_inner) => Some(_inner),
IssueCertificateErrorKind::InvalidArnException(_inner) => Some(_inner),
IssueCertificateErrorKind::InvalidStateException(_inner) => Some(_inner),
IssueCertificateErrorKind::LimitExceededException(_inner) => Some(_inner),
IssueCertificateErrorKind::MalformedCsrException(_inner) => Some(_inner),
IssueCertificateErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
IssueCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListCertificateAuthoritiesError {
pub kind: ListCertificateAuthoritiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListCertificateAuthoritiesErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListCertificateAuthoritiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListCertificateAuthoritiesErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListCertificateAuthoritiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListCertificateAuthoritiesError {
fn code(&self) -> Option<&str> {
ListCertificateAuthoritiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListCertificateAuthoritiesError {
pub fn new(kind: ListCertificateAuthoritiesErrorKind, 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: ListCertificateAuthoritiesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListCertificateAuthoritiesErrorKind::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_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListCertificateAuthoritiesErrorKind::InvalidNextTokenException(_)
)
}
}
impl std::error::Error for ListCertificateAuthoritiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListCertificateAuthoritiesErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListCertificateAuthoritiesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListPermissionsError {
pub kind: ListPermissionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListPermissionsErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidNextTokenException(crate::error::InvalidNextTokenException),
InvalidStateException(crate::error::InvalidStateException),
RequestFailedException(crate::error::RequestFailedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListPermissionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListPermissionsErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
ListPermissionsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListPermissionsErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
ListPermissionsErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
ListPermissionsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListPermissionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListPermissionsError {
fn code(&self) -> Option<&str> {
ListPermissionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListPermissionsError {
pub fn new(kind: ListPermissionsErrorKind, 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: ListPermissionsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListPermissionsErrorKind::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_arn_exception(&self) -> bool {
matches!(&self.kind, ListPermissionsErrorKind::InvalidArnException(_))
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListPermissionsErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
ListPermissionsErrorKind::InvalidStateException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
ListPermissionsErrorKind::RequestFailedException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListPermissionsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListPermissionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListPermissionsErrorKind::InvalidArnException(_inner) => Some(_inner),
ListPermissionsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListPermissionsErrorKind::InvalidStateException(_inner) => Some(_inner),
ListPermissionsErrorKind::RequestFailedException(_inner) => Some(_inner),
ListPermissionsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListPermissionsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsError {
pub kind: ListTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
ListTagsErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
ListTagsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsError {
fn code(&self) -> Option<&str> {
ListTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsError {
pub fn new(kind: ListTagsErrorKind, 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: ListTagsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsErrorKind::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_arn_exception(&self) -> bool {
matches!(&self.kind, ListTagsErrorKind::InvalidArnException(_))
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(&self.kind, ListTagsErrorKind::InvalidStateException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, ListTagsErrorKind::ResourceNotFoundException(_))
}
}
impl std::error::Error for ListTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsErrorKind::InvalidArnException(_inner) => Some(_inner),
ListTagsErrorKind::InvalidStateException(_inner) => Some(_inner),
ListTagsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutPolicyError {
pub kind: PutPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutPolicyErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArnException(crate::error::InvalidArnException),
InvalidPolicyException(crate::error::InvalidPolicyException),
InvalidStateException(crate::error::InvalidStateException),
LockoutPreventedException(crate::error::LockoutPreventedException),
RequestFailedException(crate::error::RequestFailedException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutPolicyErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidPolicyException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::LockoutPreventedException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutPolicyError {
fn code(&self) -> Option<&str> {
PutPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutPolicyError {
pub fn new(kind: PutPolicyErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: PutPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutPolicyErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
PutPolicyErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidArnException(_))
}
pub fn is_invalid_policy_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidPolicyException(_))
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidStateException(_))
}
pub fn is_lockout_prevented_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::LockoutPreventedException(_))
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::RequestFailedException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::ResourceNotFoundException(_))
}
}
impl std::error::Error for PutPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutPolicyErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidArnException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidPolicyException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidStateException(_inner) => Some(_inner),
PutPolicyErrorKind::LockoutPreventedException(_inner) => Some(_inner),
PutPolicyErrorKind::RequestFailedException(_inner) => Some(_inner),
PutPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RestoreCertificateAuthorityError {
pub kind: RestoreCertificateAuthorityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RestoreCertificateAuthorityErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RestoreCertificateAuthorityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RestoreCertificateAuthorityErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
RestoreCertificateAuthorityErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
RestoreCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => {
_inner.fmt(f)
}
RestoreCertificateAuthorityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RestoreCertificateAuthorityError {
fn code(&self) -> Option<&str> {
RestoreCertificateAuthorityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RestoreCertificateAuthorityError {
pub fn new(kind: RestoreCertificateAuthorityErrorKind, 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: RestoreCertificateAuthorityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RestoreCertificateAuthorityErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
RestoreCertificateAuthorityErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
RestoreCertificateAuthorityErrorKind::InvalidStateException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RestoreCertificateAuthorityErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for RestoreCertificateAuthorityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RestoreCertificateAuthorityErrorKind::InvalidArnException(_inner) => Some(_inner),
RestoreCertificateAuthorityErrorKind::InvalidStateException(_inner) => Some(_inner),
RestoreCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
RestoreCertificateAuthorityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RevokeCertificateError {
pub kind: RevokeCertificateErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RevokeCertificateErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArnException(crate::error::InvalidArnException),
InvalidRequestException(crate::error::InvalidRequestException),
InvalidStateException(crate::error::InvalidStateException),
LimitExceededException(crate::error::LimitExceededException),
RequestAlreadyProcessedException(crate::error::RequestAlreadyProcessedException),
RequestFailedException(crate::error::RequestFailedException),
RequestInProgressException(crate::error::RequestInProgressException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for RevokeCertificateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RevokeCertificateErrorKind::ConcurrentModificationException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::RequestAlreadyProcessedException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::RequestFailedException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::RequestInProgressException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
RevokeCertificateErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RevokeCertificateError {
fn code(&self) -> Option<&str> {
RevokeCertificateError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RevokeCertificateError {
pub fn new(kind: RevokeCertificateErrorKind, 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: RevokeCertificateErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RevokeCertificateErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::InvalidRequestException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::InvalidStateException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::LimitExceededException(_)
)
}
pub fn is_request_already_processed_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::RequestAlreadyProcessedException(_)
)
}
pub fn is_request_failed_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::RequestFailedException(_)
)
}
pub fn is_request_in_progress_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::RequestInProgressException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RevokeCertificateErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for RevokeCertificateError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RevokeCertificateErrorKind::ConcurrentModificationException(_inner) => Some(_inner),
RevokeCertificateErrorKind::InvalidArnException(_inner) => Some(_inner),
RevokeCertificateErrorKind::InvalidRequestException(_inner) => Some(_inner),
RevokeCertificateErrorKind::InvalidStateException(_inner) => Some(_inner),
RevokeCertificateErrorKind::LimitExceededException(_inner) => Some(_inner),
RevokeCertificateErrorKind::RequestAlreadyProcessedException(_inner) => Some(_inner),
RevokeCertificateErrorKind::RequestFailedException(_inner) => Some(_inner),
RevokeCertificateErrorKind::RequestInProgressException(_inner) => Some(_inner),
RevokeCertificateErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
RevokeCertificateErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagCertificateAuthorityError {
pub kind: TagCertificateAuthorityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagCertificateAuthorityErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
InvalidTagException(crate::error::InvalidTagException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TagCertificateAuthorityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagCertificateAuthorityErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
TagCertificateAuthorityErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
TagCertificateAuthorityErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
TagCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
TagCertificateAuthorityErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
TagCertificateAuthorityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagCertificateAuthorityError {
fn code(&self) -> Option<&str> {
TagCertificateAuthorityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagCertificateAuthorityError {
pub fn new(kind: TagCertificateAuthorityErrorKind, 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: TagCertificateAuthorityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagCertificateAuthorityErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
TagCertificateAuthorityErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
TagCertificateAuthorityErrorKind::InvalidStateException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(
&self.kind,
TagCertificateAuthorityErrorKind::InvalidTagException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
TagCertificateAuthorityErrorKind::ResourceNotFoundException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(
&self.kind,
TagCertificateAuthorityErrorKind::TooManyTagsException(_)
)
}
}
impl std::error::Error for TagCertificateAuthorityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagCertificateAuthorityErrorKind::InvalidArnException(_inner) => Some(_inner),
TagCertificateAuthorityErrorKind::InvalidStateException(_inner) => Some(_inner),
TagCertificateAuthorityErrorKind::InvalidTagException(_inner) => Some(_inner),
TagCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
TagCertificateAuthorityErrorKind::TooManyTagsException(_inner) => Some(_inner),
TagCertificateAuthorityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagCertificateAuthorityError {
pub kind: UntagCertificateAuthorityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagCertificateAuthorityErrorKind {
InvalidArnException(crate::error::InvalidArnException),
InvalidStateException(crate::error::InvalidStateException),
InvalidTagException(crate::error::InvalidTagException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UntagCertificateAuthorityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagCertificateAuthorityErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
UntagCertificateAuthorityErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
UntagCertificateAuthorityErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
UntagCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UntagCertificateAuthorityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagCertificateAuthorityError {
fn code(&self) -> Option<&str> {
UntagCertificateAuthorityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagCertificateAuthorityError {
pub fn new(kind: UntagCertificateAuthorityErrorKind, 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: UntagCertificateAuthorityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagCertificateAuthorityErrorKind::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_arn_exception(&self) -> bool {
matches!(
&self.kind,
UntagCertificateAuthorityErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
UntagCertificateAuthorityErrorKind::InvalidStateException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(
&self.kind,
UntagCertificateAuthorityErrorKind::InvalidTagException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UntagCertificateAuthorityErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for UntagCertificateAuthorityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagCertificateAuthorityErrorKind::InvalidArnException(_inner) => Some(_inner),
UntagCertificateAuthorityErrorKind::InvalidStateException(_inner) => Some(_inner),
UntagCertificateAuthorityErrorKind::InvalidTagException(_inner) => Some(_inner),
UntagCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UntagCertificateAuthorityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateCertificateAuthorityError {
pub kind: UpdateCertificateAuthorityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateCertificateAuthorityErrorKind {
ConcurrentModificationException(crate::error::ConcurrentModificationException),
InvalidArgsException(crate::error::InvalidArgsException),
InvalidArnException(crate::error::InvalidArnException),
InvalidPolicyException(crate::error::InvalidPolicyException),
InvalidStateException(crate::error::InvalidStateException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateCertificateAuthorityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateCertificateAuthorityErrorKind::ConcurrentModificationException(_inner) => {
_inner.fmt(f)
}
UpdateCertificateAuthorityErrorKind::InvalidArgsException(_inner) => _inner.fmt(f),
UpdateCertificateAuthorityErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
UpdateCertificateAuthorityErrorKind::InvalidPolicyException(_inner) => _inner.fmt(f),
UpdateCertificateAuthorityErrorKind::InvalidStateException(_inner) => _inner.fmt(f),
UpdateCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UpdateCertificateAuthorityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateCertificateAuthorityError {
fn code(&self) -> Option<&str> {
UpdateCertificateAuthorityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateCertificateAuthorityError {
pub fn new(kind: UpdateCertificateAuthorityErrorKind, 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: UpdateCertificateAuthorityErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateCertificateAuthorityErrorKind::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_concurrent_modification_exception(&self) -> bool {
matches!(
&self.kind,
UpdateCertificateAuthorityErrorKind::ConcurrentModificationException(_)
)
}
pub fn is_invalid_args_exception(&self) -> bool {
matches!(
&self.kind,
UpdateCertificateAuthorityErrorKind::InvalidArgsException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
UpdateCertificateAuthorityErrorKind::InvalidArnException(_)
)
}
pub fn is_invalid_policy_exception(&self) -> bool {
matches!(
&self.kind,
UpdateCertificateAuthorityErrorKind::InvalidPolicyException(_)
)
}
pub fn is_invalid_state_exception(&self) -> bool {
matches!(
&self.kind,
UpdateCertificateAuthorityErrorKind::InvalidStateException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateCertificateAuthorityErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for UpdateCertificateAuthorityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateCertificateAuthorityErrorKind::ConcurrentModificationException(_inner) => {
Some(_inner)
}
UpdateCertificateAuthorityErrorKind::InvalidArgsException(_inner) => Some(_inner),
UpdateCertificateAuthorityErrorKind::InvalidArnException(_inner) => Some(_inner),
UpdateCertificateAuthorityErrorKind::InvalidPolicyException(_inner) => Some(_inner),
UpdateCertificateAuthorityErrorKind::InvalidStateException(_inner) => Some(_inner),
UpdateCertificateAuthorityErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UpdateCertificateAuthorityErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceNotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceNotFoundException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceNotFoundException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFoundException")?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundException {}
pub mod resource_not_found_exception {
#[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::ResourceNotFoundException {
crate::error::ResourceNotFoundException {
message: self.message,
}
}
}
}
impl ResourceNotFoundException {
pub fn builder() -> crate::error::resource_not_found_exception::Builder {
crate::error::resource_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidStateException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidStateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidStateException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidStateException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidStateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidStateException")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for InvalidStateException {}
pub mod invalid_state_exception {
#[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::InvalidStateException {
crate::error::InvalidStateException {
message: self.message,
}
}
}
}
impl InvalidStateException {
pub fn builder() -> crate::error::invalid_state_exception::Builder {
crate::error::invalid_state_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidPolicyException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidPolicyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidPolicyException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidPolicyException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidPolicyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidPolicyException")?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for InvalidPolicyException {}
pub mod invalid_policy_exception {
#[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::InvalidPolicyException {
crate::error::InvalidPolicyException {
message: self.message,
}
}
}
}
impl InvalidPolicyException {
pub fn builder() -> crate::error::invalid_policy_exception::Builder {
crate::error::invalid_policy_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidArnException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidArnException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidArnException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidArnException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidArnException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidArnException")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for InvalidArnException {}
pub mod invalid_arn_exception {
#[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::InvalidArnException {
crate::error::InvalidArnException {
message: self.message,
}
}
}
}
impl InvalidArnException {
pub fn builder() -> crate::error::invalid_arn_exception::Builder {
crate::error::invalid_arn_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidArgsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidArgsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidArgsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidArgsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidArgsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidArgsException")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for InvalidArgsException {}
pub mod invalid_args_exception {
#[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::InvalidArgsException {
crate::error::InvalidArgsException {
message: self.message,
}
}
}
}
impl InvalidArgsException {
pub fn builder() -> crate::error::invalid_args_exception::Builder {
crate::error::invalid_args_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConcurrentModificationException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ConcurrentModificationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConcurrentModificationException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ConcurrentModificationException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConcurrentModificationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConcurrentModificationException")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for ConcurrentModificationException {}
pub mod concurrent_modification_exception {
#[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::ConcurrentModificationException {
crate::error::ConcurrentModificationException {
message: self.message,
}
}
}
}
impl ConcurrentModificationException {
pub fn builder() -> crate::error::concurrent_modification_exception::Builder {
crate::error::concurrent_modification_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidTagException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidTagException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidTagException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidTagException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTagException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTagException")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for InvalidTagException {}
pub mod invalid_tag_exception {
#[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::InvalidTagException {
crate::error::InvalidTagException {
message: self.message,
}
}
}
}
impl InvalidTagException {
pub fn builder() -> crate::error::invalid_tag_exception::Builder {
crate::error::invalid_tag_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyTagsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyTagsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyTagsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyTagsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTagsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTagsException")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for TooManyTagsException {}
pub mod too_many_tags_exception {
#[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::TooManyTagsException {
crate::error::TooManyTagsException {
message: self.message,
}
}
}
}
impl TooManyTagsException {
pub fn builder() -> crate::error::too_many_tags_exception::Builder {
crate::error::too_many_tags_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RequestInProgressException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RequestInProgressException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RequestInProgressException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RequestInProgressException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RequestInProgressException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RequestInProgressException")?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for RequestInProgressException {}
pub mod request_in_progress_exception {
#[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::RequestInProgressException {
crate::error::RequestInProgressException {
message: self.message,
}
}
}
}
impl RequestInProgressException {
pub fn builder() -> crate::error::request_in_progress_exception::Builder {
crate::error::request_in_progress_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RequestFailedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RequestFailedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RequestFailedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RequestFailedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RequestFailedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RequestFailedException")?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for RequestFailedException {}
pub mod request_failed_exception {
#[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::RequestFailedException {
crate::error::RequestFailedException {
message: self.message,
}
}
}
}
impl RequestFailedException {
pub fn builder() -> crate::error::request_failed_exception::Builder {
crate::error::request_failed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RequestAlreadyProcessedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RequestAlreadyProcessedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RequestAlreadyProcessedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RequestAlreadyProcessedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RequestAlreadyProcessedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RequestAlreadyProcessedException")?;
if let Some(inner_11) = &self.message {
write!(f, ": {}", inner_11)?;
}
Ok(())
}
}
impl std::error::Error for RequestAlreadyProcessedException {}
pub mod request_already_processed_exception {
#[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::RequestAlreadyProcessedException {
crate::error::RequestAlreadyProcessedException {
message: self.message,
}
}
}
}
impl RequestAlreadyProcessedException {
pub fn builder() -> crate::error::request_already_processed_exception::Builder {
crate::error::request_already_processed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LimitExceededException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LimitExceededException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl LimitExceededException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LimitExceededException")?;
if let Some(inner_12) = &self.message {
write!(f, ": {}", inner_12)?;
}
Ok(())
}
}
impl std::error::Error for LimitExceededException {}
pub mod limit_exceeded_exception {
#[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::LimitExceededException {
crate::error::LimitExceededException {
message: self.message,
}
}
}
}
impl LimitExceededException {
pub fn builder() -> crate::error::limit_exceeded_exception::Builder {
crate::error::limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidRequestException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidRequestException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidRequestException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRequestException")?;
if let Some(inner_13) = &self.message {
write!(f, ": {}", inner_13)?;
}
Ok(())
}
}
impl std::error::Error for InvalidRequestException {}
pub mod invalid_request_exception {
#[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::InvalidRequestException {
crate::error::InvalidRequestException {
message: self.message,
}
}
}
}
impl InvalidRequestException {
pub fn builder() -> crate::error::invalid_request_exception::Builder {
crate::error::invalid_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LockoutPreventedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for LockoutPreventedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LockoutPreventedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl LockoutPreventedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LockoutPreventedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LockoutPreventedException")?;
if let Some(inner_14) = &self.message {
write!(f, ": {}", inner_14)?;
}
Ok(())
}
}
impl std::error::Error for LockoutPreventedException {}
pub mod lockout_prevented_exception {
#[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::LockoutPreventedException {
crate::error::LockoutPreventedException {
message: self.message,
}
}
}
}
impl LockoutPreventedException {
pub fn builder() -> crate::error::lockout_prevented_exception::Builder {
crate::error::lockout_prevented_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidNextTokenException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidNextTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidNextTokenException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidNextTokenException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidNextTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidNextTokenException")?;
if let Some(inner_15) = &self.message {
write!(f, ": {}", inner_15)?;
}
Ok(())
}
}
impl std::error::Error for InvalidNextTokenException {}
pub mod invalid_next_token_exception {
#[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::InvalidNextTokenException {
crate::error::InvalidNextTokenException {
message: self.message,
}
}
}
}
impl InvalidNextTokenException {
pub fn builder() -> crate::error::invalid_next_token_exception::Builder {
crate::error::invalid_next_token_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MalformedCsrException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for MalformedCsrException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MalformedCsrException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl MalformedCsrException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MalformedCsrException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MalformedCsrException [MalformedCSRException]")?;
if let Some(inner_16) = &self.message {
write!(f, ": {}", inner_16)?;
}
Ok(())
}
}
impl std::error::Error for MalformedCsrException {}
pub mod malformed_csr_exception {
#[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::MalformedCsrException {
crate::error::MalformedCsrException {
message: self.message,
}
}
}
}
impl MalformedCsrException {
pub fn builder() -> crate::error::malformed_csr_exception::Builder {
crate::error::malformed_csr_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MalformedCertificateException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for MalformedCertificateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MalformedCertificateException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl MalformedCertificateException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MalformedCertificateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MalformedCertificateException")?;
if let Some(inner_17) = &self.message {
write!(f, ": {}", inner_17)?;
}
Ok(())
}
}
impl std::error::Error for MalformedCertificateException {}
pub mod malformed_certificate_exception {
#[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::MalformedCertificateException {
crate::error::MalformedCertificateException {
message: self.message,
}
}
}
}
impl MalformedCertificateException {
pub fn builder() -> crate::error::malformed_certificate_exception::Builder {
crate::error::malformed_certificate_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CertificateMismatchException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CertificateMismatchException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CertificateMismatchException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl CertificateMismatchException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CertificateMismatchException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CertificateMismatchException")?;
if let Some(inner_18) = &self.message {
write!(f, ": {}", inner_18)?;
}
Ok(())
}
}
impl std::error::Error for CertificateMismatchException {}
pub mod certificate_mismatch_exception {
#[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::CertificateMismatchException {
crate::error::CertificateMismatchException {
message: self.message,
}
}
}
}
impl CertificateMismatchException {
pub fn builder() -> crate::error::certificate_mismatch_exception::Builder {
crate::error::certificate_mismatch_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PermissionAlreadyExistsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for PermissionAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PermissionAlreadyExistsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl PermissionAlreadyExistsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PermissionAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PermissionAlreadyExistsException")?;
if let Some(inner_19) = &self.message {
write!(f, ": {}", inner_19)?;
}
Ok(())
}
}
impl std::error::Error for PermissionAlreadyExistsException {}
pub mod permission_already_exists_exception {
#[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::PermissionAlreadyExistsException {
crate::error::PermissionAlreadyExistsException {
message: self.message,
}
}
}
}
impl PermissionAlreadyExistsException {
pub fn builder() -> crate::error::permission_already_exists_exception::Builder {
crate::error::permission_already_exists_exception::Builder::default()
}
}