{"action":"created","comment":{"url":"https://api.github.com/repos/aws/aws-cli/pulls/comments/46989672","id":46989672,"diff_hunk":"@@ -49,3 +55,64 @@ def add_to_params(self, parameters, value):\n                 \"CallerReference\": caller_reference,\n                 \"Paths\": {\"Quantity\": len(value), \"Items\": value},\n                 }\n+\n+\n+def _add_sign(command_table, session, **kwargs):\n+    command_table['sign'] = SignCommand(session)\n+\n+\n+class SignCommand(BasicCommand):\n+    NAME = 'sign'\n+    DESCRIPTION = 'Sign a given url.'\n+    DATE_HELP = \"\"\"Supported formats include:\n+        YYYY-MM-DD (which means 0AM UTC of that day),\n+        YYYY-MM-DDThh:mm:ss (with default timezone as UTC),\n+        YYYY-MM-DDThh:mm:ss+hh:mm or YYYY-MM-DDThh:mm:ss-hh:mm (with offset),\n+        or EpochTime (which always means UTC).\n+        Do NOT use YYYYMMDD, because it will be treated as EpochTime.\"\"\"\n+    ARG_TABLE = [\n+        {\n+            'name': 'url',\n+            'no_paramfile': True,  # To disable the default paramfile behavior\n+            'required': True,\n+            'help_text': 'The URL to be signed',\n+        },\n+        {\n+            'name': 'key-pair-id',\n+            'required': True,\n+            'help_text': 'The ID of your CloudFront key pairs.',\n+        },\n+        {\n+            'name': 'private-key',\n+            'required': True,\n+            'help_text': 'file://path/to/your/private-key.pem',\n+        },\n+        {'name': 'date-less-than', 'required': True, 'help_text': DATE_HELP},\n+        {'name': 'date-greater-than', 'help_text': DATE_HELP},","path":"awscli/customizations/cloudfront.py","position":58,"original_position":58,"commit_id":"741e1a093fa5c1e014a38bebdc3684ada228b5fb","original_commit_id":"741e1a093fa5c1e014a38bebdc3684ada228b5fb","user":{"login":"kyleknap","id":4605355,"avatar_url":"https://avatars.githubusercontent.com/u/4605355?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleknap","html_url":"https://github.com/kyleknap","followers_url":"https://api.github.com/users/kyleknap/followers","following_url":"https://api.github.com/users/kyleknap/following{/other_user}","gists_url":"https://api.github.com/users/kyleknap/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleknap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleknap/subscriptions","organizations_url":"https://api.github.com/users/kyleknap/orgs","repos_url":"https://api.github.com/users/kyleknap/repos","events_url":"https://api.github.com/users/kyleknap/events{/privacy}","received_events_url":"https://api.github.com/users/kyleknap/received_events","type":"User","site_admin":false},"body":"Can we add wording specific to date-less-than and date-greater-than? The help text just says supported formats but says nothing about what the date is for.","created_at":"2015-12-08T18:07:00Z","updated_at":"2015-12-08T18:07:00Z","html_url":"https://github.com/aws/aws-cli/pull/1668#discussion_r46989672","pull_request_url":"https://api.github.com/repos/aws/aws-cli/pulls/1668","_links":{"self":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/comments/46989672"},"html":{"href":"https://github.com/aws/aws-cli/pull/1668#discussion_r46989672"},"pull_request":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/1668"}}},"pull_request":{"url":"https://api.github.com/repos/aws/aws-cli/pulls/1668","id":52709183,"html_url":"https://github.com/aws/aws-cli/pull/1668","diff_url":"https://github.com/aws/aws-cli/pull/1668.diff","patch_url":"https://github.com/aws/aws-cli/pull/1668.patch","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/1668","number":1668,"state":"open","locked":false,"title":"Cloudfront sign","user":{"login":"rayluo","id":821550,"avatar_url":"https://avatars.githubusercontent.com/u/821550?v=3","gravatar_id":"","url":"https://api.github.com/users/rayluo","html_url":"https://github.com/rayluo","followers_url":"https://api.github.com/users/rayluo/followers","following_url":"https://api.github.com/users/rayluo/following{/other_user}","gists_url":"https://api.github.com/users/rayluo/gists{/gist_id}","starred_url":"https://api.github.com/users/rayluo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayluo/subscriptions","organizations_url":"https://api.github.com/users/rayluo/orgs","repos_url":"https://api.github.com/users/rayluo/repos","events_url":"https://api.github.com/users/rayluo/events{/privacy}","received_events_url":"https://api.github.com/users/rayluo/received_events","type":"User","site_admin":false},"body":"This PR depends on boto/botocore#735\r\n\r\nThis PR also supersedes #1459.","created_at":"2015-12-04T19:17:04Z","updated_at":"2015-12-08T18:07:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55522df02a8c0edcf1993bc813c3e02f57b543e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aws/aws-cli/pulls/1668/commits","review_comments_url":"https://api.github.com/repos/aws/aws-cli/pulls/1668/comments","review_comment_url":"https://api.github.com/repos/aws/aws-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/1668/comments","statuses_url":"https://api.github.com/repos/aws/aws-cli/statuses/741e1a093fa5c1e014a38bebdc3684ada228b5fb","head":{"label":"rayluo:cloudfront-sign","ref":"cloudfront-sign","sha":"741e1a093fa5c1e014a38bebdc3684ada228b5fb","user":{"login":"rayluo","id":821550,"avatar_url":"https://avatars.githubusercontent.com/u/821550?v=3","gravatar_id":"","url":"https://api.github.com/users/rayluo","html_url":"https://github.com/rayluo","followers_url":"https://api.github.com/users/rayluo/followers","following_url":"https://api.github.com/users/rayluo/following{/other_user}","gists_url":"https://api.github.com/users/rayluo/gists{/gist_id}","starred_url":"https://api.github.com/users/rayluo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayluo/subscriptions","organizations_url":"https://api.github.com/users/rayluo/orgs","repos_url":"https://api.github.com/users/rayluo/repos","events_url":"https://api.github.com/users/rayluo/events{/privacy}","received_events_url":"https://api.github.com/users/rayluo/received_events","type":"User","site_admin":false},"repo":{"id":38785763,"name":"aws-cli","full_name":"rayluo/aws-cli","owner":{"login":"rayluo","id":821550,"avatar_url":"https://avatars.githubusercontent.com/u/821550?v=3","gravatar_id":"","url":"https://api.github.com/users/rayluo","html_url":"https://github.com/rayluo","followers_url":"https://api.github.com/users/rayluo/followers","following_url":"https://api.github.com/users/rayluo/following{/other_user}","gists_url":"https://api.github.com/users/rayluo/gists{/gist_id}","starred_url":"https://api.github.com/users/rayluo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayluo/subscriptions","organizations_url":"https://api.github.com/users/rayluo/orgs","repos_url":"https://api.github.com/users/rayluo/repos","events_url":"https://api.github.com/users/rayluo/events{/privacy}","received_events_url":"https://api.github.com/users/rayluo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rayluo/aws-cli","description":"Universal Command Line Interface for Amazon Web Services","fork":true,"url":"https://api.github.com/repos/rayluo/aws-cli","forks_url":"https://api.github.com/repos/rayluo/aws-cli/forks","keys_url":"https://api.github.com/repos/rayluo/aws-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rayluo/aws-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rayluo/aws-cli/teams","hooks_url":"https://api.github.com/repos/rayluo/aws-cli/hooks","issue_events_url":"https://api.github.com/repos/rayluo/aws-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rayluo/aws-cli/events","assignees_url":"https://api.github.com/repos/rayluo/aws-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rayluo/aws-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rayluo/aws-cli/tags","blobs_url":"https://api.github.com/repos/rayluo/aws-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rayluo/aws-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rayluo/aws-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rayluo/aws-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rayluo/aws-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rayluo/aws-cli/languages","stargazers_url":"https://api.github.com/repos/rayluo/aws-cli/stargazers","contributors_url":"https://api.github.com/repos/rayluo/aws-cli/contributors","subscribers_url":"https://api.github.com/repos/rayluo/aws-cli/subscribers","subscription_url":"https://api.github.com/repos/rayluo/aws-cli/subscription","commits_url":"https://api.github.com/repos/rayluo/aws-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rayluo/aws-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rayluo/aws-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rayluo/aws-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/rayluo/aws-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rayluo/aws-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rayluo/aws-cli/merges","archive_url":"https://api.github.com/repos/rayluo/aws-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rayluo/aws-cli/downloads","issues_url":"https://api.github.com/repos/rayluo/aws-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rayluo/aws-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rayluo/aws-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rayluo/aws-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rayluo/aws-cli/labels{/name}","releases_url":"https://api.github.com/repos/rayluo/aws-cli/releases{/id}","created_at":"2015-07-08T23:39:35Z","updated_at":"2015-07-08T23:39:38Z","pushed_at":"2015-12-08T18:03:35Z","git_url":"git://github.com/rayluo/aws-cli.git","ssh_url":"git@github.com:rayluo/aws-cli.git","clone_url":"https://github.com/rayluo/aws-cli.git","svn_url":"https://github.com/rayluo/aws-cli","homepage":null,"size":7593,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"aws:develop","ref":"develop","sha":"a5f6b3e4c5935616a78928288ba6069b915348ca","user":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"repo":{"id":6780767,"name":"aws-cli","full_name":"aws/aws-cli","owner":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws/aws-cli","description":"Universal Command Line Interface for Amazon Web Services","fork":false,"url":"https://api.github.com/repos/aws/aws-cli","forks_url":"https://api.github.com/repos/aws/aws-cli/forks","keys_url":"https://api.github.com/repos/aws/aws-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/aws-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/aws-cli/teams","hooks_url":"https://api.github.com/repos/aws/aws-cli/hooks","issue_events_url":"https://api.github.com/repos/aws/aws-cli/issues/events{/number}","events_url":"https://api.github.com/repos/aws/aws-cli/events","assignees_url":"https://api.github.com/repos/aws/aws-cli/assignees{/user}","branches_url":"https://api.github.com/repos/aws/aws-cli/branches{/branch}","tags_url":"https://api.github.com/repos/aws/aws-cli/tags","blobs_url":"https://api.github.com/repos/aws/aws-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/aws-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/aws-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/aws-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/aws-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/aws-cli/languages","stargazers_url":"https://api.github.com/repos/aws/aws-cli/stargazers","contributors_url":"https://api.github.com/repos/aws/aws-cli/contributors","subscribers_url":"https://api.github.com/repos/aws/aws-cli/subscribers","subscription_url":"https://api.github.com/repos/aws/aws-cli/subscription","commits_url":"https://api.github.com/repos/aws/aws-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/aws-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/aws-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/aws-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/aws-cli/contents/{+path}","compare_url":"https://api.github.com/repos/aws/aws-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/aws-cli/merges","archive_url":"https://api.github.com/repos/aws/aws-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/aws-cli/downloads","issues_url":"https://api.github.com/repos/aws/aws-cli/issues{/number}","pulls_url":"https://api.github.com/repos/aws/aws-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/aws-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/aws-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/aws-cli/labels{/name}","releases_url":"https://api.github.com/repos/aws/aws-cli/releases{/id}","created_at":"2012-11-20T16:07:36Z","updated_at":"2015-12-08T10:06:19Z","pushed_at":"2015-12-08T18:03:36Z","git_url":"git://github.com/aws/aws-cli.git","ssh_url":"git@github.com:aws/aws-cli.git","clone_url":"https://github.com/aws/aws-cli.git","svn_url":"https://github.com/aws/aws-cli","homepage":null,"size":8024,"stargazers_count":3358,"watchers_count":3358,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":480,"mirror_url":null,"open_issues_count":140,"forks":480,"open_issues":140,"watchers":3358,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/1668"},"html":{"href":"https://github.com/aws/aws-cli/pull/1668"},"issue":{"href":"https://api.github.com/repos/aws/aws-cli/issues/1668"},"comments":{"href":"https://api.github.com/repos/aws/aws-cli/issues/1668/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/1668/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/1668/commits"},"statuses":{"href":"https://api.github.com/repos/aws/aws-cli/statuses/741e1a093fa5c1e014a38bebdc3684ada228b5fb"}}}}