CodeCommit.Client.
get_repository_triggers
(**kwargs)¶Gets information about triggers configured for a repository.
See also: AWS API Documentation
Request Syntax
response = client.get_repository_triggers(
repositoryName='string'
)
[REQUIRED]
The name of the repository for which the trigger is configured.
{
'configurationId': 'string',
'triggers': [
{
'name': 'string',
'destinationArn': 'string',
'customData': 'string',
'branches': [
'string',
],
'events': [
'all'|'updateReference'|'createReference'|'deleteReference',
]
},
]
}
Response Structure
Represents the output of a get repository triggers operation.
The system-generated unique ID for the trigger.
The JSON block of configuration information for each trigger.
Information about a trigger for a repository.
The name of the trigger.
The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
Note
Although no content is required in the array, you must include the array itself.
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
Note
The valid value "all" cannot be used with any other values.
Exceptions
CodeCommit.Client.exceptions.RepositoryNameRequiredException
CodeCommit.Client.exceptions.InvalidRepositoryNameException
CodeCommit.Client.exceptions.RepositoryDoesNotExistException
CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
CodeCommit.Client.exceptions.EncryptionKeyDisabledException
CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
CodeCommit.Client.exceptions.EncryptionKeyUnavailableException