SESV2 / Client / create_tenant_resource_association

create_tenant_resource_association

SESV2.Client.create_tenant_resource_association(**kwargs)

Associate a resource with a tenant.

Resources can be email identities, configuration sets, or email templates. When you associate a resource with a tenant, you can use that resource when sending emails on behalf of that tenant.

A single resource can be associated with multiple tenants, allowing for resource sharing across different tenants while maintaining isolation in email sending operations.

See also: AWS API Documentation

Request Syntax

response = client.create_tenant_resource_association(
    TenantName='string',
    ResourceArn='string'
)
Parameters:
  • TenantName (string) –

    [REQUIRED]

    The name of the tenant to associate the resource with.

  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource to associate with the tenant.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Exceptions

  • SESV2.Client.exceptions.AlreadyExistsException

  • SESV2.Client.exceptions.NotFoundException

  • SESV2.Client.exceptions.TooManyRequestsException

  • SESV2.Client.exceptions.BadRequestException