CredentialBrokerControl / Client / exceptions / AccessDeniedException
AccessDeniedException¶
- class CredentialBrokerControl.Client.exceptions.AccessDeniedException¶
The caller is not authorized to perform the request, or a resource the request depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.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': 'SECRET_ACCESS_DENIED'|'IDENTITY_CENTER_ACCESS_DENIED'|'KMS_KEY_ACCESS_DENIED'|'IDENTITY_CENTER_GRANT_MISSING'|'IDENTITY_CENTER_SESSION_EXPIRED'|'EXTERNAL_IDP_INVALID_REQUEST'|'EXTERNAL_IDP_INVALID_CLIENT'|'EXTERNAL_IDP_UNAUTHORIZED_CLIENT'|'EXTERNAL_IDP_INVALID_GRANT'|'EXTERNAL_IDP_UNSUPPORTED_GRANT_TYPE'|'EXTERNAL_IDP_INVALID_SCOPE'|'EXTERNAL_IDP_INVALID_TARGET'|'EXTERNAL_IDP_REQUEST_DENIED'|'IDENTITY_CENTER_SESSION_ACCESS_DENIED'|'SESSION_BINDING_IDENTITY_MISMATCH'|'SUBJECT_TOKEN_MISSING', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The caller is not authorized to perform the request, or a resource the request depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.message (string) –
reason (string) –
Identifies what denied the request. New values may be added over time, so treat an unrecognized value as a generic authorization failure and rely on
messagefor detail.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.