Did I find the right examples for you? yes no

All Samples(23)  |  Call(23)  |  Derive(0)  |  Import(0)
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID

:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key

:rtype: :class:`boto.sns.SNSConnection`
:return: A connection to Amazon's SNS

        def connect_sns(aws_access_key_id=None, aws_secret_access_key=None, **kwargs):
    """
    :type aws_access_key_id: string
    :param aws_access_key_id: Your AWS Access Key ID

    :type aws_secret_access_key: string
    :param aws_secret_access_key: Your AWS Secret Access Key

    :rtype: :class:`boto.sns.SNSConnection`
    :return: A connection to Amazon's SNS
    """
    from boto.sns import SNSConnection
    return SNSConnection(aws_access_key_id, aws_secret_access_key, **kwargs)
        


src/p/y/pyAmazonSNS-HEAD/send_sns.py   pyAmazonSNS(Download)
def send_sns(topic, msg, sub):
    region = boto.regioninfo.RegionInfo(name=tornado.options.options.region, endpoint="sns.%s.amazonaws.com" % (tornado.options.options.region))
 
    # AmazonAccountName: snspublish Credentials are here. This account can only post to SNS, so, if it is ever compromised, just delete the account!
    sns = boto.connect_sns("AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY", region=region)

src/e/c/ec2-clock-accuracy-research-HEAD/infrastructure/scripts/subscribe-topics.py   ec2-clock-accuracy-research(Download)
    pprint(region.name, indent=2)
    try:
        sns = boto.connect_sns(region=region, **credentials)
        arn = createTopicArn(region.name, args.topic)
        print 'Subscribing to topic ' + arn + ' with protocol ' + args.protocol + ' and endpoint ' + args.endpoint

src/e/c/ec2-clock-accuracy-research-HEAD/infrastructure/scripts/delete-topics.py   ec2-clock-accuracy-research(Download)
    pprint(region.name, indent=2)
    try:
        sns = boto.connect_sns(region=region, **credentials)
        arn = createTopicArn(region.name, args.topic)
        print 'Deleting topic ' + arn

src/e/c/ec2-clock-accuracy-research-HEAD/infrastructure/scripts/create-topics.py   ec2-clock-accuracy-research(Download)
    pprint(region.name, indent=2)
    try:
        sns = boto.connect_sns(region=region, **credentials)
        print 'Creating topic ' + args.topic
        topic = sns.create_topic(args.topic)

src/g/a/ga-bitbot-HEAD/AWS_SNS.py   ga-bitbot(Download)
                pass
 
        self.connection = boto.connect_sns(self.key, self.secret)
 
    def send(self,text_message):

src/p/a/paws-HEAD/ec2_easy_alarm.py   paws(Download)
    # Create a connection to the required services
    ec2 = boto.connect_ec2()
    sns = boto.connect_sns()
    cw = boto.connect_cloudwatch()
 

src/j/l/jldaws-0.4.27/src/jldaws/script_exec.py   jldaws(Download)
    # SUBSCRIBE TO TOPIC
    try:
        snsconn=boto.connect_sns()
        snsconn.subscribe_sqs_queue(topic_arn, q)
        logging.info("Subscribed to topic '%s'" % topic)

src/j/l/jldaws-0.4.27/src/jldaws/script_leader.py   jldaws(Download)
            'CreateTopicResult': {'TopicArn': 'arn:aws:sns:us-east-1:674707187858:election'}}}
        """
        snsconn=boto.connect_sns()
        snsconn.create_topic(topic_name)
 
    retry(create_topic, logmsg="Having trouble creating topic...")
 
    # SUBSCRIBE TO TOPIC
    def sub_topic():
        snsconn=boto.connect_sns()

src/j/l/jldaws-HEAD/src/jldaws/script_exec.py   jldaws(Download)
    # SUBSCRIBE TO TOPIC
    try:
        snsconn=boto.connect_sns()
        snsconn.subscribe_sqs_queue(topic_arn, q)
        logging.info("Subscribed to topic '%s'" % topic)

src/j/l/jldaws-HEAD/src/jldaws/script_leader.py   jldaws(Download)
            'CreateTopicResult': {'TopicArn': 'arn:aws:sns:us-east-1:674707187858:election'}}}
        """
        snsconn=boto.connect_sns()
        snsconn.create_topic(topic_name)
 
    retry(create_topic, logmsg="Having trouble creating topic...")
 
    # SUBSCRIBE TO TOPIC
    def sub_topic():
        snsconn=boto.connect_sns()

  1 | 2  Next