@aws-cdk/aws-codecommit
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
117261
20
868
64
0
4
+ Added@aws-cdk/aws-codepipeline-api@0.8.2(transitive)
Updated@aws-cdk/aws-events@^0.8.2
Updated@aws-cdk/aws-iam@^0.8.2
Updated@aws-cdk/cdk@^0.8.2