#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more