Skip to content

Test Repository Triggers

codecommit_test_repository_triggers R Documentation

Tests the functionality of repository triggers by sending information to the trigger target

Description

Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.

Usage

codecommit_test_repository_triggers(repositoryName, triggers)

Arguments

repositoryName

[required] The name of the repository in which to test the triggers.

triggers

[required] The list of triggers to test.

Value

A list with the following syntax:

list(
  successfulExecutions = list(
    "string"
  ),
  failedExecutions = list(
    list(
      trigger = "string",
      failureMessage = "string"
    )
  )
)

Request syntax

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