aws codecommit的cdk结构

aws-cdk.aws-codecommit的Python项目详细描述


aws codecommit构造库


Stability: Stable


aws codecommit是一个版本控制服务,它允许您在aws云中私人存储和管理git存储库。

有关codecommit的更多信息, 请参阅AWS CodeCommit documentation

将codecommit存储库添加到堆栈:

importcodecommit=require('@aws-cdk/aws-codecommit');constrepo=newcodecommit.Repository(this,'Repository',{repositoryName:'MyRepositoryName',description:'Some description.',// optional property});

要将amazon sns触发器添加到存储库:

// trigger is established for all repository actions on all branches by default.repo.notify('arn:aws:sns:*:123456789012:my_topic');

事件

codecommit存储库为某些活动发出amazon cloudwatch事件。 使用repo.onXxx方法定义触发这些事件的规则 并因此调用目标:

// starts a CodeBuild project when a commit is pushed to the "master" branch of the reporepo.onCommit('CommitToMaster',{target: newtargets.CodeBuildProject(project),branches:['master'],});// publishes a message to an Amazon SNS topic when a comment is made on a pull requestconstrule=repo.onCommentOnPullRequest('CommentOnPullRequest',{target: newtargets.SnsTopic(myTopic),});

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java窗口。位置和窗口。公开问题   java如何从存储在ArrayList<Node>中的动态生成的文本字段中获取文本?   java如何立即关闭InputStream?   如何重新启动Java程序以激活环境变量   java搜索字符串是否相差一个字符   java CFB模式输出与CTR输出相同;我做错什么了吗?   java如何在javaFX中将实例化对象添加到Stage   java如何在jtextarea上打印来自不同类的文本消息   java以编程方式确定IOException的原因?   限制Java NIO通道(文件或socket)中的可用内容   javajaxb与JDOM:是否可以使用JAXB更新xml文件   批处理文件到java测试   JavaFX:stage的作用是什么。可设置大小(false)是否会导致额外的页边距?   java有没有办法告诉IntelliJ按需堆叠参数?   java Seam会话范围的组件在下一个请求中消失   java Google Web Toolkit对开发复杂的java脚本有用吗?   安卓 studio java ArrayList正在检索最高值   java为什么递归地用随机数填充LinkedList时会出现StackOverflowException?