put_repository_triggers
¶
put_repository_triggers(
repository_name: RepositoryName,
triggers: RepositoryTriggersList,
*,
config_overrides: Optional[CodeCommitClientConfig] = None,
) -> PutRepositoryTriggersOutput
Replaces all triggers for a repository. Used to create or delete triggers.
Parameters:
-
repository_name(RepositoryName) –The name of the repository where you want to create or update the trigger.
-
triggers(RepositoryTriggersList) –The JSON block of configuration information for each trigger.
Raises:
-
EncryptionIntegrityChecksFailedException–An encryption integrity check failed.
-
EncryptionKeyAccessDeniedException–An encryption key could not be accessed.
-
EncryptionKeyDisabledException–The encryption key is disabled.
-
EncryptionKeyNotFoundException–No encryption key was found.
-
EncryptionKeyUnavailableException–The encryption key is not available.
-
InvalidRepositoryNameException–A specified repository name is not valid.
This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
-
InvalidRepositoryTriggerBranchNameException–One or more branch names specified for the trigger is not valid.
-
InvalidRepositoryTriggerCustomDataException–The custom data provided for the trigger is not valid.
-
InvalidRepositoryTriggerDestinationArnException–The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most common reason for this error is that the ARN does not meet the requirements for the service type.
-
InvalidRepositoryTriggerEventsException–One or more events specified for the trigger is not valid. Check to make sure that all events specified match the requirements for allowed events.
-
InvalidRepositoryTriggerNameException–The name of the trigger is not valid.
-
InvalidRepositoryTriggerRegionException–The Amazon Web Services Region for the trigger target does not match the Amazon Web Services Region for the repository. Triggers must be created in the same Amazon Web Services Region as the target for the trigger.
-
MaximumBranchesExceededException–The number of branches for the trigger was exceeded.
-
MaximumRepositoryTriggersExceededException–The number of triggers allowed for the repository was exceeded.
-
RepositoryDoesNotExistException–The specified repository does not exist.
-
RepositoryNameRequiredException–A repository name is required, but was not specified.
-
RepositoryTriggerBranchNameListRequiredException–At least one branch name is required, but was not specified in the trigger configuration.
-
RepositoryTriggerDestinationArnRequiredException–A destination ARN for the target service for the trigger is required, but was not specified.
-
RepositoryTriggerEventsListRequiredException–At least one event for the trigger is required, but was not specified.
-
RepositoryTriggerNameRequiredException–A name for the trigger is required, but was not specified.
-
RepositoryTriggersListRequiredException–The list of triggers for the repository is required, but was not specified.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codecommit/_services/code_commit.py
5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 | |