amazonka-codecommit-1.5.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2017 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 Source #

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 Source #

Represents the input of a get blob operation.

See: getBlob smart constructor.

Instances

Eq GetBlob Source # 

Methods

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

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

Data GetBlob Source # 

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 Source # 
Show GetBlob Source # 
Generic GetBlob Source # 

Associated Types

type Rep GetBlob :: * -> * #

Methods

from :: GetBlob -> Rep GetBlob x #

to :: Rep GetBlob x -> GetBlob #

Hashable GetBlob Source # 

Methods

hashWithSalt :: Int -> GetBlob -> Int #

hash :: GetBlob -> Int #

ToJSON GetBlob Source # 
NFData GetBlob Source # 

Methods

rnf :: GetBlob -> () #

AWSRequest GetBlob Source # 

Associated Types

type Rs GetBlob :: * #

ToQuery GetBlob Source # 
ToPath GetBlob Source # 

Methods

toPath :: GetBlob -> ByteString #

ToHeaders GetBlob Source # 

Methods

toHeaders :: GetBlob -> [Header] #

type Rep GetBlob Source # 
type Rep GetBlob = D1 (MetaData "GetBlob" "Network.AWS.CodeCommit.GetBlob" "amazonka-codecommit-1.5.0-KpuBz1wlDu33SLAQFXGcI6" 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 Source # 

Request Lenses

gRepositoryName :: Lens' GetBlob Text Source #

The name of the repository that contains the blob.

gBlobId :: Lens' GetBlob Text Source #

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

Destructuring the Response

getBlobResponse Source #

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 Source #

Represents the output of a get blob operation.

See: getBlobResponse smart constructor.

Instances

Eq GetBlobResponse Source # 
Data GetBlobResponse Source # 

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 Source # 
Show GetBlobResponse Source # 
Generic GetBlobResponse Source # 
NFData GetBlobResponse Source # 

Methods

rnf :: GetBlobResponse -> () #

type Rep GetBlobResponse Source # 
type Rep GetBlobResponse = D1 (MetaData "GetBlobResponse" "Network.AWS.CodeCommit.GetBlob" "amazonka-codecommit-1.5.0-KpuBz1wlDu33SLAQFXGcI6" 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 Source #

  • - | The response status code.

gbrsContent :: Lens' GetBlobResponse ByteString Source #

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.