Class CfnTenant

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, ITenantRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-09T14:39:19.521Z") @Stability(Stable) public class CfnTenant extends CfnResource implements IInspectable, ITenantRef, ITaggableV2
Create a tenant.

Tenants are logical containers that group related SES resources together. Each tenant can have its own set of resources like email identities, configuration sets, and templates, along with reputation metrics and sending status. This helps isolate and manage email sending for different customers or business units within your Amazon SES API v2 account.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ses.*;
 CfnTenant cfnTenant = CfnTenant.Builder.create(this, "MyCfnTenant")
         .tenantName("tenantName")
         // the properties below are optional
         .resourceAssociations(List.of(ResourceAssociationProperty.builder()
                 .resourceArn("resourceArn")
                 .build()))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTenant

      protected CfnTenant(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnTenant

      protected CfnTenant(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnTenant

      @Stability(Stable) public CfnTenant(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTenantProps props)
      Create a new AWS::SES::Tenant.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForTenant

      @Stability(Stable) @NotNull public static String arnForTenant(@NotNull ITenantRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnTenant

      @Stability(Stable) @NotNull public static Boolean isCfnTenant(@NotNull Object x)
      Checks whether the given object is a CfnTenant.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      Returns the ARN of the tenant.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTenantRef

      @Stability(Stable) @NotNull public TenantReference getTenantRef()
      A reference to a Tenant resource.
      Specified by:
      getTenantRef in interface ITenantRef
    • getTenantName

      @Stability(Stable) @NotNull public String getTenantName()
      The name of a tenant.
    • setTenantName

      @Stability(Stable) public void setTenantName(@NotNull String value)
      The name of a tenant.
    • getResourceAssociations

      @Stability(Stable) @Nullable public Object getResourceAssociations()
      The list of resources to associate with the tenant.

      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnTenant.ResourceAssociationProperty>

    • setResourceAssociations

      @Stability(Stable) public void setResourceAssociations(@Nullable IResolvable value)
      The list of resources to associate with the tenant.
    • setResourceAssociations

      @Stability(Stable) public void setResourceAssociations(@Nullable List<Object> value)
      The list of resources to associate with the tenant.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of objects that define the tags (keys and values) associated with the tenant.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of objects that define the tags (keys and values) associated with the tenant.