Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
cloudtrail
/
File Content:
subscribe.pyc
� =��Xc @ s� d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z e j e � Z d Z d Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����Ni ( t get_account_id( t BasicCommand( t s3_bucket_exists( t ClientErrors6 policy/S3/AWSCloudTrail-S3BucketPolicy-2014-12-17.jsons7 policy/SNS/AWSCloudTrail-SnsTopicPolicy-2014-12-17.jsont CloudTrailErrorc B s e Z RS( ( t __name__t __module__( ( ( sJ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/cloudtrail/subscribe.pyR s t CloudTrailSubscribec B s e Z d Z d Z d Z d Z i d d 6e d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6g Z e Z d � Z d � Z d � Z d � Z d d � Z d d � Z d � Z d � Z d � Z RS( s� Subscribe/update a user account to CloudTrail, creating the required S3 bucket, the optional SNS topic, and starting the CloudTrail monitoring and logging. s create-subscriptions� Creates and configures the AWS resources necessary to use CloudTrail, creates a trail using those resources, and turns on logging.sn aws cloudtrail create-subscription (--s3-use-bucket|--s3-new-bucket) bucket-name [--sns-new-topic topic-name] t namet requireds Cloudtrail namet help_texts s3-new-buckets% Create a new S3 bucket with this names s3-use-buckets( Use an existing S3 bucket with this names s3-prefixs S3 object prefixs sns-new-topics% Create a new SNS topic with this names include-global-service-eventss( Whether to include global service eventss s3-custom-policys Custom S3 policy template or URLs sns-custom-policys! Custom SNS policy template or URLc C s$ | j | | � | j | | � d S( Ni ( t setup_servicest _call( t selft argst parsed_globals( ( sJ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/cloudtrail/subscribe.pyt _run_main@ s c C s� i d d 6d d 6} | j d k r3 | j | d <n | j d k rR | j | d <n t j d � | j j d | � | _ | j j d | � | _ | j j d | � | _ | j j j | _ | j d k r� | j | d <n | j j d | � | _ d S( Nt region_namet verifys&