在AWS CDK中,`aws-codepipeline/Pipeline` 和 `pipelines/CodePipelines` 之间有什么区别?

huangapple go评论57阅读模式
英文:

What is the difference between aws-codepipeline/Pipeline and pipelines/CodePipelines in AWS CDK

问题

我有一个AWS CDK项目,并正在使用CDK定义代码管道以自动部署它。

我应该使用在这里定义的CodePipeline:https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html

还是在这里定义的Pipeline:https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codepipeline.Pipeline.html

另外,这两者之间到底有什么区别?

编辑:我链接到了错误的Pipeline文档。我已更新链接。

英文:

I have an AWS CDK project and am defining a code pipeline with the CDK to automatically deploy it.

Should I use the CodePipeline defined here: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html

or the Pipeline defined here: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codepipeline.Pipeline.html

Also what exactly is the difference between the two?

Edit: I linked to the wrong doc for Pipeline. I've updated the link

答案1

得分: 2

aws-codepipeline.Pipeline 是用于 AWS CodePipeline 资源的 L2 构造。

pipelines.CodePipelineCDK pipelines 模块的一部分,它是部署 CDK 应用程序的更高级抽象。在底层,它使用 aws-codepipeline.Pipeline 来进行流水线处理,但也有其他实现方式(例如,使用 GitHub Actions),因为 pipelines.CodePipeline API 旨在成为抽象API(尽管命名有点不幸)。更多阅读:https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html

英文:

aws-codepipeline.Pipeline is an L2 construct for the AWS CodePipeline resource.

pipelines.CodePipeline is part of the CDK pipelines module that is a higher-level abstraction for deploying CDK apps. Under the hood, it uses aws-codepipeline.Pipeline for its pipelines, but there are also other implementations (with GitHub Actions, for example), since the pipelines.CodePipeline API was meant to be an abstract API (the naming is unfortunate, though). Further reading: https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html

huangapple
  • 本文由 发表于 2023年6月29日 01:33:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76575497.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定