#[non_exhaustive]pub enum SsmErrorCode {
Show 22 variants
ParameterNotFound,
ParameterAlreadyExists,
ParameterMaxVersionLimitExceeded,
ParameterVersionNotFound,
ParameterVersionLabelLimitExceeded,
HierarchyLevelLimitExceeded,
HierarchyTypeMismatch,
InvalidAllowedPatternException,
ParameterPatternMismatchException,
InvalidFilterKey,
InvalidFilterOption,
InvalidFilterValue,
InvalidNextToken,
InvalidResourceId,
InvalidResourceType,
UnsupportedParameterType,
TooManyTagsError,
InternalServerError,
InvalidSecurity,
InvalidAction,
MissingAction,
ValidationException,
}Expand description
Well-known SSM error codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ParameterNotFound
Parameter not found.
ParameterAlreadyExists
Parameter already exists (PutParameter without Overwrite).
ParameterMaxVersionLimitExceeded
Maximum version limit exceeded (100 versions per parameter).
ParameterVersionNotFound
Requested parameter version not found.
ParameterVersionLabelLimitExceeded
Too many labels on a parameter version (max 10).
HierarchyLevelLimitExceeded
Hierarchy level limit exceeded (max 15 levels).
HierarchyTypeMismatch
Type mismatch for a parameter in a hierarchy.
InvalidAllowedPatternException
Invalid allowed pattern regex.
ParameterPatternMismatchException
Value does not match the allowed pattern.
InvalidFilterKey
Invalid filter key.
InvalidFilterOption
Invalid filter option.
InvalidFilterValue
Invalid filter value.
InvalidNextToken
Invalid next token for pagination.
InvalidResourceId
Invalid resource ID.
InvalidResourceType
Invalid resource type.
UnsupportedParameterType
Unsupported parameter type.
TooManyTagsError
Too many tags (max 50 per resource).
InternalServerError
Internal server error.
InvalidSecurity
Invalid security (encryption key issue).
InvalidAction
Invalid action (unrecognized operation).
MissingAction
Missing action header.
ValidationException
Validation error.
Implementations§
Source§impl SsmErrorCode
impl SsmErrorCode
Sourcepub fn error_type(&self) -> &'static str
pub fn error_type(&self) -> &'static str
Returns the short error type string for the JSON __type field.
SSM uses short names like "ParameterNotFound", not fully-qualified
names like DynamoDB.
Sourcepub fn default_status_code(&self) -> StatusCode
pub fn default_status_code(&self) -> StatusCode
Returns the default HTTP status code for this error.
Trait Implementations§
Source§impl Clone for SsmErrorCode
impl Clone for SsmErrorCode
Source§fn clone(&self) -> SsmErrorCode
fn clone(&self) -> SsmErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SsmErrorCode
impl Debug for SsmErrorCode
Source§impl Default for SsmErrorCode
impl Default for SsmErrorCode
Source§fn default() -> SsmErrorCode
fn default() -> SsmErrorCode
Source§impl Display for SsmErrorCode
impl Display for SsmErrorCode
Source§impl Hash for SsmErrorCode
impl Hash for SsmErrorCode
Source§impl PartialEq for SsmErrorCode
impl PartialEq for SsmErrorCode
Source§fn eq(&self, other: &SsmErrorCode) -> bool
fn eq(&self, other: &SsmErrorCode) -> bool
self and other values to be equal, and is used by ==.