SSM / Client / exceptions / ResourcePolicyLimitExceededException

ResourcePolicyLimitExceededException#

class SSM.Client.exceptions.ResourcePolicyLimitExceededException#

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.

Example

try:
  ...
except client.exceptions.ResourcePolicyLimitExceededException 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

{
    'Limit': 123,
    'LimitType': 'string',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    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.

    • Limit (integer) –

    • LimitType (string) –

    • 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.