EventBridgeV2 / Client / revoke_resource
revoke_resource¶
- EventBridgeV2.Client.revoke_resource(**kwargs)¶
Revokes a subscriber or an EventSource. The bus owner calls this to withdraw a misbehaving resource attached to their bus. Revocation is terminal: there is no operation that clears it. A revoked resource refuses mutating operations with InvalidStateException; delete stays available for cleanup.
See also: AWS API Documentation
Request Syntax
response = client.revoke_resource( Arn='string' )
- Parameters:
Arn (string) –
[REQUIRED]
ARN of a resource a bus owner can revoke: a subscriber or an EventSource. The pattern is the revocable subset of TaggableResourceArn; buses are not revocable.
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string' }
Response Structure
(dict) –
Arn (string) –
ARN of a resource a bus owner can revoke: a subscriber or an EventSource. The pattern is the revocable subset of TaggableResourceArn; buses are not revocable.
Exceptions
EventBridgeV2.Client.exceptions.AccessDeniedExceptionEventBridgeV2.Client.exceptions.ResourceNotFoundExceptionEventBridgeV2.Client.exceptions.ThrottlingExceptionEventBridgeV2.Client.exceptions.InvalidInputExceptionEventBridgeV2.Client.exceptions.InternalExceptionEventBridgeV2.Client.exceptions.ConcurrentModificationExceptionEventBridgeV2.Client.exceptions.InvalidStateException