Skip to content

remove_permission

Operation

remove_permission

remove_permission(request: RemovePermissionInput | RemovePermissionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RemovePermissionInputDict]) -> 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
request RemovePermissionInput | RemovePermissionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[RemovePermissionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RemovePermissionOutput

An instance of RemovePermissionOutput.

remove_permission async

remove_permission(request: RemovePermissionInput | RemovePermissionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RemovePermissionInputDict]) -> 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
request RemovePermissionInput | RemovePermissionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[RemovePermissionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RemovePermissionOutput

An instance of RemovePermissionOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

RemovePermissionInputDict

Bases: TypedDict

Dictionary form of RemovePermissionInput.

Attributes

label instance-attribute
label: Required[str]

The unique label of the statement you want to remove.

topic_arn instance-attribute
topic_arn: Required[str]

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

RemovePermissionInput dataclass

Bases: _SerdeShape

Input for RemovePermission action.

Attributes

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

The unique label of the statement you want to remove.

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

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

Output

RemovePermissionOutput dataclass

Bases: _SerdeShape

Dataclass for RemovePermissionOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.