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
3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 | |