Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Replaces all triggers for a repository. Used to create or delete triggers.
Synopsis
- data PutRepositoryTriggers = PutRepositoryTriggers' {}
- newPutRepositoryTriggers :: Text -> PutRepositoryTriggers
- putRepositoryTriggers_repositoryName :: Lens' PutRepositoryTriggers Text
- putRepositoryTriggers_triggers :: Lens' PutRepositoryTriggers [RepositoryTrigger]
- data PutRepositoryTriggersResponse = PutRepositoryTriggersResponse' {}
- newPutRepositoryTriggersResponse :: Int -> PutRepositoryTriggersResponse
- putRepositoryTriggersResponse_configurationId :: Lens' PutRepositoryTriggersResponse (Maybe Text)
- putRepositoryTriggersResponse_httpStatus :: Lens' PutRepositoryTriggersResponse Int
Creating a Request
data PutRepositoryTriggers Source #
Represents the input of a put repository triggers operation.
See: newPutRepositoryTriggers
smart constructor.
PutRepositoryTriggers' | |
|
Instances
newPutRepositoryTriggers Source #
Create a value of PutRepositoryTriggers
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:repositoryName:PutRepositoryTriggers'
, putRepositoryTriggers_repositoryName
- The name of the repository where you want to create or update the
trigger.
$sel:triggers:PutRepositoryTriggers'
, putRepositoryTriggers_triggers
- The JSON block of configuration information for each trigger.
Request Lenses
putRepositoryTriggers_repositoryName :: Lens' PutRepositoryTriggers Text Source #
The name of the repository where you want to create or update the trigger.
putRepositoryTriggers_triggers :: Lens' PutRepositoryTriggers [RepositoryTrigger] Source #
The JSON block of configuration information for each trigger.
Destructuring the Response
data PutRepositoryTriggersResponse Source #
Represents the output of a put repository triggers operation.
See: newPutRepositoryTriggersResponse
smart constructor.
PutRepositoryTriggersResponse' | |
|
Instances
newPutRepositoryTriggersResponse Source #
Create a value of PutRepositoryTriggersResponse
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:configurationId:PutRepositoryTriggersResponse'
, putRepositoryTriggersResponse_configurationId
- The system-generated unique ID for the create or update operation.
$sel:httpStatus:PutRepositoryTriggersResponse'
, putRepositoryTriggersResponse_httpStatus
- The response's http status code.
Response Lenses
putRepositoryTriggersResponse_configurationId :: Lens' PutRepositoryTriggersResponse (Maybe Text) Source #
The system-generated unique ID for the create or update operation.
putRepositoryTriggersResponse_httpStatus :: Lens' PutRepositoryTriggersResponse Int Source #
The response's http status code.