# RelayAuthenticationProperty

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored, or specify an empty NoAuthentication structure if the relay destination server does not require SMTP credential authentication.

> This data type is a UNION, so only one of the following members can be specified when used or returned.

- 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 relayAuthenticationProperty: ses.CfnMailManagerRelay.RelayAuthenticationProperty = {
  noAuthentication: noAuthentication,
  secretArn: 'secretArn',
};
```

Python:

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

# no_authentication: Any

relay_authentication_property = ses.CfnMailManagerRelay.RelayAuthenticationProperty(
    no_authentication=no_authentication,
    secret_arn="secretArn"
)
```

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;

RelayAuthenticationProperty relayAuthenticationProperty = RelayAuthenticationProperty.builder()
        .noAuthentication(noAuthentication)
        .secretArn("secretArn")
        .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 relayAuthenticationProperty = new RelayAuthenticationProperty {
    NoAuthentication = noAuthentication,
    SecretArn = "secretArn"
};
```

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{}

relayAuthenticationProperty := &RelayAuthenticationProperty{
	NoAuthentication: noAuthentication,
	SecretArn: jsii.String("secretArn"),
}
```

## Properties

- `noAuthentication`: any — Keep an empty structure if the relay destination server does not require SMTP credential authentication.

- `secretArn`: string — The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.
