Skip to main content

slack_user_identities

Creates, updates, deletes, gets or lists a slack_user_identities resource.

Overview

Nameslack_user_identities
TypeResource
Idaws.chatbot.slack_user_identities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aws_user_identitystringThe 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_arnstringThe 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_arnstringA 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_idstringThe ID of the Slack workspace authorized with AWS Chatbot. (pattern: <code>[0-9A-Z]{1,255}</code>)
slack_user_idstringThe ID of the user in Slack (pattern: <code>(.*)</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_slack_user_identitiesselectregionLists all Slack user identities with a mapped role.
delete_slack_user_identitydeleteregionDeletes 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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

Deletes a user level permission for a Slack channel configuration.

DELETE FROM aws.chatbot.slack_user_identities
WHERE region = '{{ region }}' --required
;