Skip to content

SESV2Client.put_tenant_suppression_attributes

rboto-sesv2==0.4.0 · Service index · Types

Model summary (excerpt): Configure the suppression list preferences for a tenant. Use this operation to enable or disable tenant-level suppression, or to change the suppressed reasons for a tenant. When you set the suppression scope to TENANT , Amazon SES maintains a separate suppression list for the tenant. When you set the scope to ACCOUNT , the tenant uses the account-level suppression list.

Install and imports

python -m pip install "rboto[sesv2]==0.4.0"
from rboto import SESV2Client
from collections.abc import Sequence
from rboto_sesv2.types import (
    PutTenantSuppressionAttributesOutput,
    SuppressionListReason,
    SuppressionListScope,
)

Signature

async def put_tenant_suppression_attributes(
    *,
    tenant_name: str,
    suppressed_reasons: Sequence[SuppressionListReason] | None = None,
    suppression_scope: SuppressionListScope | None = None,
) -> PutTenantSuppressionAttributesOutput: ...

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)
tenant_name Yes The name of the tenant to configure suppression list preferences for.
suppressed_reasons No A list that contains the reasons that email addresses are automatically added to the suppression list for the tenant. This list can contain any or all of the following: COMPLAINT – Amazon SES adds an email address to the suppression list when a message sent to that address results in a complaint. BOUNCE – Amazon SES adds an email address to the suppression list when a message sent to that...
suppression_scope No The suppression scope for the tenant. Specify TENANT to use the tenant's own suppression list, or ACCOUNT to use the account-level suppression list. If you don't specify a suppression scope, the tenant defaults to ACCOUNT scope and uses the account-level suppression list.

Output

PutTenantSuppressionAttributesOutput.

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

No fields.

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

PutTenantSuppressionAttributesOutput, SuppressionListReason, SuppressionListScope

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_sesv2.exceptions:

BadRequestError, NotFoundError, TooManyRequestsError.

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

Service guide · Pinned model