libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeCommit.Types.RepositoryTrigger

Description

 
Synopsis

Documentation

data RepositoryTrigger Source #

Information about a trigger for a repository.

See: newRepositoryTrigger smart constructor.

Constructors

RepositoryTrigger' 

Fields

  • branches :: Maybe [Text]

    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.

  • customData :: Maybe Text

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

  • name :: Text

    The name of the trigger.

  • destinationArn :: Text

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

  • events :: [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.

Instances

Instances details
Eq RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

Read RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

Show RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

Generic RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

Associated Types

type Rep RepositoryTrigger :: Type -> Type #

NFData RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

Methods

rnf :: RepositoryTrigger -> () #

Hashable RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

ToJSON RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

FromJSON RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

type Rep RepositoryTrigger Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.RepositoryTrigger

type Rep RepositoryTrigger = D1 ('MetaData "RepositoryTrigger" "Amazonka.CodeCommit.Types.RepositoryTrigger" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "RepositoryTrigger'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "customData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "destinationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RepositoryTriggerEventEnum])))))

newRepositoryTrigger Source #

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_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.