Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-codecommit

Package Overview
Dependencies
Maintainers
4
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-codecommit - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

lib/pipeline-action.d.ts

2

lib/codecommit.generated.js

@@ -5,3 +5,3 @@ "use strict";

// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html
// @cfn2ts:meta@ {"generated":"2018-08-09T08:25:15.328Z","fingerprint":"Bwjkqshi5caAmiYWB8fKvFD/MT1p4tm+ApaKHxg2DZ4="}
// @cfn2ts:meta@ {"generated":"2018-08-15T13:38:11.547Z","fingerprint":"Bwjkqshi5caAmiYWB8fKvFD/MT1p4tm+ApaKHxg2DZ4="}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,0 +8,0 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control

@@ -0,2 +1,3 @@

export * from './pipeline-action';
export * from './repository';
export * from './codecommit.generated';

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./pipeline-action"));
__export(require("./repository"));
// AWS::CodeCommit CloudFormation Resources:
__export(require("./codecommit.generated"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLGtDQUE2QjtBQUU3Qiw0Q0FBNEM7QUFDNUMsNENBQXVDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHVDQUFrQztBQUNsQyxrQ0FBNkI7QUFFN0IsNENBQTRDO0FBQzVDLDRDQUF1QyJ9
{
"name": "@aws-cdk/aws-codecommit",
"version": "0.8.1",
"version": "0.8.2",
"description": "CDK Constructs for AWS CodeCommit",

@@ -53,16 +53,17 @@ "main": "lib/index.js",

"devDependencies": {
"@aws-cdk/assert": "^0.8.1",
"@aws-cdk/aws-sns": "^0.8.1",
"@aws-cdk/assert": "^0.8.2",
"@aws-cdk/aws-sns": "^0.8.2",
"aws-sdk": "^2.259.1",
"cdk-build-tools": "^0.8.1",
"cdk-integ-tools": "^0.8.1",
"cfn2ts": "^0.8.1",
"pkglint": "^0.8.1"
"cdk-build-tools": "^0.8.2",
"cdk-integ-tools": "^0.8.2",
"cfn2ts": "^0.8.2",
"pkglint": "^0.8.2"
},
"dependencies": {
"@aws-cdk/aws-events": "^0.8.1",
"@aws-cdk/aws-iam": "^0.8.1",
"@aws-cdk/cdk": "^0.8.1"
"@aws-cdk/aws-codepipeline-api": "^0.8.2",
"@aws-cdk/aws-events": "^0.8.2",
"@aws-cdk/aws-iam": "^0.8.2",
"@aws-cdk/cdk": "^0.8.2"
},
"homepage": "https://github.com/awslabs/aws-cdk"
}

@@ -8,3 +8,3 @@ ## AWS CodeCommit Construct Library

const repository = new codecommit.Repository(stack, 'Repository' ,{
const repository = new codecommit.Repository(this, 'Repository' ,{
repositoryName: 'MyRepositoryName'

@@ -19,3 +19,3 @@ });

const repository = new codecommit.Repository(stack, 'Repository', {
const repository = new codecommit.Repository(this, 'Repository', {
repositoryName: 'MyRepositoryName'

@@ -28,7 +28,31 @@ });

### CodePipeline
To use a CodeCommit Repository in a CodePipeline:
```ts
import codecommit = require('@aws-cdk/aws-codecommit');
import codepipeline = require('@aws-cdk/aws-codepipeline');
// see above for the details...
const repository = new codecommit.Repository( // ...
);
const pipeline = new codepipeline.Pipeline(this, 'MyPipeline', {
pipelineName: 'MyPipeline',
});
const sourceStage = new codepipeline.Stage(pipeline, 'Source');
const sourceAction = new codecommit.PipelineSource(this, 'CodeCommit', {
stage: sourceStage,
artifactName: 'SourceOutput', //name can be arbitrary
repository,
});
// use sourceAction.artifact as the inputArtifact to later Actions...
```
### Events
CodeCommit repositories emit CloudWatch events for certain activity. Use the
`repo.onXxx` methods to define rules that trigger on these events and invoke
targets as a result:
CodeCommit repositories emit CloudWatch events for certain activity.
Use the `repo.onXxx` methods to define rules that trigger on these events
and invoke targets as a result:

@@ -35,0 +59,0 @@ ```ts

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc