Skip to content

Commit

Permalink
Merge pull request #38124 from hashicorp/f-chatbot-slack-channel-conf…
Browse files Browse the repository at this point in the history
…iguration

chatbot: Add slack channel configuration
  • Loading branch information
YakDriver authored Jul 31, 2024
2 parents 91837ec + c4abeb5 commit d84dce6
Show file tree
Hide file tree
Showing 11 changed files with 941 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/38124.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_chatbot_slack_channel_configuration
```
2 changes: 2 additions & 0 deletions docs/acc-test-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Environment variables (beyond standard AWS Go SDK ones) used by acceptance testi
| `AWS_THIRD_SECRET_ACCESS_KEY` | AWS secret access key with access to a third AWS account for tests requiring multiple accounts. Requires `AWS_THIRD_ACCESS_KEY_ID`. Conflicts with `AWS_THIRD_PROFILE`. |
| `AWS_THIRD_PROFILE` | AWS profile with access to a third AWS account for tests requiring multiple accounts. Conflicts with `AWS_THIRD_ACCESS_KEY_ID` and `AWS_THIRD_SECRET_ACCESS_KEY`. |
| `AWS_THIRD_REGION` | Third AWS region for tests requiring multiple regions. Defaults to `us-east-2`. |
| `CHATBOT_SLACK_TEAM_ID` | ID of the Slack workspace authorized with AWS Chatbot. |
| `CHATBOT_SLACK_CHANNEL_ID` | ID of the Slack channel. |
| `DX_CONNECTION_ID` | Identifier for Direct Connect Connection testing. |
| `DX_VIRTUAL_INTERFACE_ID` | Identifier for Direct Connect Virtual Interface testing. |
| `EC2_SECURITY_GROUP_RULES_PER_GROUP_LIMIT` | EC2 Quota for Rules per Security Group. Defaults to 50. **DEPRECATED:** Can be augmented or replaced with Service Quotas lookup. |
Expand Down
8 changes: 8 additions & 0 deletions internal/service/chatbot/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package chatbot

const (
ResNameSlackChannelConfiguration = "Slack Channel Configuration"
)
11 changes: 11 additions & 0 deletions internal/service/chatbot/exports_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package chatbot

// Exports for use in tests only.
var (
ResourceSlackChannelConfiguration = newSlackChannelConfigurationResource

FindSlackChannelConfigurationByARN = findSlackChannelConfigurationByARN
)
1 change: 1 addition & 0 deletions internal/service/chatbot/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: MPL-2.0

//go:generate go run ../../generate/servicepackage/main.go
//go:generate go run ../../generate/tags/main.go -AWSSDKVersion=2 -ListTags -ListTagsInIDElem=ResourceARN -ServiceTagsSlice -KVTValues -TagOp=TagResource -TagInIDElem=ResourceARN -UntagOp=UntagResource -CreateTags -UpdateTags -TagTypeKeyElem=TagKey -TagTypeValElem=TagValue
// ONLY generate directives and package declaration! Do not add anything else to this file.

package chatbot
10 changes: 9 additions & 1 deletion internal/service/chatbot/service_package_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d84dce6

Please sign in to comment.