---
title: "DynamicTrigger: Constructor"
sidebarTitle: "Constructor"
description: "The `DynamicTrigger()` constructor creates a new [DynamicTrigger](/sdk/dynamictrigger/overview) instance."
---
## Parameters
The `TriggerClient` instance to use for registering the trigger.
The options for the dynamic trigger.
Used to uniquely identify a DynamicTrigger
An event from an [Integration](/integrations) package that you want to attach to the
DynamicTrigger. The event types will come through to the payload in your Job's run.
An external source fron an [Integration](/integrations) package
## Returns
```typescript
const dynamicOnIssueOpenedTrigger = new DynamicTrigger(client, {
id: "github-issue-opened",
event: events.onIssueOpened,
source: github.sources.repo,
});
```