put_repository_triggers
async
¶
put_repository_triggers(
repository_name: RepositoryName,
triggers: RepositoryTriggersList,
*,
config_overrides: Optional[AsyncCodeCommitClientConfig] = 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/async_code_commit.py
5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 | |