Amazon SNS
This library allows you to interact with the Amazon SNS Service.
Prerequisites
Installation
npm i @winglibs/sns
Usage
bring sns;
let client = new sns.MobileNotifications();
test "sending an SMS" {
  client.publish(PhoneNumber: "+14155552671", Message: "Hello");
}
License
This library is licensed under the MIT License.
API Reference
Table of Contents
- Classes
- Interfaces
- Structs
MobileNotifications_sim (preflight class) 
No description
Constructor
new(): MobileNotifications_sim
Properties
No properties
Methods
| Signature | Description | 
|---|---|
| inflight publish(options: PublishOptions): PublishResult | No description | 
MobileNotifications (preflight class) 
MobileNotifications is a client for interacting with SNS mobile service. No cloud resources are created when using this class. When running the simulator in a non test environment, it will use the actual cloud implementation.
Constructor
new(): MobileNotifications
Properties
No properties
Methods
| Signature | Description | 
|---|---|
| inflight publish(options: PublishOptions): PublishResult | No description | 
MobileNotifications_aws (preflight class) 
No description
Constructor
new(): MobileNotifications_aws
Properties
No properties
Methods
| Signature | Description | 
|---|---|
| inflight publish(options: PublishOptions): PublishResult | No description | 
IMobileNotifications (interface) 
No description
Properties
| Name | Type | Description | 
|---|---|---|
| node | Node | The tree node. | 
Methods
| Signature | Description | 
|---|---|
| inflight publish(options: PublishOptions): PublishResult | No description | 
MessageAttributeValue (struct) 
No description
Properties
| Name | Type | Description | 
|---|---|---|
| DataType | str? | No description | 
| StringValue | str? | No description | 
PublishOptions (struct) 
No description
Properties
| Name | Type | Description | 
|---|---|---|
| Message | str? | No description | 
| MessageAttributes |  | No description | 
| PhoneNumber | str? | No description | 
| Subject | str? | No description | 
| TopicArn | str? | No description | 
PublishResult (struct) 
No description
Properties
| Name | Type | Description | 
|---|---|---|
| MessageId | str? | No description | 
| SequenceNumber | str? | No description |