slack_user_identities
Creates, updates, deletes, gets or lists a slack_user_identities resource.
Overview
| Name | slack_user_identities |
| Type | Resource |
| Id | aws.chatbot.slack_user_identities |
Fields
The following fields are returned by SELECT queries:
- describe_slack_user_identities
| Name | Datatype | Description |
|---|---|---|
aws_user_identity | string | The AWS user identity ARN used to associate a Slack user ID with an IAM Role. (pattern: <code>arn:aws:(iam|sts)::[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>) |
chat_configuration_arn | string | The Amazon Resource Name (ARN) of the SlackChannelConfiguration associated with the user identity to delete. (pattern: <code>arn:aws:(wheatley|chatbot):[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>) |
iam_role_arn | string | A user-defined role that AWS Chatbot assumes. This is not the service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS Chatbot Administrator Guide. (pattern: <code>arn:aws:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>) |
slack_team_id | string | The ID of the Slack workspace authorized with AWS Chatbot. (pattern: <code>[0-9A-Z]{1,255}</code>) |
slack_user_id | string | The ID of the user in Slack (pattern: <code>(.*)</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_slack_user_identities | select | region | Lists all Slack user identities with a mapped role. | |
delete_slack_user_identity | delete | region | Deletes a user level permission for a Slack channel configuration. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_slack_user_identities
Lists all Slack user identities with a mapped role.
SELECT
aws_user_identity,
chat_configuration_arn,
iam_role_arn,
slack_team_id,
slack_user_id
FROM aws.chatbot.slack_user_identities
WHERE region = '{{ region }}' -- required
;
DELETE examples
- delete_slack_user_identity
Deletes a user level permission for a Slack channel configuration.
DELETE FROM aws.chatbot.slack_user_identities
WHERE region = '{{ region }}' --required
;