FRTc@snddlZddlZddlmZddlmZddlmZddlZdefdYZ dS(iN(tAWSQueryConnection(t RegionInfo(tjsont SNSConnectioncBseZdZejjdddZejjdddZejjdddZd'd'e d'd'd'd'd'dd'd'd d'e d'd Z d Z d Z d'd ZdZdZdZdZdZdZd'd'd'd'd'd'dZdZdZedZdZd'dZd'dZd'd'd'dZd'd'dZd'dZd'dZ d'd'dZ!d'd Z"d'd'd'd'd!Z#d'd"Z$d'd'd#Z%d'd$Z&d d%d&Z'RS((s Amazon Simple Notification Service Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build distributed web-enabled applications. Applications can use Amazon SNS to easily push real-time notification messages to interested subscribers over multiple delivery protocols. For more information about this product see `http://aws.amazon.com/sns`_. For detailed information about Amazon SNS features and their associated API calls, see the `Amazon SNS Developer Guide`_. We also provide SDKs that enable you to access Amazon SNS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as: cryptographically signing your service requests, retrying requests, and handling error responses. For a list of available SDKs, go to `Tools for Amazon Web Services`_. tBototsns_region_names us-east-1tsns_region_endpointssns.us-east-1.amazonaws.comt sns_versions 2010-03-31it/cCs| s't||j|jdt} n| |_tt|j|||||||||jj| | | d| d|d| dS(Ntconnection_clstsecurity_tokentvalidate_certst profile_name(RtDefaultRegionNametDefaultRegionEndpointRtregiontsupert__init__tendpoint(tselftaws_access_key_idtaws_secret_access_keyt is_securetporttproxyt proxy_portt proxy_usert proxy_passtdebugthttps_connection_factoryRtpathR R R ((s@/opt/freeware/lib/python2.7/site-packages/boto/sns/connection.pyR9s       c Cst|jdd}xnt|ttdt|dD]D\}}|\}}d||f} ||d| <||d| bsis %s.entry.%ss%s.keys%s.valueN(tsortedtitemstziptlisttrangetlen( Rtparamst dictionarytnameR#tkvtindexRtvaluetprefix((s@/opt/freeware/lib/python2.7/site-packages/boto/sns/connection.pyt_build_dict_as_list_paramsNs 5 cCsdgS(Nshmac-v4((R((s@/opt/freeware/lib/python2.7/site-packages/boto/sns/connection.pyt_required_auth_capabilityiscCs)i}|r||ds