| 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.Amplify.DeleteBranch
Description
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.
Constructors
| DeleteBranch' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteBranch |
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:
DeleteBranch, deleteBranch_appId - The unique ID for an Amplify app.
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.
Constructors
| DeleteBranchResponse' | |
Fields
| |
Instances
newDeleteBranchResponse Source #
Arguments
| :: 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.