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):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
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.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f81f8eeb0d4ea3d87a63450d313a97e5153bdeeee47a1061b316ec56f8243772 |
|
MD5 | b620fe51a8ab1afa7df03d26fdf14621 |
|
BLAKE2b-256 | 93f305b95d77e4db0bfe81d54c95dd5d0826635f57d8c464e1f23f379637f983 |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd8032290319e938445ae4bba85671b037e8c825e0e536c98beeeb271e54ecc4 |
|
MD5 | 98958763e511698a96ecb5b58213698c |
|
BLAKE2b-256 | defe6c31987a97e761617f8003c6e539016be5054cd6721bb04ed88358988f42 |