| 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.GetFolder
Description
Returns the contents of a specified folder in a repository.
Synopsis
- data GetFolder = GetFolder' {}
- newGetFolder :: Text -> Text -> GetFolder
- getFolder_commitSpecifier :: Lens' GetFolder (Maybe Text)
- getFolder_repositoryName :: Lens' GetFolder Text
- getFolder_folderPath :: Lens' GetFolder Text
- data GetFolderResponse = GetFolderResponse' {
- files :: Maybe [File]
- subFolders :: Maybe [Folder]
- subModules :: Maybe [SubModule]
- symbolicLinks :: Maybe [SymbolicLink]
- treeId :: Maybe Text
- httpStatus :: Int
- commitId :: Text
- folderPath :: Text
- newGetFolderResponse :: Int -> Text -> Text -> GetFolderResponse
- getFolderResponse_files :: Lens' GetFolderResponse (Maybe [File])
- getFolderResponse_subFolders :: Lens' GetFolderResponse (Maybe [Folder])
- getFolderResponse_subModules :: Lens' GetFolderResponse (Maybe [SubModule])
- getFolderResponse_symbolicLinks :: Lens' GetFolderResponse (Maybe [SymbolicLink])
- getFolderResponse_treeId :: Lens' GetFolderResponse (Maybe Text)
- getFolderResponse_httpStatus :: Lens' GetFolderResponse Int
- getFolderResponse_commitId :: Lens' GetFolderResponse Text
- getFolderResponse_folderPath :: Lens' GetFolderResponse Text
Creating a Request
See: newGetFolder smart constructor.
Constructors
| GetFolder' | |
Fields
| |
Instances
Create a value of GetFolder 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:commitSpecifier:GetFolder', getFolder_commitSpecifier - A fully qualified reference used to identify a commit that contains the
version of the folder's content to return. A fully qualified reference
can be a commit ID, branch name, tag, or reference such as HEAD. If no
specifier is provided, the folder content is returned as it exists in
the HEAD commit.
GetFolder, getFolder_repositoryName - The name of the repository.
GetFolder, getFolder_folderPath - The fully qualified path to the folder whose contents are returned,
including the folder name. For example, /examples is a fully-qualified
path to a folder named examples that was created off of the root
directory (/) of a repository.
Request Lenses
getFolder_commitSpecifier :: Lens' GetFolder (Maybe Text) Source #
A fully qualified reference used to identify a commit that contains the version of the folder's content to return. A fully qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit.
getFolder_folderPath :: Lens' GetFolder Text Source #
The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
Destructuring the Response
data GetFolderResponse Source #
See: newGetFolderResponse smart constructor.
Constructors
| GetFolderResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> GetFolderResponse |
Create a value of GetFolderResponse 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:files:GetFolderResponse', getFolderResponse_files - The list of files in the specified folder, if any.
$sel:subFolders:GetFolderResponse', getFolderResponse_subFolders - The list of folders that exist under the specified folder, if any.
$sel:subModules:GetFolderResponse', getFolderResponse_subModules - The list of submodules in the specified folder, if any.
$sel:symbolicLinks:GetFolderResponse', getFolderResponse_symbolicLinks - The list of symbolic links to other files and folders in the specified
folder, if any.
GetFolderResponse, getFolderResponse_treeId - The full SHA-1 pointer of the tree information for the commit that
contains the folder.
$sel:httpStatus:GetFolderResponse', getFolderResponse_httpStatus - The response's http status code.
GetFolderResponse, getFolderResponse_commitId - The full commit ID used as a reference for the returned version of the
folder content.
GetFolder, getFolderResponse_folderPath - The fully qualified path of the folder whose contents are returned.
Response Lenses
getFolderResponse_files :: Lens' GetFolderResponse (Maybe [File]) Source #
The list of files in the specified folder, if any.
getFolderResponse_subFolders :: Lens' GetFolderResponse (Maybe [Folder]) Source #
The list of folders that exist under the specified folder, if any.
getFolderResponse_subModules :: Lens' GetFolderResponse (Maybe [SubModule]) Source #
The list of submodules in the specified folder, if any.
getFolderResponse_symbolicLinks :: Lens' GetFolderResponse (Maybe [SymbolicLink]) Source #
The list of symbolic links to other files and folders in the specified folder, if any.
getFolderResponse_treeId :: Lens' GetFolderResponse (Maybe Text) Source #
The full SHA-1 pointer of the tree information for the commit that contains the folder.
getFolderResponse_httpStatus :: Lens' GetFolderResponse Int Source #
The response's http status code.
getFolderResponse_commitId :: Lens' GetFolderResponse Text Source #
The full commit ID used as a reference for the returned version of the folder content.
getFolderResponse_folderPath :: Lens' GetFolderResponse Text Source #
The fully qualified path of the folder whose contents are returned.