Skip to content
v2.278.0

RelayActionProperty Struct ​

The action relays the email via SMTP to another specific SMTP server.

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 relayActionProperty: ses.CfnMailManagerRuleSet.RelayActionProperty = {
  relay: 'relay',

  // the properties below are optional
  actionFailurePolicy: 'actionFailurePolicy',
  mailFrom: 'mailFrom',
};
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

relay_action_property = ses.CfnMailManagerRuleSet.RelayActionProperty(
    relay="relay",

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

RelayActionProperty relayActionProperty = RelayActionProperty.builder()
        .relay("relay")

        // the properties below are optional
        .actionFailurePolicy("actionFailurePolicy")
        .mailFrom("mailFrom")
        .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 relayActionProperty = new RelayActionProperty {
    Relay = "relay",

    // the properties below are optional
    ActionFailurePolicy = "actionFailurePolicy",
    MailFrom = "mailFrom"
};
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"

relayActionProperty := &RelayActionProperty{
	Relay: jsii.String("relay"),

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

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 relay has been deleted.

mailFromoptionalstringmail_fromoptionalstrmailFromoptionalStringMailFromoptionalstringMailFromoptional*string #
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
relaystringrelaystrrelayStringRelaystringRelay*string required #
The identifier of the relay resource to be used when relaying an email.