Skip to content
v2.278.0

ArchiveActionProperty Struct ​

The action to archive the email by delivering the email to an Amazon SES archive.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const archiveActionProperty: ses.CfnMailManagerRuleSet.ArchiveActionProperty = {
  targetArchive: 'targetArchive',

  // the properties below are optional
  actionFailurePolicy: 'actionFailurePolicy',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses

archive_action_property = ses.CfnMailManagerRuleSet.ArchiveActionProperty(
    target_archive="targetArchive",

    # the properties below are optional
    action_failure_policy="actionFailurePolicy"
)
java
// 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.*;

ArchiveActionProperty archiveActionProperty = ArchiveActionProperty.builder()
        .targetArchive("targetArchive")

        // the properties below are optional
        .actionFailurePolicy("actionFailurePolicy")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;

var archiveActionProperty = new ArchiveActionProperty {
    TargetArchive = "targetArchive",

    // the properties below are optional
    ActionFailurePolicy = "actionFailurePolicy"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

archiveActionProperty := &ArchiveActionProperty{
	TargetArchive: jsii.String("targetArchive"),

	// the properties below are optional
	ActionFailurePolicy: jsii.String("actionFailurePolicy"),
}

Properties ​

actionFailurePolicyoptionalstringaction_failure_policyoptionalstractionFailurePolicyoptionalStringActionFailurePolicyoptionalstringActionFailurePolicyoptional*string #
A policy that states what to do in the case of failure.

The action will fail if there are configuration errors. For example, the specified archive has been deleted.

targetArchivestringtarget_archivestrtargetArchiveStringTargetArchivestringTargetArchive*string required #
The identifier of the archive to send the email to.