preview
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
This page provides a comprehensive reference for aws sns actions available in the workflow automation actions catalog. These actions enable you to sns topic operations.
Prerequisites
Before using AWS actions in workflow automation, ensure you have:
- An AWS account with appropriate permissions.
- AWS credentials configured (IAM user credentials, IAM role ARN, or session credentials).
- The necessary IAM permissions for the specific AWS services you plan to use.
See Set up AWS credentials for information on how to create IAM users and IAM roles, and set up static and session AWS credentials for integration with workflow automation AWS actions.
Publish a message to an AWS SNS topic
Sends a message to an Amazon SNS topic. All subscribers to the topic will receive the message.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
message | Required | String | Messages must be UTF-8 encoded strings and at most 256 KB in size
|
topicArn | Optional | String | If you do not specify a value for the topicArn parameter, Must specify a value for the targetArn parameters.
|
targetArn | Optional | String | If you do not specify a value for the topicArn parameter, Must specify a value for the targetArn parameters.
|
subject | Optional | String |
|
MessageStructure | Optional | String |
|
messageAttributes | Optional | Map | |
messageDeduplicationId | Optional | String |
|
messageGroupId | Optional | String |
|
Output Field | Type | Example |
|---|---|---|
response | object |
Response syntax can be referred to sns-publish- Boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sns/client/publish.html) |
success | Boolean |
|
errorMessage | String |
|
name: sns-publish-test description: Publishes a notification to an SNS topic workflowInputs: arnRole: type: String steps: - name: aws_sns_publish_1 type: action action: aws.sns.publish version: '1' inputs: awsRoleArn: ${{ .workflowInputs.arnRole }} region: us-east-1 topicArn: arn:aws:sns:us-east-1:123456789012:workflow-test-topic subject: "Workflow Update" message: "The data processing workflow has completed successfully." next: end