Struct aws_sdk_codecommit::types::RepositoryTrigger
source · #[non_exhaustive]pub struct RepositoryTrigger {
pub name: String,
pub destination_arn: String,
pub custom_data: Option<String>,
pub branches: Option<Vec<String>>,
pub events: Vec<RepositoryTriggerEventEnum>,
}
Expand description
Information about a trigger for a repository.
If you want to receive notifications about repository events, consider using notifications instead of triggers. For more information, see Configuring notifications for repository events.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The name of the trigger.
destination_arn: String
The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
custom_data: Option<String>
Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
branches: Option<Vec<String>>
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.
events: Vec<RepositoryTriggerEventEnum>
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.
Implementations§
source§impl RepositoryTrigger
impl RepositoryTrigger
sourcepub fn destination_arn(&self) -> &str
pub fn destination_arn(&self) -> &str
The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
sourcepub fn custom_data(&self) -> Option<&str>
pub fn custom_data(&self) -> Option<&str>
Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
sourcepub fn branches(&self) -> &[String]
pub fn branches(&self) -> &[String]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .branches.is_none()
.
sourcepub fn events(&self) -> &[RepositoryTriggerEventEnum]
pub fn events(&self) -> &[RepositoryTriggerEventEnum]
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.
source§impl RepositoryTrigger
impl RepositoryTrigger
sourcepub fn builder() -> RepositoryTriggerBuilder
pub fn builder() -> RepositoryTriggerBuilder
Creates a new builder-style object to manufacture RepositoryTrigger
.
Trait Implementations§
source§impl Clone for RepositoryTrigger
impl Clone for RepositoryTrigger
source§fn clone(&self) -> RepositoryTrigger
fn clone(&self) -> RepositoryTrigger
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RepositoryTrigger
impl Debug for RepositoryTrigger
source§impl PartialEq for RepositoryTrigger
impl PartialEq for RepositoryTrigger
source§fn eq(&self, other: &RepositoryTrigger) -> bool
fn eq(&self, other: &RepositoryTrigger) -> bool
self
and other
values to be equal, and is used
by ==
.