amazonka-codecommit-1.6.1: 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 # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Methods

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

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

Data GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.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 # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Show GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Generic GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Associated Types

type Rep GetBlob :: Type -> Type #

Methods

from :: GetBlob -> Rep GetBlob x #

to :: Rep GetBlob x -> GetBlob #

Hashable GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Methods

hashWithSalt :: Int -> GetBlob -> Int #

hash :: GetBlob -> Int #

ToJSON GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

AWSRequest GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Associated Types

type Rs GetBlob :: Type #

ToHeaders GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Methods

toHeaders :: GetBlob -> [Header] #

ToPath GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Methods

toPath :: GetBlob -> ByteString #

ToQuery GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

NFData GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Methods

rnf :: GetBlob -> () #

type Rep GetBlob # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

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

Defined in Network.AWS.CodeCommit.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 # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Data GetBlobResponse # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

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 # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Show GetBlobResponse # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Generic GetBlobResponse # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Associated Types

type Rep GetBlobResponse :: Type -> Type #

NFData GetBlobResponse # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

Methods

rnf :: GetBlobResponse -> () #

type Rep GetBlobResponse # 
Instance details

Defined in Network.AWS.CodeCommit.GetBlob

type Rep GetBlobResponse = D1 (MetaData "GetBlobResponse" "Network.AWS.CodeCommit.GetBlob" "amazonka-codecommit-1.6.1-1ka4IX1RLr8HTUNT3HFkna" False) (C1 (MetaCons "GetBlobResponse'" PrefixI True) (S1 (MetaSel (Just "_gbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_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.