Skip to content

CloudWatchLogsClient.describe_resource_policies

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): Lists the resource policies in this account.

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
    DescribeResourcePoliciesOutput,
    PolicyScope,
)

Signature

async def describe_resource_policies(
    *,
    next_token: str | None = None,
    limit: int | None = None,
    resource_arn: str | None = None,
    policy_scope: PolicyScope | None = None,
) -> DescribeResourcePoliciesOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
next_token No
limit No The maximum number of resource policies to be displayed with one call of this API.
resource_arn No The ARN of the CloudWatch Logs resource for which to query the resource policy.
policy_scope No Specifies the scope of the resource policy. Valid values are ACCOUNT or RESOURCE . When not specified, defaults to ACCOUNT .

Output

DescribeResourcePoliciesOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
resource_policies list[ResourcePolicyOutput] | None Always present ResourcePolicyOutput
next_token str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

DescribeResourcePoliciesOutput, PolicyScope

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.describe_resource_policies(...) accepts the same arguments and returns AsyncIterator[DescribeResourcePoliciesOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: limit.

No output stream.

Errors

Import from rboto_cloudwatch_logs.exceptions:

InvalidParameterError, ServiceUnavailableError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model