libZSservicesZSamazonka-mediastoreZSamazonka-mediastore
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MediaStore.ListContainers

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.

This operation returns paginated results.

Synopsis

Creating a Request

data ListContainers Source #

See: newListContainers smart constructor.

Constructors

ListContainers' 

Fields

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

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

Instances

Instances details
Eq ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Read ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Show ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Generic ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Associated Types

type Rep ListContainers :: Type -> Type #

NFData ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Methods

rnf :: ListContainers -> () #

Hashable ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

ToJSON ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

AWSPager ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

AWSRequest ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Associated Types

type AWSResponse ListContainers #

ToHeaders ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

ToPath ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

ToQuery ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

type Rep ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

type Rep ListContainers = D1 ('MetaData "ListContainers" "Amazonka.MediaStore.ListContainers" "libZSservicesZSamazonka-mediastoreZSamazonka-mediastore" 'False) (C1 ('MetaCons "ListContainers'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListContainers Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

newListContainers :: ListContainers Source #

Create a value of ListContainers with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:ListContainers', listContainers_nextToken - 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.

$sel:maxResults:ListContainers', listContainers_maxResults - Enter the maximum number of containers in the response. Use from 1 to 255 characters.

Request Lenses

listContainers_nextToken :: 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.

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

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

Destructuring the Response

data ListContainersResponse Source #

See: newListContainersResponse smart constructor.

Constructors

ListContainersResponse' 

Fields

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

  • containers :: [Container]

    The names of the containers.

Instances

Instances details
Eq ListContainersResponse Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Read ListContainersResponse Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Show ListContainersResponse Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Generic ListContainersResponse Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Associated Types

type Rep ListContainersResponse :: Type -> Type #

NFData ListContainersResponse Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

Methods

rnf :: ListContainersResponse -> () #

type Rep ListContainersResponse Source # 
Instance details

Defined in Amazonka.MediaStore.ListContainers

type Rep ListContainersResponse = D1 ('MetaData "ListContainersResponse" "Amazonka.MediaStore.ListContainers" "libZSservicesZSamazonka-mediastoreZSamazonka-mediastore" 'False) (C1 ('MetaCons "ListContainersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "containers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Container]))))

newListContainersResponse Source #

Create a value of ListContainersResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:ListContainers', listContainersResponse_nextToken - 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.

$sel:httpStatus:ListContainersResponse', listContainersResponse_httpStatus - The response's http status code.

$sel:containers:ListContainersResponse', listContainersResponse_containers - The names of the containers.

Response Lenses

listContainersResponse_nextToken :: 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.