MessageAttribute

class aws_cdk.aws_stepfunctions_tasks.MessageAttribute(*, value, data_type=None)

Bases: object

A message attribute to add to the SNS message.

Parameters
  • value (Any) – The value of the attribute.

  • data_type (Optional[MessageAttributeDataType]) – The data type for the attribute. Default: determined by type inspection if possible, fallback is String

See

https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html

Attributes

data_type

The data type for the attribute.

Default

determined by type inspection if possible, fallback is String

See

https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html#SNSMessageAttributes.DataTypes

Return type

Optional[MessageAttributeDataType]

value

The value of the attribute.

Return type

Any