SNSClient.set_topic_attributes
rboto-sns==0.4.0 · Service index · Types
Model summary (excerpt): Allows a topic owner to set an attribute of the topic to a new value. To remove the ability to change topic permissions, you must deny permissions to the AddPermission , RemovePermission , and SetTopicAttributes actions in your IAM policy.
Install and imports
Signature
async def set_topic_attributes(
*,
topic_arn: str,
attribute_name: str,
attribute_value: str | None = None,
) -> None: ...
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) |
|---|---|---|
topic_arn |
Yes | The ARN of the topic to modify. |
attribute_name |
Yes | A map of attributes with their corresponding values. The following lists the names, descriptions, and values of the special request parameters that the SetTopicAttributes action uses: DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. DisplayName – The display name to use for a topic with SMS, email , and email-json subscriptions. For email... |
attribute_value |
No | The new value for the attribute. |
Output
None.
| 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.
Related types
—
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_sns.exceptions:
AuthorizationError, InternalError, InvalidParameterError, InvalidSecurityError, NotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.