amazonka-mediastore-dataplane-1.6.0: Amazon Elemental MediaStore Data Plane 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.MediaStoreData.GetObject

Contents

Description

Downloads the object at the specified path.

Synopsis

Creating a Request

getObject Source #

Arguments

:: Text

goPath

-> GetObject 

Creates a value of GetObject with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • goRange - The range bytes of an object to retrieve. For more information about the Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 .
  • goPath - The path (including the file name) where the object is stored in the container. Format: namenamename For example, to upload the file mlaw.avi to the folder path premiumcanada in the container movies , enter the path premiumcanadamlaw.avi . Do not include the container name in this path. If the path includes any folders that don't exist yet, the service creates them. For example, suppose you have an existing premium/usa subfolder. If you specify premium/canada , the service creates a canada subfolder in the premium folder. You then have two subfolders, usa and canada , in the premium folder. There is no correlation between the path to the source and the path (folders) in the container in AWS Elemental MediaStore. For more information about folders and how they exist in a container, see the AWS Elemental MediaStore User Guide . The file name is the name that is assigned to the file that you upload. The file can have the same name inside and outside of AWS Elemental MediaStore, or it can have the same name. The file name can include or omit an extension.

data GetObject Source #

See: getObject smart constructor.

Instances

Eq GetObject Source # 
Data GetObject Source # 

Methods

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

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

toConstr :: GetObject -> Constr #

dataTypeOf :: GetObject -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetObject Source # 
Show GetObject Source # 
Generic GetObject Source # 

Associated Types

type Rep GetObject :: * -> * #

Hashable GetObject Source # 
NFData GetObject Source # 

Methods

rnf :: GetObject -> () #

AWSRequest GetObject Source # 
ToHeaders GetObject Source # 

Methods

toHeaders :: GetObject -> [Header] #

ToPath GetObject Source # 
ToQuery GetObject Source # 
type Rep GetObject Source # 
type Rep GetObject = D1 * (MetaData "GetObject" "Network.AWS.MediaStoreData.GetObject" "amazonka-mediastore-dataplane-1.6.0-Kk3OG8iEUhA6OSUNkx09QK" False) (C1 * (MetaCons "GetObject'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_goRange") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_goPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs GetObject Source # 

Request Lenses

goRange :: Lens' GetObject (Maybe Text) Source #

The range bytes of an object to retrieve. For more information about the Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 .

goPath :: Lens' GetObject Text Source #

The path (including the file name) where the object is stored in the container. Format: namenamename For example, to upload the file mlaw.avi to the folder path premiumcanada in the container movies , enter the path premiumcanadamlaw.avi . Do not include the container name in this path. If the path includes any folders that don't exist yet, the service creates them. For example, suppose you have an existing premium/usa subfolder. If you specify premium/canada , the service creates a canada subfolder in the premium folder. You then have two subfolders, usa and canada , in the premium folder. There is no correlation between the path to the source and the path (folders) in the container in AWS Elemental MediaStore. For more information about folders and how they exist in a container, see the AWS Elemental MediaStore User Guide . The file name is the name that is assigned to the file that you upload. The file can have the same name inside and outside of AWS Elemental MediaStore, or it can have the same name. The file name can include or omit an extension.

Destructuring the Response

getObjectResponse Source #

Creates a value of GetObjectResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetObjectResponse Source #

See: getObjectResponse smart constructor.

Instances

Show GetObjectResponse Source # 
Generic GetObjectResponse Source # 
type Rep GetObjectResponse Source # 
type Rep GetObjectResponse = D1 * (MetaData "GetObjectResponse" "Network.AWS.MediaStoreData.GetObject" "amazonka-mediastore-dataplane-1.6.0-Kk3OG8iEUhA6OSUNkx09QK" False) (C1 * (MetaCons "GetObjectResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gorsETag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gorsContentLength") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gorsCacheControl") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gorsLastModified") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gorsContentRange") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gorsContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gorsStatusCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_gorsBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * RsBody))))))

Response Lenses

gorsETag :: Lens' GetObjectResponse (Maybe Text) Source #

The ETag that represents a unique instance of the object.

gorsContentLength :: Lens' GetObjectResponse (Maybe Natural) Source #

The length of the object in bytes.

gorsCacheControl :: Lens' GetObjectResponse (Maybe Text) Source #

An optional CacheControl header that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 . Headers with a custom user-defined value are also accepted.

gorsLastModified :: Lens' GetObjectResponse (Maybe UTCTime) Source #

The date and time that the object was last modified.

gorsContentRange :: Lens' GetObjectResponse (Maybe Text) Source #

The range of bytes to retrieve.

gorsContentType :: Lens' GetObjectResponse (Maybe Text) Source #

The content type of the object.

gorsStatusCode :: Lens' GetObjectResponse Int Source #

The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other status codes indicate the type of error that occurred.

gorsBody :: Lens' GetObjectResponse RsBody Source #

The bytes of the object.