aws-cdk-lib.aws_iotevents.CfnDetectorModel.SnsProperty

interface SnsProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.CfnDetectorModel.SnsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnDetectorModel_SnsProperty
Javasoftware.amazon.awscdk.services.iotevents.CfnDetectorModel.SnsProperty
Pythonaws_cdk.aws_iotevents.CfnDetectorModel.SnsProperty
TypeScript aws-cdk-lib » aws_iotevents » CfnDetectorModel » SnsProperty

Information required to publish the Amazon SNS message.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotevents as iotevents } from 'aws-cdk-lib';
const snsProperty: iotevents.CfnDetectorModel.SnsProperty = {
  targetArn: 'targetArn',

  // the properties below are optional
  payload: {
    contentExpression: 'contentExpression',
    type: 'type',
  },
};

Properties

NameTypeDescription
targetArnstringThe ARN of the Amazon SNS target where the message is sent.
payload?IResolvable | PayloadPropertyYou can configure the action payload when you send a message as an Amazon SNS push notification.

targetArn

Type: string

The ARN of the Amazon SNS target where the message is sent.


payload?

Type: IResolvable | PayloadProperty (optional)

You can configure the action payload when you send a message as an Amazon SNS push notification.