@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConstraintViolationException extends AWSResourceGroupsTaggingAPIException
The request was denied because performing this operation violates a constraint.
Some of the reasons in the following list might not apply to this specific operation.
You must meet the prerequisites for using tag policies. For information, see Prerequisites and Permissions for Using Tag Policies in the Organizations User Guide.
You must enable the tag policies service principal (tagpolicies.tag.amazonaws.com
) to integrate with
Organizations For information, see EnableAWSServiceAccess.
You must have a tag policy attached to the organization root, an OU, or an account.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ConstraintViolationException(String message)
Constructs a new ConstraintViolationException with the specified error message.
|
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 ConstraintViolationException(String message)
message
- Describes the error encountered.