Looking through the cloudformation docs, there should be a way to disable a transition to an action. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-disableinboundstagetransitions
Tried looking for the Java CDK counter part and found this. https://docs.aws.amazon.com/cdk/api/latest/java/software/amazon/awscdk/services/codepipeline/CfnPipeline.StageTransitionProperty.html
However, I can't find a way to link it to a Pipeline.
Is this the right property class? If yes how do I link it to a Pipeline instance?