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

Contents

Description

Lists the properties of all containers in AWS Elemental MediaStore.

You can query to receive all the containers in one response. Or you can include the MaxResults parameter to receive a limited number of containers in each response. In this case, the response includes a token. To get the next set of containers, send the command again, this time with the NextToken parameter (with the returned token as its value). The next set of responses appears, with a token if there are still more containers to receive.

See also DescribeContainer , which gets the properties of one container.

Synopsis

Creating a Request

listContainers :: ListContainers Source #

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

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

  • lcNextToken - Only if you used MaxResults in the first command, enter the token (which was included in the previous response) to obtain the next set of containers. This token is included in a response only if there actually are more containers to list.
  • lcMaxResults - Enter the maximum number of containers in the response. Use from 1 to 255 characters.

data ListContainers Source #

See: listContainers smart constructor.

Instances
Eq ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Data ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Methods

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

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

toConstr :: ListContainers -> Constr #

dataTypeOf :: ListContainers -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Show ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Generic ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Associated Types

type Rep ListContainers :: Type -> Type #

Hashable ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

ToJSON ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

AWSRequest ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Associated Types

type Rs ListContainers :: Type #

ToHeaders ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

ToPath ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

ToQuery ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

NFData ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Methods

rnf :: ListContainers -> () #

type Rep ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

type Rep ListContainers = D1 (MetaData "ListContainers" "Network.AWS.MediaStore.ListContainers" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) (C1 (MetaCons "ListContainers'" PrefixI True) (S1 (MetaSel (Just "_lcNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lcMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))
type Rs ListContainers Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Request Lenses

lcNextToken :: Lens' ListContainers (Maybe Text) Source #

Only if you used MaxResults in the first command, enter the token (which was included in the previous response) to obtain the next set of containers. This token is included in a response only if there actually are more containers to list.

lcMaxResults :: Lens' ListContainers (Maybe Natural) Source #

Enter the maximum number of containers in the response. Use from 1 to 255 characters.

Destructuring the Response

listContainersResponse Source #

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

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

  • lcrsNextToken - NextToken is the token to use in the next call to ListContainers . This token is returned only if you included the MaxResults tag in the original command, and only if there are still containers to return.
  • lcrsResponseStatus - -- | The response status code.
  • lcrsContainers - The names of the containers.

data ListContainersResponse Source #

See: listContainersResponse smart constructor.

Instances
Eq ListContainersResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Data ListContainersResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Methods

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

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

toConstr :: ListContainersResponse -> Constr #

dataTypeOf :: ListContainersResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListContainersResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Show ListContainersResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Generic ListContainersResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Associated Types

type Rep ListContainersResponse :: Type -> Type #

NFData ListContainersResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

Methods

rnf :: ListContainersResponse -> () #

type Rep ListContainersResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.ListContainers

type Rep ListContainersResponse = D1 (MetaData "ListContainersResponse" "Network.AWS.MediaStore.ListContainers" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) (C1 (MetaCons "ListContainersResponse'" PrefixI True) (S1 (MetaSel (Just "_lcrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_lcrsContainers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Container]))))

Response Lenses

lcrsNextToken :: Lens' ListContainersResponse (Maybe Text) Source #

NextToken is the token to use in the next call to ListContainers . This token is returned only if you included the MaxResults tag in the original command, and only if there are still containers to return.

lcrsResponseStatus :: Lens' ListContainersResponse Int Source #

  • - | The response status code.

lcrsContainers :: Lens' ListContainersResponse [Container] Source #

The names of the containers.