CfnPipelinePropsMixin
- class aws_cdk.mixins_preview.aws_codepipeline.mixins.CfnPipelinePropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::CodePipeline::Pipelineresource creates a CodePipeline pipeline that describes how software changes go through a release process.For more information, see What Is CodePipeline? in the CodePipeline User Guide .
For an example in YAML and JSON that contains the parameters in this reference, see Examples .
- See:
- CloudformationResource:
AWS::CodePipeline::Pipeline
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any cfn_pipeline_props_mixin = codepipeline_mixins.CfnPipelinePropsMixin(codepipeline_mixins.CfnPipelineMixinProps( artifact_store=codepipeline_mixins.CfnPipelinePropsMixin.ArtifactStoreProperty( encryption_key=codepipeline_mixins.CfnPipelinePropsMixin.EncryptionKeyProperty( id="id", type="type" ), location="location", type="type" ), artifact_stores=[codepipeline_mixins.CfnPipelinePropsMixin.ArtifactStoreMapProperty( artifact_store=codepipeline_mixins.CfnPipelinePropsMixin.ArtifactStoreProperty( encryption_key=codepipeline_mixins.CfnPipelinePropsMixin.EncryptionKeyProperty( id="id", type="type" ), location="location", type="type" ), region="region" )], disable_inbound_stage_transitions=[codepipeline_mixins.CfnPipelinePropsMixin.StageTransitionProperty( reason="reason", stage_name="stageName" )], execution_mode="executionMode", name="name", pipeline_type="pipelineType", restart_execution_on_update=False, role_arn="roleArn", stages=[codepipeline_mixins.CfnPipelinePropsMixin.StageDeclarationProperty( actions=[codepipeline_mixins.CfnPipelinePropsMixin.ActionDeclarationProperty( action_type_id=codepipeline_mixins.CfnPipelinePropsMixin.ActionTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ), commands=["commands"], configuration=configuration, environment_variables=[codepipeline_mixins.CfnPipelinePropsMixin.EnvironmentVariableProperty( name="name", type="type", value="value" )], input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", namespace="namespace", output_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.OutputArtifactProperty( files=["files"], name="name" )], output_variables=["outputVariables"], region="region", role_arn="roleArn", run_order=123, timeout_in_minutes=123 )], before_entry=codepipeline_mixins.CfnPipelinePropsMixin.BeforeEntryConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )] ), blockers=[codepipeline_mixins.CfnPipelinePropsMixin.BlockerDeclarationProperty( name="name", type="type" )], name="name", on_failure=codepipeline_mixins.CfnPipelinePropsMixin.FailureConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )], result="result", retry_configuration=codepipeline_mixins.CfnPipelinePropsMixin.RetryConfigurationProperty( retry_mode="retryMode" ) ), on_success=codepipeline_mixins.CfnPipelinePropsMixin.SuccessConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )] ) )], tags=[CfnTag( key="key", value="value" )], triggers=[codepipeline_mixins.CfnPipelinePropsMixin.PipelineTriggerDeclarationProperty( git_configuration=codepipeline_mixins.CfnPipelinePropsMixin.GitConfigurationProperty( pull_request=[codepipeline_mixins.CfnPipelinePropsMixin.GitPullRequestFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), events=["events"], file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )], push=[codepipeline_mixins.CfnPipelinePropsMixin.GitPushFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), tags=codepipeline_mixins.CfnPipelinePropsMixin.GitTagFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )], source_action_name="sourceActionName" ), provider_type="providerType" )], variables=[codepipeline_mixins.CfnPipelinePropsMixin.VariableDeclarationProperty( default_value="defaultValue", description="description", name="name" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CodePipeline::Pipeline.- Parameters:
props (
Union[CfnPipelineMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['artifactStore', 'artifactStores', 'disableInboundStageTransitions', 'executionMode', 'name', 'pipelineType', 'restartExecutionOnUpdate', 'roleArn', 'stages', 'tags', 'triggers', 'variables']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ActionDeclarationProperty
- class CfnPipelinePropsMixin.ActionDeclarationProperty(*, action_type_id=None, commands=None, configuration=None, environment_variables=None, input_artifacts=None, name=None, namespace=None, output_artifacts=None, output_variables=None, region=None, role_arn=None, run_order=None, timeout_in_minutes=None)
Bases:
objectRepresents information about an action declaration.
- Parameters:
action_type_id (
Union[IResolvable,ActionTypeIdProperty,Dict[str,Any],None]) – Specifies the action type and the provider of the action.commands (
Optional[Sequence[str]]) – The shell commands to run with your compute action in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild. .. epigraph:: Using compute time for this action will incur separate charges in AWS CodeBuild .configuration (
Any) – The action’s configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the AWS CloudFormation action type in CodePipeline, see Configuration Properties Reference in the AWS CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the AWS CloudFormation User Guide . The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows: JSON:"Configuration" : { Key : Value },environment_variables (
Union[IResolvable,Sequence[Union[IResolvable,EnvironmentVariableProperty,Dict[str,Any]]],None]) – The environment variables for the action.input_artifacts (
Union[IResolvable,Sequence[Union[IResolvable,InputArtifactProperty,Dict[str,Any]]],None]) – The name or ID of the artifact consumed by the action, such as a test or build artifact. While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of input artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide . .. epigraph:: For a CodeBuild action with multiple input artifacts, one of your input sources must be designated the PrimarySource. For more information, see the CodeBuild action reference page in the AWS CodePipeline User Guide .name (
Optional[str]) – The action declaration’s name.namespace (
Optional[str]) – The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.output_artifacts (
Union[IResolvable,Sequence[Union[IResolvable,OutputArtifactProperty,Dict[str,Any]]],None]) –The name or ID of the result of the action declaration, such as a test or build artifact. While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of output artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide .
output_variables (
Optional[Sequence[str]]) – The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.region (
Optional[str]) – The action declaration’s AWS Region, such as us-east-1.role_arn (
Optional[str]) – The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.run_order (
Union[int,float,None]) – The order in which actions are run.timeout_in_minutes (
Union[int,float,None]) – A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in Quotas for AWS CodePipeline . This attribute is available only to the manual approval ActionType.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any action_declaration_property = codepipeline_mixins.CfnPipelinePropsMixin.ActionDeclarationProperty( action_type_id=codepipeline_mixins.CfnPipelinePropsMixin.ActionTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ), commands=["commands"], configuration=configuration, environment_variables=[codepipeline_mixins.CfnPipelinePropsMixin.EnvironmentVariableProperty( name="name", type="type", value="value" )], input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", namespace="namespace", output_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.OutputArtifactProperty( files=["files"], name="name" )], output_variables=["outputVariables"], region="region", role_arn="roleArn", run_order=123, timeout_in_minutes=123 )
Attributes
- action_type_id
Specifies the action type and the provider of the action.
- commands
The shell commands to run with your compute action in CodePipeline.
All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild. .. epigraph:
Using compute time for this action will incur separate charges in AWS CodeBuild .
- configuration
The action’s configuration.
These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the AWS CloudFormation action type in CodePipeline, see Configuration Properties Reference in the AWS CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the AWS CloudFormation User Guide .
The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:
JSON:
"Configuration" : { Key : Value },
- environment_variables
The environment variables for the action.
- input_artifacts
The name or ID of the artifact consumed by the action, such as a test or build artifact.
While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of input artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide . .. epigraph:
For a CodeBuild action with multiple input artifacts, one of your input sources must be designated the PrimarySource. For more information, see the `CodeBuild action reference page <https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodeBuild.html>`_ in the *AWS CodePipeline User Guide* .
- name
The action declaration’s name.
- namespace
The variable namespace associated with the action.
All variables produced as output by this action fall under this namespace.
- output_artifacts
The name or ID of the result of the action declaration, such as a test or build artifact.
While the field is not a required parameter, most actions have an action configuration that requires a specified quantity of output artifacts. To refer to the action configuration specification by action provider, see the Action structure reference in the AWS CodePipeline User Guide .
- output_variables
The list of variables that are to be exported from the compute action.
This is specifically CodeBuild environment variables as used for that action.
- region
The action declaration’s AWS Region, such as us-east-1.
- role_arn
The ARN of the IAM service role that performs the declared action.
This is assumed through the roleArn for the pipeline.
- run_order
The order in which actions are run.
- timeout_in_minutes
A timeout duration in minutes that can be applied against the ActionType’s default timeout value specified in Quotas for AWS CodePipeline . This attribute is available only to the manual approval ActionType.
ActionTypeIdProperty
- class CfnPipelinePropsMixin.ActionTypeIdProperty(*, category=None, owner=None, provider=None, version=None)
Bases:
objectRepresents information about an action type.
- Parameters:
category (
Optional[str]) – A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below. -Source-Build-Test-Deploy-Invoke-Approval-Computeowner (
Optional[str]) – The creator of the action being called. There are three valid values for theOwnerfield in the action category section within your pipeline structure:AWS,ThirdParty, andCustom. For more information, see Valid Action Types and Providers in CodePipeline .provider (
Optional[str]) –The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of CodeDeploy, which would be specified as
CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline .version (
Optional[str]) – A string that describes the action version.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins action_type_id_property = codepipeline_mixins.CfnPipelinePropsMixin.ActionTypeIdProperty( category="category", owner="owner", provider="provider", version="version" )
Attributes
- category
A category defines what kind of action can be taken in the stage, and constrains the provider type for the action.
Valid categories are limited to one of the values below.
SourceBuildTestDeployInvokeApprovalCompute
- owner
The creator of the action being called.
There are three valid values for the
Ownerfield in the action category section within your pipeline structure:AWS,ThirdParty, andCustom. For more information, see Valid Action Types and Providers in CodePipeline .
- provider
The provider of the service being called by the action.
Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of CodeDeploy, which would be specified as
CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline .
- version
A string that describes the action version.
ArtifactStoreMapProperty
- class CfnPipelinePropsMixin.ArtifactStoreMapProperty(*, artifact_store=None, region=None)
Bases:
objectA mapping of
artifactStoreobjects and their corresponding AWS Regions.There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline. .. epigraph:
You must include either ``artifactStore`` or ``artifactStores`` in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use ``artifactStores`` .
- Parameters:
artifact_store (
Union[IResolvable,ArtifactStoreProperty,Dict[str,Any],None]) – Represents information about the S3 bucket where artifacts are stored for the pipeline. .. epigraph:: You must include eitherartifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.region (
Optional[str]) – The action declaration’s AWS Region, such as us-east-1.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins artifact_store_map_property = codepipeline_mixins.CfnPipelinePropsMixin.ArtifactStoreMapProperty( artifact_store=codepipeline_mixins.CfnPipelinePropsMixin.ArtifactStoreProperty( encryption_key=codepipeline_mixins.CfnPipelinePropsMixin.EncryptionKeyProperty( id="id", type="type" ), location="location", type="type" ), region="region" )
Attributes
- artifact_store
Represents information about the S3 bucket where artifacts are stored for the pipeline.
You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.
- region
The action declaration’s AWS Region, such as us-east-1.
ArtifactStoreProperty
- class CfnPipelinePropsMixin.ArtifactStoreProperty(*, encryption_key=None, location=None, type=None)
Bases:
objectThe S3 bucket where artifacts for the pipeline are stored.
You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores.- Parameters:
encryption_key (
Union[IResolvable,EncryptionKeyProperty,Dict[str,Any],None]) – The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service ( AWS KMS) key. If this is undefined, the default key for Amazon S3 is used. To see an example artifact store encryption key field, see the example structure here: AWS::CodePipeline::Pipeline .location (
Optional[str]) – The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts.type (
Optional[str]) – The type of the artifact store, such as S3.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins artifact_store_property = codepipeline_mixins.CfnPipelinePropsMixin.ArtifactStoreProperty( encryption_key=codepipeline_mixins.CfnPipelinePropsMixin.EncryptionKeyProperty( id="id", type="type" ), location="location", type="type" )
Attributes
- encryption_key
The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service ( AWS KMS) key.
If this is undefined, the default key for Amazon S3 is used. To see an example artifact store encryption key field, see the example structure here: AWS::CodePipeline::Pipeline .
- location
The S3 bucket used for storing the artifacts for a pipeline.
You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts.
- type
The type of the artifact store, such as S3.
BeforeEntryConditionsProperty
- class CfnPipelinePropsMixin.BeforeEntryConditionsProperty(*, conditions=None)
Bases:
objectThe conditions for making checks for entry to a stage.
For more information about conditions, see Stage conditions and How do stage conditions work? .
- Parameters:
conditions (
Union[IResolvable,Sequence[Union[IResolvable,ConditionProperty,Dict[str,Any]]],None]) – The conditions that are configured as entry conditions.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any before_entry_conditions_property = codepipeline_mixins.CfnPipelinePropsMixin.BeforeEntryConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )] )
Attributes
- conditions
The conditions that are configured as entry conditions.
BlockerDeclarationProperty
- class CfnPipelinePropsMixin.BlockerDeclarationProperty(*, name=None, type=None)
Bases:
objectReserved for future use.
- Parameters:
name (
Optional[str]) – Reserved for future use.type (
Optional[str]) – Reserved for future use.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins blocker_declaration_property = codepipeline_mixins.CfnPipelinePropsMixin.BlockerDeclarationProperty( name="name", type="type" )
Attributes
- name
Reserved for future use.
ConditionProperty
- class CfnPipelinePropsMixin.ConditionProperty(*, result=None, rules=None)
Bases:
objectThe condition for the stage.
A condition is made up of the rules and the result for the condition. For more information about conditions, see Stage conditions and How do stage conditions work? .. For more information about rules, see the AWS CodePipeline rule reference .
- Parameters:
result (
Optional[str]) – The action to be done when the condition is met. For example, rolling back an execution for a failure condition.rules (
Union[IResolvable,Sequence[Union[IResolvable,RuleDeclarationProperty,Dict[str,Any]]],None]) – The rules that make up the condition.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any condition_property = codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )
Attributes
- result
The action to be done when the condition is met.
For example, rolling back an execution for a failure condition.
- rules
The rules that make up the condition.
EncryptionKeyProperty
- class CfnPipelinePropsMixin.EncryptionKeyProperty(*, id=None, type=None)
Bases:
objectRepresents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service ( AWS KMS) key.
EncryptionKeyis a property of the ArtifactStore property type.- Parameters:
id (
Optional[str]) – The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN. .. epigraph:: Aliases are recognized only in the account that created the AWS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).type (
Optional[str]) – The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to ‘KMS’.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins encryption_key_property = codepipeline_mixins.CfnPipelinePropsMixin.EncryptionKeyProperty( id="id", type="type" )
Attributes
- id
The ID used to identify the key.
For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN. .. epigraph:
Aliases are recognized only in the account that created the AWS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
- type
The type of encryption key, such as an AWS KMS key.
When creating or updating a pipeline, the value must be set to ‘KMS’.
EnvironmentVariableProperty
- class CfnPipelinePropsMixin.EnvironmentVariableProperty(*, name=None, type=None, value=None)
Bases:
objectThe environment variables for the action.
- Parameters:
name (
Optional[str]) – The environment variable name in the key-value pair.type (
Optional[str]) – Specifies the type of use for the environment variable value. The value can be eitherPLAINTEXTorSECRETS_MANAGER. If the value isSECRETS_MANAGER, provide the Secrets reference in the EnvironmentVariable value.value (
Optional[str]) – The environment variable value in the key-value pair.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins environment_variable_property = codepipeline_mixins.CfnPipelinePropsMixin.EnvironmentVariableProperty( name="name", type="type", value="value" )
Attributes
- name
The environment variable name in the key-value pair.
- type
Specifies the type of use for the environment variable value.
The value can be either
PLAINTEXTorSECRETS_MANAGER. If the value isSECRETS_MANAGER, provide the Secrets reference in the EnvironmentVariable value.
- value
The environment variable value in the key-value pair.
FailureConditionsProperty
- class CfnPipelinePropsMixin.FailureConditionsProperty(*, conditions=None, result=None, retry_configuration=None)
Bases:
objectThe configuration that specifies the result, such as rollback, to occur upon stage failure.
For more information about conditions, see Stage conditions and How do stage conditions work? .
- Parameters:
conditions (
Union[IResolvable,Sequence[Union[IResolvable,ConditionProperty,Dict[str,Any]]],None]) –The conditions that are configured as failure conditions. For more information about conditions, see Stage conditions and How do stage conditions work? .
result (
Optional[str]) – The specified result for when the failure conditions are met, such as rolling back the stage.retry_configuration (
Union[IResolvable,RetryConfigurationProperty,Dict[str,Any],None]) – The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any failure_conditions_property = codepipeline_mixins.CfnPipelinePropsMixin.FailureConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )], result="result", retry_configuration=codepipeline_mixins.CfnPipelinePropsMixin.RetryConfigurationProperty( retry_mode="retryMode" ) )
Attributes
- conditions
The conditions that are configured as failure conditions.
For more information about conditions, see Stage conditions and How do stage conditions work? .
- result
The specified result for when the failure conditions are met, such as rolling back the stage.
- retry_configuration
The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
GitBranchFilterCriteriaProperty
- class CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty(*, excludes=None, includes=None)
Bases:
objectThe Git repository branches specified as filter criteria to start the pipeline.
- Parameters:
excludes (
Optional[Sequence[str]]) – The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.includes (
Optional[Sequence[str]]) – The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins git_branch_filter_criteria_property = codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] )
Attributes
- excludes
The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
- includes
The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
GitConfigurationProperty
- class CfnPipelinePropsMixin.GitConfigurationProperty(*, pull_request=None, push=None, source_action_name=None)
Bases:
objectA type of trigger configuration for Git-based source actions.
You can specify the Git configuration trigger type for all third-party Git-based source actions that are supported by the
CodeStarSourceConnectionaction type.- Parameters:
pull_request (
Union[IResolvable,Sequence[Union[IResolvable,GitPullRequestFilterProperty,Dict[str,Any]]],None]) – The field where the repository event that will start the pipeline is specified as pull requests.push (
Union[IResolvable,Sequence[Union[IResolvable,GitPushFilterProperty,Dict[str,Any]]],None]) – The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.source_action_name (
Optional[str]) – The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only. .. epigraph:: You can only specify one trigger configuration per source action.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins git_configuration_property = codepipeline_mixins.CfnPipelinePropsMixin.GitConfigurationProperty( pull_request=[codepipeline_mixins.CfnPipelinePropsMixin.GitPullRequestFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), events=["events"], file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )], push=[codepipeline_mixins.CfnPipelinePropsMixin.GitPushFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), tags=codepipeline_mixins.CfnPipelinePropsMixin.GitTagFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )], source_action_name="sourceActionName" )
Attributes
- pull_request
The field where the repository event that will start the pipeline is specified as pull requests.
- push
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
- source_action_name
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified.
The trigger configuration will start the pipeline upon the specified change only. .. epigraph:
You can only specify one trigger configuration per source action.
GitFilePathFilterCriteriaProperty
- class CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty(*, excludes=None, includes=None)
Bases:
objectThe Git repository file paths specified as filter criteria to start the pipeline.
- Parameters:
excludes (
Optional[Sequence[str]]) – The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.includes (
Optional[Sequence[str]]) – The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins git_file_path_filter_criteria_property = codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] )
Attributes
- excludes
The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.
- includes
The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.
GitPullRequestFilterProperty
- class CfnPipelinePropsMixin.GitPullRequestFilterProperty(*, branches=None, events=None, file_paths=None)
Bases:
objectThe event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.
The following are valid values for the events for this filter:
CLOSED
OPEN
UPDATED
- Parameters:
branches (
Union[IResolvable,GitBranchFilterCriteriaProperty,Dict[str,Any],None]) – The field that specifies to filter on branches for the pull request trigger configuration.events (
Optional[Sequence[str]]) – The field that specifies which pull request events to filter on (OPEN, UPDATED, CLOSED) for the trigger configuration.file_paths (
Union[IResolvable,GitFilePathFilterCriteriaProperty,Dict[str,Any],None]) – The field that specifies to filter on file paths for the pull request trigger configuration.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins git_pull_request_filter_property = codepipeline_mixins.CfnPipelinePropsMixin.GitPullRequestFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), events=["events"], file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )
Attributes
- branches
The field that specifies to filter on branches for the pull request trigger configuration.
- events
The field that specifies which pull request events to filter on (OPEN, UPDATED, CLOSED) for the trigger configuration.
- file_paths
The field that specifies to filter on file paths for the pull request trigger configuration.
GitPushFilterProperty
- class CfnPipelinePropsMixin.GitPushFilterProperty(*, branches=None, file_paths=None, tags=None)
Bases:
objectThe event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.
- Parameters:
branches (
Union[IResolvable,GitBranchFilterCriteriaProperty,Dict[str,Any],None]) – The field that specifies to filter on branches for the push trigger configuration.file_paths (
Union[IResolvable,GitFilePathFilterCriteriaProperty,Dict[str,Any],None]) – The field that specifies to filter on file paths for the push trigger configuration.tags (
Union[GitTagFilterCriteriaProperty,Dict[str,Any],None]) – The field that contains the details for the Git tags trigger configuration.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins git_push_filter_property = codepipeline_mixins.CfnPipelinePropsMixin.GitPushFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), tags=codepipeline_mixins.CfnPipelinePropsMixin.GitTagFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )
Attributes
- branches
The field that specifies to filter on branches for the push trigger configuration.
- file_paths
The field that specifies to filter on file paths for the push trigger configuration.
- tags
The field that contains the details for the Git tags trigger configuration.
GitTagFilterCriteriaProperty
- class CfnPipelinePropsMixin.GitTagFilterCriteriaProperty(*, excludes=None, includes=None)
Bases:
objectThe Git tags specified as filter criteria for whether a Git tag repository event will start the pipeline.
- Parameters:
excludes (
Optional[Sequence[str]]) – The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.includes (
Optional[Sequence[str]]) – The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins git_tag_filter_criteria_property = codepipeline_mixins.CfnPipelinePropsMixin.GitTagFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] )
Attributes
- excludes
The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
- includes
The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
InputArtifactProperty
- class CfnPipelinePropsMixin.InputArtifactProperty(*, name=None)
Bases:
objectRepresents information about an artifact to be worked on, such as a test or build artifact.
- Parameters:
name (
Optional[str]) – The name of the artifact to be worked on (for example, “My App”). Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins input_artifact_property = codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )
Attributes
- name
The name of the artifact to be worked on (for example, “My App”).
Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip
The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.
OutputArtifactProperty
- class CfnPipelinePropsMixin.OutputArtifactProperty(*, files=None, name=None)
Bases:
objectRepresents information about the output of an action.
- Parameters:
files (
Optional[Sequence[str]]) – The files that you want to associate with the output artifact that will be exported from the compute action.name (
Optional[str]) – The name of the output of an artifact, such as “My App”. The output artifact name must exactly match the input artifact declared for a downstream action. However, the downstream action’s input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions. Output artifact names must be unique within a pipeline.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins output_artifact_property = codepipeline_mixins.CfnPipelinePropsMixin.OutputArtifactProperty( files=["files"], name="name" )
Attributes
- files
The files that you want to associate with the output artifact that will be exported from the compute action.
- name
The name of the output of an artifact, such as “My App”.
The output artifact name must exactly match the input artifact declared for a downstream action. However, the downstream action’s input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.
Output artifact names must be unique within a pipeline.
PipelineTriggerDeclarationProperty
- class CfnPipelinePropsMixin.PipelineTriggerDeclarationProperty(*, git_configuration=None, provider_type=None)
Bases:
objectRepresents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.
This is only supported for the
CodeStarSourceConnectionaction type. > When a trigger configuration is specified, default change detection for repository and branch commits is disabled.- Parameters:
git_configuration (
Union[IResolvable,GitConfigurationProperty,Dict[str,Any],None]) – Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.provider_type (
Optional[str]) – The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins pipeline_trigger_declaration_property = codepipeline_mixins.CfnPipelinePropsMixin.PipelineTriggerDeclarationProperty( git_configuration=codepipeline_mixins.CfnPipelinePropsMixin.GitConfigurationProperty( pull_request=[codepipeline_mixins.CfnPipelinePropsMixin.GitPullRequestFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), events=["events"], file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )], push=[codepipeline_mixins.CfnPipelinePropsMixin.GitPushFilterProperty( branches=codepipeline_mixins.CfnPipelinePropsMixin.GitBranchFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), file_paths=codepipeline_mixins.CfnPipelinePropsMixin.GitFilePathFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ), tags=codepipeline_mixins.CfnPipelinePropsMixin.GitTagFilterCriteriaProperty( excludes=["excludes"], includes=["includes"] ) )], source_action_name="sourceActionName" ), provider_type="providerType" )
Attributes
- git_configuration
Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
- provider_type
The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
RetryConfigurationProperty
- class CfnPipelinePropsMixin.RetryConfigurationProperty(*, retry_mode=None)
Bases:
objectThe retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
- Parameters:
retry_mode (
Optional[str]) – The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins retry_configuration_property = codepipeline_mixins.CfnPipelinePropsMixin.RetryConfigurationProperty( retry_mode="retryMode" )
Attributes
- retry_mode
The method that you want to configure for automatic stage retry on stage failure.
You can specify to retry only failed action in the stage or all actions in the stage.
RuleDeclarationProperty
- class CfnPipelinePropsMixin.RuleDeclarationProperty(*, commands=None, configuration=None, input_artifacts=None, name=None, region=None, role_arn=None, rule_type_id=None)
Bases:
objectRepresents information about the rule to be created for an associated condition.
An example would be creating a new rule for an entry condition, such as a rule that checks for a test result before allowing the run to enter the deployment stage. For more information about conditions, see Stage conditions and How do stage conditions work? . For more information about rules, see the AWS CodePipeline rule reference .
- Parameters:
commands (
Optional[Sequence[str]]) – The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild. .. epigraph:: Using compute time for this action will incur separate charges in AWS CodeBuild .configuration (
Any) – The action configuration fields for the rule.input_artifacts (
Union[IResolvable,Sequence[Union[IResolvable,InputArtifactProperty,Dict[str,Any]]],None]) – The input artifacts fields for the rule, such as specifying an input file for the rule.name (
Optional[str]) – The name of the rule that is created for the condition, such asVariableCheck.region (
Optional[str]) – The Region for the condition associated with the rule.role_arn (
Optional[str]) – The pipeline role ARN associated with the rule.rule_type_id (
Union[IResolvable,RuleTypeIdProperty,Dict[str,Any],None]) – The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any rule_declaration_property = codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )
Attributes
- commands
The shell commands to run with your commands rule in CodePipeline.
All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild. .. epigraph:
Using compute time for this action will incur separate charges in AWS CodeBuild .
- configuration
The action configuration fields for the rule.
- input_artifacts
The input artifacts fields for the rule, such as specifying an input file for the rule.
- name
The name of the rule that is created for the condition, such as
VariableCheck.
- region
The Region for the condition associated with the rule.
- role_arn
The pipeline role ARN associated with the rule.
- rule_type_id
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
RuleTypeIdProperty
- class CfnPipelinePropsMixin.RuleTypeIdProperty(*, category=None, owner=None, provider=None, version=None)
Bases:
objectThe ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
For more information about conditions, see Stage conditions . For more information about rules, see the AWS CodePipeline rule reference .
- Parameters:
category (
Optional[str]) – A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. The valid category isRule.owner (
Optional[str]) – The creator of the rule being called. The valid value for theOwnerfield in the rule category isAWS.provider (
Optional[str]) –The rule provider, such as the
DeploymentWindowrule. For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference .version (
Optional[str]) – A string that describes the rule version.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins rule_type_id_property = codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" )
Attributes
- category
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule.
The valid category is
Rule.
- owner
The creator of the rule being called.
The valid value for the
Ownerfield in the rule category isAWS.
- provider
The rule provider, such as the
DeploymentWindowrule.For a list of rule provider names, see the rules listed in the AWS CodePipeline rule reference .
- version
A string that describes the rule version.
StageDeclarationProperty
- class CfnPipelinePropsMixin.StageDeclarationProperty(*, actions=None, before_entry=None, blockers=None, name=None, on_failure=None, on_success=None)
Bases:
objectRepresents information about a stage and its definition.
- Parameters:
actions (
Union[IResolvable,Sequence[Union[IResolvable,ActionDeclarationProperty,Dict[str,Any]]],None]) – The actions included in a stage.before_entry (
Union[IResolvable,BeforeEntryConditionsProperty,Dict[str,Any],None]) – The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.blockers (
Union[IResolvable,Sequence[Union[IResolvable,BlockerDeclarationProperty,Dict[str,Any]]],None]) – Reserved for future use.name (
Optional[str]) – The name of the stage.on_failure (
Union[IResolvable,FailureConditionsProperty,Dict[str,Any],None]) – The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.on_success (
Union[IResolvable,SuccessConditionsProperty,Dict[str,Any],None]) – The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any stage_declaration_property = codepipeline_mixins.CfnPipelinePropsMixin.StageDeclarationProperty( actions=[codepipeline_mixins.CfnPipelinePropsMixin.ActionDeclarationProperty( action_type_id=codepipeline_mixins.CfnPipelinePropsMixin.ActionTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ), commands=["commands"], configuration=configuration, environment_variables=[codepipeline_mixins.CfnPipelinePropsMixin.EnvironmentVariableProperty( name="name", type="type", value="value" )], input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", namespace="namespace", output_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.OutputArtifactProperty( files=["files"], name="name" )], output_variables=["outputVariables"], region="region", role_arn="roleArn", run_order=123, timeout_in_minutes=123 )], before_entry=codepipeline_mixins.CfnPipelinePropsMixin.BeforeEntryConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )] ), blockers=[codepipeline_mixins.CfnPipelinePropsMixin.BlockerDeclarationProperty( name="name", type="type" )], name="name", on_failure=codepipeline_mixins.CfnPipelinePropsMixin.FailureConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )], result="result", retry_configuration=codepipeline_mixins.CfnPipelinePropsMixin.RetryConfigurationProperty( retry_mode="retryMode" ) ), on_success=codepipeline_mixins.CfnPipelinePropsMixin.SuccessConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )] ) )
Attributes
- actions
The actions included in a stage.
- before_entry
The method to use when a stage allows entry.
For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
- blockers
Reserved for future use.
- name
The name of the stage.
- on_failure
The method to use when a stage has not completed successfully.
For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
- on_success
The method to use when a stage has succeeded.
For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
StageTransitionProperty
- class CfnPipelinePropsMixin.StageTransitionProperty(*, reason=None, stage_name=None)
Bases:
objectThe name of the pipeline in which you want to disable the flow of artifacts from one stage to another.
- Parameters:
reason (
Optional[str]) – The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This message is displayed in the pipeline console UI.stage_name (
Optional[str]) – The name of the stage where you want to disable the inbound or outbound transition of artifacts.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins stage_transition_property = codepipeline_mixins.CfnPipelinePropsMixin.StageTransitionProperty( reason="reason", stage_name="stageName" )
Attributes
- reason
The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests.
This message is displayed in the pipeline console UI.
- stage_name
The name of the stage where you want to disable the inbound or outbound transition of artifacts.
SuccessConditionsProperty
- class CfnPipelinePropsMixin.SuccessConditionsProperty(*, conditions=None)
Bases:
objectThe conditions for making checks that, if met, succeed a stage.
For more information about conditions, see Stage conditions and How do stage conditions work? .
- Parameters:
conditions (
Union[IResolvable,Sequence[Union[IResolvable,ConditionProperty,Dict[str,Any]]],None]) – The conditions that are success conditions.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins # configuration: Any success_conditions_property = codepipeline_mixins.CfnPipelinePropsMixin.SuccessConditionsProperty( conditions=[codepipeline_mixins.CfnPipelinePropsMixin.ConditionProperty( result="result", rules=[codepipeline_mixins.CfnPipelinePropsMixin.RuleDeclarationProperty( commands=["commands"], configuration=configuration, input_artifacts=[codepipeline_mixins.CfnPipelinePropsMixin.InputArtifactProperty( name="name" )], name="name", region="region", role_arn="roleArn", rule_type_id=codepipeline_mixins.CfnPipelinePropsMixin.RuleTypeIdProperty( category="category", owner="owner", provider="provider", version="version" ) )] )] )
Attributes
- conditions
The conditions that are success conditions.
VariableDeclarationProperty
- class CfnPipelinePropsMixin.VariableDeclarationProperty(*, default_value=None, description=None, name=None)
Bases:
objectA variable declared at the pipeline level.
- Parameters:
default_value (
Optional[str]) – The value of a pipeline-level variable.description (
Optional[str]) – The description of a pipeline-level variable. It’s used to add additional context about the variable, and not being used at time when pipeline executes.name (
Optional[str]) – The name of a pipeline-level variable.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codepipeline import mixins as codepipeline_mixins variable_declaration_property = codepipeline_mixins.CfnPipelinePropsMixin.VariableDeclarationProperty( default_value="defaultValue", description="description", name="name" )
Attributes
- default_value
The value of a pipeline-level variable.
- description
The description of a pipeline-level variable.
It’s used to add additional context about the variable, and not being used at time when pipeline executes.
- name
The name of a pipeline-level variable.