{"id":26129502,"url":"https://github.com/mathworks-ref-arch/matlab-aws-sns","last_synced_at":"2026-04-22T19:33:19.187Z","repository":{"id":78586841,"uuid":"183271705","full_name":"mathworks-ref-arch/matlab-aws-sns","owner":"mathworks-ref-arch","description":"MATLAB Interface for AWS SNS","archived":false,"fork":false,"pushed_at":"2023-10-04T21:54:13.000Z","size":97,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-10T19:55:15.622Z","etag":null,"topics":["matlab-aws"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathworks-ref-arch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-24T16:58:56.000Z","updated_at":"2022-03-03T15:46:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"93fdaef1-2769-4e29-a0ef-7082f3233808","html_url":"https://github.com/mathworks-ref-arch/matlab-aws-sns","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/mathworks-ref-arch/matlab-aws-sns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-aws-sns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-aws-sns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-aws-sns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-aws-sns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathworks-ref-arch","download_url":"https://codeload.github.com/mathworks-ref-arch/matlab-aws-sns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-aws-sns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32152594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["matlab-aws"],"created_at":"2025-03-10T19:49:12.760Z","updated_at":"2026-04-22T19:33:19.170Z","avatar_url":"https://github.com/mathworks-ref-arch.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MATLAB Interface *for Amazon SNS*\n\nMATLAB® interface for the Amazon SNS™ service.\n\n## Requirements\n### MathWorks products\n* Requires MATLAB release R2017a or later.\n* AWS Common utilities found at https://github.com/mathworks-ref-arch/matlab-aws-common\n* (Recommended) MATLAB Interface *for Amazon SQS™* found at https://github.com/mathworks-ref-arch/matlab-aws-sqs\n\n### 3rd party products\n* Amazon Web Services account   \n\nTo build a required JAR file:   \n* [Maven](https://maven.apache.org/)\n* JDK 7 or later\n* [AWS SDK for Java](https://aws.amazon.com/sdk-for-java/) (version 1.11.567 or later)\n\n## Getting Started\nPlease refer to the [Documentation](Documentation/README.md) to get started.\nThe [Installation Instructions](Documentation/Installation.md) and [Getting Started](Documentation/GettingStarted.md) documents provide detailed instructions on setting up and using the interface. The easiest way to\nfetch this repository and all required dependencies is to clone the top-level repository using:\n\n```bash\ngit clone --recursive https://github.com/mathworks-ref-arch/mathworks-aws-support.git\n```\n\n### Build the AWS SDK for Java components\nThe MATLAB code uses the AWS SDK for Java and can be built using:\n```bash\ncd Software/Java\nmvn clean package\n```\n\nOnce built, use the ```/Software/MATLAB/startup.m``` function to initialize the interface which will use the\nAWS Credentials Provider Chain to authenticate. Please see the [relevant documentation](Documentation/Authentication.md)\non how to specify the credentials.\n\n### Publishing to an SNS Topic subscribed to an SQS queue\n```matlab\n% Create the client\nsns = aws.sns.Client();\nsns.useCredentialsProviderChain = false;\nsns.initialize();\n\n% Create a topic\ncreateTopicResult = sns.createTopic('mySNSTopicName');\ntopicArn = createTopicResult.getTopicArn();\n\n% List topics\nlistTopicsResult = sns.listTopics();\ntopicsTable = listTopicsResult.getTopics();\n\n% Subscribe the topic to an existing SQS queue\nsubscribeResult = sns.subscribe(topicArn,'sqs',queueArn);\nsubscriptionArn = subscribeResult.getSubscriptionArn();\n\n% Configure a custom SQS policy to allow publishing, in this case by all accounts\n% Requires the installation of the MATLAB Interface for Amazon SQS, the\n% creation of a queue and an SQS client\nkeySet = {'Policy'};\npolicyStr = ['{\"Version\":\"2012-10-17\",',...\n              '\"Id\":\"',queueName,'/settingSQSDefaultPolicy\",',...\n              '\"Statement\":[{',...\n              '\"Sid\":\"Allow-send-message-access\",',...\n              '\"Effect\":\"Allow\",',...\n              '\"Principal\":\"*\",',...\n              '\"Action\":\"SQS:SendMessage\",',...\n              '\"Resource\":\"',queueArn,'\"',...\n             '}]}'];                     \nvalueSet = {policyStr};\nattributes = containers.Map(keySet,valueSet);\nsetQueueAttributesResult = sqs.setQueueAttributes(queueUrl, attributes);\n% Allow time for attributes to be applied\npause(30);\n\n% Publish a message to the SNS topic\nmessageId = sns.publish(topicArn, 'My SNS message');\n\n% Allow some time for the message to propagate and\n% receive new SQS messages\npause(30);\nreceiveMessageResult = sqs.receiveMessage(queueUrl);\nmessages = receiveMessageResult.getMessages();\n\n% Note the body of the SNS message will be in JSON format and so will need to be\n% decoded to return the sent message\n% body = jsondecode(messages{n}.getBody());\n% body.Message\n% ans =\n%  'My SNS message'\n\n% Delete the topic and shutdown the client\ndeleteTopicResult = sns.deleteTopic(topicArn);\nsns.shutdown();\n```\n\n## Supported Products:\n1. [MATLAB](https://www.mathworks.com/products/matlab.html) (R2017a or later)\n2. [MATLAB Compiler™](https://www.mathworks.com/products/compiler.html) and [MATLAB Compiler SDK™](https://www.mathworks.com/products/matlab-compiler-sdk.html) (R2017a or later)\n3. [MATLAB Production Server™](https://www.mathworks.com/products/matlab-production-server.html) (R2017a or later)\n4. [MATLAB Parallel Server™](https://www.mathworks.com/products/distriben.html) (R2017a or later)\n\n## License\nThe license for the MATLAB Interface *for Amazon SNS* is available in the [LICENSE.md](LICENSE.md) file in this GitHub repository. This package uses certain third-party content which is licensed under separate license agreements. See the [pom.xml](Software/Java/pom.xml) file for third-party software downloaded at build time.\n\n## Enhancement Request\nProvide suggestions for additional features or capabilities using the following link:   \nhttps://www.mathworks.com/products/reference-architectures/request-new-reference-architectures.html\n\n## Support\nEmail: `mwlab@mathworks.com` or please log an issue.   \n\n[//]: #  (Copyright 2018 The MathWorks, Inc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-ref-arch%2Fmatlab-aws-sns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks-ref-arch%2Fmatlab-aws-sns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-ref-arch%2Fmatlab-aws-sns/lists"}