aws-cdk-lib 2.115.0__py3-none-any.whl → 2.116.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +801 -356
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.115.0.jsii.tgz → aws-cdk-lib@2.116.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +3 -1
- aws_cdk/aws_apigatewayv2/__init__.py +595 -222
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +4 -5
- aws_cdk/aws_applicationautoscaling/__init__.py +51 -15
- aws_cdk/aws_appsync/__init__.py +14 -3
- aws_cdk/aws_autoscaling/__init__.py +6 -0
- aws_cdk/aws_b2bi/__init__.py +2445 -0
- aws_cdk/aws_cloud9/__init__.py +63 -63
- aws_cdk/aws_cloudfront/__init__.py +394 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -2
- aws_cdk/aws_cloudtrail/__init__.py +90 -11
- aws_cdk/aws_cloudwatch/__init__.py +6 -6
- aws_cdk/aws_codedeploy/__init__.py +88 -15
- aws_cdk/aws_codepipeline/__init__.py +645 -0
- aws_cdk/aws_cognito/__init__.py +13 -26
- aws_cdk/aws_config/__init__.py +315 -1
- aws_cdk/aws_connect/__init__.py +532 -37
- aws_cdk/aws_controltower/__init__.py +4 -4
- aws_cdk/aws_datasync/__init__.py +6 -4
- aws_cdk/aws_dms/__init__.py +241 -131
- aws_cdk/aws_dynamodb/__init__.py +8 -0
- aws_cdk/aws_ec2/__init__.py +1030 -45
- aws_cdk/aws_ecr/__init__.py +78 -10
- aws_cdk/aws_ecs/__init__.py +210 -2
- aws_cdk/aws_ecs_patterns/__init__.py +77 -62
- aws_cdk/aws_eks/__init__.py +8 -1
- aws_cdk/aws_elasticache/__init__.py +136 -10
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +10 -13
- aws_cdk/aws_emr/__init__.py +234 -17
- aws_cdk/aws_eventschemas/__init__.py +15 -13
- aws_cdk/aws_fis/__init__.py +33 -13
- aws_cdk/aws_gamelift/__init__.py +47 -0
- aws_cdk/aws_imagebuilder/__init__.py +922 -84
- aws_cdk/aws_internetmonitor/__init__.py +12 -10
- aws_cdk/aws_iot/__init__.py +26 -46
- aws_cdk/aws_iottwinmaker/__init__.py +36 -34
- aws_cdk/aws_lambda/__init__.py +19 -15
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -2
- aws_cdk/aws_logs/__init__.py +6 -6
- aws_cdk/aws_opensearchservice/__init__.py +5 -3
- aws_cdk/aws_organizations/__init__.py +3 -3
- aws_cdk/aws_osis/__init__.py +17 -13
- aws_cdk/aws_rds/__init__.py +6 -0
- aws_cdk/aws_s3/__init__.py +4 -2
- aws_cdk/aws_s3outposts/__init__.py +8 -8
- aws_cdk/aws_sagemaker/__init__.py +17 -94
- aws_cdk/aws_secretsmanager/__init__.py +9 -7
- aws_cdk/aws_securityhub/__init__.py +18 -0
- aws_cdk/aws_servicecatalogappregistry/__init__.py +31 -0
- aws_cdk/aws_ses/__init__.py +58 -11
- aws_cdk/aws_sns/__init__.py +309 -10
- aws_cdk/aws_ssm/__init__.py +3 -5
- aws_cdk/aws_stepfunctions/__init__.py +335 -19
- aws_cdk/aws_stepfunctions_tasks/__init__.py +388 -38
- aws_cdk/aws_transfer/__init__.py +37 -10
- aws_cdk/custom_resources/__init__.py +443 -1
- aws_cdk/triggers/__init__.py +5 -2
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/RECORD +66 -65
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/top_level.txt +0 -0
|
@@ -2214,10 +2214,34 @@ class CfnPipeline(
|
|
|
2214
2214
|
stage_name="stageName"
|
|
2215
2215
|
)],
|
|
2216
2216
|
name="name",
|
|
2217
|
+
pipeline_type="pipelineType",
|
|
2217
2218
|
restart_execution_on_update=False,
|
|
2218
2219
|
tags=[CfnTag(
|
|
2219
2220
|
key="key",
|
|
2220
2221
|
value="value"
|
|
2222
|
+
)],
|
|
2223
|
+
triggers=[codepipeline.CfnPipeline.PipelineTriggerDeclarationProperty(
|
|
2224
|
+
provider_type="providerType",
|
|
2225
|
+
|
|
2226
|
+
# the properties below are optional
|
|
2227
|
+
git_configuration=codepipeline.CfnPipeline.GitConfigurationProperty(
|
|
2228
|
+
source_action_name="sourceActionName",
|
|
2229
|
+
|
|
2230
|
+
# the properties below are optional
|
|
2231
|
+
push=[codepipeline.CfnPipeline.GitPushFilterProperty(
|
|
2232
|
+
tags=codepipeline.CfnPipeline.GitTagFilterCriteriaProperty(
|
|
2233
|
+
excludes=["excludes"],
|
|
2234
|
+
includes=["includes"]
|
|
2235
|
+
)
|
|
2236
|
+
)]
|
|
2237
|
+
)
|
|
2238
|
+
)],
|
|
2239
|
+
variables=[codepipeline.CfnPipeline.VariableDeclarationProperty(
|
|
2240
|
+
name="name",
|
|
2241
|
+
|
|
2242
|
+
# the properties below are optional
|
|
2243
|
+
default_value="defaultValue",
|
|
2244
|
+
description="description"
|
|
2221
2245
|
)]
|
|
2222
2246
|
)
|
|
2223
2247
|
'''
|
|
@@ -2233,8 +2257,11 @@ class CfnPipeline(
|
|
|
2233
2257
|
artifact_stores: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.ArtifactStoreMapProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2234
2258
|
disable_inbound_stage_transitions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.StageTransitionProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2235
2259
|
name: typing.Optional[builtins.str] = None,
|
|
2260
|
+
pipeline_type: typing.Optional[builtins.str] = None,
|
|
2236
2261
|
restart_execution_on_update: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2237
2262
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2263
|
+
triggers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.PipelineTriggerDeclarationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2264
|
+
variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.VariableDeclarationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2238
2265
|
) -> None:
|
|
2239
2266
|
'''
|
|
2240
2267
|
:param scope: Scope in which this resource is defined.
|
|
@@ -2245,8 +2272,11 @@ class CfnPipeline(
|
|
|
2245
2272
|
:param artifact_stores: A mapping of ``artifactStore`` objects 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`` .
|
|
2246
2273
|
:param disable_inbound_stage_transitions: Represents the input of a ``DisableStageTransition`` action.
|
|
2247
2274
|
:param name: The name of the pipeline.
|
|
2275
|
+
:param pipeline_type: CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications. - V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters. - V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration. .. epigraph:: Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs. For information about pricing for CodePipeline, see `Pricing <https://docs.aws.amazon.com/https://aws.amazon.com/codepipeline/pricing/>`_ . For information about which type of pipeline to choose, see `What type of pipeline is right for me? <https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html>`_ .
|
|
2248
2276
|
:param restart_execution_on_update: Indicates whether to rerun the CodePipeline pipeline after you update it.
|
|
2249
2277
|
:param tags: Specifies the tags applied to the pipeline.
|
|
2278
|
+
:param triggers: The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline. .. epigraph:: When a trigger configuration is specified, default change detection for repository and branch commits is disabled.
|
|
2279
|
+
:param variables: A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match ``[A-Za-z0-9@\\-_]+`` .
|
|
2250
2280
|
'''
|
|
2251
2281
|
if __debug__:
|
|
2252
2282
|
type_hints = typing.get_type_hints(_typecheckingstub__43ae22b404f50a75462f3d5423718be3ca300d4e4e15354489d856039eb30278)
|
|
@@ -2259,8 +2289,11 @@ class CfnPipeline(
|
|
|
2259
2289
|
artifact_stores=artifact_stores,
|
|
2260
2290
|
disable_inbound_stage_transitions=disable_inbound_stage_transitions,
|
|
2261
2291
|
name=name,
|
|
2292
|
+
pipeline_type=pipeline_type,
|
|
2262
2293
|
restart_execution_on_update=restart_execution_on_update,
|
|
2263
2294
|
tags=tags,
|
|
2295
|
+
triggers=triggers,
|
|
2296
|
+
variables=variables,
|
|
2264
2297
|
)
|
|
2265
2298
|
|
|
2266
2299
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -2425,6 +2458,19 @@ class CfnPipeline(
|
|
|
2425
2458
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2426
2459
|
jsii.set(self, "name", value)
|
|
2427
2460
|
|
|
2461
|
+
@builtins.property
|
|
2462
|
+
@jsii.member(jsii_name="pipelineType")
|
|
2463
|
+
def pipeline_type(self) -> typing.Optional[builtins.str]:
|
|
2464
|
+
'''CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.'''
|
|
2465
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "pipelineType"))
|
|
2466
|
+
|
|
2467
|
+
@pipeline_type.setter
|
|
2468
|
+
def pipeline_type(self, value: typing.Optional[builtins.str]) -> None:
|
|
2469
|
+
if __debug__:
|
|
2470
|
+
type_hints = typing.get_type_hints(_typecheckingstub__49ec8a511d5cf2162b110bf0ae56ad416154165d52ebcd418648a11da360772a)
|
|
2471
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2472
|
+
jsii.set(self, "pipelineType", value)
|
|
2473
|
+
|
|
2428
2474
|
@builtins.property
|
|
2429
2475
|
@jsii.member(jsii_name="restartExecutionOnUpdate")
|
|
2430
2476
|
def restart_execution_on_update(
|
|
@@ -2456,6 +2502,42 @@ class CfnPipeline(
|
|
|
2456
2502
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2457
2503
|
jsii.set(self, "tagsRaw", value)
|
|
2458
2504
|
|
|
2505
|
+
@builtins.property
|
|
2506
|
+
@jsii.member(jsii_name="triggers")
|
|
2507
|
+
def triggers(
|
|
2508
|
+
self,
|
|
2509
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.PipelineTriggerDeclarationProperty"]]]]:
|
|
2510
|
+
'''The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.'''
|
|
2511
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.PipelineTriggerDeclarationProperty"]]]], jsii.get(self, "triggers"))
|
|
2512
|
+
|
|
2513
|
+
@triggers.setter
|
|
2514
|
+
def triggers(
|
|
2515
|
+
self,
|
|
2516
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.PipelineTriggerDeclarationProperty"]]]],
|
|
2517
|
+
) -> None:
|
|
2518
|
+
if __debug__:
|
|
2519
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ec229be1df5c233edfda39851430510bc5b05e1c924f9c4f280d35e90a7a273e)
|
|
2520
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2521
|
+
jsii.set(self, "triggers", value)
|
|
2522
|
+
|
|
2523
|
+
@builtins.property
|
|
2524
|
+
@jsii.member(jsii_name="variables")
|
|
2525
|
+
def variables(
|
|
2526
|
+
self,
|
|
2527
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.VariableDeclarationProperty"]]]]:
|
|
2528
|
+
'''A list that defines the pipeline variables for a pipeline resource.'''
|
|
2529
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.VariableDeclarationProperty"]]]], jsii.get(self, "variables"))
|
|
2530
|
+
|
|
2531
|
+
@variables.setter
|
|
2532
|
+
def variables(
|
|
2533
|
+
self,
|
|
2534
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.VariableDeclarationProperty"]]]],
|
|
2535
|
+
) -> None:
|
|
2536
|
+
if __debug__:
|
|
2537
|
+
type_hints = typing.get_type_hints(_typecheckingstub__750515260661993ecfa4350c79274cb5f97f27ed37abd879c232ab4d1d581b16)
|
|
2538
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2539
|
+
jsii.set(self, "variables", value)
|
|
2540
|
+
|
|
2459
2541
|
@jsii.data_type(
|
|
2460
2542
|
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.ActionDeclarationProperty",
|
|
2461
2543
|
jsii_struct_bases=[],
|
|
@@ -3136,6 +3218,229 @@ class CfnPipeline(
|
|
|
3136
3218
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
3137
3219
|
)
|
|
3138
3220
|
|
|
3221
|
+
@jsii.data_type(
|
|
3222
|
+
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.GitConfigurationProperty",
|
|
3223
|
+
jsii_struct_bases=[],
|
|
3224
|
+
name_mapping={"source_action_name": "sourceActionName", "push": "push"},
|
|
3225
|
+
)
|
|
3226
|
+
class GitConfigurationProperty:
|
|
3227
|
+
def __init__(
|
|
3228
|
+
self,
|
|
3229
|
+
*,
|
|
3230
|
+
source_action_name: builtins.str,
|
|
3231
|
+
push: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.GitPushFilterProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3232
|
+
) -> None:
|
|
3233
|
+
'''A type of trigger configuration for Git-based source actions.
|
|
3234
|
+
|
|
3235
|
+
.. epigraph::
|
|
3236
|
+
|
|
3237
|
+
You can specify the Git configuration trigger type for all third-party Git-based source actions that are supported by the ``CodeStarSourceConnection`` action type.
|
|
3238
|
+
|
|
3239
|
+
:param 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.
|
|
3240
|
+
:param push: The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. .. epigraph:: Git tags is the only supported event type.
|
|
3241
|
+
|
|
3242
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitconfiguration.html
|
|
3243
|
+
:exampleMetadata: fixture=_generated
|
|
3244
|
+
|
|
3245
|
+
Example::
|
|
3246
|
+
|
|
3247
|
+
# The code below shows an example of how to instantiate this type.
|
|
3248
|
+
# The values are placeholders you should change.
|
|
3249
|
+
from aws_cdk import aws_codepipeline as codepipeline
|
|
3250
|
+
|
|
3251
|
+
git_configuration_property = codepipeline.CfnPipeline.GitConfigurationProperty(
|
|
3252
|
+
source_action_name="sourceActionName",
|
|
3253
|
+
|
|
3254
|
+
# the properties below are optional
|
|
3255
|
+
push=[codepipeline.CfnPipeline.GitPushFilterProperty(
|
|
3256
|
+
tags=codepipeline.CfnPipeline.GitTagFilterCriteriaProperty(
|
|
3257
|
+
excludes=["excludes"],
|
|
3258
|
+
includes=["includes"]
|
|
3259
|
+
)
|
|
3260
|
+
)]
|
|
3261
|
+
)
|
|
3262
|
+
'''
|
|
3263
|
+
if __debug__:
|
|
3264
|
+
type_hints = typing.get_type_hints(_typecheckingstub__76ac16c602eb78041b136170e0877a83865ceb0c0c451b7e61c00366edce50a8)
|
|
3265
|
+
check_type(argname="argument source_action_name", value=source_action_name, expected_type=type_hints["source_action_name"])
|
|
3266
|
+
check_type(argname="argument push", value=push, expected_type=type_hints["push"])
|
|
3267
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3268
|
+
"source_action_name": source_action_name,
|
|
3269
|
+
}
|
|
3270
|
+
if push is not None:
|
|
3271
|
+
self._values["push"] = push
|
|
3272
|
+
|
|
3273
|
+
@builtins.property
|
|
3274
|
+
def source_action_name(self) -> builtins.str:
|
|
3275
|
+
'''The name of the pipeline source action where the trigger configuration, such as Git tags, is specified.
|
|
3276
|
+
|
|
3277
|
+
The trigger configuration will start the pipeline upon the specified change only.
|
|
3278
|
+
.. epigraph::
|
|
3279
|
+
|
|
3280
|
+
You can only specify one trigger configuration per source action.
|
|
3281
|
+
|
|
3282
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitconfiguration.html#cfn-codepipeline-pipeline-gitconfiguration-sourceactionname
|
|
3283
|
+
'''
|
|
3284
|
+
result = self._values.get("source_action_name")
|
|
3285
|
+
assert result is not None, "Required property 'source_action_name' is missing"
|
|
3286
|
+
return typing.cast(builtins.str, result)
|
|
3287
|
+
|
|
3288
|
+
@builtins.property
|
|
3289
|
+
def push(
|
|
3290
|
+
self,
|
|
3291
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.GitPushFilterProperty"]]]]:
|
|
3292
|
+
'''The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
|
|
3293
|
+
|
|
3294
|
+
.. epigraph::
|
|
3295
|
+
|
|
3296
|
+
Git tags is the only supported event type.
|
|
3297
|
+
|
|
3298
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitconfiguration.html#cfn-codepipeline-pipeline-gitconfiguration-push
|
|
3299
|
+
'''
|
|
3300
|
+
result = self._values.get("push")
|
|
3301
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPipeline.GitPushFilterProperty"]]]], result)
|
|
3302
|
+
|
|
3303
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3304
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3305
|
+
|
|
3306
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3307
|
+
return not (rhs == self)
|
|
3308
|
+
|
|
3309
|
+
def __repr__(self) -> str:
|
|
3310
|
+
return "GitConfigurationProperty(%s)" % ", ".join(
|
|
3311
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3312
|
+
)
|
|
3313
|
+
|
|
3314
|
+
@jsii.data_type(
|
|
3315
|
+
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.GitPushFilterProperty",
|
|
3316
|
+
jsii_struct_bases=[],
|
|
3317
|
+
name_mapping={"tags": "tags"},
|
|
3318
|
+
)
|
|
3319
|
+
class GitPushFilterProperty:
|
|
3320
|
+
def __init__(
|
|
3321
|
+
self,
|
|
3322
|
+
*,
|
|
3323
|
+
tags: typing.Optional[typing.Union["CfnPipeline.GitTagFilterCriteriaProperty", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
3324
|
+
) -> None:
|
|
3325
|
+
'''The 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.
|
|
3326
|
+
|
|
3327
|
+
:param tags: The field that contains the details for the Git tags trigger configuration.
|
|
3328
|
+
|
|
3329
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitpushfilter.html
|
|
3330
|
+
:exampleMetadata: fixture=_generated
|
|
3331
|
+
|
|
3332
|
+
Example::
|
|
3333
|
+
|
|
3334
|
+
# The code below shows an example of how to instantiate this type.
|
|
3335
|
+
# The values are placeholders you should change.
|
|
3336
|
+
from aws_cdk import aws_codepipeline as codepipeline
|
|
3337
|
+
|
|
3338
|
+
git_push_filter_property = codepipeline.CfnPipeline.GitPushFilterProperty(
|
|
3339
|
+
tags=codepipeline.CfnPipeline.GitTagFilterCriteriaProperty(
|
|
3340
|
+
excludes=["excludes"],
|
|
3341
|
+
includes=["includes"]
|
|
3342
|
+
)
|
|
3343
|
+
)
|
|
3344
|
+
'''
|
|
3345
|
+
if isinstance(tags, dict):
|
|
3346
|
+
tags = CfnPipeline.GitTagFilterCriteriaProperty(**tags)
|
|
3347
|
+
if __debug__:
|
|
3348
|
+
type_hints = typing.get_type_hints(_typecheckingstub__aace18192e6436301eeae21b4cd59bd8cb01b53eb17f6fcb74599b2f74f9ebd0)
|
|
3349
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
3350
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3351
|
+
if tags is not None:
|
|
3352
|
+
self._values["tags"] = tags
|
|
3353
|
+
|
|
3354
|
+
@builtins.property
|
|
3355
|
+
def tags(self) -> typing.Optional["CfnPipeline.GitTagFilterCriteriaProperty"]:
|
|
3356
|
+
'''The field that contains the details for the Git tags trigger configuration.
|
|
3357
|
+
|
|
3358
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitpushfilter.html#cfn-codepipeline-pipeline-gitpushfilter-tags
|
|
3359
|
+
'''
|
|
3360
|
+
result = self._values.get("tags")
|
|
3361
|
+
return typing.cast(typing.Optional["CfnPipeline.GitTagFilterCriteriaProperty"], result)
|
|
3362
|
+
|
|
3363
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3364
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3365
|
+
|
|
3366
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3367
|
+
return not (rhs == self)
|
|
3368
|
+
|
|
3369
|
+
def __repr__(self) -> str:
|
|
3370
|
+
return "GitPushFilterProperty(%s)" % ", ".join(
|
|
3371
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3372
|
+
)
|
|
3373
|
+
|
|
3374
|
+
@jsii.data_type(
|
|
3375
|
+
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.GitTagFilterCriteriaProperty",
|
|
3376
|
+
jsii_struct_bases=[],
|
|
3377
|
+
name_mapping={"excludes": "excludes", "includes": "includes"},
|
|
3378
|
+
)
|
|
3379
|
+
class GitTagFilterCriteriaProperty:
|
|
3380
|
+
def __init__(
|
|
3381
|
+
self,
|
|
3382
|
+
*,
|
|
3383
|
+
excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3384
|
+
includes: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3385
|
+
) -> None:
|
|
3386
|
+
'''The Git tags specified as filter criteria for whether a Git tag repository event will start the pipeline.
|
|
3387
|
+
|
|
3388
|
+
:param excludes: The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
|
|
3389
|
+
:param includes: The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
|
|
3390
|
+
|
|
3391
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gittagfiltercriteria.html
|
|
3392
|
+
:exampleMetadata: fixture=_generated
|
|
3393
|
+
|
|
3394
|
+
Example::
|
|
3395
|
+
|
|
3396
|
+
# The code below shows an example of how to instantiate this type.
|
|
3397
|
+
# The values are placeholders you should change.
|
|
3398
|
+
from aws_cdk import aws_codepipeline as codepipeline
|
|
3399
|
+
|
|
3400
|
+
git_tag_filter_criteria_property = codepipeline.CfnPipeline.GitTagFilterCriteriaProperty(
|
|
3401
|
+
excludes=["excludes"],
|
|
3402
|
+
includes=["includes"]
|
|
3403
|
+
)
|
|
3404
|
+
'''
|
|
3405
|
+
if __debug__:
|
|
3406
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0011c01a814174b9712d97ce1aa7e9a05579a8de4bb3a1cdb0910216a0f71485)
|
|
3407
|
+
check_type(argname="argument excludes", value=excludes, expected_type=type_hints["excludes"])
|
|
3408
|
+
check_type(argname="argument includes", value=includes, expected_type=type_hints["includes"])
|
|
3409
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3410
|
+
if excludes is not None:
|
|
3411
|
+
self._values["excludes"] = excludes
|
|
3412
|
+
if includes is not None:
|
|
3413
|
+
self._values["includes"] = includes
|
|
3414
|
+
|
|
3415
|
+
@builtins.property
|
|
3416
|
+
def excludes(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3417
|
+
'''The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
|
|
3418
|
+
|
|
3419
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gittagfiltercriteria.html#cfn-codepipeline-pipeline-gittagfiltercriteria-excludes
|
|
3420
|
+
'''
|
|
3421
|
+
result = self._values.get("excludes")
|
|
3422
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
3423
|
+
|
|
3424
|
+
@builtins.property
|
|
3425
|
+
def includes(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3426
|
+
'''The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
|
|
3427
|
+
|
|
3428
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gittagfiltercriteria.html#cfn-codepipeline-pipeline-gittagfiltercriteria-includes
|
|
3429
|
+
'''
|
|
3430
|
+
result = self._values.get("includes")
|
|
3431
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
3432
|
+
|
|
3433
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3434
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3435
|
+
|
|
3436
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3437
|
+
return not (rhs == self)
|
|
3438
|
+
|
|
3439
|
+
def __repr__(self) -> str:
|
|
3440
|
+
return "GitTagFilterCriteriaProperty(%s)" % ", ".join(
|
|
3441
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3442
|
+
)
|
|
3443
|
+
|
|
3139
3444
|
@jsii.data_type(
|
|
3140
3445
|
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.InputArtifactProperty",
|
|
3141
3446
|
jsii_struct_bases=[],
|
|
@@ -3248,6 +3553,98 @@ class CfnPipeline(
|
|
|
3248
3553
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
3249
3554
|
)
|
|
3250
3555
|
|
|
3556
|
+
@jsii.data_type(
|
|
3557
|
+
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.PipelineTriggerDeclarationProperty",
|
|
3558
|
+
jsii_struct_bases=[],
|
|
3559
|
+
name_mapping={
|
|
3560
|
+
"provider_type": "providerType",
|
|
3561
|
+
"git_configuration": "gitConfiguration",
|
|
3562
|
+
},
|
|
3563
|
+
)
|
|
3564
|
+
class PipelineTriggerDeclarationProperty:
|
|
3565
|
+
def __init__(
|
|
3566
|
+
self,
|
|
3567
|
+
*,
|
|
3568
|
+
provider_type: builtins.str,
|
|
3569
|
+
git_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.GitConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3570
|
+
) -> None:
|
|
3571
|
+
'''Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.
|
|
3572
|
+
|
|
3573
|
+
.. epigraph::
|
|
3574
|
+
|
|
3575
|
+
This is only supported for the ``CodeStarSourceConnection`` action type. > When a trigger configuration is specified, default change detection for repository and branch commits is disabled.
|
|
3576
|
+
|
|
3577
|
+
:param provider_type: The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
|
|
3578
|
+
:param git_configuration: Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
|
|
3579
|
+
|
|
3580
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-pipelinetriggerdeclaration.html
|
|
3581
|
+
:exampleMetadata: fixture=_generated
|
|
3582
|
+
|
|
3583
|
+
Example::
|
|
3584
|
+
|
|
3585
|
+
# The code below shows an example of how to instantiate this type.
|
|
3586
|
+
# The values are placeholders you should change.
|
|
3587
|
+
from aws_cdk import aws_codepipeline as codepipeline
|
|
3588
|
+
|
|
3589
|
+
pipeline_trigger_declaration_property = codepipeline.CfnPipeline.PipelineTriggerDeclarationProperty(
|
|
3590
|
+
provider_type="providerType",
|
|
3591
|
+
|
|
3592
|
+
# the properties below are optional
|
|
3593
|
+
git_configuration=codepipeline.CfnPipeline.GitConfigurationProperty(
|
|
3594
|
+
source_action_name="sourceActionName",
|
|
3595
|
+
|
|
3596
|
+
# the properties below are optional
|
|
3597
|
+
push=[codepipeline.CfnPipeline.GitPushFilterProperty(
|
|
3598
|
+
tags=codepipeline.CfnPipeline.GitTagFilterCriteriaProperty(
|
|
3599
|
+
excludes=["excludes"],
|
|
3600
|
+
includes=["includes"]
|
|
3601
|
+
)
|
|
3602
|
+
)]
|
|
3603
|
+
)
|
|
3604
|
+
)
|
|
3605
|
+
'''
|
|
3606
|
+
if __debug__:
|
|
3607
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4824b4ebe4c9c0ddbf15b9dd3cf1a2ffc31a1e5dfc394ba57c68b45d7e5d473c)
|
|
3608
|
+
check_type(argname="argument provider_type", value=provider_type, expected_type=type_hints["provider_type"])
|
|
3609
|
+
check_type(argname="argument git_configuration", value=git_configuration, expected_type=type_hints["git_configuration"])
|
|
3610
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3611
|
+
"provider_type": provider_type,
|
|
3612
|
+
}
|
|
3613
|
+
if git_configuration is not None:
|
|
3614
|
+
self._values["git_configuration"] = git_configuration
|
|
3615
|
+
|
|
3616
|
+
@builtins.property
|
|
3617
|
+
def provider_type(self) -> builtins.str:
|
|
3618
|
+
'''The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
|
|
3619
|
+
|
|
3620
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-pipelinetriggerdeclaration.html#cfn-codepipeline-pipeline-pipelinetriggerdeclaration-providertype
|
|
3621
|
+
'''
|
|
3622
|
+
result = self._values.get("provider_type")
|
|
3623
|
+
assert result is not None, "Required property 'provider_type' is missing"
|
|
3624
|
+
return typing.cast(builtins.str, result)
|
|
3625
|
+
|
|
3626
|
+
@builtins.property
|
|
3627
|
+
def git_configuration(
|
|
3628
|
+
self,
|
|
3629
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPipeline.GitConfigurationProperty"]]:
|
|
3630
|
+
'''Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
|
|
3631
|
+
|
|
3632
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-pipelinetriggerdeclaration.html#cfn-codepipeline-pipeline-pipelinetriggerdeclaration-gitconfiguration
|
|
3633
|
+
'''
|
|
3634
|
+
result = self._values.get("git_configuration")
|
|
3635
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPipeline.GitConfigurationProperty"]], result)
|
|
3636
|
+
|
|
3637
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3638
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3639
|
+
|
|
3640
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3641
|
+
return not (rhs == self)
|
|
3642
|
+
|
|
3643
|
+
def __repr__(self) -> str:
|
|
3644
|
+
return "PipelineTriggerDeclarationProperty(%s)" % ", ".join(
|
|
3645
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3646
|
+
)
|
|
3647
|
+
|
|
3251
3648
|
@jsii.data_type(
|
|
3252
3649
|
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.StageDeclarationProperty",
|
|
3253
3650
|
jsii_struct_bases=[],
|
|
@@ -3434,6 +3831,100 @@ class CfnPipeline(
|
|
|
3434
3831
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
3435
3832
|
)
|
|
3436
3833
|
|
|
3834
|
+
@jsii.data_type(
|
|
3835
|
+
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.VariableDeclarationProperty",
|
|
3836
|
+
jsii_struct_bases=[],
|
|
3837
|
+
name_mapping={
|
|
3838
|
+
"name": "name",
|
|
3839
|
+
"default_value": "defaultValue",
|
|
3840
|
+
"description": "description",
|
|
3841
|
+
},
|
|
3842
|
+
)
|
|
3843
|
+
class VariableDeclarationProperty:
|
|
3844
|
+
def __init__(
|
|
3845
|
+
self,
|
|
3846
|
+
*,
|
|
3847
|
+
name: builtins.str,
|
|
3848
|
+
default_value: typing.Optional[builtins.str] = None,
|
|
3849
|
+
description: typing.Optional[builtins.str] = None,
|
|
3850
|
+
) -> None:
|
|
3851
|
+
'''A variable declared at the pipeline level.
|
|
3852
|
+
|
|
3853
|
+
:param name: The name of a pipeline-level variable.
|
|
3854
|
+
:param default_value: The value of a pipeline-level variable.
|
|
3855
|
+
:param 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.
|
|
3856
|
+
|
|
3857
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-variabledeclaration.html
|
|
3858
|
+
:exampleMetadata: fixture=_generated
|
|
3859
|
+
|
|
3860
|
+
Example::
|
|
3861
|
+
|
|
3862
|
+
# The code below shows an example of how to instantiate this type.
|
|
3863
|
+
# The values are placeholders you should change.
|
|
3864
|
+
from aws_cdk import aws_codepipeline as codepipeline
|
|
3865
|
+
|
|
3866
|
+
variable_declaration_property = codepipeline.CfnPipeline.VariableDeclarationProperty(
|
|
3867
|
+
name="name",
|
|
3868
|
+
|
|
3869
|
+
# the properties below are optional
|
|
3870
|
+
default_value="defaultValue",
|
|
3871
|
+
description="description"
|
|
3872
|
+
)
|
|
3873
|
+
'''
|
|
3874
|
+
if __debug__:
|
|
3875
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c1db744a2dce48273e96d1e41fe3217fb05516aae94ff61ffe871290cbc49ca0)
|
|
3876
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
3877
|
+
check_type(argname="argument default_value", value=default_value, expected_type=type_hints["default_value"])
|
|
3878
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
3879
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3880
|
+
"name": name,
|
|
3881
|
+
}
|
|
3882
|
+
if default_value is not None:
|
|
3883
|
+
self._values["default_value"] = default_value
|
|
3884
|
+
if description is not None:
|
|
3885
|
+
self._values["description"] = description
|
|
3886
|
+
|
|
3887
|
+
@builtins.property
|
|
3888
|
+
def name(self) -> builtins.str:
|
|
3889
|
+
'''The name of a pipeline-level variable.
|
|
3890
|
+
|
|
3891
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-variabledeclaration.html#cfn-codepipeline-pipeline-variabledeclaration-name
|
|
3892
|
+
'''
|
|
3893
|
+
result = self._values.get("name")
|
|
3894
|
+
assert result is not None, "Required property 'name' is missing"
|
|
3895
|
+
return typing.cast(builtins.str, result)
|
|
3896
|
+
|
|
3897
|
+
@builtins.property
|
|
3898
|
+
def default_value(self) -> typing.Optional[builtins.str]:
|
|
3899
|
+
'''The value of a pipeline-level variable.
|
|
3900
|
+
|
|
3901
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-variabledeclaration.html#cfn-codepipeline-pipeline-variabledeclaration-defaultvalue
|
|
3902
|
+
'''
|
|
3903
|
+
result = self._values.get("default_value")
|
|
3904
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3905
|
+
|
|
3906
|
+
@builtins.property
|
|
3907
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
3908
|
+
'''The description of a pipeline-level variable.
|
|
3909
|
+
|
|
3910
|
+
It's used to add additional context about the variable, and not being used at time when pipeline executes.
|
|
3911
|
+
|
|
3912
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-variabledeclaration.html#cfn-codepipeline-pipeline-variabledeclaration-description
|
|
3913
|
+
'''
|
|
3914
|
+
result = self._values.get("description")
|
|
3915
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3916
|
+
|
|
3917
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3918
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3919
|
+
|
|
3920
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3921
|
+
return not (rhs == self)
|
|
3922
|
+
|
|
3923
|
+
def __repr__(self) -> str:
|
|
3924
|
+
return "VariableDeclarationProperty(%s)" % ", ".join(
|
|
3925
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3926
|
+
)
|
|
3927
|
+
|
|
3437
3928
|
|
|
3438
3929
|
@jsii.data_type(
|
|
3439
3930
|
jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipelineProps",
|
|
@@ -3445,8 +3936,11 @@ class CfnPipeline(
|
|
|
3445
3936
|
"artifact_stores": "artifactStores",
|
|
3446
3937
|
"disable_inbound_stage_transitions": "disableInboundStageTransitions",
|
|
3447
3938
|
"name": "name",
|
|
3939
|
+
"pipeline_type": "pipelineType",
|
|
3448
3940
|
"restart_execution_on_update": "restartExecutionOnUpdate",
|
|
3449
3941
|
"tags": "tags",
|
|
3942
|
+
"triggers": "triggers",
|
|
3943
|
+
"variables": "variables",
|
|
3450
3944
|
},
|
|
3451
3945
|
)
|
|
3452
3946
|
class CfnPipelineProps:
|
|
@@ -3459,8 +3953,11 @@ class CfnPipelineProps:
|
|
|
3459
3953
|
artifact_stores: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.ArtifactStoreMapProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3460
3954
|
disable_inbound_stage_transitions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.StageTransitionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3461
3955
|
name: typing.Optional[builtins.str] = None,
|
|
3956
|
+
pipeline_type: typing.Optional[builtins.str] = None,
|
|
3462
3957
|
restart_execution_on_update: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3463
3958
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3959
|
+
triggers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.PipelineTriggerDeclarationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3960
|
+
variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.VariableDeclarationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
3464
3961
|
) -> None:
|
|
3465
3962
|
'''Properties for defining a ``CfnPipeline``.
|
|
3466
3963
|
|
|
@@ -3470,8 +3967,11 @@ class CfnPipelineProps:
|
|
|
3470
3967
|
:param artifact_stores: A mapping of ``artifactStore`` objects 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`` .
|
|
3471
3968
|
:param disable_inbound_stage_transitions: Represents the input of a ``DisableStageTransition`` action.
|
|
3472
3969
|
:param name: The name of the pipeline.
|
|
3970
|
+
:param pipeline_type: CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications. - V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters. - V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration. .. epigraph:: Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs. For information about pricing for CodePipeline, see `Pricing <https://docs.aws.amazon.com/https://aws.amazon.com/codepipeline/pricing/>`_ . For information about which type of pipeline to choose, see `What type of pipeline is right for me? <https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html>`_ .
|
|
3473
3971
|
:param restart_execution_on_update: Indicates whether to rerun the CodePipeline pipeline after you update it.
|
|
3474
3972
|
:param tags: Specifies the tags applied to the pipeline.
|
|
3973
|
+
:param triggers: The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline. .. epigraph:: When a trigger configuration is specified, default change detection for repository and branch commits is disabled.
|
|
3974
|
+
:param variables: A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match ``[A-Za-z0-9@\\-_]+`` .
|
|
3475
3975
|
|
|
3476
3976
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html
|
|
3477
3977
|
:exampleMetadata: fixture=_generated
|
|
@@ -3547,10 +4047,34 @@ class CfnPipelineProps:
|
|
|
3547
4047
|
stage_name="stageName"
|
|
3548
4048
|
)],
|
|
3549
4049
|
name="name",
|
|
4050
|
+
pipeline_type="pipelineType",
|
|
3550
4051
|
restart_execution_on_update=False,
|
|
3551
4052
|
tags=[CfnTag(
|
|
3552
4053
|
key="key",
|
|
3553
4054
|
value="value"
|
|
4055
|
+
)],
|
|
4056
|
+
triggers=[codepipeline.CfnPipeline.PipelineTriggerDeclarationProperty(
|
|
4057
|
+
provider_type="providerType",
|
|
4058
|
+
|
|
4059
|
+
# the properties below are optional
|
|
4060
|
+
git_configuration=codepipeline.CfnPipeline.GitConfigurationProperty(
|
|
4061
|
+
source_action_name="sourceActionName",
|
|
4062
|
+
|
|
4063
|
+
# the properties below are optional
|
|
4064
|
+
push=[codepipeline.CfnPipeline.GitPushFilterProperty(
|
|
4065
|
+
tags=codepipeline.CfnPipeline.GitTagFilterCriteriaProperty(
|
|
4066
|
+
excludes=["excludes"],
|
|
4067
|
+
includes=["includes"]
|
|
4068
|
+
)
|
|
4069
|
+
)]
|
|
4070
|
+
)
|
|
4071
|
+
)],
|
|
4072
|
+
variables=[codepipeline.CfnPipeline.VariableDeclarationProperty(
|
|
4073
|
+
name="name",
|
|
4074
|
+
|
|
4075
|
+
# the properties below are optional
|
|
4076
|
+
default_value="defaultValue",
|
|
4077
|
+
description="description"
|
|
3554
4078
|
)]
|
|
3555
4079
|
)
|
|
3556
4080
|
'''
|
|
@@ -3562,8 +4086,11 @@ class CfnPipelineProps:
|
|
|
3562
4086
|
check_type(argname="argument artifact_stores", value=artifact_stores, expected_type=type_hints["artifact_stores"])
|
|
3563
4087
|
check_type(argname="argument disable_inbound_stage_transitions", value=disable_inbound_stage_transitions, expected_type=type_hints["disable_inbound_stage_transitions"])
|
|
3564
4088
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
4089
|
+
check_type(argname="argument pipeline_type", value=pipeline_type, expected_type=type_hints["pipeline_type"])
|
|
3565
4090
|
check_type(argname="argument restart_execution_on_update", value=restart_execution_on_update, expected_type=type_hints["restart_execution_on_update"])
|
|
3566
4091
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
4092
|
+
check_type(argname="argument triggers", value=triggers, expected_type=type_hints["triggers"])
|
|
4093
|
+
check_type(argname="argument variables", value=variables, expected_type=type_hints["variables"])
|
|
3567
4094
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3568
4095
|
"role_arn": role_arn,
|
|
3569
4096
|
"stages": stages,
|
|
@@ -3576,10 +4103,16 @@ class CfnPipelineProps:
|
|
|
3576
4103
|
self._values["disable_inbound_stage_transitions"] = disable_inbound_stage_transitions
|
|
3577
4104
|
if name is not None:
|
|
3578
4105
|
self._values["name"] = name
|
|
4106
|
+
if pipeline_type is not None:
|
|
4107
|
+
self._values["pipeline_type"] = pipeline_type
|
|
3579
4108
|
if restart_execution_on_update is not None:
|
|
3580
4109
|
self._values["restart_execution_on_update"] = restart_execution_on_update
|
|
3581
4110
|
if tags is not None:
|
|
3582
4111
|
self._values["tags"] = tags
|
|
4112
|
+
if triggers is not None:
|
|
4113
|
+
self._values["triggers"] = triggers
|
|
4114
|
+
if variables is not None:
|
|
4115
|
+
self._values["variables"] = variables
|
|
3583
4116
|
|
|
3584
4117
|
@builtins.property
|
|
3585
4118
|
def role_arn(self) -> builtins.str:
|
|
@@ -3654,6 +4187,26 @@ class CfnPipelineProps:
|
|
|
3654
4187
|
result = self._values.get("name")
|
|
3655
4188
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
3656
4189
|
|
|
4190
|
+
@builtins.property
|
|
4191
|
+
def pipeline_type(self) -> typing.Optional[builtins.str]:
|
|
4192
|
+
'''CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
|
|
4193
|
+
|
|
4194
|
+
- V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.
|
|
4195
|
+
- V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.
|
|
4196
|
+
|
|
4197
|
+
.. epigraph::
|
|
4198
|
+
|
|
4199
|
+
Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.
|
|
4200
|
+
|
|
4201
|
+
For information about pricing for CodePipeline, see `Pricing <https://docs.aws.amazon.com/https://aws.amazon.com/codepipeline/pricing/>`_ .
|
|
4202
|
+
|
|
4203
|
+
For information about which type of pipeline to choose, see `What type of pipeline is right for me? <https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html>`_ .
|
|
4204
|
+
|
|
4205
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-pipelinetype
|
|
4206
|
+
'''
|
|
4207
|
+
result = self._values.get("pipeline_type")
|
|
4208
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4209
|
+
|
|
3657
4210
|
@builtins.property
|
|
3658
4211
|
def restart_execution_on_update(
|
|
3659
4212
|
self,
|
|
@@ -3674,6 +4227,34 @@ class CfnPipelineProps:
|
|
|
3674
4227
|
result = self._values.get("tags")
|
|
3675
4228
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
3676
4229
|
|
|
4230
|
+
@builtins.property
|
|
4231
|
+
def triggers(
|
|
4232
|
+
self,
|
|
4233
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnPipeline.PipelineTriggerDeclarationProperty]]]]:
|
|
4234
|
+
'''The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.
|
|
4235
|
+
|
|
4236
|
+
.. epigraph::
|
|
4237
|
+
|
|
4238
|
+
When a trigger configuration is specified, default change detection for repository and branch commits is disabled.
|
|
4239
|
+
|
|
4240
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-triggers
|
|
4241
|
+
'''
|
|
4242
|
+
result = self._values.get("triggers")
|
|
4243
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnPipeline.PipelineTriggerDeclarationProperty]]]], result)
|
|
4244
|
+
|
|
4245
|
+
@builtins.property
|
|
4246
|
+
def variables(
|
|
4247
|
+
self,
|
|
4248
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnPipeline.VariableDeclarationProperty]]]]:
|
|
4249
|
+
'''A list that defines the pipeline variables for a pipeline resource.
|
|
4250
|
+
|
|
4251
|
+
Variable names can have alphanumeric and underscore characters, and the values must match ``[A-Za-z0-9@\\-_]+`` .
|
|
4252
|
+
|
|
4253
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-variables
|
|
4254
|
+
'''
|
|
4255
|
+
result = self._values.get("variables")
|
|
4256
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnPipeline.VariableDeclarationProperty]]]], result)
|
|
4257
|
+
|
|
3677
4258
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3678
4259
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3679
4260
|
|
|
@@ -7365,8 +7946,11 @@ def _typecheckingstub__43ae22b404f50a75462f3d5423718be3ca300d4e4e15354489d856039
|
|
|
7365
7946
|
artifact_stores: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.ArtifactStoreMapProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7366
7947
|
disable_inbound_stage_transitions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.StageTransitionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7367
7948
|
name: typing.Optional[builtins.str] = None,
|
|
7949
|
+
pipeline_type: typing.Optional[builtins.str] = None,
|
|
7368
7950
|
restart_execution_on_update: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7369
7951
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7952
|
+
triggers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.PipelineTriggerDeclarationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7953
|
+
variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.VariableDeclarationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7370
7954
|
) -> None:
|
|
7371
7955
|
"""Type checking stubs"""
|
|
7372
7956
|
pass
|
|
@@ -7419,6 +8003,12 @@ def _typecheckingstub__2b2610baf2075574499b5c3a30d307e832f359e9aa154becdcd51b0b8
|
|
|
7419
8003
|
"""Type checking stubs"""
|
|
7420
8004
|
pass
|
|
7421
8005
|
|
|
8006
|
+
def _typecheckingstub__49ec8a511d5cf2162b110bf0ae56ad416154165d52ebcd418648a11da360772a(
|
|
8007
|
+
value: typing.Optional[builtins.str],
|
|
8008
|
+
) -> None:
|
|
8009
|
+
"""Type checking stubs"""
|
|
8010
|
+
pass
|
|
8011
|
+
|
|
7422
8012
|
def _typecheckingstub__88de08f19f736e80065bcd761beb1e65914ff94f8a626526298e8aceab054efa(
|
|
7423
8013
|
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
7424
8014
|
) -> None:
|
|
@@ -7431,6 +8021,18 @@ def _typecheckingstub__049b30e49190b4a0c262bbc2b2b86e08c2d0b80ed4870924cfa18bba8
|
|
|
7431
8021
|
"""Type checking stubs"""
|
|
7432
8022
|
pass
|
|
7433
8023
|
|
|
8024
|
+
def _typecheckingstub__ec229be1df5c233edfda39851430510bc5b05e1c924f9c4f280d35e90a7a273e(
|
|
8025
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnPipeline.PipelineTriggerDeclarationProperty]]]],
|
|
8026
|
+
) -> None:
|
|
8027
|
+
"""Type checking stubs"""
|
|
8028
|
+
pass
|
|
8029
|
+
|
|
8030
|
+
def _typecheckingstub__750515260661993ecfa4350c79274cb5f97f27ed37abd879c232ab4d1d581b16(
|
|
8031
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnPipeline.VariableDeclarationProperty]]]],
|
|
8032
|
+
) -> None:
|
|
8033
|
+
"""Type checking stubs"""
|
|
8034
|
+
pass
|
|
8035
|
+
|
|
7434
8036
|
def _typecheckingstub__490d89c9ac665593d791c6e187fcf0e47ca3ec8684f1c7a502e1711bcbec64ec(
|
|
7435
8037
|
*,
|
|
7436
8038
|
action_type_id: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.ActionTypeIdProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
@@ -7489,6 +8091,29 @@ def _typecheckingstub__947de613103ce26163068b14d3b93b5c2d7f86d29fa6fc5cbd1509b11
|
|
|
7489
8091
|
"""Type checking stubs"""
|
|
7490
8092
|
pass
|
|
7491
8093
|
|
|
8094
|
+
def _typecheckingstub__76ac16c602eb78041b136170e0877a83865ceb0c0c451b7e61c00366edce50a8(
|
|
8095
|
+
*,
|
|
8096
|
+
source_action_name: builtins.str,
|
|
8097
|
+
push: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.GitPushFilterProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
8098
|
+
) -> None:
|
|
8099
|
+
"""Type checking stubs"""
|
|
8100
|
+
pass
|
|
8101
|
+
|
|
8102
|
+
def _typecheckingstub__aace18192e6436301eeae21b4cd59bd8cb01b53eb17f6fcb74599b2f74f9ebd0(
|
|
8103
|
+
*,
|
|
8104
|
+
tags: typing.Optional[typing.Union[CfnPipeline.GitTagFilterCriteriaProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
8105
|
+
) -> None:
|
|
8106
|
+
"""Type checking stubs"""
|
|
8107
|
+
pass
|
|
8108
|
+
|
|
8109
|
+
def _typecheckingstub__0011c01a814174b9712d97ce1aa7e9a05579a8de4bb3a1cdb0910216a0f71485(
|
|
8110
|
+
*,
|
|
8111
|
+
excludes: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
8112
|
+
includes: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
8113
|
+
) -> None:
|
|
8114
|
+
"""Type checking stubs"""
|
|
8115
|
+
pass
|
|
8116
|
+
|
|
7492
8117
|
def _typecheckingstub__ae97b53479ee01238ac6a596c3a1922670350a44e3d91518b64b0a6869f9e25b(
|
|
7493
8118
|
*,
|
|
7494
8119
|
name: builtins.str,
|
|
@@ -7503,6 +8128,14 @@ def _typecheckingstub__ce1321d2f1592577a646df78457487ddcd0924a3b3b3af432b5a7d9ce
|
|
|
7503
8128
|
"""Type checking stubs"""
|
|
7504
8129
|
pass
|
|
7505
8130
|
|
|
8131
|
+
def _typecheckingstub__4824b4ebe4c9c0ddbf15b9dd3cf1a2ffc31a1e5dfc394ba57c68b45d7e5d473c(
|
|
8132
|
+
*,
|
|
8133
|
+
provider_type: builtins.str,
|
|
8134
|
+
git_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.GitConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8135
|
+
) -> None:
|
|
8136
|
+
"""Type checking stubs"""
|
|
8137
|
+
pass
|
|
8138
|
+
|
|
7506
8139
|
def _typecheckingstub__6d7aa29ffac3603e5ca76edf19c1467363376322d9bc527c818c0d2c87a67c65(
|
|
7507
8140
|
*,
|
|
7508
8141
|
actions: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.ActionDeclarationProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
@@ -7520,6 +8153,15 @@ def _typecheckingstub__cb571d221ca422b88898c034c3ecd725aa8056ceb7b00c4c4faba2b7c
|
|
|
7520
8153
|
"""Type checking stubs"""
|
|
7521
8154
|
pass
|
|
7522
8155
|
|
|
8156
|
+
def _typecheckingstub__c1db744a2dce48273e96d1e41fe3217fb05516aae94ff61ffe871290cbc49ca0(
|
|
8157
|
+
*,
|
|
8158
|
+
name: builtins.str,
|
|
8159
|
+
default_value: typing.Optional[builtins.str] = None,
|
|
8160
|
+
description: typing.Optional[builtins.str] = None,
|
|
8161
|
+
) -> None:
|
|
8162
|
+
"""Type checking stubs"""
|
|
8163
|
+
pass
|
|
8164
|
+
|
|
7523
8165
|
def _typecheckingstub__34b7cf6aaa1cc98db41892b9b8499f74092bf6b5f7f4050d1bd7642f7df7be5c(
|
|
7524
8166
|
*,
|
|
7525
8167
|
role_arn: builtins.str,
|
|
@@ -7528,8 +8170,11 @@ def _typecheckingstub__34b7cf6aaa1cc98db41892b9b8499f74092bf6b5f7f4050d1bd7642f7
|
|
|
7528
8170
|
artifact_stores: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.ArtifactStoreMapProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7529
8171
|
disable_inbound_stage_transitions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.StageTransitionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7530
8172
|
name: typing.Optional[builtins.str] = None,
|
|
8173
|
+
pipeline_type: typing.Optional[builtins.str] = None,
|
|
7531
8174
|
restart_execution_on_update: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7532
8175
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8176
|
+
triggers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.PipelineTriggerDeclarationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
8177
|
+
variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.VariableDeclarationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7533
8178
|
) -> None:
|
|
7534
8179
|
"""Type checking stubs"""
|
|
7535
8180
|
pass
|