Giter Club home page Giter Club logo

amazon-sns-developer-guide's Introduction

amazon-sns-developer-guide's People

Contributors

adushechkin-plesk avatar amboller avatar blange avatar carlasp avatar chrisdunne avatar devlinbd2 avatar erikwhatyouwant avatar harishkm7 avatar imuhdork avatar jacklin213 avatar jamesiri avatar joshbean avatar longnd avatar mig281 avatar purlaksh avatar saharshpruthi avatar sborsay avatar shootsoft avatar shreyasgaonkar avatar theyokohamalife avatar timoschilling avatar tylerreid avatar vijaymali-ux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-sns-developer-guide's Issues

DNS Name of SNS Cert doesn't match documented url

In sns-example-code-endpoint-java-servlet.md I see:

You can do this by checking that the DNS Name value (DNS Name=sns.us-west-2.amazonaws.com in us-west-2; this will vary by Region) for the Subject Alternative Name field, as presented in the Amazon SNS Certificate, is the same for the received Amazon SNS messages.

Which says the region should be in the DNS Name on the certificate.
In practice I am not seeing the region in the DNS Name. Example test code I executed:

    final URL url =
        new URL(
            "<a url I pulled out of an SNS Message to my server>");
    final InputStream inStream = url.openStream();
    final CertificateFactory cf = CertificateFactory.getInstance("X.509");
    final X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream);
    inStream.close();

    Collection<List<?>> subjectAltNames = null;
    try {
      subjectAltNames = cert.getSubjectAlternativeNames();
    } catch (CertificateParsingException e) {
      System.out.println("CertificateParsingException");
    }
    if (subjectAltNames == null) {
      System.out.println("Certificate did not return subject alternative names");
    } else {
      for (List item : subjectAltNames) {
        System.out.println((int) item.get(0));
        Object data = item.get(1);
        if (data instanceof String) {
          System.out.println((String) data);
        }
      }
    }

Output:

2
sns.amazonaws.com

Document fields for CloudWatch logs for SMS deliveries

This issue is about this page https://github.com/awsdocs/amazon-sns-developer-guide/blob/main/doc_source/sms_stats_cloudwatch.md

Would it be possible to document the various fields in the JSON payload?

{
    "notification": {
        "messageId": "34d9b400-c6dd-5444-820d-fbeb0f1f54cf",
        "timestamp": "2016-06-28 00:40:34.558"
    },
    "delivery": {
        "phoneCarrier": "My Phone Carrier",
        "mnc": 270,
        "destination": "+1XXX5550100",
        "priceInUSD": 0.00645,
        "smsType": "Transactional",
        "mcc": 310,
        "providerResponse": "Message has been accepted by phone carrier",
        "dwellTimeMs": 599,
        "dwellTimeMsUntilDeviceAck": 1344
    },
    "status": "SUCCESS"
}

Some are self-explanatory but I have a hard time figuring out mnc or mcc for example

Unclear wording in SendMessageToHttp.prepare.html

The phrasing here seems like it's missing some words, possibly after some editing?

To be clear, Amazon SNS attempts to retry only after a delivery x-amz-sns-message-id header field

Could this description be clarified?

To be clear, Amazon SNS attempts to retry only after a delivery `x-amz-sns-message-id` header field\. By comparing the IDs of the messages you have processed with incoming messages, you can determine whether the message is a retry attempt\.

Mobile TTL SDK example conflicts with Message Attribute limitations

doc_source/sns-ttl.md includes a Java SDK example with the TTL message attribute and JSON message structure:

PublishRequest publishRequest = new PublishRequest();
publishRequest.setMessageAttributes(messageAttributes);
String message = "{\"title\":\"Test_Title\",\"description\":\"Test_Description\"}";
publishRequest.setMessage(message);
publishRequest.setMessageStructure("json");

doc_source/sns-message-attributes.md however includes a note:

Note
Message attributes are sent only when the message structure is String, not JSON.

I noticed because I am sending messages in JSON structure and would like to add TTL message attributes for APNS, but I don't know how with this limitation. :)

Object in key matching does not work

I've send the following in sns;

 {
	"store": {"Type": "String", "Value": "fans"},
	"customer_interests": {"Type": "String.Array", "Value": "[\"baseball\", \"basketball\"]"}
 }
 

And set the following policy:

{
 "store": [
   {
     "exists": true
   }
 ]
}

it does not receive the message.

While this works:

 {
	"store": "fans",
	"customer_interests": {"Type": "String.Array", "Value": "[\"baseball\", \"basketball\"]"}
 }

Is this intended?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.