Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F/log anomaly detector resource #40437

Merged
merged 31 commits into from
Dec 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a082b77
Initial Commit
nam054 Nov 20, 2024
6705feb
Remove the files in wrong directory; add correct ones
nam054 Dec 2, 2024
ce6c2e4
export tests
nam054 Dec 2, 2024
3b45371
Add tag test generating file
nam054 Dec 4, 2024
80f1644
Tags test generated
nam054 Dec 4, 2024
3db894c
Fix naming of resource; fix testing files; add documentation
nam054 Dec 4, 2024
47759e1
Rename tag gen file
nam054 Dec 4, 2024
6c00086
Clean up the git mess
nam054 Dec 4, 2024
6c24ba4
More naming generation fixes
nam054 Dec 4, 2024
aefc2f0
Comment cleanup
nam054 Dec 4, 2024
00a38d6
Add correct tag labels
nam054 Dec 4, 2024
0c824cc
Remove unneccessary datasource
nam054 Dec 4, 2024
9d09a98
Linter
nam054 Dec 4, 2024
ffed16a
Rename markdown
nam054 Dec 4, 2024
dafad80
Markdown naming fixes
nam054 Dec 4, 2024
4c16cab
Add changelog
nam054 Dec 4, 2024
738b82c
Merge branch 'main' into f/log-anomaly-detector-resource
nam054 Dec 4, 2024
8355444
Potential linter failure
nam054 Dec 4, 2024
138834e
make gen
nam054 Dec 4, 2024
cf5d573
More linter fixes
nam054 Dec 4, 2024
97f1cc0
Docs naming fix
nam054 Dec 4, 2024
48b6c4e
Spacing fixes
nam054 Dec 4, 2024
9a593db
Add import state to basic test
nam054 Dec 4, 2024
e6cf297
Tag test gen format errors
nam054 Dec 4, 2024
07891b4
Linter - add space
nam054 Dec 4, 2024
095c00b
Add quotations
nam054 Dec 4, 2024
1fa5033
tags generate
nam054 Dec 4, 2024
90bf7cb
Review changes
nam054 Dec 5, 2024
beb4e1c
Add update test
nam054 Dec 6, 2024
824cd81
Add more attr to test in update
nam054 Dec 6, 2024
d9c157c
Linter fixes
nam054 Dec 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add correct tag labels
nam054 committed Dec 4, 2024
commit 00a38d6359e9cc4b22d910bd8143661a7050fb26
3 changes: 2 additions & 1 deletion internal/service/logs/anomaly_detector.go
Original file line number Diff line number Diff line change
@@ -34,7 +34,8 @@ import (
// @FrameworkResource("aws_cloudwatch_log_anomaly_detector", name="Anomaly Detector")
// @Tags(identifierAttribute="arn")
// @Testing(importStateIdFunc="testAccAnomalyDetectorImportStateIDFunc")
// @Testing(importStateVerifyIdentifierAttribute="arn")
// @Testing(importStateIdAttribute="arn")
// @Testing(importIgnore="enabled")
// @Testing(existsType="github.com/aws/aws-sdk-go-v2/service/logs;cloudwatchlogs.GetLogAnomalyDetectorOutput")
func newResourceAnomalyDetector(_ context.Context) (resource.ResourceWithConfigure, error) {
r := &resourceAnomalyDetector{}
364 changes: 240 additions & 124 deletions internal/service/logs/anomaly_detector_tags_gen_test.go

Unchanged files with check annotations Beta

}
}
func testAccAnomalyDetectorImportStateIDFunc(resourceName string) resource.ImportStateIdFunc {

Check failure on line 134 in internal/service/logs/anomaly_detector_test.go

GitHub Actions / 3 of 3

func `testAccAnomalyDetectorImportStateIDFunc` is unused (unused)
return func(s *terraform.State) (string, error) {
rs, ok := s.RootModule().Resources[resourceName]
if !ok {