amazonka-codecommit-1.4.5: Amazon CodeCommit SDK.

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

Network.AWS.CodeCommit.PutRepositoryTriggers

Contents

Description

Replaces all triggers for a repository. This can be used to create or delete triggers.

Synopsis

Creating a Request

putRepositoryTriggers :: PutRepositoryTriggers Source #

Creates a value of PutRepositoryTriggers with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • prtTriggers - The JSON block of configuration information for each trigger.
  • prtRepositoryName - The name of the repository where you want to create or update the trigger.

data PutRepositoryTriggers Source #

Represents the input ofa put repository triggers operation.

See: putRepositoryTriggers smart constructor.

Instances

Eq PutRepositoryTriggers Source # 
Data PutRepositoryTriggers Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutRepositoryTriggers -> c PutRepositoryTriggers #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutRepositoryTriggers #

toConstr :: PutRepositoryTriggers -> Constr #

dataTypeOf :: PutRepositoryTriggers -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutRepositoryTriggers) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutRepositoryTriggers) #

gmapT :: (forall b. Data b => b -> b) -> PutRepositoryTriggers -> PutRepositoryTriggers #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutRepositoryTriggers -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutRepositoryTriggers -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutRepositoryTriggers -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutRepositoryTriggers -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutRepositoryTriggers -> m PutRepositoryTriggers #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutRepositoryTriggers -> m PutRepositoryTriggers #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutRepositoryTriggers -> m PutRepositoryTriggers #

Read PutRepositoryTriggers Source # 
Show PutRepositoryTriggers Source # 
Generic PutRepositoryTriggers Source # 
Hashable PutRepositoryTriggers Source # 
ToJSON PutRepositoryTriggers Source # 
NFData PutRepositoryTriggers Source # 

Methods

rnf :: PutRepositoryTriggers -> () #

AWSRequest PutRepositoryTriggers Source # 
ToPath PutRepositoryTriggers Source # 
ToHeaders PutRepositoryTriggers Source # 
ToQuery PutRepositoryTriggers Source # 
type Rep PutRepositoryTriggers Source # 
type Rep PutRepositoryTriggers = D1 (MetaData "PutRepositoryTriggers" "Network.AWS.CodeCommit.PutRepositoryTriggers" "amazonka-codecommit-1.4.5-92hxoO5NQbL79RJ3cHsV8Z" False) (C1 (MetaCons "PutRepositoryTriggers'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_prtTriggers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [RepositoryTrigger]))) (S1 (MetaSel (Just Symbol "_prtRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs PutRepositoryTriggers Source # 

Request Lenses

prtTriggers :: Lens' PutRepositoryTriggers [RepositoryTrigger] Source #

The JSON block of configuration information for each trigger.

prtRepositoryName :: Lens' PutRepositoryTriggers (Maybe Text) Source #

The name of the repository where you want to create or update the trigger.

Destructuring the Response

putRepositoryTriggersResponse Source #

Creates a value of PutRepositoryTriggersResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PutRepositoryTriggersResponse Source #

Represents the output of a put repository triggers operation.

See: putRepositoryTriggersResponse smart constructor.

Instances

Eq PutRepositoryTriggersResponse Source # 
Data PutRepositoryTriggersResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutRepositoryTriggersResponse -> c PutRepositoryTriggersResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutRepositoryTriggersResponse #

toConstr :: PutRepositoryTriggersResponse -> Constr #

dataTypeOf :: PutRepositoryTriggersResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutRepositoryTriggersResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutRepositoryTriggersResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutRepositoryTriggersResponse -> PutRepositoryTriggersResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutRepositoryTriggersResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutRepositoryTriggersResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutRepositoryTriggersResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutRepositoryTriggersResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutRepositoryTriggersResponse -> m PutRepositoryTriggersResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutRepositoryTriggersResponse -> m PutRepositoryTriggersResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutRepositoryTriggersResponse -> m PutRepositoryTriggersResponse #

Read PutRepositoryTriggersResponse Source # 
Show PutRepositoryTriggersResponse Source # 
Generic PutRepositoryTriggersResponse Source # 
NFData PutRepositoryTriggersResponse Source # 
type Rep PutRepositoryTriggersResponse Source # 
type Rep PutRepositoryTriggersResponse = D1 (MetaData "PutRepositoryTriggersResponse" "Network.AWS.CodeCommit.PutRepositoryTriggers" "amazonka-codecommit-1.4.5-92hxoO5NQbL79RJ3cHsV8Z" False) (C1 (MetaCons "PutRepositoryTriggersResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_prtrsConfigurationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_prtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

prtrsConfigurationId :: Lens' PutRepositoryTriggersResponse (Maybe Text) Source #

The system-generated unique ID for the create or update operation.