Skip to content

RepositoryTrigger

Source code in docs_src/capo_codecommit/types/repository_trigger.py
class RepositoryTrigger(TypedDict, closed=True):
    name: "capo_codecommit.types.repository_trigger_name.RepositoryTriggerName"
    """<p>The name of the trigger.</p>"""
    destination_arn: "capo_codecommit.types.arn.Arn"
    """<p>The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).</p>"""
    custom_data: NotRequired[
        "capo_codecommit.types.repository_trigger_custom_data.RepositoryTriggerCustomData"
    ]
    """<p>Any custom data associated with the trigger to be included in the information sent to the target of the trigger.</p>"""
    branches: NotRequired["capo_codecommit.types.branch_name_list.BranchNameList"]
    """<p>The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.</p> <note> <p>Although no content is required in the array, you must include the array itself.</p> </note>"""
    events: (
        "capo_codecommit.types.repository_trigger_event_list.RepositoryTriggerEventList"
    )
    """<p>The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS. </p> <note> <p>The valid value "all" cannot be used with any other values.</p> </note>"""

branches instance-attribute

branches: NotRequired[BranchNameList]

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.

custom_data instance-attribute

custom_data: NotRequired[RepositoryTriggerCustomData]

Any custom data associated with the trigger to be included in the information sent to the target of the trigger.

destination_arn instance-attribute

destination_arn: Arn

The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).

events instance-attribute

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.

name instance-attribute

The name of the trigger.