How do I specify another AWS account's event bus as the target of a CloudWatch Rule using CloudFormation or CDK?
Here is an example Rule using CDK where I try to send CodeDeploy events to another account:
Rule codedeployCreateDeploymentEventRule = Rule.Builder.create(this, "CodedeployCreateDeploymentEventRule")
.description("CloudWatch event rule covering CodeDeploy CreateDeployment notifications.")
.ruleName("MyRule")
.enabled(true)
.targets(List.of(...something here...))
.eventPattern(EventPattern.builder()
.source(List.of("aws.codedeploy"))
.detail(Map.of("eventName", List.of("CreateDeployment")))
.build())
.build();
How do I specify another account's EventBus as the target? What's the syntax - is it an ARN or what?