ResourceGroupsTaggingAPI / Client / exceptions / ConstraintViolationException
ConstraintViolationException#
- class ResourceGroupsTaggingAPI.Client.exceptions.ConstraintViolationException#
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.
Example
try: ... except client.exceptions.ConstraintViolationException as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'Message': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
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.
Message (string) –
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.