QBusiness / Client / get_policy
get_policy#
- QBusiness.Client.get_policy(**kwargs)#
Retrieves the current permission policy for a Q Business application. The policy is returned as a JSON-formatted string and defines the IAM actions that are allowed or denied for the application’s resources.
See also: AWS API Documentation
Request Syntax
response = client.get_policy( applicationId='string' )
- Parameters:
applicationId (string) –
[REQUIRED]
The unique identifier of the Q Business application.
- Return type:
dict
- Returns:
Response Syntax
{ 'policy': 'string' }
Response Structure
(dict) –
policy (string) –
The JSON representation of the permission policy.
Exceptions
QBusiness.Client.exceptions.ResourceNotFoundException
QBusiness.Client.exceptions.InternalServerException
QBusiness.Client.exceptions.ThrottlingException
QBusiness.Client.exceptions.ValidationException
QBusiness.Client.exceptions.AccessDeniedException