Skip to content
v2.278.0

CfnMailManagerRelayProps Struct ​

Properties for defining a CfnMailManagerRelay.

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';

declare const noAuthentication: any;
const cfnMailManagerRelayProps: ses.CfnMailManagerRelayProps = {
  authentication: {
    noAuthentication: noAuthentication,
    secretArn: 'secretArn',
  },
  serverName: 'serverName',
  serverPort: 123,

  // the properties below are optional
  relayName: 'relayName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

# no_authentication: Any

cfn_mail_manager_relay_props = ses.CfnMailManagerRelayProps(
    authentication=ses.CfnMailManagerRelay.RelayAuthenticationProperty(
        no_authentication=no_authentication,
        secret_arn="secretArn"
    ),
    server_name="serverName",
    server_port=123,

    # the properties below are optional
    relay_name="relayName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

Object noAuthentication;

CfnMailManagerRelayProps cfnMailManagerRelayProps = CfnMailManagerRelayProps.builder()
        .authentication(RelayAuthenticationProperty.builder()
                .noAuthentication(noAuthentication)
                .secretArn("secretArn")
                .build())
        .serverName("serverName")
        .serverPort(123)

        // the properties below are optional
        .relayName("relayName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 noAuthentication;

var cfnMailManagerRelayProps = new CfnMailManagerRelayProps {
    Authentication = new RelayAuthenticationProperty {
        NoAuthentication = noAuthentication,
        SecretArn = "secretArn"
    },
    ServerName = "serverName",
    ServerPort = 123,

    // the properties below are optional
    RelayName = "relayName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

var noAuthentication interface{}

cfnMailManagerRelayProps := &CfnMailManagerRelayProps{
	Authentication: &RelayAuthenticationProperty{
		NoAuthentication: noAuthentication,
		SecretArn: jsii.String("secretArn"),
	},
	ServerName: jsii.String("serverName"),
	ServerPort: jsii.Number(123),

	// the properties below are optional
	RelayName: jsii.String("relayName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

authenticationIResolvable | CfnMailManagerRelay.RelayAuthenticationPropertyauthenticationtyping.Union[IResolvable, RelayAuthenticationProperty]authenticationIResolvableAuthenticationIResolvableAuthenticationinterface{} required #
Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.
relayNameoptionalstringrelay_nameoptionalstrrelayNameoptionalStringRelayNameoptionalstringRelayNameoptional*string #
The unique relay name.
serverNamestringserver_namestrserverNameStringServerNamestringServerName*string required #
The destination relay server address.
serverPortnumberserver_portint | floatserverPortNumberServerPortdoubleServerPort*float64 required #
The destination relay server port.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags used to organize, track, or control access for the resource.

For example, { "tags": {"key1":"value1", "key2":"value2"} }.