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.20.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0b98073a9c102afefc77516c5f86c7adfc0dc11b777317b6d46eef411a9c400 |
|
MD5 | 619a27b5c928af87a2e0df5d27021a27 |
|
BLAKE2b-256 | 74ae63a2117ba73d869f0a830b7bd49e692a0ebf5f7ce7739e2030435831eed9 |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-1.20.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ef6960ef558f04aad2ee3c35685870f484b6d5168fab207e498de6b9c23f3e |
|
MD5 | 183b58c856e6eedc14f2442745a2e6b8 |
|
BLAKE2b-256 | 49882bb3f054775b7382a53465d6a2bb2b67cecc3960c4e3fd5e0941fd4c826e |