EventBridgeV2 / Client / list_resource_policies
list_resource_policies¶
- EventBridgeV2.Client.list_resource_policies(**kwargs)¶
Lists the resource policies attached to an event bus as summaries (policy name and revision ID). Use GetResourcePolicy to retrieve a policy document.
See also: AWS API Documentation
Request Syntax
response = client.list_resource_policies( ResourceArn='string', NextToken='string', MaxResults=123 )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) that uniquely identifies an event bus.
NextToken (string) – Opaque pagination token returned by a List operation. Pass it back in the next request to retrieve the next page of results.
MaxResults (integer) – Maximum number of results to return in one page of a List operation.
- Return type:
dict
- Returns:
Response Syntax
{ 'PolicySummaries': [ { 'PolicyName': 'string', 'RevisionId': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Summaries only (policy name and revision ID). Use GetResourcePolicy to retrieve a policy document.
PolicySummaries (list) –
List of resource policy summaries.
(dict) –
Summary of a policy attached to a resource: its name and revision ID.
PolicyName (string) –
Name of a policy attached to a resource. Valid values: “default” (the customer-managed policy) and “AWS_RAM” (managed exclusively by AWS Resource Access Manager). Any other value is rejected.
RevisionId (string) –
Revision ID of a resource policy. A new revision ID is generated on every successful write.
NextToken (string) –
Opaque pagination token returned by a List operation. Pass it back in the next request to retrieve the next page of results.
Exceptions
EventBridgeV2.Client.exceptions.AccessDeniedExceptionEventBridgeV2.Client.exceptions.ResourceNotFoundExceptionEventBridgeV2.Client.exceptions.ThrottlingExceptionEventBridgeV2.Client.exceptions.InvalidInputExceptionEventBridgeV2.Client.exceptions.InternalException