libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging
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.ChimeSDKMessaging.CreateChannel

Description

Creates a channel to which you can add users and send messages.

Restriction: You can't change a channel's privacy.

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 CreateChannel Source #

See: newCreateChannel smart constructor.

Constructors

CreateChannel' 

Fields

  • mode :: Maybe ChannelMode

    The channel mode: UNRESTRICTED or RESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.

  • privacy :: Maybe ChannelPrivacy

    The channel's privacy level: PUBLIC or PRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance.

  • metadata :: Maybe (Sensitive Text)

    The metadata of the creation request. Limited to 1KB and UTF-8.

  • tags :: Maybe (NonEmpty Tag)

    The tags for the creation request.

  • appInstanceArn :: Text

    The ARN of the channel request.

  • name :: Sensitive Text

    The name of the channel.

  • clientRequestToken :: Sensitive Text

    The client token for the request. An Idempotency token.

  • chimeBearer :: Text

    The AppInstanceUserArn of the user that makes the API call.

Instances

Instances details
Eq CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Show CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Generic CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Associated Types

type Rep CreateChannel :: Type -> Type #

NFData CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Methods

rnf :: CreateChannel -> () #

Hashable CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

ToJSON CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

AWSRequest CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Associated Types

type AWSResponse CreateChannel #

ToHeaders CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

ToPath CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

ToQuery CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

type Rep CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

type AWSResponse CreateChannel Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

newCreateChannel Source #

Create a value of CreateChannel 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:mode:CreateChannel', createChannel_mode - The channel mode: UNRESTRICTED or RESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.

$sel:privacy:CreateChannel', createChannel_privacy - The channel's privacy level: PUBLIC or PRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance.

$sel:metadata:CreateChannel', createChannel_metadata - The metadata of the creation request. Limited to 1KB and UTF-8.

$sel:tags:CreateChannel', createChannel_tags - The tags for the creation request.

$sel:appInstanceArn:CreateChannel', createChannel_appInstanceArn - The ARN of the channel request.

$sel:name:CreateChannel', createChannel_name - The name of the channel.

$sel:clientRequestToken:CreateChannel', createChannel_clientRequestToken - The client token for the request. An Idempotency token.

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

Request Lenses

createChannel_mode :: Lens' CreateChannel (Maybe ChannelMode) Source #

The channel mode: UNRESTRICTED or RESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.

createChannel_privacy :: Lens' CreateChannel (Maybe ChannelPrivacy) Source #

The channel's privacy level: PUBLIC or PRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance.

createChannel_metadata :: Lens' CreateChannel (Maybe Text) Source #

The metadata of the creation request. Limited to 1KB and UTF-8.

createChannel_tags :: Lens' CreateChannel (Maybe (NonEmpty Tag)) Source #

The tags for the creation request.

createChannel_appInstanceArn :: Lens' CreateChannel Text Source #

The ARN of the channel request.

createChannel_name :: Lens' CreateChannel Text Source #

The name of the channel.

createChannel_clientRequestToken :: Lens' CreateChannel Text Source #

The client token for the request. An Idempotency token.

createChannel_chimeBearer :: Lens' CreateChannel Text Source #

The AppInstanceUserArn of the user that makes the API call.

Destructuring the Response

data CreateChannelResponse Source #

See: newCreateChannelResponse smart constructor.

Constructors

CreateChannelResponse' 

Fields

Instances

Instances details
Eq CreateChannelResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Read CreateChannelResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Show CreateChannelResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Generic CreateChannelResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Associated Types

type Rep CreateChannelResponse :: Type -> Type #

NFData CreateChannelResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

Methods

rnf :: CreateChannelResponse -> () #

type Rep CreateChannelResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannel

type Rep CreateChannelResponse = D1 ('MetaData "CreateChannelResponse" "Amazonka.ChimeSDKMessaging.CreateChannel" "libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging" 'False) (C1 ('MetaCons "CreateChannelResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateChannelResponse Source #

Create a value of CreateChannelResponse 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:channelArn:CreateChannelResponse', createChannelResponse_channelArn - The ARN of the channel.

$sel:httpStatus:CreateChannelResponse', createChannelResponse_httpStatus - The response's http status code.

Response Lenses