

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::IoTWireless::Destination
<a name="aws-resource-iotwireless-destination"></a>

Creates a new destination that maps a device message to an AWS IoT rule.

## Syntax
<a name="aws-resource-iotwireless-destination-syntax"></a>

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

### JSON
<a name="aws-resource-iotwireless-destination-syntax.json"></a>

```
{
  "Type" : "AWS::IoTWireless::Destination",
  "Properties" : {
      "[Description](#cfn-iotwireless-destination-description)" : String,
      "[Expression](#cfn-iotwireless-destination-expression)" : String,
      "[ExpressionType](#cfn-iotwireless-destination-expressiontype)" : String,
      "[Name](#cfn-iotwireless-destination-name)" : String,
      "[RoleArn](#cfn-iotwireless-destination-rolearn)" : String,
      "[Tags](#cfn-iotwireless-destination-tags)" : [ Tag, ... ]
    }
}
```

### YAML
<a name="aws-resource-iotwireless-destination-syntax.yaml"></a>

```
Type: AWS::IoTWireless::Destination
Properties:
  [Description](#cfn-iotwireless-destination-description): String
  [Expression](#cfn-iotwireless-destination-expression): String
  [ExpressionType](#cfn-iotwireless-destination-expressiontype): String
  [Name](#cfn-iotwireless-destination-name): String
  [RoleArn](#cfn-iotwireless-destination-rolearn): String
  [Tags](#cfn-iotwireless-destination-tags): 
    - Tag
```

## Properties
<a name="aws-resource-iotwireless-destination-properties"></a>

`Description`  <a name="cfn-iotwireless-destination-description"></a>
The description of the new resource. Maximum length is 2048 characters.  
*Required*: No  
*Type*: String  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Expression`  <a name="cfn-iotwireless-destination-expression"></a>
The rule name to send messages to.  
*Required*: Yes  
*Type*: String  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ExpressionType`  <a name="cfn-iotwireless-destination-expressiontype"></a>
The type of value in `Expression`.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `RuleName | MqttTopic | SnsTopic`  
*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-iotwireless-destination-name"></a>
The name of the new resource.  
*Required*: Yes  
*Type*: String  
*Pattern*: `[a-zA-Z0-9:_-]+`  
*Maximum*: `128`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`RoleArn`  <a name="cfn-iotwireless-destination-rolearn"></a>
The ARN of the IAM Role that authorizes the destination.  
*Required*: No  
*Type*: String  
*Minimum*: `20`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-iotwireless-destination-tags"></a>
The tags are an array of key-value pairs to attach to the specified resource. Tags can have a minimum of 0 and a maximum of 50 items.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-iotwireless-destination-tag.md)  
*Maximum*: `200`  
*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-iotwireless-destination-return-values"></a>

### Ref
<a name="aws-resource-iotwireless-destination-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the Destination name.

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

#### 
<a name="aws-resource-iotwireless-destination-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The ARN of the destination created.

# AWS::IoTWireless::Destination Tag
<a name="aws-properties-iotwireless-destination-tag"></a>

The tags to attach to the destination. Tags are metadata that you can use to manage a resource.

## Syntax
<a name="aws-properties-iotwireless-destination-tag-syntax"></a>

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

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

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

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

```
  [Key](#cfn-iotwireless-destination-tag-key): String
  [Value](#cfn-iotwireless-destination-tag-value): String
```

## Properties
<a name="aws-properties-iotwireless-destination-tag-properties"></a>

`Key`  <a name="cfn-iotwireless-destination-tag-key"></a>
The tag's key value.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `127`  
*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-iotwireless-destination-tag-value"></a>
The tag's value.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)