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 |
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.
GetBranch' | |
|
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:
$sel:appId:GetBranch'
, getBranch_appId
- The unique ID for an Amplify app.
$sel:branchName:GetBranch'
, getBranch_branchName
- The name for the branch.
Request Lenses
Destructuring the Response
data GetBranchResponse Source #
See: newGetBranchResponse
smart constructor.
GetBranchResponse' | |
|
Instances
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.