Describe the bug
The API https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutTargets.html#API_PutTargets_RequestSyntax allows setting an Id value for a rule target. However, CDK does not appear to have a way to set this value, instead using values like Target0. (Having imported into CDK some infrastructure that had been created with the API, those resources now show as "drifted".)
Regression Issue
Last Known Working CDK Library Version
No response
Expected Behavior
Allow defining the Id of these resources.
Current Behavior
No way to define the Id.
Reproduction Steps
Try to set the Id of a rule target.
Possible Solution
No response
Additional Information/Context
No response
AWS CDK Library version (aws-cdk-lib)
2.233.0
AWS CDK CLI version
2.1100.3
Node.js Version
24
OS
MacOS
Language
TypeScript
Language Version
TypeScript (5.9.3)
Other information
No response
Describe the bug
The API https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutTargets.html#API_PutTargets_RequestSyntax allows setting an
Idvalue for a rule target. However, CDK does not appear to have a way to set this value, instead using values likeTarget0. (Having imported into CDK some infrastructure that had been created with the API, those resources now show as "drifted".)Regression Issue
Last Known Working CDK Library Version
No response
Expected Behavior
Allow defining the
Idof these resources.Current Behavior
No way to define the
Id.Reproduction Steps
Try to set the
Idof a rule target.Possible Solution
No response
Additional Information/Context
No response
AWS CDK Library version (aws-cdk-lib)
2.233.0
AWS CDK CLI version
2.1100.3
Node.js Version
24
OS
MacOS
Language
TypeScript
Language Version
TypeScript (5.9.3)
Other information
No response