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

Description

Adds a specified number of users to a channel.

Synopsis

Creating a Request

data BatchCreateChannelMembership Source #

See: newBatchCreateChannelMembership smart constructor.

Constructors

BatchCreateChannelMembership' 

Fields

  • type' :: Maybe ChannelMembershipType

    The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators.

  • channelArn :: Text

    The ARN of the channel to which you're adding users.

  • memberArns :: NonEmpty Text

    The ARNs of the members you want to add to the channel.

  • chimeBearer :: Text

    The AppInstanceUserArn of the user that makes the API call.

Instances

Instances details
Eq BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

Read BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

Show BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

Generic BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

Associated Types

type Rep BatchCreateChannelMembership :: Type -> Type #

NFData BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

Hashable BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

ToJSON BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

AWSRequest BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

ToHeaders BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

ToPath BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

ToQuery BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

type Rep BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

type Rep BatchCreateChannelMembership = D1 ('MetaData "BatchCreateChannelMembership" "Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership" "libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging" 'False) (C1 ('MetaCons "BatchCreateChannelMembership'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelMembershipType)) :*: S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "memberArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)) :*: S1 ('MetaSel ('Just "chimeBearer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse BatchCreateChannelMembership Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

newBatchCreateChannelMembership Source #

Create a value of BatchCreateChannelMembership 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:type':BatchCreateChannelMembership', batchCreateChannelMembership_type - The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators.

$sel:channelArn:BatchCreateChannelMembership', batchCreateChannelMembership_channelArn - The ARN of the channel to which you're adding users.

$sel:memberArns:BatchCreateChannelMembership', batchCreateChannelMembership_memberArns - The ARNs of the members you want to add to the channel.

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

Request Lenses

batchCreateChannelMembership_type :: Lens' BatchCreateChannelMembership (Maybe ChannelMembershipType) Source #

The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators.

batchCreateChannelMembership_channelArn :: Lens' BatchCreateChannelMembership Text Source #

The ARN of the channel to which you're adding users.

batchCreateChannelMembership_memberArns :: Lens' BatchCreateChannelMembership (NonEmpty Text) Source #

The ARNs of the members you want to add to the channel.

batchCreateChannelMembership_chimeBearer :: Lens' BatchCreateChannelMembership Text Source #

The AppInstanceUserArn of the user that makes the API call.

Destructuring the Response

data BatchCreateChannelMembershipResponse Source #

Constructors

BatchCreateChannelMembershipResponse' 

Fields

Instances

Instances details
Eq BatchCreateChannelMembershipResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

Show BatchCreateChannelMembershipResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

Generic BatchCreateChannelMembershipResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

NFData BatchCreateChannelMembershipResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

type Rep BatchCreateChannelMembershipResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership

type Rep BatchCreateChannelMembershipResponse = D1 ('MetaData "BatchCreateChannelMembershipResponse" "Amazonka.ChimeSDKMessaging.BatchCreateChannelMembership" "libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging" 'False) (C1 ('MetaCons "BatchCreateChannelMembershipResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BatchCreateChannelMembershipError])) :*: (S1 ('MetaSel ('Just "batchChannelMemberships") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BatchChannelMemberships)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newBatchCreateChannelMembershipResponse Source #

Create a value of BatchCreateChannelMembershipResponse 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:errors:BatchCreateChannelMembershipResponse', batchCreateChannelMembershipResponse_errors - If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.

$sel:batchChannelMemberships:BatchCreateChannelMembershipResponse', batchCreateChannelMembershipResponse_batchChannelMemberships - The list of channel memberships in the response.

$sel:httpStatus:BatchCreateChannelMembershipResponse', batchCreateChannelMembershipResponse_httpStatus - The response's http status code.

Response Lenses

batchCreateChannelMembershipResponse_errors :: Lens' BatchCreateChannelMembershipResponse (Maybe [BatchCreateChannelMembershipError]) Source #

If the action fails for one or more of the memberships in the request, a list of the memberships is returned, along with error codes and error messages.