Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data RepositoryTrigger = RepositoryTrigger' {
- branches :: Maybe [Text]
- customData :: Maybe Text
- name :: Text
- destinationArn :: Text
- events :: [RepositoryTriggerEventEnum]
- newRepositoryTrigger :: Text -> Text -> RepositoryTrigger
- repositoryTrigger_branches :: Lens' RepositoryTrigger (Maybe [Text])
- repositoryTrigger_customData :: Lens' RepositoryTrigger (Maybe Text)
- repositoryTrigger_name :: Lens' RepositoryTrigger Text
- repositoryTrigger_destinationArn :: Lens' RepositoryTrigger Text
- repositoryTrigger_events :: Lens' RepositoryTrigger [RepositoryTriggerEventEnum]
Documentation
data RepositoryTrigger Source #
Information about a trigger for a repository.
See: newRepositoryTrigger
smart constructor.
RepositoryTrigger' | |
|
Instances
:: Text | |
-> Text | |
-> RepositoryTrigger |
Create a value of RepositoryTrigger
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:branches:RepositoryTrigger'
, repositoryTrigger_branches
- The branches to be included in the trigger configuration. If you specify
an empty array, the trigger applies to all branches.
Although no content is required in the array, you must include the array itself.
$sel:customData:RepositoryTrigger'
, repositoryTrigger_customData
- Any custom data associated with the trigger to be included in the
information sent to the target of the trigger.
$sel:name:RepositoryTrigger'
, repositoryTrigger_name
- The name of the trigger.
$sel:destinationArn:RepositoryTrigger'
, repositoryTrigger_destinationArn
- The ARN of the resource that is the target for a trigger (for example,
the ARN of a topic in Amazon SNS).
$sel:events:RepositoryTrigger'
, repositoryTrigger_events
- The repository events that cause the trigger to run actions in another
service, such as sending a notification through Amazon SNS.
The valid value "all" cannot be used with any other values.
repositoryTrigger_branches :: Lens' RepositoryTrigger (Maybe [Text]) Source #
The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
Although no content is required in the array, you must include the array itself.
repositoryTrigger_customData :: Lens' RepositoryTrigger (Maybe Text) Source #
Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
repositoryTrigger_name :: Lens' RepositoryTrigger Text Source #
The name of the trigger.
repositoryTrigger_destinationArn :: Lens' RepositoryTrigger Text Source #
The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
repositoryTrigger_events :: Lens' RepositoryTrigger [RepositoryTriggerEventEnum] Source #
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
The valid value "all" cannot be used with any other values.