# CfnDestinationProps

Properties for defining a `CfnDestination`.

Used as props by: [CfnDestination](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotwireless.CfnDestination.html)

- Source: Generated at build time
- Type last changed: v2.97.0 · 22 Sep 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotwireless as iotwireless } from 'aws-cdk-lib';
const cfnDestinationProps: iotwireless.CfnDestinationProps = {
  expression: 'expression',
  expressionType: 'expressionType',
  name: 'name',

  // the properties below are optional
  description: 'description',
  roleArn: 'roleArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotwireless as iotwireless

cfn_destination_props = iotwireless.CfnDestinationProps(
    expression="expression",
    expression_type="expressionType",
    name="name",

    # the properties below are optional
    description="description",
    role_arn="roleArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotwireless.*;

CfnDestinationProps cfnDestinationProps = CfnDestinationProps.builder()
        .expression("expression")
        .expressionType("expressionType")
        .name("name")

        // the properties below are optional
        .description("description")
        .roleArn("roleArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTWireless;

var cfnDestinationProps = new CfnDestinationProps {
    Expression = "expression",
    ExpressionType = "expressionType",
    Name = "name",

    // the properties below are optional
    Description = "description",
    RoleArn = "roleArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDestinationProps := &CfnDestinationProps{
	Expression: jsii.String("expression"),
	ExpressionType: jsii.String("expressionType"),
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	RoleArn: jsii.String("roleArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — The description of the new resource.

  Maximum length is 2048 characters.

- `expression`: string (required) — The rule name to send messages to.

- `expressionType`: string (required) — The type of value in `Expression` .

- `name`: string (required) — The name of the new resource.

- `roleArn`: string — The ARN of the IAM Role that authorizes the destination.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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.
