title: AWS SNS Java program to subscribe
body: <ul>
  <li>I am publishing a String message as message payload using SNS notification from Raspberry Pi using Python program and I want to pass that message payload to a Lambda function.</li>
  <li>I have configured the requirement in the SNS console on AWS i.e., I have created a topic and added the lambda function to its subscribers.</li>
  <li>Now, I want to get that message payload in the lambda function. But I can't find any method that can help me do that. For example, something like getMessage or something similar to that.</li>
  <li>So my questions are: Since I have configured the publishing and subscription on AWS, can I assume that the clients are connected and if I publish a message I should be getting that at the subscriber's end which is my lambda function here?
  Also, what's the technique in which I can get the message payload in my lambda function?
  I am adding the below as per cjwfuller's suggestion.</li>
  <li>Below I have written down the method for publishing in Python </li>
  </ul>
  
  <p><code>client_boto = boto3.client('sns', aws_access_key_id='@@@',
     aws_secret_access_key='@@@', region_name='us-west-2')</code></p>
  
  <p><code>REGION = 'us-west-2'</code></p>
  
  <p><code>TOPIC = 'arn:aws:sns:us-west-2:***:topic_name'</code></p>
  
  <p><code>MSG = ntpath.basename(f_string)</code></p>
  
  <p><code>SUBJECT_boto = 'File Name'</code></p>
  
  <p><code>pub =client_boto.publish(TopicArn = TOPIC, Message = MSG,
     Subject=SUBJECT_boto)</code></p>
  
  <p>I am writing the subscribing code in Java.
     Since my lambda func is already subscribed to it on AWS console,
     should my Java program include the subscription again or is there a
     way to get the msg payload directly.</p>