PartnerCentralMarketing / Client / exceptions / AccessDeniedException
AccessDeniedException¶
- class PartnerCentralMarketing.Client.exceptions.AccessDeniedException¶
You do not have sufficient access to perform this action.
An IAM denial carries no
Reason. A refusal for the caller’s Partner Central state carries one, so a client tells the two apart by its presence.Example
try: ... except client.exceptions.AccessDeniedException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'Message': 'string', 'Reason': 'INCOMPATIBLE_BENEFIT_AWS_PARTNER_STATE', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
You do not have sufficient access to perform this action.
An IAM denial carries no
Reason. A refusal for the caller’s Partner Central state carries one, so a client tells the two apart by its presence.Message (string) –
Error message.
Reason (string) –
Why the caller was refused, when the refusal is about the caller’s Partner Central state rather than IAM.
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.