amazonka-mediastore-1.6.1: Amazon Elemental MediaStore 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.MediaStore

Contents

Description

An AWS Elemental MediaStore container is a namespace that holds folders and objects. You use a container endpoint to create, read, and delete objects.

Synopsis

Service Configuration

mediaStore :: Service Source #

API version 2017-09-01 of the Amazon Elemental MediaStore SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by MediaStore.

PolicyNotFoundException

_PolicyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Could not perform an operation on a policy that does not exist.

CORSPolicyNotFoundException

_CORSPolicyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Could not perform an operation on a policy that does not exist.

ContainerInUseException

_ContainerInUseException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Resource already exists or is being updated.

InternalServerError

_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError Source #

The service is temporarily unavailable.

ContainerNotFoundException

_ContainerNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Could not perform an operation on a container that does not exist.

LimitExceededException

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

A service limit has been exceeded.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

CreateContainer

ListContainers

DeleteContainer

PutCORSPolicy

DeleteCORSPolicy

DescribeContainer

GetCORSPolicy

DeleteContainerPolicy

PutContainerPolicy

GetContainerPolicy

Types

ContainerStatus

data ContainerStatus Source #

Constructors

Active 
Creating 
Deleting 
Instances
Bounded ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Enum ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Eq ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Data ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Methods

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

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

toConstr :: ContainerStatus -> Constr #

dataTypeOf :: ContainerStatus -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Read ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Show ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Generic ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Associated Types

type Rep ContainerStatus :: Type -> Type #

Hashable ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

FromJSON ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToHeader ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToQuery ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToByteString ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

FromText ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToText ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

NFData ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Methods

rnf :: ContainerStatus -> () #

type Rep ContainerStatus Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

type Rep ContainerStatus = D1 (MetaData "ContainerStatus" "Network.AWS.MediaStore.Types.Sum" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) (C1 (MetaCons "Active" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Creating" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Deleting" PrefixI False) (U1 :: Type -> Type)))

MethodName

data MethodName Source #

Constructors

Delete 
Get 
Head 
Put 
Instances
Bounded MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Enum MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Eq MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Data MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Methods

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

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

toConstr :: MethodName -> Constr #

dataTypeOf :: MethodName -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Read MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Show MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Generic MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Associated Types

type Rep MethodName :: Type -> Type #

Hashable MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToJSON MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

FromJSON MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToHeader MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToQuery MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToByteString MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

FromText MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

ToText MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Methods

toText :: MethodName -> Text #

NFData MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

Methods

rnf :: MethodName -> () #

type Rep MethodName Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Sum

type Rep MethodName = D1 (MetaData "MethodName" "Network.AWS.MediaStore.Types.Sum" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) ((C1 (MetaCons "Delete" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Get" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Head" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Put" PrefixI False) (U1 :: Type -> Type)))

CORSRule

data CORSRule Source #

A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.

See: corsRule smart constructor.

Instances
Eq CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Data CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Methods

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

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

toConstr :: CORSRule -> Constr #

dataTypeOf :: CORSRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Show CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Generic CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Associated Types

type Rep CORSRule :: Type -> Type #

Methods

from :: CORSRule -> Rep CORSRule x #

to :: Rep CORSRule x -> CORSRule #

Hashable CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Methods

hashWithSalt :: Int -> CORSRule -> Int #

hash :: CORSRule -> Int #

ToJSON CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

FromJSON CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

NFData CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Methods

rnf :: CORSRule -> () #

type Rep CORSRule Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

type Rep CORSRule = D1 (MetaData "CORSRule" "Network.AWS.MediaStore.Types.Product" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) (C1 (MetaCons "CORSRule'" PrefixI True) ((S1 (MetaSel (Just "_crAllowedMethods") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [MethodName])) :*: S1 (MetaSel (Just "_crMaxAgeSeconds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_crAllowedHeaders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_crAllowedOrigins") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_crExposeHeaders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))

corsRule :: CORSRule Source #

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

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

  • crAllowedMethods - Identifies an HTTP method that the origin that is specified in the rule is allowed to execute. Each CORS rule must contain at least one AllowedMethod and one AllowedOrigin element.
  • crMaxAgeSeconds - The time in seconds that your browser caches the preflight response for the specified resource. A CORS rule can have only one MaxAgeSeconds element.
  • crAllowedHeaders - Specifies which headers are allowed in a preflight OPTIONS request through the Access-Control-Request-Headers header. Each header name that is specified in Access-Control-Request-Headers must have a corresponding entry in the rule. Only the headers that were requested are sent back. This element can contain only one wildcard character (*).
  • crAllowedOrigins - One or more response headers that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). Each CORS rule must have at least one AllowedOrigin element. The string value can include only one wildcard character (*), for example, http://*.example.com. Additionally, you can specify only one wildcard character to allow cross-origin access for all origins.
  • crExposeHeaders - One or more headers in the response that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). This element is optional for each rule.

crAllowedMethods :: Lens' CORSRule [MethodName] Source #

Identifies an HTTP method that the origin that is specified in the rule is allowed to execute. Each CORS rule must contain at least one AllowedMethod and one AllowedOrigin element.

crMaxAgeSeconds :: Lens' CORSRule (Maybe Natural) Source #

The time in seconds that your browser caches the preflight response for the specified resource. A CORS rule can have only one MaxAgeSeconds element.

crAllowedHeaders :: Lens' CORSRule [Text] Source #

Specifies which headers are allowed in a preflight OPTIONS request through the Access-Control-Request-Headers header. Each header name that is specified in Access-Control-Request-Headers must have a corresponding entry in the rule. Only the headers that were requested are sent back. This element can contain only one wildcard character (*).

crAllowedOrigins :: Lens' CORSRule [Text] Source #

One or more response headers that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). Each CORS rule must have at least one AllowedOrigin element. The string value can include only one wildcard character (*), for example, http://*.example.com. Additionally, you can specify only one wildcard character to allow cross-origin access for all origins.

crExposeHeaders :: Lens' CORSRule [Text] Source #

One or more headers in the response that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). This element is optional for each rule.

Container

data Container Source #

This section describes operations that you can perform on an AWS Elemental MediaStore container.

See: container smart constructor.

Instances
Eq Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Data Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Methods

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

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

toConstr :: Container -> Constr #

dataTypeOf :: Container -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Show Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Generic Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Associated Types

type Rep Container :: Type -> Type #

Hashable Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

FromJSON Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

NFData Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

Methods

rnf :: Container -> () #

type Rep Container Source # 
Instance details

Defined in Network.AWS.MediaStore.Types.Product

type Rep Container = D1 (MetaData "Container" "Network.AWS.MediaStore.Types.Product" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) (C1 (MetaCons "Container'" PrefixI True) ((S1 (MetaSel (Just "_cCreationTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_cStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ContainerStatus))) :*: (S1 (MetaSel (Just "_cARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cEndpoint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

container :: Container Source #

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

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

  • cCreationTime - Unix timestamp.
  • cStatus - The status of container creation or deletion. The status is one of the following: CREATING , ACTIVE , or DELETING . While the service is creating the container, the status is CREATING . When the endpoint is available, the status changes to ACTIVE .
  • cARN - The Amazon Resource Name (ARN) of the container. The ARN has the following format: arn:aws:region:that owns this container:containerof container For example: arn:aws:mediastore:us-west-2:111122223333:containermovies
  • cName - The name of the container.
  • cEndpoint - The DNS endpoint of the container. Use the endpoint to identify the specific container when sending requests to the data plane. The service assigns this value when the container is created. Once the value has been assigned, it does not change.

cStatus :: Lens' Container (Maybe ContainerStatus) Source #

The status of container creation or deletion. The status is one of the following: CREATING , ACTIVE , or DELETING . While the service is creating the container, the status is CREATING . When the endpoint is available, the status changes to ACTIVE .

cARN :: Lens' Container (Maybe Text) Source #

The Amazon Resource Name (ARN) of the container. The ARN has the following format: arn:aws:region:that owns this container:containerof container For example: arn:aws:mediastore:us-west-2:111122223333:containermovies

cName :: Lens' Container (Maybe Text) Source #

The name of the container.

cEndpoint :: Lens' Container (Maybe Text) Source #

The DNS endpoint of the container. Use the endpoint to identify the specific container when sending requests to the data plane. The service assigns this value when the container is created. Once the value has been assigned, it does not change.