# CfnMailManagerRelayProps

Properties for defining a `CfnMailManagerRelay`.

Used as props by: [CfnMailManagerRelay](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnMailManagerRelay.html)

- Source: Generated at build time
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `authentication`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMailManagerRelay.RelayAuthenticationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnMailManagerRelay.RelayAuthenticationProperty.html) (required) — Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

- `relayName`: string — The unique relay name.

- `serverName`: string (required) — The destination relay server address.

- `serverPort`: number (required) — The destination relay server port.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags used to organize, track, or control access for the resource.

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