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

Description

Adds a member to a chat room in an Amazon Chime Enterprise account. A member can be either a user or a bot. The member role designates whether the member is a chat room administrator or a general chat room member.

Synopsis

Creating a Request

data CreateRoomMembership Source #

See: newCreateRoomMembership smart constructor.

Constructors

CreateRoomMembership' 

Fields

Instances

Instances details
Eq CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Read CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Show CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Generic CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Associated Types

type Rep CreateRoomMembership :: Type -> Type #

NFData CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Methods

rnf :: CreateRoomMembership -> () #

Hashable CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

ToJSON CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

AWSRequest CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Associated Types

type AWSResponse CreateRoomMembership #

ToHeaders CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

ToPath CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

ToQuery CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

type Rep CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

type Rep CreateRoomMembership = D1 ('MetaData "CreateRoomMembership" "Amazonka.Chime.CreateRoomMembership" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "CreateRoomMembership'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "role'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RoomMembershipRole)) :*: S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "roomId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "memberId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateRoomMembership Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

newCreateRoomMembership Source #

Create a value of CreateRoomMembership 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:role':CreateRoomMembership', createRoomMembership_role - The role of the member.

$sel:accountId:CreateRoomMembership', createRoomMembership_accountId - The Amazon Chime account ID.

$sel:roomId:CreateRoomMembership', createRoomMembership_roomId - The room ID.

$sel:memberId:CreateRoomMembership', createRoomMembership_memberId - The Amazon Chime member ID (user ID or bot ID).

Request Lenses

createRoomMembership_memberId :: Lens' CreateRoomMembership Text Source #

The Amazon Chime member ID (user ID or bot ID).

Destructuring the Response

data CreateRoomMembershipResponse Source #

See: newCreateRoomMembershipResponse smart constructor.

Constructors

CreateRoomMembershipResponse' 

Fields

Instances

Instances details
Eq CreateRoomMembershipResponse Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Show CreateRoomMembershipResponse Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Generic CreateRoomMembershipResponse Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

Associated Types

type Rep CreateRoomMembershipResponse :: Type -> Type #

NFData CreateRoomMembershipResponse Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

type Rep CreateRoomMembershipResponse Source # 
Instance details

Defined in Amazonka.Chime.CreateRoomMembership

type Rep CreateRoomMembershipResponse = D1 ('MetaData "CreateRoomMembershipResponse" "Amazonka.Chime.CreateRoomMembership" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "CreateRoomMembershipResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roomMembership") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RoomMembership)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateRoomMembershipResponse Source #

Create a value of CreateRoomMembershipResponse 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:roomMembership:CreateRoomMembershipResponse', createRoomMembershipResponse_roomMembership - The room membership details.

$sel:httpStatus:CreateRoomMembershipResponse', createRoomMembershipResponse_httpStatus - The response's http status code.

Response Lenses