Skip to content

Put Repository Triggers

codecommit_put_repository_triggers R Documentation

Replaces all triggers for a repository

Description

Replaces all triggers for a repository. Used to create or delete triggers.

Usage

codecommit_put_repository_triggers(repositoryName, triggers)

Arguments

repositoryName

[required] The name of the repository where you want to create or update the trigger.

triggers

[required] The JSON block of configuration information for each trigger.

Value

A list with the following syntax:

list(
  configurationId = "string"
)

Request syntax

svc$put_repository_triggers(
  repositoryName = "string",
  triggers = list(
    list(
      name = "string",
      destinationArn = "string",
      customData = "string",
      branches = list(
        "string"
      ),
      events = list(
        "all"|"updateReference"|"createReference"|"deleteReference"
      )
    )
  )
)