Invalid request provided: AWS::GuardDuty::Detector"
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 74
Description
### Describe the bug
I can't build the cdk app with Detector setting, they always fail no matter which option I throw to them. And the error return is not clear for me to solve the problem
### Expected Behavior
build success
### Current Behavior
Resource handler returned message: "Invalid request provided: AWS::GuardDuty::Detector" (RequestToken: 386124a9-63b8-fc97-1a1f-df2f79c895c2, HandlerErrorCode: InvalidRequest)
### Reproduction Steps
``` typescript
const guardDuty = new CfnDetector(this, GUARD_DUTY_ID, {
enable: true,
}
```
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### CDK CLI Version
2.143.0
### Framework Version
_No response_
### Node.js Version
20.10.0
### OS
Linux
### Language
TypeScript
### Language Version
Typescript 5.4.5
### Other information
_No response_
Contributor guide
Research direction
Start with the provided TypeScript CfnDetector reproduction using CDK CLI 2.143.0, then investigate the AWS::GuardDuty::Detector deployment error and its unclear message. Done means the detector builds successfully with the reported configuration and failures provide actionable information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100