

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::Connect::Workspace MediaItem
<a name="aws-properties-connect-workspace-mediaitem"></a>

Contains information about a media asset used in a workspace.

## Syntax
<a name="aws-properties-connect-workspace-mediaitem-syntax"></a>

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

### JSON
<a name="aws-properties-connect-workspace-mediaitem-syntax.json"></a>

```
{
  "[Source](#cfn-connect-workspace-mediaitem-source)" : {{String}},
  "[Type](#cfn-connect-workspace-mediaitem-type)" : {{String}}
}
```

### YAML
<a name="aws-properties-connect-workspace-mediaitem-syntax.yaml"></a>

```
  [Source](#cfn-connect-workspace-mediaitem-source): {{String}}
  [Type](#cfn-connect-workspace-mediaitem-type): {{String}}
```

## Properties
<a name="aws-properties-connect-workspace-mediaitem-properties"></a>

`Source`  <a name="cfn-connect-workspace-mediaitem-source"></a>
The source URL or data for the media asset.  
*Required*: No  
*Type*: String  
*Pattern*: `.*\S.*`  
*Minimum*: `1`  
*Maximum*: `533333`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Type`  <a name="cfn-connect-workspace-mediaitem-type"></a>
The type of media. Valid values are: `IMAGE_LOGO_FAVICON` and `IMAGE_LOGO_HORIZONTAL`.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `IMAGE_LOGO_LIGHT_FAVICON | IMAGE_LOGO_DARK_FAVICON | IMAGE_LOGO_LIGHT_HORIZONTAL | IMAGE_LOGO_DARK_HORIZONTAL`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)