PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
codecommit
**To add or update a trigger in a repository** This example demonstrates how to update triggers named 'MyFirstTrigger' and 'MySecondTrigger' using an already-created JSON file (here named MyTriggers.json) that contains the structure of all the triggers for a repository named MyDemoRepo. To learn how to get the JSON for existing triggers, see the get-repository-triggers command. Command:: aws codecommit put-repository-triggers --repository-name MyDemoRepo file://MyTriggers.json JSON file sample contents: { "repositoryName": "MyDemoRepo", "triggers": [ { "destinationArn": "arn:aws:sns:us-east-1:80398EXAMPLE:MyCodeCommitTopic", "branches": [ "master", "preprod" ], "name": "MyFirstTrigger", "customData": "", "events": [ "all" ] }, { "destinationArn": "arn:aws:lambda:us-east-1:111111111111:function:MyCodeCommitPythonFunction", "branches": [], "name": "MySecondTrigger", "customData": "EXAMPLE", "events": [ "all" ] } ] } Output:: { "configurationId": "6fa51cd8-35c1-EXAMPLE" }
[-] get-merge-conflicts.rst
[edit]
[-] describe-pull-request-events.rst
[edit]
[-] update-pull-request-status.rst
[edit]
[-] credential-helper.rst
[edit]
[-] list-pull-requests.rst
[edit]
[-] delete-comment-content.rst
[edit]
[-] test-repository-triggers.rst
[edit]
[-] get-repository-triggers.rst
[edit]
[-] get-comments-for-pull-request.rst
[edit]
[-] delete-file.rst
[edit]
[+]
..
[-] batch-get-repositories.rst
[edit]
[-] put-repository-triggers.rst
[edit]
[-] delete-branch.rst
[edit]
[-] get-branch.rst
[edit]
[-] create-commit.rst
[edit]
[-] list-branches.rst
[edit]
[-] post-comment-for-pull-request.rst
[edit]
[-] get-pull-request.rst
[edit]
[-] update-repository-name.rst
[edit]
[-] update-default-branch.rst
[edit]
[-] get-comment.rst
[edit]
[-] update-comment.rst
[edit]
[-] get-commit.rst
[edit]
[-] get-file.rst
[edit]
[-] get-folder.rst
[edit]
[-] post-comment-reply.rst
[edit]
[-] put-file.rst
[edit]
[-] get-blob.rst
[edit]
[-] create-repository.rst
[edit]
[-] update-pull-request-description.rst
[edit]
[-] create-pull-request.rst
[edit]
[-] get-differences.rst
[edit]
[-] merge-pull-request-by-fast-forward.rst
[edit]
[-] list-repositories.rst
[edit]
[-] create-branch.rst
[edit]
[-] update-repository-description.rst
[edit]
[-] delete-repository.rst
[edit]
[-] update-pull-request-title.rst
[edit]
[-] get-comments-for-compared-commit.rst
[edit]
[-] get-repository.rst
[edit]
[-] post-comment-for-compared-commit.rst
[edit]