Skip to content
v2.278.0

CfnDestinationProps Struct ​

Properties for defining a CfnDestination.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the new resource.

Maximum length is 2048 characters.

expressionstringexpressionstrexpressionStringExpressionstringExpression*string required #
The rule name to send messages to.
expressionTypestringexpression_typestrexpressionTypeStringExpressionTypestringExpressionType*string required #
The type of value in `Expression` .
namestringnamestrnameStringNamestringName*string required #
The name of the new resource.
roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string #
The ARN of the IAM Role that authorizes the destination.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
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.