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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a78a5f6c555d2644b532fe8c4de6194537dea3634a5e0b36d51f263b5328eeed |
|
MD5 | 96ec86aaca1c9164849d01f44610ea2d |
|
BLAKE2b-256 | 9905b70c07abb9076e3000e723fdbac4214a91539b2d5145067dfb9bce4e435b |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-1.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89a9ca03d1621e18999ff37e63c3415d232d0e38d37438ee98284b56efc81e5 |
|
MD5 | 171f8d305fee0d95b25b62030b931571 |
|
BLAKE2b-256 | a507428c6920e5c7df831a4e7e08c6fd99b2fa64b96364b1618334c9d1b6609e |