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

Contents

Description

Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.

Synopsis

Creating a Request

createContainer Source #

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

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

  • ccContainerName - The name for the container. The name must be from 1 to 255 characters. Container names must be unique to your AWS account within a specific region. As an example, you could create a container named movies in every region, as long as you don’t have an existing container with that name.

data CreateContainer Source #

See: createContainer smart constructor.

Instances
Eq CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Data CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Methods

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

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

toConstr :: CreateContainer -> Constr #

dataTypeOf :: CreateContainer -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Show CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Generic CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Associated Types

type Rep CreateContainer :: Type -> Type #

Hashable CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

ToJSON CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

AWSRequest CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Associated Types

type Rs CreateContainer :: Type #

ToHeaders CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

ToPath CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

ToQuery CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

NFData CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Methods

rnf :: CreateContainer -> () #

type Rep CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

type Rep CreateContainer = D1 (MetaData "CreateContainer" "Network.AWS.MediaStore.CreateContainer" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" True) (C1 (MetaCons "CreateContainer'" PrefixI True) (S1 (MetaSel (Just "_ccContainerName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs CreateContainer Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Request Lenses

ccContainerName :: Lens' CreateContainer Text Source #

The name for the container. The name must be from 1 to 255 characters. Container names must be unique to your AWS account within a specific region. As an example, you could create a container named movies in every region, as long as you don’t have an existing container with that name.

Destructuring the Response

createContainerResponse Source #

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

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

  • ccrsResponseStatus - -- | The response status code.
  • ccrsContainer - ContainerARN: The Amazon Resource Name (ARN) of the newly created 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 ContainerName: The container name as specified in the request. CreationTime: Unix time stamp. Status: 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 an endpoint is available, the status changes to ACTIVE . The return value does not include the container's endpoint. To make downstream requests, you must obtain this value by using DescribeContainer or ListContainers .

data CreateContainerResponse Source #

See: createContainerResponse smart constructor.

Instances
Eq CreateContainerResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Data CreateContainerResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Methods

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

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

toConstr :: CreateContainerResponse -> Constr #

dataTypeOf :: CreateContainerResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateContainerResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Show CreateContainerResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Generic CreateContainerResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Associated Types

type Rep CreateContainerResponse :: Type -> Type #

NFData CreateContainerResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

Methods

rnf :: CreateContainerResponse -> () #

type Rep CreateContainerResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.CreateContainer

type Rep CreateContainerResponse = D1 (MetaData "CreateContainerResponse" "Network.AWS.MediaStore.CreateContainer" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) (C1 (MetaCons "CreateContainerResponse'" PrefixI True) (S1 (MetaSel (Just "_ccrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_ccrsContainer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Container)))

Response Lenses

ccrsContainer :: Lens' CreateContainerResponse Container Source #

ContainerARN: The Amazon Resource Name (ARN) of the newly created 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 ContainerName: The container name as specified in the request. CreationTime: Unix time stamp. Status: 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 an endpoint is available, the status changes to ACTIVE . The return value does not include the container's endpoint. To make downstream requests, you must obtain this value by using DescribeContainer or ListContainers .