- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
GetRepositoryTriggersCommand
Gets information about triggers configured for a repository.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { CodeCommitClient, GetRepositoryTriggersCommand } from "@aws-sdk/client-codecommit"; // ES Modules import
// const { CodeCommitClient, GetRepositoryTriggersCommand } = require("@aws-sdk/client-codecommit"); // CommonJS import
const client = new CodeCommitClient(config);
const input = { // GetRepositoryTriggersInput
repositoryName: "STRING_VALUE", // required
};
const command = new GetRepositoryTriggersCommand(input);
const response = await client.send(command);
// { // GetRepositoryTriggersOutput
// configurationId: "STRING_VALUE",
// triggers: [ // RepositoryTriggersList
// { // RepositoryTrigger
// name: "STRING_VALUE", // required
// destinationArn: "STRING_VALUE", // required
// customData: "STRING_VALUE",
// branches: [ // BranchNameList
// "STRING_VALUE",
// ],
// events: [ // RepositoryTriggerEventList // required
// "all" || "updateReference" || "createReference" || "deleteReference",
// ],
// },
// ],
// };
GetRepositoryTriggersCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
repositoryName Required | string | undefined | The name of the repository for which the trigger is configured. |
GetRepositoryTriggersCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
configurationId | string | undefined | The system-generated unique ID for the trigger. |
triggers | RepositoryTrigger[] | undefined | The JSON block of configuration information for each trigger. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
EncryptionIntegrityChecksFailedException | server | An encryption integrity check failed. |
EncryptionKeyAccessDeniedException | client | An encryption key could not be accessed. |
EncryptionKeyDisabledException | client | The encryption key is disabled. |
EncryptionKeyNotFoundException | client | No encryption key was found. |
EncryptionKeyUnavailableException | client | The encryption key is not available. |
InvalidRepositoryNameException | client | 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. |
RepositoryDoesNotExistException | client | The specified repository does not exist. |
RepositoryNameRequiredException | client | A repository name is required, but was not specified. |
CodeCommitServiceException | Base exception class for all service exceptions from CodeCommit service. |