Skip to content

Sns  >  Operations  >  remove_permission

remove_permission

Operation

remove_permission async

remove_permission(input: RemovePermissionInput, plugins: list[Plugin] | None = None) -> RemovePermissionOutput

Removes a statement from a topic's access control policy.

Note

To remove the ability to change topic permissions, you must deny permissions to the AddPermission, RemovePermission, and SetTopicAttributes actions in your IAM policy.

Parameters:

Name Type Description Default
input RemovePermissionInput

An instance of RemovePermissionInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
RemovePermissionOutput

An instance of RemovePermissionOutput.

Input

RemovePermissionInput dataclass

Input for RemovePermission action.

Attributes

label class-attribute instance-attribute
label: str | None = None

The unique label of the statement you want to remove.

topic_arn class-attribute instance-attribute
topic_arn: str | None = None

The ARN of the topic whose access control policy you wish to modify.

Output

RemovePermissionOutput dataclass

Dataclass for RemovePermissionOutput structure.