| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CodeCommit.GetBlob
Description
Returns the base-64 encoded content of an individual blob within a repository.
Synopsis
- getBlob :: Text -> Text -> GetBlob
- data GetBlob
- gRepositoryName :: Lens' GetBlob Text
- gBlobId :: Lens' GetBlob Text
- getBlobResponse :: Int -> ByteString -> GetBlobResponse
- data GetBlobResponse
- gbrsResponseStatus :: Lens' GetBlobResponse Int
- gbrsContent :: Lens' GetBlobResponse ByteString
Creating a Request
Creates a value of GetBlob with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gRepositoryName- The name of the repository that contains the blob.gBlobId- The ID of the blob, which is its SHA-1 pointer.
Represents the input of a get blob operation.
See: getBlob smart constructor.
Instances
Request Lenses
gRepositoryName :: Lens' GetBlob Text #
The name of the repository that contains the blob.
Destructuring the Response
Arguments
| :: Int | |
| -> ByteString | |
| -> GetBlobResponse |
Creates a value of GetBlobResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbrsResponseStatus- -- | The response status code.gbrsContent- The content of the blob, usually a file.-- Note: ThisLensautomatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLensaccepts and returns only raw unencoded data.
data GetBlobResponse #
Represents the output of a get blob operation.
See: getBlobResponse smart constructor.
Instances
Response Lenses
gbrsResponseStatus :: Lens' GetBlobResponse Int #
- - | The response status code.
gbrsContent :: Lens' GetBlobResponse ByteString #
The content of the blob, usually a file.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.