

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::AppSync::ChannelNamespace HandlerConfigs
<a name="aws-properties-appsync-channelnamespace-handlerconfigs"></a>

The `HandlerConfigs` property type specifies the configuration for the `OnPublish` and `OnSubscribe` handlers.

## Syntax
<a name="aws-properties-appsync-channelnamespace-handlerconfigs-syntax"></a>

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

### JSON
<a name="aws-properties-appsync-channelnamespace-handlerconfigs-syntax.json"></a>

```
{
  "[OnPublish](#cfn-appsync-channelnamespace-handlerconfigs-onpublish)" : HandlerConfig,
  "[OnSubscribe](#cfn-appsync-channelnamespace-handlerconfigs-onsubscribe)" : HandlerConfig
}
```

### YAML
<a name="aws-properties-appsync-channelnamespace-handlerconfigs-syntax.yaml"></a>

```
  [OnPublish](#cfn-appsync-channelnamespace-handlerconfigs-onpublish): 
    HandlerConfig
  [OnSubscribe](#cfn-appsync-channelnamespace-handlerconfigs-onsubscribe): 
    HandlerConfig
```

## Properties
<a name="aws-properties-appsync-channelnamespace-handlerconfigs-properties"></a>

`OnPublish`  <a name="cfn-appsync-channelnamespace-handlerconfigs-onpublish"></a>
The configuration for the `OnPublish` handler.  
*Required*: No  
*Type*: [HandlerConfig](aws-properties-appsync-channelnamespace-handlerconfig.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`OnSubscribe`  <a name="cfn-appsync-channelnamespace-handlerconfigs-onsubscribe"></a>
The configuration for the `OnSubscribe` handler.  
*Required*: No  
*Type*: [HandlerConfig](aws-properties-appsync-channelnamespace-handlerconfig.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)