@Stability(value=Stable)
public static interface CfnRepository.RepositoryTriggerProperty
extends software.amazon.jsii.JsiiSerializable
If you want to receive notifications about repository events, consider using notifications instead of triggers. For more information, see Configuring notifications for repository events .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codecommit.*;
RepositoryTriggerProperty repositoryTriggerProperty = RepositoryTriggerProperty.builder()
.destinationArn("destinationArn")
.events(List.of("events"))
.name("name")
// the properties below are optional
.branches(List.of("branches"))
.customData("customData")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRepository.RepositoryTriggerProperty.Builder
A builder for
CfnRepository.RepositoryTriggerProperty |
static class |
CfnRepository.RepositoryTriggerProperty.Jsii$Proxy
An implementation for
CfnRepository.RepositoryTriggerProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRepository.RepositoryTriggerProperty.Builder |
builder() |
default List<String> |
getBranches()
The branches to be included in the trigger configuration.
|
default String |
getCustomData()
Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
|
String |
getDestinationArn()
The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
|
List<String> |
getEvents()
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
|
String |
getName()
The name of the trigger.
|
@Stability(value=Stable) @NotNull String getDestinationArn()
@Stability(value=Stable) @NotNull List<String> getEvents()
The valid value "all" cannot be used with any other values.
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @Nullable default List<String> getBranches()
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.
@Stability(value=Stable) @Nullable default String getCustomData()
@Stability(value=Stable) static CfnRepository.RepositoryTriggerProperty.Builder builder()
Copyright © 2022. All rights reserved.