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.33.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483334f9d6db7da5a298096908cc5d749e5e13d84cab71a7c572a3522d894c9e |
|
MD5 | 58023e825daea012c7fcd36c0fca51a7 |
|
BLAKE2b-256 | fd931fe904440bf520276654933ad40454fd9d90fcbeb3f21a854e29d0b3788d |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-1.33.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff2ea0c3e458ffe22f021d11cc5f4f775a146fe5523933a741c463524122644a |
|
MD5 | 514accf0bd1da5eb9ae8ab6d9975f29b |
|
BLAKE2b-256 | 7bdd270be24c991987cdeef4ed1ecb3cbc3363914c3e20cde1fe044da73dd0a6 |