??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
σ
ίUdac @` sΤ d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l Z y d d l m
Z
m Z Wn e k
r n Xd d
l m Z d Z d Z e d k rΠ e n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys7
module: sns
short_description: Send Amazon Simple Notification Service messages
description:
- Sends a notification to a topic on your Amazon SNS account.
version_added: 1.6
author:
- Michael J. Schultz (@mjschultz)
- Paul Arthur (@flowerysong)
options:
msg:
description:
- Default message for subscriptions without a more specific message.
required: true
aliases: [ "default" ]
subject:
description:
- Message subject
topic:
description:
- The name or ARN of the topic to publish to.
required: true
email:
description:
- Message to send to email subscriptions.
email_json:
description:
- Message to send to email-json subscriptions
version_added: '2.8'
sqs:
description:
- Message to send to SQS subscriptions
sms:
description:
- Message to send to SMS subscriptions
http:
description:
- Message to send to HTTP subscriptions
https:
description:
- Message to send to HTTPS subscriptions
application:
description:
- Message to send to application subscriptions
version_added: '2.8'
lambda:
description:
- Message to send to Lambda subscriptions
version_added: '2.8'
message_attributes:
description:
- Dictionary of message attributes. These are optional structured data entries to be sent along to the endpoint.
- This is in AWS's distinct Name/Type/Value format; see example below.
message_structure:
description:
- The payload format to use for the message.
- This must be 'json' to support protocol-specific messages (`http`, `https`, `email`, `sms`, `sqs`). It must be 'string' to support message_attributes.
default: json
choices: ['json', 'string']
extends_documentation_fragment:
- ec2
- aws
requirements:
- boto3
- botocore
sΦ
- name: Send default notification message via SNS
sns:
msg: '{{ inventory_hostname }} has completed the play.'
subject: Deploy complete!
topic: deploy
delegate_to: localhost
- name: Send notification messages via SNS with short message for SMS
sns:
msg: '{{ inventory_hostname }} has completed the play.'
sms: deployed!
subject: Deploy complete!
topic: deploy
delegate_to: localhost
- name: Send message with message_attributes
sns:
topic: "deploy"
msg: "message with extra details!"
message_attributes:
channel:
data_type: String
string_value: "mychannel"
color:
data_type: String
string_value: "green"
delegate_to: localhost
sώ
msg:
description: Human-readable diagnostic information
returned: always
type: str
sample: OK
message_id:
description: The message ID of the submitted message
returned: when success
type: str
sample: 2f681ef0-6d76-5c94-99b2-4ae3996ce57b
N( t
BotoCoreErrort ClientError( t AnsibleAWSModulec C` s’ d j | } y` | j d } | j } x> | D]6 } x- | d D]! } | d j | rE | d SqE Wq4 WWn, t t f k
r } | j | d d n Xd S( Ns :{0}t list_topicst Topicst TopicArnt msgs Failed to look up topic ARN( t formatt
get_paginatort paginatet endswithR R t
fail_json_awst None( t modulet clientt short_topict lookup_topict paginatort topic_iteratort responset topict e( ( sD /usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/sns.pyt arn_topic_lookup s
c
C` s d d d d d d d d g } t d t d
t d d g d
t d t d
t d t d d d t d d d g d d } x | D] } t | |