

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::MediaConnect::RouterOutput EndpointEncryptionConfiguration

The encryption settings for an endpoint connection. This is a union type, so exactly one of its members is set: `secretsManager` when you store the encryption key or passphrase in Amazon Secrets Manager, or `automatic` when you let MediaConnect determine the encryption key when the endpoint connects.

## Syntax
<a name="aws-properties-mediaconnect-routeroutput-endpointencryptionconfiguration-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-mediaconnect-routeroutput-endpointencryptionconfiguration-syntax.json"></a>

```json
{
  "[Automatic](#cfn-mediaconnect-routeroutput-endpointencryptionconfiguration-automatic)" : {{Json}},
  "[SecretsManager](#cfn-mediaconnect-routeroutput-endpointencryptionconfiguration-secretsmanager)" : {{SecretsManagerEndpointEncryptionConfiguration}}
}
```

### YAML
<a name="aws-properties-mediaconnect-routeroutput-endpointencryptionconfiguration-syntax.yaml"></a>

```yaml
  [Automatic](#cfn-mediaconnect-routeroutput-endpointencryptionconfiguration-automatic): {{Json}}
  [SecretsManager](#cfn-mediaconnect-routeroutput-endpointencryptionconfiguration-secretsmanager): {{
    SecretsManagerEndpointEncryptionConfiguration}}
```

## Properties
<a name="aws-properties-mediaconnect-routeroutput-endpointencryptionconfiguration-properties"></a>

`Automatic`  <a name="cfn-mediaconnect-routeroutput-endpointencryptionconfiguration-automatic"></a>
The configuration for automatic encryption, where MediaConnect determines the encryption key when the endpoint connects.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SecretsManager`  <a name="cfn-mediaconnect-routeroutput-endpointencryptionconfiguration-secretsmanager"></a>
The encryption configuration for a connection that uses a key or passphrase that you store in Amazon Secrets Manager.  
*Required*: No  
*Type*: [SecretsManagerEndpointEncryptionConfiguration](aws-properties-mediaconnect-routeroutput-secretsmanagerendpointencryptionconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)