Cdk component that checks if system parameters are set correctly
Project description
@cloudcomponents/cdk-codepipeline-check-parameter-action
Cdk component that checks if system parameters are set correctly
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-codepipeline-check-parameter-action
Python:
pip install cloudcomponents.cdk-codepipeline-check-parameter-action
How to use
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import Construct, Stack, StackProps
from aws_cdk.aws_codecommit import Repository
from aws_cdk.aws_codepipeline import Pipeline, Artifact
from aws_cdk.aws_codepipeline_actions import CodeCommitSourceAction
from cloudcomponents.cdk_codepipeline_check_parameter_action import CodePipelineCheckParameterAction
class CodePipelineCheckParameterActionStack(Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
repository = Repository(self, "Repository",
repository_name="MyRepositoryName"
)
source_artifact = Artifact()
source_action = CodeCommitSourceAction(
action_name="CodeCommit",
repository=repository,
output=source_artifact,
branch="master"
)
check_action = CodePipelineCheckParameterAction(
action_name="Check",
parameter_name="/test",
reg_exp=/^The.*Spain$/,
log_parameter=True
)
Pipeline(self, "MyPipeline",
pipeline_name="MyPipeline",
stages=[StageProps(
stage_name="Source",
actions=[source_action]
), StageProps(
stage_name="Check",
actions=[check_action]
)
]
)
API Reference
See API.md.
Example
See more complete examples.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cloudcomponents.cdk-codepipeline-check-parameter-action-1.31.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99832412c2056e2ef7d266192c5734129c0ffe3d1952bb7963a769657006c150 |
|
MD5 | e1efd9d21091ed284600f9ac4e2f94e3 |
|
BLAKE2b-256 | f86c37a7bb11477d0b7f9cd23362f69484b006fee1c1d134a335864aa038a929 |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-1.31.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a0db144463cbe9a16a28e7eb0b05ee558e02a891fd93fd17b1e15e05052d4f |
|
MD5 | 31004fe55e2884fd837dab8b131b2651 |
|
BLAKE2b-256 | 084eb89362625b62ef7c3a88ad54d399496a18612170c5c37ac86c372dcc1210 |