CDK проект имеет ответ на этот вопрос - https://github.com/aws/aws-cdk/issues/1649
Использование для CfnPipeline предоставлено как
const cfnPipeline = pipeline.node.findChild('Resource') as codepipeline.CfnPipeline
cfnPipeline.propertyOverrides.disableInboundStageTransitions = [{
reason: 'Pipeline is triggered by schedule not source changes',
stageName: 'Source'
}]
Для python Я смог реализовать с следующее
cfn_pipeline = pipeline.node.find_child('Resource')
cfn_pipeline.add_property_override(
property_path='DisableInboundStageTransitions',
value=[{
'Reason': 'Pipeline is triggered by schedule not source changes',
'StageName': 'Source'
}]
)
Вы можете использовать перечисление S3Trigger.NONE
в параметре S3SourceAction .