BillingandCostManagementDashboards / Client / get_resource_policy
get_resource_policy¶
- BillingandCostManagementDashboards.Client.get_resource_policy(**kwargs)¶
Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.
See also: AWS API Documentation
Request Syntax
response = client.get_resource_policy( resourceArn='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The ARN of the dashboard whose resource-based policy you want to retrieve.
- Return type:
dict
- Returns:
Response Syntax
{ 'resourceArn': 'string', 'policyDocument': 'string' }
Response Structure
(dict) –
resourceArn (string) –
The ARN of the dashboard for which the resource-based policy was retrieved.
policyDocument (string) –
The JSON policy document that represents the dashboard’s resource-based policy.
Exceptions
BillingandCostManagementDashboards.Client.exceptions.ThrottlingException
BillingandCostManagementDashboards.Client.exceptions.AccessDeniedException
BillingandCostManagementDashboards.Client.exceptions.InternalServerException
BillingandCostManagementDashboards.Client.exceptions.ValidationException
BillingandCostManagementDashboards.Client.exceptions.ResourceNotFoundException