@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourcePolicyLimitExceededException extends AWSSimpleSystemsManagementException
The PutResourcePolicy API action enforces two limits. A policy can't be greater than 1024 bytes in size. And
only one policy can be attached to OpsItemGroup
. Verify these limits and try again.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ResourcePolicyLimitExceededException(String message)
Constructs a new ResourcePolicyLimitExceededException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getLimit() |
String |
getLimitType() |
void |
setLimit(Integer limit) |
void |
setLimitType(String limitType) |
ResourcePolicyLimitExceededException |
withLimit(Integer limit) |
ResourcePolicyLimitExceededException |
withLimitType(String limitType) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResourcePolicyLimitExceededException(String message)
message
- Describes the error encountered.public void setLimit(Integer limit)
limit
- public Integer getLimit()
public ResourcePolicyLimitExceededException withLimit(Integer limit)
limit
- public void setLimitType(String limitType)
limitType
- public String getLimitType()
public ResourcePolicyLimitExceededException withLimitType(String limitType)
limitType
-