interface SqsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoTEvents.CfnDetectorModel.SqsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnDetectorModel_SqsProperty |
Java | software.amazon.awscdk.services.iotevents.CfnDetectorModel.SqsProperty |
Python | aws_cdk.aws_iotevents.CfnDetectorModel.SqsProperty |
TypeScript | aws-cdk-lib » aws_iotevents » CfnDetectorModel » SqsProperty |
Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
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 sqsProperty: iotevents.CfnDetectorModel.SqsProperty = {
queueUrl: 'queueUrl',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
useBase64: false,
};
Properties
Name | Type | Description |
---|---|---|
queue | string | The URL of the SQS queue where the data is written. |
payload? | IResolvable | Payload | You can configure the action payload when you send a message to an Amazon SQS queue. |
use | boolean | IResolvable | Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. |
queueUrl
Type:
string
The URL of the SQS queue where the data is written.
payload?
Type:
IResolvable
|
Payload
(optional)
You can configure the action payload when you send a message to an Amazon SQS queue.
useBase64?
Type:
boolean |
IResolvable
(optional)
Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue.
Otherwise, set this to FALSE.