Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Promotes an AppInstanceUser
to an AppInstanceAdmin
. The promoted
user can perform the following actions.
ChannelModerator
actions across all channels in theAppInstance
.DeleteChannelMessage
actions.
Only an AppInstanceUser
can be promoted to an AppInstanceAdmin
role.
Synopsis
- data CreateAppInstanceAdmin = CreateAppInstanceAdmin' {}
- newCreateAppInstanceAdmin :: Text -> Text -> CreateAppInstanceAdmin
- createAppInstanceAdmin_appInstanceAdminArn :: Lens' CreateAppInstanceAdmin Text
- createAppInstanceAdmin_appInstanceArn :: Lens' CreateAppInstanceAdmin Text
- data CreateAppInstanceAdminResponse = CreateAppInstanceAdminResponse' {}
- newCreateAppInstanceAdminResponse :: Int -> CreateAppInstanceAdminResponse
- createAppInstanceAdminResponse_appInstanceAdmin :: Lens' CreateAppInstanceAdminResponse (Maybe Identity)
- createAppInstanceAdminResponse_appInstanceArn :: Lens' CreateAppInstanceAdminResponse (Maybe Text)
- createAppInstanceAdminResponse_httpStatus :: Lens' CreateAppInstanceAdminResponse Int
Creating a Request
data CreateAppInstanceAdmin Source #
See: newCreateAppInstanceAdmin
smart constructor.
CreateAppInstanceAdmin' | |
|
Instances
newCreateAppInstanceAdmin Source #
:: Text | |
-> Text | |
-> CreateAppInstanceAdmin |
Create a value of CreateAppInstanceAdmin
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:appInstanceAdminArn:CreateAppInstanceAdmin'
, createAppInstanceAdmin_appInstanceAdminArn
- The ARN of the administrator of the current AppInstance
.
$sel:appInstanceArn:CreateAppInstanceAdmin'
, createAppInstanceAdmin_appInstanceArn
- The ARN of the AppInstance
.
Request Lenses
createAppInstanceAdmin_appInstanceAdminArn :: Lens' CreateAppInstanceAdmin Text Source #
The ARN of the administrator of the current AppInstance
.
createAppInstanceAdmin_appInstanceArn :: Lens' CreateAppInstanceAdmin Text Source #
The ARN of the AppInstance
.
Destructuring the Response
data CreateAppInstanceAdminResponse Source #
See: newCreateAppInstanceAdminResponse
smart constructor.
CreateAppInstanceAdminResponse' | |
|
Instances
newCreateAppInstanceAdminResponse Source #
Create a value of CreateAppInstanceAdminResponse
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:appInstanceAdmin:CreateAppInstanceAdminResponse'
, createAppInstanceAdminResponse_appInstanceAdmin
- The name and ARN of the admin for the AppInstance
.
$sel:appInstanceArn:CreateAppInstanceAdmin'
, createAppInstanceAdminResponse_appInstanceArn
- The ARN of the of the admin for the AppInstance
.
$sel:httpStatus:CreateAppInstanceAdminResponse'
, createAppInstanceAdminResponse_httpStatus
- The response's http status code.
Response Lenses
createAppInstanceAdminResponse_appInstanceAdmin :: Lens' CreateAppInstanceAdminResponse (Maybe Identity) Source #
The name and ARN of the admin for the AppInstance
.
createAppInstanceAdminResponse_appInstanceArn :: Lens' CreateAppInstanceAdminResponse (Maybe Text) Source #
The ARN of the of the admin for the AppInstance
.
createAppInstanceAdminResponse_httpStatus :: Lens' CreateAppInstanceAdminResponse Int Source #
The response's http status code.