Class ParameterMaxVersionLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- software.amazon.awssdk.core.exception.SdkException
-
- software.amazon.awssdk.core.exception.SdkServiceException
-
- software.amazon.awssdk.awscore.exception.AwsServiceException
-
- software.amazon.awssdk.services.ssm.model.SsmException
-
- software.amazon.awssdk.services.ssm.model.ParameterMaxVersionLimitExceededException
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ParameterMaxVersionLimitExceededException.Builder,ParameterMaxVersionLimitExceededException>
@Generated("software.amazon.awssdk:codegen") public final class ParameterMaxVersionLimitExceededException extends SsmException implements ToCopyableBuilder<ParameterMaxVersionLimitExceededException.Builder,ParameterMaxVersionLimitExceededException>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParameterMaxVersionLimitExceededException.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParameterMaxVersionLimitExceededException.Builderbuilder()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ParameterMaxVersionLimitExceededException.Builder>serializableBuilderClass()ParameterMaxVersionLimitExceededException.BuildertoBuilder()-
Methods inherited from class software.amazon.awssdk.awscore.exception.AwsServiceException
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, isRetryableException, requestId, statusCode
-
Methods inherited from class software.amazon.awssdk.core.exception.SdkException
create, numAttempts, rawMessage, retryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
toBuilder
public ParameterMaxVersionLimitExceededException.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ParameterMaxVersionLimitExceededException.Builder,ParameterMaxVersionLimitExceededException>- Overrides:
toBuilderin classSsmException
-
builder
public static ParameterMaxVersionLimitExceededException.Builder builder()
-
serializableBuilderClass
public static Class<? extends ParameterMaxVersionLimitExceededException.Builder> serializableBuilderClass()
-
sdkFields
public final List<SdkField<?>> sdkFields()
- Specified by:
sdkFieldsin interfaceSdkPojo- Overrides:
sdkFieldsin classSdkServiceException
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-