| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.UpdatePullRequestTitle
Description
Replaces the title of a pull request.
Synopsis
- data UpdatePullRequestTitle = UpdatePullRequestTitle' {
- pullRequestId :: Text
- title :: Text
- newUpdatePullRequestTitle :: Text -> Text -> UpdatePullRequestTitle
- updatePullRequestTitle_pullRequestId :: Lens' UpdatePullRequestTitle Text
- updatePullRequestTitle_title :: Lens' UpdatePullRequestTitle Text
- data UpdatePullRequestTitleResponse = UpdatePullRequestTitleResponse' {}
- newUpdatePullRequestTitleResponse :: Int -> PullRequest -> UpdatePullRequestTitleResponse
- updatePullRequestTitleResponse_httpStatus :: Lens' UpdatePullRequestTitleResponse Int
- updatePullRequestTitleResponse_pullRequest :: Lens' UpdatePullRequestTitleResponse PullRequest
Creating a Request
data UpdatePullRequestTitle Source #
See: newUpdatePullRequestTitle smart constructor.
Constructors
| UpdatePullRequestTitle' | |
Fields
| |
Instances
newUpdatePullRequestTitle Source #
Create a value of UpdatePullRequestTitle 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:
UpdatePullRequestTitle, updatePullRequestTitle_pullRequestId - The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
UpdatePullRequestTitle, updatePullRequestTitle_title - The updated title of the pull request. This replaces the existing title.
Request Lenses
updatePullRequestTitle_pullRequestId :: Lens' UpdatePullRequestTitle Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
updatePullRequestTitle_title :: Lens' UpdatePullRequestTitle Text Source #
The updated title of the pull request. This replaces the existing title.
Destructuring the Response
data UpdatePullRequestTitleResponse Source #
See: newUpdatePullRequestTitleResponse smart constructor.
Constructors
| UpdatePullRequestTitleResponse' | |
Fields
| |
Instances
newUpdatePullRequestTitleResponse Source #
Arguments
| :: Int | |
| -> PullRequest | |
| -> UpdatePullRequestTitleResponse |
Create a value of UpdatePullRequestTitleResponse 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:httpStatus:UpdatePullRequestTitleResponse', updatePullRequestTitleResponse_httpStatus - The response's http status code.
$sel:pullRequest:UpdatePullRequestTitleResponse', updatePullRequestTitleResponse_pullRequest - Information about the updated pull request.
Response Lenses
updatePullRequestTitleResponse_httpStatus :: Lens' UpdatePullRequestTitleResponse Int Source #
The response's http status code.
updatePullRequestTitleResponse_pullRequest :: Lens' UpdatePullRequestTitleResponse PullRequest Source #
Information about the updated pull request.