[](https://github.com/cloudcomponents/cdk-constructs)
# @cloudcomponents/cdk-codepipeline-check-parameter-action
[](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)
[](https://github.com/hupe1980/cdkdx)
[](https://www.npmjs.com/package/@cloudcomponents/cdk-codepipeline-check-parameter-action)
[](https://pypi.org/project/cloudcomponents.cdk-codepipeline-check-parameter-action/)
> Cdk component that checks if system parameters are set correctly
## Install
TypeScript/JavaScript:
```bash
npm i @cloudcomponents/cdk-codepipeline-check-parameter-action
```
Python:
```bash
pip install cloudcomponents.cdk-codepipeline-check-parameter-action
```
## How to use
```python
import { CodePipelineCheckParameterAction } from '@cloudcomponents/cdk-codepipeline-check-parameter-action';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Repository } from 'aws-cdk-lib/aws-codecommit';
import { Pipeline, Artifact } from 'aws-cdk-lib/aws-codepipeline';
import { CodeCommitSourceAction } from 'aws-cdk-lib/aws-codepipeline-actions';
import { Construct } from 'constructs';
export class CodePipelineCheckParameterActionStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
const repository = new Repository(this, 'Repository', {
repositoryName: 'MyRepositoryName',
});
const sourceArtifact = new Artifact();
const sourceAction = new CodeCommitSourceAction({
actionName: 'CodeCommit',
repository,
output: sourceArtifact,
branch: 'master',
});
const checkAction = new CodePipelineCheckParameterAction({
actionName: 'Check',
parameterName: '/test',
regExp: /^The.*Spain$/,
logParameter: true,
});
new Pipeline(this, 'MyPipeline', {
pipelineName: 'MyPipeline',
stages: [
{
stageName: 'Source',
actions: [sourceAction],
},
{
stageName: 'Check',
actions: [checkAction],
},
],
});
}
}
```
## API Reference
See [API.md](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-check-parameter-action/API.md).
## Example
See more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).
## License
[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-check-parameter-action/LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/cloudcomponents/cdk-constructs",
"name": "cloudcomponents.cdk-codepipeline-check-parameter-action",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": null,
"author": "hupe1980",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/a2/32/8abf87637527398730c85d2e28566a6de735ec8496c091a9ea04cbb12c54/cloudcomponents.cdk-codepipeline-check-parameter-action-2.4.0.tar.gz",
"platform": null,
"description": "[](https://github.com/cloudcomponents/cdk-constructs)\n\n# @cloudcomponents/cdk-codepipeline-check-parameter-action\n\n[](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)\n[](https://github.com/hupe1980/cdkdx)\n[](https://www.npmjs.com/package/@cloudcomponents/cdk-codepipeline-check-parameter-action)\n[](https://pypi.org/project/cloudcomponents.cdk-codepipeline-check-parameter-action/)\n\n> Cdk component that checks if system parameters are set correctly\n\n## Install\n\nTypeScript/JavaScript:\n\n```bash\nnpm i @cloudcomponents/cdk-codepipeline-check-parameter-action\n```\n\nPython:\n\n```bash\npip install cloudcomponents.cdk-codepipeline-check-parameter-action\n```\n\n## How to use\n\n```python\nimport { CodePipelineCheckParameterAction } from '@cloudcomponents/cdk-codepipeline-check-parameter-action';\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport { Repository } from 'aws-cdk-lib/aws-codecommit';\nimport { Pipeline, Artifact } from 'aws-cdk-lib/aws-codepipeline';\nimport { CodeCommitSourceAction } from 'aws-cdk-lib/aws-codepipeline-actions';\nimport { Construct } from 'constructs';\n\nexport class CodePipelineCheckParameterActionStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n\n const repository = new Repository(this, 'Repository', {\n repositoryName: 'MyRepositoryName',\n });\n\n const sourceArtifact = new Artifact();\n\n const sourceAction = new CodeCommitSourceAction({\n actionName: 'CodeCommit',\n repository,\n output: sourceArtifact,\n branch: 'master',\n });\n\n const checkAction = new CodePipelineCheckParameterAction({\n actionName: 'Check',\n parameterName: '/test',\n regExp: /^The.*Spain$/,\n logParameter: true,\n });\n\n new Pipeline(this, 'MyPipeline', {\n pipelineName: 'MyPipeline',\n stages: [\n {\n stageName: 'Source',\n actions: [sourceAction],\n },\n {\n stageName: 'Check',\n actions: [checkAction],\n },\n ],\n });\n }\n}\n```\n\n## API Reference\n\nSee [API.md](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-check-parameter-action/API.md).\n\n## Example\n\nSee more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).\n\n## License\n\n[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-check-parameter-action/LICENSE)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Cdk component that checks if system parameters are set correctly",
"version": "2.4.0",
"project_urls": {
"Homepage": "https://github.com/cloudcomponents/cdk-constructs",
"Source": "https://github.com/cloudcomponents/cdk-constructs.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "93f3e405ecacddadf5dfed09f5b9b7a79fb5c17bc807b3943cae2c3f3a6f4c6a",
"md5": "29b7455e3b8b4a1f1043ec2e77962a4d",
"sha256": "da8bc0ac99285156450fad3ec7cd15d93778f2ccb19f982a3765c678e65dda51"
},
"downloads": -1,
"filename": "cloudcomponents.cdk_codepipeline_check_parameter_action-2.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "29b7455e3b8b4a1f1043ec2e77962a4d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 143882,
"upload_time": "2024-05-16T19:28:20",
"upload_time_iso_8601": "2024-05-16T19:28:20.466731Z",
"url": "https://files.pythonhosted.org/packages/93/f3/e405ecacddadf5dfed09f5b9b7a79fb5c17bc807b3943cae2c3f3a6f4c6a/cloudcomponents.cdk_codepipeline_check_parameter_action-2.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a2328abf87637527398730c85d2e28566a6de735ec8496c091a9ea04cbb12c54",
"md5": "58a33c112937f6ebdcb710c1cb478a30",
"sha256": "46f6c832878910a9ab727715650f60670e461e96ceec146bcf628c992c8c1229"
},
"downloads": -1,
"filename": "cloudcomponents.cdk-codepipeline-check-parameter-action-2.4.0.tar.gz",
"has_sig": false,
"md5_digest": "58a33c112937f6ebdcb710c1cb478a30",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 144953,
"upload_time": "2024-05-16T19:28:25",
"upload_time_iso_8601": "2024-05-16T19:28:25.884760Z",
"url": "https://files.pythonhosted.org/packages/a2/32/8abf87637527398730c85d2e28566a6de735ec8496c091a9ea04cbb12c54/cloudcomponents.cdk-codepipeline-check-parameter-action-2.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-16 19:28:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cloudcomponents",
"github_project": "cdk-constructs",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cloudcomponents.cdk-codepipeline-check-parameter-action"
}