| 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.GetBranch
Description
Returns a branch for an Amplify app.
Synopsis
- data GetBranch = GetBranch' {
- appId :: Text
- branchName :: Text
- newGetBranch :: Text -> Text -> GetBranch
- getBranch_appId :: Lens' GetBranch Text
- getBranch_branchName :: Lens' GetBranch Text
- data GetBranchResponse = GetBranchResponse' {
- httpStatus :: Int
- branch :: Branch
- newGetBranchResponse :: Int -> Branch -> GetBranchResponse
- getBranchResponse_httpStatus :: Lens' GetBranchResponse Int
- getBranchResponse_branch :: Lens' GetBranchResponse Branch
Creating a Request
The request structure for the get branch request.
See: newGetBranch smart constructor.
Constructors
| GetBranch' | |
Fields
| |
Instances
Create a value of GetBranch 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:
GetBranch, getBranch_appId - The unique ID for an Amplify app.
GetBranch, getBranch_branchName - The name for the branch.
Request Lenses
Destructuring the Response
data GetBranchResponse Source #
See: newGetBranchResponse smart constructor.
Constructors
| GetBranchResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> Branch | |
| -> GetBranchResponse |
Create a value of GetBranchResponse 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:GetBranchResponse', getBranchResponse_httpStatus - The response's http status code.
$sel:branch:GetBranchResponse', getBranchResponse_branch - Undocumented member.
Response Lenses
getBranchResponse_httpStatus :: Lens' GetBranchResponse Int Source #
The response's http status code.
getBranchResponse_branch :: Lens' GetBranchResponse Branch Source #
Undocumented member.