Skip to content

SNSClient.set_subscription_attributes

rboto-sns==0.4.0 · Service index · Types

Model summary (excerpt): Allows a subscription owner to set an attribute of the subscription to a new value.

Install and imports

python -m pip install "rboto[sns]==0.4.0"
from rboto import SNSClient

Signature

async def set_subscription_attributes(
    *,
    subscription_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)
subscription_arn Yes The ARN of the subscription 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 this action uses: DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. FilterPolicy – The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every...
attribute_value No The new value for the attribute in JSON format.

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.

—

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, FilterPolicyLimitExceededError, InternalError, InvalidParameterError, NotFoundError, ReplayLimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model