Skip to content

SNSClient.confirm_subscription

rboto-sns==0.4.0 · Service index · Types

Model summary (excerpt): Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier Subscribe action. If the token is valid, the action creates a new subscription and returns its Amazon Resource Name (ARN). This call requires an AWS signature only when the AuthenticateOnUnsubscribe flag is set to "true".

Install and imports

python -m pip install "rboto[sns]==0.4.0"
from rboto import SNSClient
from rboto_sns.types import (
    ConfirmSubscriptionOutput,
)

Signature

async def confirm_subscription(
    *,
    topic_arn: str,
    token: str,
    authenticate_on_unsubscribe: str | None = None,
) -> ConfirmSubscriptionOutput: ...

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 for which you wish to confirm a subscription.
token Yes Short-lived token sent to an endpoint during the Subscribe action.
authenticate_on_unsubscribe No Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an Amazon Web Services signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires Amazon Web Services authentication.

Output

ConfirmSubscriptionOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
subscription_arn str | None Always present —

| 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.

ConfirmSubscriptionOutput

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, SubscriptionLimitExceededError.

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

Service guide · Pinned model