describe_resource_policies
async
¶
describe_resource_policies(
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
next_token: Optional[NextToken] = None,
limit: Optional[DescribeLimit] = None,
resource_arn: Optional[Arn] = None,
policy_scope: Optional[PolicyScope] = None,
) -> DescribeResourcePoliciesResponse
Lists the resource policies in this account.
Parameters:
-
limit(Optional[DescribeLimit], default:None) –The maximum number of resource policies to be displayed with one call of this API.
-
resource_arn(Optional[Arn], default:None) –The ARN of the CloudWatch Logs resource for which to query the resource policy.
-
policy_scope(Optional[PolicyScope], default:None) –Specifies the scope of the resource policy. Valid values are
ACCOUNTorRESOURCE. When not specified, defaults toACCOUNT.
Raises:
-
InvalidParameterException–A parameter is specified incorrectly.
-
ServiceUnavailableException–The service cannot complete the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 | |