Enum aws_sdk_ssm::error::PutParameterErrorKind
source · [−]#[non_exhaustive]
pub enum PutParameterErrorKind {
Show 16 variants
HierarchyLevelLimitExceededException(HierarchyLevelLimitExceededException),
HierarchyTypeMismatchException(HierarchyTypeMismatchException),
IncompatiblePolicyException(IncompatiblePolicyException),
InternalServerError(InternalServerError),
InvalidAllowedPatternException(InvalidAllowedPatternException),
InvalidKeyId(InvalidKeyId),
InvalidPolicyAttributeException(InvalidPolicyAttributeException),
InvalidPolicyTypeException(InvalidPolicyTypeException),
ParameterAlreadyExists(ParameterAlreadyExists),
ParameterLimitExceeded(ParameterLimitExceeded),
ParameterMaxVersionLimitExceeded(ParameterMaxVersionLimitExceeded),
ParameterPatternMismatchException(ParameterPatternMismatchException),
PoliciesLimitExceededException(PoliciesLimitExceededException),
TooManyUpdates(TooManyUpdates),
UnsupportedParameterType(UnsupportedParameterType),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Types of errors that can occur for the PutParameter
operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
HierarchyLevelLimitExceededException(HierarchyLevelLimitExceededException)
A hierarchy can have a maximum of 15 levels. For more information, see Requirements and constraints for parameter names in the Amazon Web Services Systems Manager User Guide.
HierarchyTypeMismatchException(HierarchyTypeMismatchException)
Parameter Store doesn't support changing a parameter type in a hierarchy. For example, you can't change a parameter from a String
type to a SecureString
type. You must create a new, unique parameter.
IncompatiblePolicyException(IncompatiblePolicyException)
There is a conflict in the policies specified for this parameter. You can't, for example, specify two Expiration policies for a parameter. Review your policies, and try again.
InternalServerError(InternalServerError)
An error occurred on the server side.
InvalidAllowedPatternException(InvalidAllowedPatternException)
The request doesn't meet the regular expression requirement.
InvalidKeyId(InvalidKeyId)
The query key ID isn't valid.
InvalidPolicyAttributeException(InvalidPolicyAttributeException)
A policy attribute or its value is invalid.
InvalidPolicyTypeException(InvalidPolicyTypeException)
The policy type isn't supported. Parameter Store supports the following policy types: Expiration, ExpirationNotification, and NoChangeNotification.
ParameterAlreadyExists(ParameterAlreadyExists)
The parameter already exists. You can't create duplicate parameters.
ParameterLimitExceeded(ParameterLimitExceeded)
You have exceeded the number of parameters for this Amazon Web Services account. Delete one or more parameters and try again.
ParameterMaxVersionLimitExceeded(ParameterMaxVersionLimitExceeded)
Parameter Store retains the 100 most recently created versions of a parameter. After this number of versions has been created, Parameter Store deletes the oldest version when a new one is created. However, if the oldest version has a label attached to it, Parameter Store won't delete the version and instead presents this error message:
An error occurred (ParameterMaxVersionLimitExceeded) when calling the PutParameter operation: You attempted to create a new version of parameter-name by calling the PutParameter API with the overwrite flag. Version version-number, the oldest version, can't be deleted because it has a label associated with it. Move the label to another version of the parameter, and try again.
This safeguard is to prevent parameter versions with mission critical labels assigned to them from being deleted. To continue creating new parameters, first move the label from the oldest version of the parameter to a newer one for use in your operations. For information about moving parameter labels, see Move a parameter label (console) or Move a parameter label (CLI) in the Amazon Web Services Systems Manager User Guide.
ParameterPatternMismatchException(ParameterPatternMismatchException)
The parameter name isn't valid.
PoliciesLimitExceededException(PoliciesLimitExceededException)
You specified more than the maximum number of allowed policies for the parameter. The maximum is 10.
TooManyUpdates(TooManyUpdates)
There are concurrent updates for a resource that supports one update at a time.
UnsupportedParameterType(UnsupportedParameterType)
The parameter type isn't supported.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unexpected error, e.g. invalid JSON returned by the service or an unknown error code
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PutParameterErrorKind
impl Send for PutParameterErrorKind
impl Sync for PutParameterErrorKind
impl Unpin for PutParameterErrorKind
impl !UnwindSafe for PutParameterErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more