#[non_exhaustive]pub enum ModifyDocumentPermissionError {
DocumentLimitExceeded(DocumentLimitExceeded),
DocumentPermissionLimit(DocumentPermissionLimit),
InternalServerError(InternalServerError),
InvalidDocument(InvalidDocument),
InvalidPermissionType(InvalidPermissionType),
Unhandled(Unhandled),
}
Expand description
Error type for the ModifyDocumentPermissionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DocumentLimitExceeded(DocumentLimitExceeded)
You can have at most 500 active SSM documents.
DocumentPermissionLimit(DocumentPermissionLimit)
The document can't be shared with more Amazon Web Services accounts. You can specify a maximum of 20 accounts per API operation to share a private document.
By default, you can share a private document with a maximum of 1,000 accounts and publicly share up to five documents.
If you need to increase the quota for privately or publicly shared Systems Manager documents, contact Amazon Web Services Support.
InternalServerError(InternalServerError)
An error occurred on the server side.
InvalidDocument(InvalidDocument)
The specified SSM document doesn't exist.
InvalidPermissionType(InvalidPermissionType)
The permission type isn't supported. Share is the only supported permission type.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ModifyDocumentPermissionError
impl ModifyDocumentPermissionError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the ModifyDocumentPermissionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyDocumentPermissionError::Unhandled
variant from a ::aws_smithy_types::error::ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_document_limit_exceeded(&self) -> bool
pub fn is_document_limit_exceeded(&self) -> bool
Returns true
if the error kind is ModifyDocumentPermissionError::DocumentLimitExceeded
.
sourcepub fn is_document_permission_limit(&self) -> bool
pub fn is_document_permission_limit(&self) -> bool
Returns true
if the error kind is ModifyDocumentPermissionError::DocumentPermissionLimit
.
sourcepub fn is_internal_server_error(&self) -> bool
pub fn is_internal_server_error(&self) -> bool
Returns true
if the error kind is ModifyDocumentPermissionError::InternalServerError
.
sourcepub fn is_invalid_document(&self) -> bool
pub fn is_invalid_document(&self) -> bool
Returns true
if the error kind is ModifyDocumentPermissionError::InvalidDocument
.
sourcepub fn is_invalid_permission_type(&self) -> bool
pub fn is_invalid_permission_type(&self) -> bool
Returns true
if the error kind is ModifyDocumentPermissionError::InvalidPermissionType
.
Trait Implementations§
source§impl CreateUnhandledError for ModifyDocumentPermissionError
impl CreateUnhandledError for ModifyDocumentPermissionError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Error for ModifyDocumentPermissionError
impl Error for ModifyDocumentPermissionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ModifyDocumentPermissionError> for Error
impl From<ModifyDocumentPermissionError> for Error
source§fn from(err: ModifyDocumentPermissionError) -> Self
fn from(err: ModifyDocumentPermissionError) -> Self
source§impl ProvideErrorMetadata for ModifyDocumentPermissionError
impl ProvideErrorMetadata for ModifyDocumentPermissionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyDocumentPermissionError
impl RequestId for ModifyDocumentPermissionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.