Skip to content
v2.275.0

SqsParametersProperty Struct Added in v2.275.0 ​

Parameters for sending events to an Amazon SQS queue target.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eventsv2 as eventsv2 } from 'aws-cdk-lib';
const sqsParametersProperty: eventsv2.CfnSubscriber.SqsParametersProperty = {
  delaySeconds: 'delaySeconds',
  messageAttributes: {
    messageAttributesKey: {
      dataType: 'dataType',

      // the properties below are optional
      binaryValue: 'binaryValue',
      stringValue: 'stringValue',
    },
  },
  messageDeduplicationId: 'messageDeduplicationId',
  messageGroupId: 'messageGroupId',
  messageSystemAttributes: {
    messageSystemAttributesKey: {
      dataType: 'dataType',

      // the properties below are optional
      binaryValue: 'binaryValue',
      stringValue: 'stringValue',
    },
  },
};

Properties ​

delaySecondsoptionalstringdelay_secondsoptionalstrdelaySecondsoptionalStringDelaySecondsoptionalstringDelaySecondsoptional*string#
The delay in seconds for the message, written as a string.

Accepts a literal value or a JSONata expression.

messageAttributesoptionalIResolvable | { [key: string]: IResolvable | CfnSubscriber.MessageAttributeValueProperty }message_attributesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, MessageAttributeValueProperty]]]messageAttributesoptionalIResolvableMessageAttributesoptionalIResolvableMessageAttributesoptionalinterface{}#
A map of message attribute names to values, with at most 50 attributes.

Amazon SQS and Amazon SNS enforce their own per-message attribute limits on delivery.

messageDeduplicationIdoptionalstringmessage_deduplication_idoptionalstrmessageDeduplicationIdoptionalStringMessageDeduplicationIdoptionalstringMessageDeduplicationIdoptional*string#
The message deduplication ID to use when the target is a FIFO queue.

Accepts a literal value or a JSONata expression.

messageGroupIdoptionalstringmessage_group_idoptionalstrmessageGroupIdoptionalStringMessageGroupIdoptionalstringMessageGroupIdoptional*string#
The message group ID to use when the target is a FIFO queue.

Accepts a literal value or a JSONata expression.

messageSystemAttributesoptionalIResolvable | { [key: string]: IResolvable | CfnSubscriber.MessageAttributeValueProperty }message_system_attributesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, MessageAttributeValueProperty]]]messageSystemAttributesoptionalIResolvableMessageSystemAttributesoptionalIResolvableMessageSystemAttributesoptionalinterface{}#
A map of message attribute names to values, with at most 50 attributes.

Amazon SQS and Amazon SNS enforce their own per-message attribute limits on delivery.