

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

# AWS::MediaConnect::RouterNetworkInterface
<a name="aws-resource-mediaconnect-routernetworkinterface"></a>

 The `AWS::MediaConnect::RouterNetworkInterface` resource defines how the router communicates with the outside world. Each router I/O needs a network interface, which determines how the router I/O connects to other resources and what security measures protect the connection. 

You can work with two types of router network interface:
+ **Public network interfaces** - allow communication over the public internet.
+ **VPC network interfaces** - allow communication within your Amazon Virtual Private Cloud (VPC).

## Syntax
<a name="aws-resource-mediaconnect-routernetworkinterface-syntax"></a>

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

### JSON
<a name="aws-resource-mediaconnect-routernetworkinterface-syntax.json"></a>

```
{
  "Type" : "AWS::MediaConnect::RouterNetworkInterface",
  "Properties" : {
      "[Configuration](#cfn-mediaconnect-routernetworkinterface-configuration)" : RouterNetworkInterfaceConfiguration,
      "[Name](#cfn-mediaconnect-routernetworkinterface-name)" : String,
      "[RegionName](#cfn-mediaconnect-routernetworkinterface-regionname)" : String,
      "[Tags](#cfn-mediaconnect-routernetworkinterface-tags)" : [ Tag, ... ]
    }
}
```

### YAML
<a name="aws-resource-mediaconnect-routernetworkinterface-syntax.yaml"></a>

```
Type: AWS::MediaConnect::RouterNetworkInterface
Properties:
  [Configuration](#cfn-mediaconnect-routernetworkinterface-configuration): 
    RouterNetworkInterfaceConfiguration
  [Name](#cfn-mediaconnect-routernetworkinterface-name): String
  [RegionName](#cfn-mediaconnect-routernetworkinterface-regionname): String
  [Tags](#cfn-mediaconnect-routernetworkinterface-tags): 
    - Tag
```

## Properties
<a name="aws-resource-mediaconnect-routernetworkinterface-properties"></a>

`Configuration`  <a name="cfn-mediaconnect-routernetworkinterface-configuration"></a>
The configuration settings for a router network interface.  
*Required*: Yes  
*Type*: [RouterNetworkInterfaceConfiguration](aws-properties-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Name`  <a name="cfn-mediaconnect-routernetworkinterface-name"></a>
The name of the router network interface.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RegionName`  <a name="cfn-mediaconnect-routernetworkinterface-regionname"></a>
The AWS Region where the router network interface is located.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Tags`  <a name="cfn-mediaconnect-routernetworkinterface-tags"></a>
Key-value pairs that can be used to tag and organize this router network interface.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-mediaconnect-routernetworkinterface-tag.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-mediaconnect-routernetworkinterface-return-values"></a>

### Ref
<a name="aws-resource-mediaconnect-routernetworkinterface-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the router network interface ARN. For example:

 `{ "Ref": "arn:aws:mediaconnect:us-west-2:111122223333:routerNetworkInterface:00e8efe67aa3" }` 

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-mediaconnect-routernetworkinterface-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-mediaconnect-routernetworkinterface-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the router network interface.

`AssociatedInputCount`  <a name="AssociatedInputCount-fn::getatt"></a>
The number of router inputs associated with the network interface.

`AssociatedOutputCount`  <a name="AssociatedOutputCount-fn::getatt"></a>
The number of router outputs associated with the network interface.

`CreatedAt`  <a name="CreatedAt-fn::getatt"></a>
The timestamp when the router network interface was created.

`Id`  <a name="Id-fn::getatt"></a>
The unique identifier of the router network interface.

`NetworkInterfaceType`  <a name="NetworkInterfaceType-fn::getatt"></a>
The type of the router network interface.

`State`  <a name="State-fn::getatt"></a>
The current state of the router network interface.

`UpdatedAt`  <a name="UpdatedAt-fn::getatt"></a>
The timestamp when the router network interface was last updated.

# AWS::MediaConnect::RouterNetworkInterface PublicRouterNetworkInterfaceConfiguration
<a name="aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfaceconfiguration"></a>

The configuration settings for a public router network interface, including the list of allowed CIDR blocks.

## Syntax
<a name="aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfaceconfiguration-syntax"></a>

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

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

```
{
  "[AllowRules](#cfn-mediaconnect-routernetworkinterface-publicrouternetworkinterfaceconfiguration-allowrules)" : [ PublicRouterNetworkInterfaceRule, ... ]
}
```

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

```
  [AllowRules](#cfn-mediaconnect-routernetworkinterface-publicrouternetworkinterfaceconfiguration-allowrules): 
    - PublicRouterNetworkInterfaceRule
```

## Properties
<a name="aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfaceconfiguration-properties"></a>

`AllowRules`  <a name="cfn-mediaconnect-routernetworkinterface-publicrouternetworkinterfaceconfiguration-allowrules"></a>
The list of allowed CIDR blocks for the public router network interface.  
*Required*: Yes  
*Type*: Array of [PublicRouterNetworkInterfaceRule](aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfacerule.md)  
*Minimum*: `0`  
*Maximum*: `10`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::MediaConnect::RouterNetworkInterface PublicRouterNetworkInterfaceRule
<a name="aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfacerule"></a>

A rule that allows a specific CIDR block to access the public router network interface.

## Syntax
<a name="aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfacerule-syntax"></a>

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

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

```
{
  "[Cidr](#cfn-mediaconnect-routernetworkinterface-publicrouternetworkinterfacerule-cidr)" : String
}
```

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

```
  [Cidr](#cfn-mediaconnect-routernetworkinterface-publicrouternetworkinterfacerule-cidr): String
```

## Properties
<a name="aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfacerule-properties"></a>

`Cidr`  <a name="cfn-mediaconnect-routernetworkinterface-publicrouternetworkinterfacerule-cidr"></a>
The CIDR block that is allowed to access the public router network interface.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::MediaConnect::RouterNetworkInterface RouterNetworkInterfaceConfiguration
<a name="aws-properties-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration"></a>

The configuration settings for a router network interface.

## Syntax
<a name="aws-properties-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-syntax"></a>

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

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

```
{
  "[Public](#cfn-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-public)" : PublicRouterNetworkInterfaceConfiguration,
  "[Vpc](#cfn-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-vpc)" : VpcRouterNetworkInterfaceConfiguration
}
```

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

```
  [Public](#cfn-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-public): 
    PublicRouterNetworkInterfaceConfiguration
  [Vpc](#cfn-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-vpc): 
    VpcRouterNetworkInterfaceConfiguration
```

## Properties
<a name="aws-properties-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-properties"></a>

`Public`  <a name="cfn-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-public"></a>
The configuration settings for a public router network interface, including the list of allowed CIDR blocks.  
*Required*: No  
*Type*: [PublicRouterNetworkInterfaceConfiguration](aws-properties-mediaconnect-routernetworkinterface-publicrouternetworkinterfaceconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Vpc`  <a name="cfn-mediaconnect-routernetworkinterface-routernetworkinterfaceconfiguration-vpc"></a>
The configuration settings for a router network interface within a VPC, including the security group IDs and subnet ID.  
*Required*: No  
*Type*: [VpcRouterNetworkInterfaceConfiguration](aws-properties-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::MediaConnect::RouterNetworkInterface Tag
<a name="aws-properties-mediaconnect-routernetworkinterface-tag"></a>

Key-value pairs that can be used to tag and organize this router network interface.

## Syntax
<a name="aws-properties-mediaconnect-routernetworkinterface-tag-syntax"></a>

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

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

```
{
  "[Key](#cfn-mediaconnect-routernetworkinterface-tag-key)" : String,
  "[Value](#cfn-mediaconnect-routernetworkinterface-tag-value)" : String
}
```

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

```
  [Key](#cfn-mediaconnect-routernetworkinterface-tag-key): String
  [Value](#cfn-mediaconnect-routernetworkinterface-tag-value): String
```

## Properties
<a name="aws-properties-mediaconnect-routernetworkinterface-tag-properties"></a>

`Key`  <a name="cfn-mediaconnect-routernetworkinterface-tag-key"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-mediaconnect-routernetworkinterface-tag-value"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::MediaConnect::RouterNetworkInterface VpcRouterNetworkInterfaceConfiguration
<a name="aws-properties-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration"></a>

The configuration settings for a router network interface within a VPC, including the security group IDs and subnet ID.

## Syntax
<a name="aws-properties-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-syntax"></a>

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

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

```
{
  "[SecurityGroupIds](#cfn-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-securitygroupids)" : [ String, ... ],
  "[SubnetId](#cfn-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-subnetid)" : String
}
```

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

```
  [SecurityGroupIds](#cfn-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-securitygroupids): 
    - String
  [SubnetId](#cfn-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-subnetid): String
```

## Properties
<a name="aws-properties-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-properties"></a>

`SecurityGroupIds`  <a name="cfn-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-securitygroupids"></a>
The IDs of the security groups to associate with the router network interface within the VPC.  
*Required*: Yes  
*Type*: Array of String  
*Minimum*: `1`  
*Maximum*: `5`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SubnetId`  <a name="cfn-mediaconnect-routernetworkinterface-vpcrouternetworkinterfaceconfiguration-subnetid"></a>
The ID of the subnet within the VPC to associate the router network interface with.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)