Class: Aws::CodeCommit::Types::RepositoryTrigger
- Inherits:
-
Struct
- Object
- Struct
- Aws::CodeCommit::Types::RepositoryTrigger
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-codecommit/types.rb
Overview
When making an API call, you may pass RepositoryTrigger data as a hash:
{
name: "RepositoryTriggerName", # required
destination_arn: "Arn", # required
custom_data: "RepositoryTriggerCustomData",
branches: ["BranchName"],
events: ["all"], # required, accepts all, updateReference, createReference, deleteReference
}
Information about a trigger for a repository.
Instance Attribute Summary collapse
-
#branches ⇒ Array<String>
The branches that will be included in the trigger configuration.
-
#custom_data ⇒ String
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
-
#destination_arn ⇒ String
The ARN of the resource that is the target for a trigger.
-
#events ⇒ Array<String>
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).
-
#name ⇒ String
The name of the trigger.
Instance Attribute Details
#branches ⇒ Array<String>
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
853 854 855 856 857 858 859 860 |
# File 'lib/aws-sdk-codecommit/types.rb', line 853 class RepositoryTrigger < Struct.new( :name, :destination_arn, :custom_data, :branches, :events) include Aws::Structure end |
#custom_data ⇒ String
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
853 854 855 856 857 858 859 860 |
# File 'lib/aws-sdk-codecommit/types.rb', line 853 class RepositoryTrigger < Struct.new( :name, :destination_arn, :custom_data, :branches, :events) include Aws::Structure end |
#destination_arn ⇒ String
The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
853 854 855 856 857 858 859 860 |
# File 'lib/aws-sdk-codecommit/types.rb', line 853 class RepositoryTrigger < Struct.new( :name, :destination_arn, :custom_data, :branches, :events) include Aws::Structure end |
#events ⇒ Array<String>
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).
<note markdown=“1”> The valid value “all” cannot be used with any other values.
</note>
853 854 855 856 857 858 859 860 |
# File 'lib/aws-sdk-codecommit/types.rb', line 853 class RepositoryTrigger < Struct.new( :name, :destination_arn, :custom_data, :branches, :events) include Aws::Structure end |
#name ⇒ String
The name of the trigger.
853 854 855 856 857 858 859 860 |
# File 'lib/aws-sdk-codecommit/types.rb', line 853 class RepositoryTrigger < Struct.new( :name, :destination_arn, :custom_data, :branches, :events) include Aws::Structure end |