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 |
Deletes a branch for an Amplify app.
Synopsis
- data DeleteBranch = DeleteBranch' {
- appId :: Text
- branchName :: Text
- newDeleteBranch :: Text -> Text -> DeleteBranch
- deleteBranch_appId :: Lens' DeleteBranch Text
- deleteBranch_branchName :: Lens' DeleteBranch Text
- data DeleteBranchResponse = DeleteBranchResponse' {
- httpStatus :: Int
- branch :: Branch
- newDeleteBranchResponse :: Int -> Branch -> DeleteBranchResponse
- deleteBranchResponse_httpStatus :: Lens' DeleteBranchResponse Int
- deleteBranchResponse_branch :: Lens' DeleteBranchResponse Branch
Creating a Request
data DeleteBranch Source #
The request structure for the delete branch request.
See: newDeleteBranch
smart constructor.
DeleteBranch' | |
|
Instances
Create a value of DeleteBranch
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:appId:DeleteBranch'
, deleteBranch_appId
- The unique ID for an Amplify app.
$sel:branchName:DeleteBranch'
, deleteBranch_branchName
- The name for the branch.
Request Lenses
deleteBranch_appId :: Lens' DeleteBranch Text Source #
The unique ID for an Amplify app.
deleteBranch_branchName :: Lens' DeleteBranch Text Source #
The name for the branch.
Destructuring the Response
data DeleteBranchResponse Source #
The result structure for the delete branch request.
See: newDeleteBranchResponse
smart constructor.
DeleteBranchResponse' | |
|
Instances
newDeleteBranchResponse Source #
:: Int | |
-> Branch | |
-> DeleteBranchResponse |
Create a value of DeleteBranchResponse
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:DeleteBranchResponse'
, deleteBranchResponse_httpStatus
- The response's http status code.
$sel:branch:DeleteBranchResponse'
, deleteBranchResponse_branch
- The branch for an Amplify app, which maps to a third-party repository
branch.
Response Lenses
deleteBranchResponse_httpStatus :: Lens' DeleteBranchResponse Int Source #
The response's http status code.
deleteBranchResponse_branch :: Lens' DeleteBranchResponse Branch Source #
The branch for an Amplify app, which maps to a third-party repository branch.