aws-cdk
aws-cdk copied to clipboard
Lambda UI showing Cloudwatch Event "Enabled" even if CW rule is disabled
Lambda UI is showing the Slider button "Enabled" for the Cloudwatch event, even if the cloudwatch rule for the lambda is disabled. Using .NET CDK (1.24)

Reproduction Steps
var rule = new Rule(scope, $"{props.UniqueFunctionSuffix}-EventTrigger-Id", new RuleProps
{
Description = $"This cron job invokes the {props.UniqueFunctionSuffix}-Subscriber lambda function every 1 minute",
Enabled = false,
RuleName = $"{props.UniqueFunctionSuffix}-CronEvent-Trigger",
Schedule = Schedule.Rate(Duration.Minutes(1))
});
rule.AddTarget(new LambdaFunction(func));
Can you let me what the value of the State property of AWS::Events::Rule resource type in the CDK synthesized CloudFormation template, or in the CDK deployed stack?