amazonka-codecommit-1.6.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.GetBlob

Contents

Description

Returns the base-64 encoded content of an individual blob within a repository.

Synopsis

Creating a Request

getBlob #

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.

data GetBlob #

Represents the input of a get blob operation.

See: getBlob smart constructor.

Instances

Eq GetBlob # 

Methods

(==) :: GetBlob -> GetBlob -> Bool #

(/=) :: GetBlob -> GetBlob -> Bool #

Data GetBlob # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBlob -> c GetBlob #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBlob #

toConstr :: GetBlob -> Constr #

dataTypeOf :: GetBlob -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetBlob) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBlob) #

gmapT :: (forall b. Data b => b -> b) -> GetBlob -> GetBlob #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBlob -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBlob -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBlob -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBlob -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBlob -> m GetBlob #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBlob -> m GetBlob #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBlob -> m GetBlob #

Read GetBlob # 
Show GetBlob # 
Generic GetBlob # 

Associated Types

type Rep GetBlob :: * -> * #

Methods

from :: GetBlob -> Rep GetBlob x #

to :: Rep GetBlob x -> GetBlob #

Hashable GetBlob # 

Methods

hashWithSalt :: Int -> GetBlob -> Int #

hash :: GetBlob -> Int #

ToJSON GetBlob # 
NFData GetBlob # 

Methods

rnf :: GetBlob -> () #

AWSRequest GetBlob # 

Associated Types

type Rs GetBlob :: * #

ToHeaders GetBlob # 

Methods

toHeaders :: GetBlob -> [Header] #

ToPath GetBlob # 

Methods

toPath :: GetBlob -> ByteString #

ToQuery GetBlob # 
type Rep GetBlob # 
type Rep GetBlob = D1 * (MetaData "GetBlob" "Network.AWS.CodeCommit.GetBlob" "amazonka-codecommit-1.6.0-DWhAPL2rvZuFmVENn91cJd" False) (C1 * (MetaCons "GetBlob'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_gBlobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs GetBlob # 

Request Lenses

gRepositoryName :: Lens' GetBlob Text #

The name of the repository that contains the blob.

gBlobId :: Lens' GetBlob Text #

The ID of the blob, which is its SHA-1 pointer.

Destructuring the Response

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: 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.

data GetBlobResponse #

Represents the output of a get blob operation.

See: getBlobResponse smart constructor.

Instances

Eq GetBlobResponse # 
Data GetBlobResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBlobResponse -> c GetBlobResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBlobResponse #

toConstr :: GetBlobResponse -> Constr #

dataTypeOf :: GetBlobResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetBlobResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBlobResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetBlobResponse -> GetBlobResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBlobResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBlobResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBlobResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBlobResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBlobResponse -> m GetBlobResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBlobResponse -> m GetBlobResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBlobResponse -> m GetBlobResponse #

Read GetBlobResponse # 
Show GetBlobResponse # 
Generic GetBlobResponse # 
NFData GetBlobResponse # 

Methods

rnf :: GetBlobResponse -> () #

type Rep GetBlobResponse # 
type Rep GetBlobResponse = D1 * (MetaData "GetBlobResponse" "Network.AWS.CodeCommit.GetBlob" "amazonka-codecommit-1.6.0-DWhAPL2rvZuFmVENn91cJd" False) (C1 * (MetaCons "GetBlobResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_gbrsContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Base64))))

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.