Class CfnMailManagerArchive

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:51.529Z") @Stability(Stable) public class CfnMailManagerArchive extends CfnResource implements IInspectable, ITaggableV2
Creates a new email archive resource for storing and retaining emails.

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.*;
 CfnMailManagerArchive cfnMailManagerArchive = CfnMailManagerArchive.Builder.create(this, "MyCfnMailManagerArchive")
         .archiveName("archiveName")
         .kmsKeyArn("kmsKeyArn")
         .retention(ArchiveRetentionProperty.builder()
                 .retentionPeriod("retentionPeriod")
                 .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

    • CfnMailManagerArchive

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

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

      @Stability(Stable) public CfnMailManagerArchive(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnMailManagerArchiveProps props)
      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.
    • CfnMailManagerArchive

      @Stability(Stable) public CfnMailManagerArchive(@NotNull software.constructs.Construct scope, @NotNull String id)
      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.
  • Method Details

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

      @Stability(Stable) @NotNull public String getAttrArchiveArn()
      The Amazon Resource Name (ARN) of the archive.
    • getAttrArchiveId

      @Stability(Stable) @NotNull public String getAttrArchiveId()
      The unique identifier of the archive.
    • getAttrArchiveState

      @Stability(Stable) @NotNull public String getAttrArchiveState()
      The current state of the archive:.

      • ACTIVE – The archive is ready and available for use.
      • PENDING_DELETION – The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.
    • 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
    • getArchiveName

      @Stability(Stable) @Nullable public String getArchiveName()
      A unique name for the new archive.
    • setArchiveName

      @Stability(Stable) public void setArchiveName(@Nullable String value)
      A unique name for the new archive.
    • getKmsKeyArn

      @Stability(Stable) @Nullable public String getKmsKeyArn()
      The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.
    • setKmsKeyArn

      @Stability(Stable) public void setKmsKeyArn(@Nullable String value)
      The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.
    • getRetention

      @Stability(Stable) @Nullable public Object getRetention()
      The period for retaining emails in the archive before automatic deletion.
    • setRetention

      @Stability(Stable) public void setRetention(@Nullable IResolvable value)
      The period for retaining emails in the archive before automatic deletion.
    • setRetention

      @Stability(Stable) public void setRetention(@Nullable CfnMailManagerArchive.ArchiveRetentionProperty value)
      The period for retaining emails in the archive before automatic deletion.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags used to organize, track, or control access for the resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for the resource.