libZSservicesZSamazonka-chimeZSamazonka-chime
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.Chime.ListChannels

Description

Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.

Functionality & restrictions

  • Use privacy = PUBLIC to retrieve all public channels in the account.
  • Only an AppInstanceAdmin can set privacy = PRIVATE to list the private channels in an account.

The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Synopsis

Creating a Request

data ListChannels Source #

See: newListChannels smart constructor.

Constructors

ListChannels' 

Fields

Instances

Instances details
Eq ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Show ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Generic ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Associated Types

type Rep ListChannels :: Type -> Type #

NFData ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Methods

rnf :: ListChannels -> () #

Hashable ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

AWSRequest ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Associated Types

type AWSResponse ListChannels #

ToHeaders ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

ToPath ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

ToQuery ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

type Rep ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

type Rep ListChannels = D1 ('MetaData "ListChannels" "Amazonka.Chime.ListChannels" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "ListChannels'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "privacy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelPrivacy)) :*: S1 ('MetaSel ('Just "chimeBearer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "appInstanceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse ListChannels Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

newListChannels Source #

Create a value of ListChannels 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:privacy:ListChannels', listChannels_privacy - The privacy setting. PUBLIC retrieves all the public channels. PRIVATE retrieves private channels. Only an AppInstanceAdmin can retrieve private channels.

$sel:chimeBearer:ListChannels', listChannels_chimeBearer - The AppInstanceUserArn of the user that makes the API call.

$sel:nextToken:ListChannels', listChannels_nextToken - The token passed by previous API calls until all requested channels are returned.

$sel:maxResults:ListChannels', listChannels_maxResults - The maximum number of channels that you want to return.

$sel:appInstanceArn:ListChannels', listChannels_appInstanceArn - The ARN of the AppInstance.

Request Lenses

listChannels_privacy :: Lens' ListChannels (Maybe ChannelPrivacy) Source #

The privacy setting. PUBLIC retrieves all the public channels. PRIVATE retrieves private channels. Only an AppInstanceAdmin can retrieve private channels.

listChannels_chimeBearer :: Lens' ListChannels (Maybe Text) Source #

The AppInstanceUserArn of the user that makes the API call.

listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #

The token passed by previous API calls until all requested channels are returned.

listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #

The maximum number of channels that you want to return.

Destructuring the Response

data ListChannelsResponse Source #

See: newListChannelsResponse smart constructor.

Constructors

ListChannelsResponse' 

Fields

Instances

Instances details
Eq ListChannelsResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Show ListChannelsResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Generic ListChannelsResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Associated Types

type Rep ListChannelsResponse :: Type -> Type #

NFData ListChannelsResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

Methods

rnf :: ListChannelsResponse -> () #

type Rep ListChannelsResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannels

type Rep ListChannelsResponse = D1 ('MetaData "ListChannelsResponse" "Amazonka.Chime.ListChannels" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "ListChannelsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "channels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ChannelSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListChannelsResponse Source #

Create a value of ListChannelsResponse 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:channels:ListChannelsResponse', listChannelsResponse_channels - The information about each channel.

$sel:nextToken:ListChannels', listChannelsResponse_nextToken - The token returned from previous API requests until the number of channels is reached.

$sel:httpStatus:ListChannelsResponse', listChannelsResponse_httpStatus - The response's http status code.

Response Lenses

listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text) Source #

The token returned from previous API requests until the number of channels is reached.