aws-cdk-lib 2.186.0__py3-none-any.whl → 2.188.0__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.

Files changed (85) hide show
  1. aws_cdk/__init__.py +303 -119
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.186.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +136 -0
  5. aws_cdk/aws_apigateway/__init__.py +69 -17
  6. aws_cdk/aws_apigatewayv2/__init__.py +88 -0
  7. aws_cdk/aws_appconfig/__init__.py +30 -14
  8. aws_cdk/aws_appsync/__init__.py +14 -5
  9. aws_cdk/aws_arczonalshift/__init__.py +4 -4
  10. aws_cdk/aws_bedrock/__init__.py +637 -32
  11. aws_cdk/aws_budgets/__init__.py +8 -8
  12. aws_cdk/aws_cassandra/__init__.py +4 -2
  13. aws_cdk/aws_ce/__init__.py +2 -2
  14. aws_cdk/aws_cloudformation/__init__.py +3 -3
  15. aws_cdk/aws_cloudfront/__init__.py +11 -0
  16. aws_cdk/aws_cloudtrail/__init__.py +4 -18
  17. aws_cdk/aws_cloudwatch/__init__.py +50 -50
  18. aws_cdk/aws_codebuild/__init__.py +32 -1
  19. aws_cdk/aws_codepipeline/__init__.py +47 -32
  20. aws_cdk/aws_codepipeline_actions/__init__.py +2786 -1042
  21. aws_cdk/aws_codestarnotifications/__init__.py +16 -16
  22. aws_cdk/aws_cognito/__init__.py +8 -2
  23. aws_cdk/aws_config/__init__.py +2 -5
  24. aws_cdk/aws_datazone/__init__.py +287 -226
  25. aws_cdk/aws_detective/__init__.py +3 -3
  26. aws_cdk/aws_dynamodb/__init__.py +37 -0
  27. aws_cdk/aws_ec2/__init__.py +2448 -442
  28. aws_cdk/aws_ecr/__init__.py +143 -0
  29. aws_cdk/aws_ecr_assets/__init__.py +115 -4
  30. aws_cdk/aws_ecs/__init__.py +51 -0
  31. aws_cdk/aws_eks/__init__.py +222 -6
  32. aws_cdk/aws_events/__init__.py +8 -11
  33. aws_cdk/aws_events_targets/__init__.py +136 -0
  34. aws_cdk/aws_forecast/__init__.py +1 -1
  35. aws_cdk/aws_fsx/__init__.py +2 -2
  36. aws_cdk/aws_gamelift/__init__.py +11 -11
  37. aws_cdk/aws_iam/__init__.py +6 -4
  38. aws_cdk/aws_identitystore/__init__.py +6 -4
  39. aws_cdk/aws_iotsitewise/__init__.py +623 -0
  40. aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
  41. aws_cdk/aws_kms/__init__.py +10 -11
  42. aws_cdk/aws_lakeformation/__init__.py +3 -3
  43. aws_cdk/aws_lambda/__init__.py +105 -4
  44. aws_cdk/aws_lambda_event_sources/__init__.py +87 -25
  45. aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
  46. aws_cdk/aws_lex/__init__.py +985 -5
  47. aws_cdk/aws_logs/__init__.py +18 -0
  48. aws_cdk/aws_logs_destinations/__init__.py +146 -0
  49. aws_cdk/aws_mediaconnect/__init__.py +714 -290
  50. aws_cdk/aws_mwaa/__init__.py +9 -9
  51. aws_cdk/aws_networkfirewall/__init__.py +44 -0
  52. aws_cdk/aws_notifications/__init__.py +4 -4
  53. aws_cdk/aws_omics/__init__.py +225 -1
  54. aws_cdk/aws_opensearchserverless/__init__.py +31 -23
  55. aws_cdk/aws_organizations/__init__.py +1 -1
  56. aws_cdk/aws_pcaconnectorad/__init__.py +3 -2
  57. aws_cdk/aws_quicksight/__init__.py +268 -50
  58. aws_cdk/aws_rds/__init__.py +186 -10
  59. aws_cdk/aws_route53/__init__.py +5 -5
  60. aws_cdk/aws_route53recoverycontrol/__init__.py +41 -2
  61. aws_cdk/aws_rum/__init__.py +13 -10
  62. aws_cdk/aws_s3/__init__.py +3 -6
  63. aws_cdk/aws_s3_assets/__init__.py +70 -1
  64. aws_cdk/aws_s3_deployment/__init__.py +4 -0
  65. aws_cdk/aws_sagemaker/__init__.py +47 -4
  66. aws_cdk/aws_scheduler_targets/__init__.py +4 -16
  67. aws_cdk/aws_securitylake/__init__.py +2 -2
  68. aws_cdk/aws_servicecatalog/__init__.py +4 -0
  69. aws_cdk/aws_sns/__init__.py +1 -1
  70. aws_cdk/aws_ssmincidents/__init__.py +10 -10
  71. aws_cdk/aws_stepfunctions/__init__.py +23 -17
  72. aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
  73. aws_cdk/aws_synthetics/__init__.py +9 -0
  74. aws_cdk/aws_systemsmanagersap/__init__.py +160 -0
  75. aws_cdk/aws_transfer/__init__.py +19 -10
  76. aws_cdk/aws_wafv2/__init__.py +512 -1141
  77. aws_cdk/cloud_assembly_schema/__init__.py +60 -10
  78. aws_cdk/cx_api/__init__.py +38 -2
  79. aws_cdk/pipelines/__init__.py +52 -2
  80. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +4 -4
  81. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +85 -85
  82. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +1 -1
  83. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
  84. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
  85. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
@@ -3470,6 +3470,7 @@ class CfnProject(
3470
3470
  type="type",
3471
3471
 
3472
3472
  # the properties below are optional
3473
+ cache_namespace="cacheNamespace",
3473
3474
  location="location",
3474
3475
  modes=["modes"]
3475
3476
  ),
@@ -5276,19 +5277,26 @@ class CfnProject(
5276
5277
  @jsii.data_type(
5277
5278
  jsii_type="aws-cdk-lib.aws_codebuild.CfnProject.ProjectCacheProperty",
5278
5279
  jsii_struct_bases=[],
5279
- name_mapping={"type": "type", "location": "location", "modes": "modes"},
5280
+ name_mapping={
5281
+ "type": "type",
5282
+ "cache_namespace": "cacheNamespace",
5283
+ "location": "location",
5284
+ "modes": "modes",
5285
+ },
5280
5286
  )
5281
5287
  class ProjectCacheProperty:
5282
5288
  def __init__(
5283
5289
  self,
5284
5290
  *,
5285
5291
  type: builtins.str,
5292
+ cache_namespace: typing.Optional[builtins.str] = None,
5286
5293
  location: typing.Optional[builtins.str] = None,
5287
5294
  modes: typing.Optional[typing.Sequence[builtins.str]] = None,
5288
5295
  ) -> None:
5289
5296
  '''``ProjectCache`` is a property of the `AWS CodeBuild Project <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html>`_ resource that specifies information about the cache for the build project. If ``ProjectCache`` is not specified, then both of its properties default to ``NO_CACHE`` .
5290
5297
 
5291
5298
  :param type: The type of cache used by the build project. Valid values include:. - ``NO_CACHE`` : The build project does not use any cache. - ``S3`` : The build project reads and writes from and to S3. - ``LOCAL`` : The build project stores a cache locally on a build host that is only available to that build host.
5299
+ :param cache_namespace:
5292
5300
  :param location: Information about the cache location:. - ``NO_CACHE`` or ``LOCAL`` : This value is ignored. - ``S3`` : This is the S3 bucket name/prefix.
5293
5301
  :param modes: An array of strings that specify the local cache modes. You can use one or more local cache modes at the same time. This is only used for ``LOCAL`` cache types. Possible values are: - **LOCAL_SOURCE_CACHE** - Caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between commits. This mode is a good choice for projects with a clean working directory and a source that is a large Git repository. If you choose this option and your project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the option is ignored. - **LOCAL_DOCKER_LAYER_CACHE** - Caches existing Docker layers. This mode is a good choice for projects that build or pull large Docker images. It can prevent the performance issues caused by pulling large Docker images down from the network. .. epigraph:: - You can use a Docker layer cache in the Linux environment only. - The ``privileged`` flag must be set so that your project has the required Docker permissions. - You should consider the security implications before you use a Docker layer cache. - **LOCAL_CUSTOM_CACHE** - Caches directories you specify in the buildspec file. This mode is a good choice if your build scenario is not suited to one of the other three local cache modes. If you use a custom cache: - Only directories can be specified for caching. You cannot specify individual files. - Symlinks are used to reference cached directories. - Cached directories are linked to your build before it downloads its project sources. Cached items are overridden if a source item has the same name. Directories are specified using cache paths in the buildspec file.
5294
5302
 
@@ -5305,6 +5313,7 @@ class CfnProject(
5305
5313
  type="type",
5306
5314
 
5307
5315
  # the properties below are optional
5316
+ cache_namespace="cacheNamespace",
5308
5317
  location="location",
5309
5318
  modes=["modes"]
5310
5319
  )
@@ -5312,11 +5321,14 @@ class CfnProject(
5312
5321
  if __debug__:
5313
5322
  type_hints = typing.get_type_hints(_typecheckingstub__1f7b942816ca448d0a1e5b046754abe3bbf6042e79982a46edfd284c87941f59)
5314
5323
  check_type(argname="argument type", value=type, expected_type=type_hints["type"])
5324
+ check_type(argname="argument cache_namespace", value=cache_namespace, expected_type=type_hints["cache_namespace"])
5315
5325
  check_type(argname="argument location", value=location, expected_type=type_hints["location"])
5316
5326
  check_type(argname="argument modes", value=modes, expected_type=type_hints["modes"])
5317
5327
  self._values: typing.Dict[builtins.str, typing.Any] = {
5318
5328
  "type": type,
5319
5329
  }
5330
+ if cache_namespace is not None:
5331
+ self._values["cache_namespace"] = cache_namespace
5320
5332
  if location is not None:
5321
5333
  self._values["location"] = location
5322
5334
  if modes is not None:
@@ -5336,6 +5348,14 @@ class CfnProject(
5336
5348
  assert result is not None, "Required property 'type' is missing"
5337
5349
  return typing.cast(builtins.str, result)
5338
5350
 
5351
+ @builtins.property
5352
+ def cache_namespace(self) -> typing.Optional[builtins.str]:
5353
+ '''
5354
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-cachenamespace
5355
+ '''
5356
+ result = self._values.get("cache_namespace")
5357
+ return typing.cast(typing.Optional[builtins.str], result)
5358
+
5339
5359
  @builtins.property
5340
5360
  def location(self) -> typing.Optional[builtins.str]:
5341
5361
  '''Information about the cache location:.
@@ -6812,6 +6832,7 @@ class CfnProjectProps:
6812
6832
  type="type",
6813
6833
 
6814
6834
  # the properties below are optional
6835
+ cache_namespace="cacheNamespace",
6815
6836
  location="location",
6816
6837
  modes=["modes"]
6817
6838
  ),
@@ -12108,6 +12129,7 @@ class LinuxBuildImage(
12108
12129
  cache_disabled: typing.Optional[builtins.bool] = None,
12109
12130
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
12110
12131
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
12132
+ display_name: typing.Optional[builtins.str] = None,
12111
12133
  file: typing.Optional[builtins.str] = None,
12112
12134
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
12113
12135
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -12131,6 +12153,7 @@ class LinuxBuildImage(
12131
12153
  :param cache_disabled: Disable the cache and pass ``--no-cache`` to the ``docker build`` command. Default: - cache is used
12132
12154
  :param cache_from: Cache from options to pass to the ``docker build`` command. Default: - no cache from options are passed to the build command
12133
12155
  :param cache_to: Cache to options to pass to the ``docker build`` command. Default: - no cache to options are passed to the build command
12156
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. If ``assetName`` is given, it will also be used as the default ``displayName``. Otherwise, the default is the construct path of the ImageAsset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAssetImage()``), this will look like ``MyFunction/AssetImage``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
12134
12157
  :param file: Path to the Dockerfile (relative to the directory). Default: 'Dockerfile'
12135
12158
  :param invalidation: Options to control which parameters are used to invalidate the asset hash. Default: - hash all parameters
12136
12159
  :param network_mode: Networking mode for the RUN commands during build. Support docker API 1.25+. Default: - no networking mode specified (the default networking mode ``NetworkMode.DEFAULT`` will be used)
@@ -12155,6 +12178,7 @@ class LinuxBuildImage(
12155
12178
  cache_disabled=cache_disabled,
12156
12179
  cache_from=cache_from,
12157
12180
  cache_to=cache_to,
12181
+ display_name=display_name,
12158
12182
  file=file,
12159
12183
  invalidation=invalidation,
12160
12184
  network_mode=network_mode,
@@ -12807,6 +12831,7 @@ class MacBuildImage(
12807
12831
  "params_key": "params"
12808
12832
  }
12809
12833
  ),
12834
+ display_name="displayName",
12810
12835
  exclude=["exclude"],
12811
12836
  extra_hash="extraHash",
12812
12837
  file="file",
@@ -12846,6 +12871,7 @@ class MacBuildImage(
12846
12871
  cache_disabled: typing.Optional[builtins.bool] = None,
12847
12872
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
12848
12873
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
12874
+ display_name: typing.Optional[builtins.str] = None,
12849
12875
  file: typing.Optional[builtins.str] = None,
12850
12876
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
12851
12877
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -12869,6 +12895,7 @@ class MacBuildImage(
12869
12895
  :param cache_disabled: Disable the cache and pass ``--no-cache`` to the ``docker build`` command. Default: - cache is used
12870
12896
  :param cache_from: Cache from options to pass to the ``docker build`` command. Default: - no cache from options are passed to the build command
12871
12897
  :param cache_to: Cache to options to pass to the ``docker build`` command. Default: - no cache to options are passed to the build command
12898
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. If ``assetName`` is given, it will also be used as the default ``displayName``. Otherwise, the default is the construct path of the ImageAsset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAssetImage()``), this will look like ``MyFunction/AssetImage``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
12872
12899
  :param file: Path to the Dockerfile (relative to the directory). Default: 'Dockerfile'
12873
12900
  :param invalidation: Options to control which parameters are used to invalidate the asset hash. Default: - hash all parameters
12874
12901
  :param network_mode: Networking mode for the RUN commands during build. Support docker API 1.25+. Default: - no networking mode specified (the default networking mode ``NetworkMode.DEFAULT`` will be used)
@@ -12893,6 +12920,7 @@ class MacBuildImage(
12893
12920
  cache_disabled=cache_disabled,
12894
12921
  cache_from=cache_from,
12895
12922
  cache_to=cache_to,
12923
+ display_name=display_name,
12896
12924
  file=file,
12897
12925
  invalidation=invalidation,
12898
12926
  network_mode=network_mode,
@@ -19075,6 +19103,7 @@ def _typecheckingstub__bd7a159b208cebb3cbebac16a64724eaec87e10d0a867f62bf9021489
19075
19103
  def _typecheckingstub__1f7b942816ca448d0a1e5b046754abe3bbf6042e79982a46edfd284c87941f59(
19076
19104
  *,
19077
19105
  type: builtins.str,
19106
+ cache_namespace: typing.Optional[builtins.str] = None,
19078
19107
  location: typing.Optional[builtins.str] = None,
19079
19108
  modes: typing.Optional[typing.Sequence[builtins.str]] = None,
19080
19109
  ) -> None:
@@ -19797,6 +19826,7 @@ def _typecheckingstub__c4ce5766deb0a7d190b79fe8c16f4eb758ab6db30a15dc2ea68692833
19797
19826
  cache_disabled: typing.Optional[builtins.bool] = None,
19798
19827
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
19799
19828
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
19829
+ display_name: typing.Optional[builtins.str] = None,
19800
19830
  file: typing.Optional[builtins.str] = None,
19801
19831
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
19802
19832
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -19864,6 +19894,7 @@ def _typecheckingstub__aa924aa0600b9706b95a62c612f337f8dde0f0df7d5d3b8c5b48b7279
19864
19894
  cache_disabled: typing.Optional[builtins.bool] = None,
19865
19895
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
19866
19896
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
19897
+ display_name: typing.Optional[builtins.str] = None,
19867
19898
  file: typing.Optional[builtins.str] = None,
19868
19899
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
19869
19900
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -818,13 +818,11 @@ codepipeline.Pipeline(self, "Pipeline",
818
818
 
819
819
  Conditions are used for specific types of expressions and each has specific options for results available as follows:
820
820
 
821
- ```
822
821
  Entry - The conditions for making checks that, if met, allow entry to a stage. Rules are engaged with the following result options: Fail or Skip
823
822
 
824
823
  On Failure - The conditions for making checks for the stage when it fails. Rules are engaged with the following result option: Rollback
825
824
 
826
825
  On Success - The conditions for making checks for the stage when it succeeds. Rules are engaged with the following result options: Rollback or Fail
827
- ```
828
826
 
829
827
  Conditions are supported by a set of rules for each type of condition.
830
828
 
@@ -894,6 +892,10 @@ codepipeline.Pipeline(self, "Pipeline",
894
892
  )
895
893
  ```
896
894
 
895
+ ## Use pipeline service role as default action role in pipeline
896
+
897
+ You could enable this field to use pipeline service role as default action role in Codepipeline by set `usePipelineServiceRoleForActions` as true if no action role provided.
898
+
897
899
  ## Migrating a pipeline type from V1 to V2
898
900
 
899
901
  To migrate your pipeline type from V1 to V2, you just need to update the `pipelineType` property to `PipelineType.V2`.
@@ -1540,39 +1542,32 @@ class Artifact(
1540
1542
 
1541
1543
  Example::
1542
1544
 
1543
- # later:
1544
- # project: codebuild.PipelineProject
1545
- lambda_invoke_action = codepipeline_actions.LambdaInvokeAction(
1546
- action_name="Lambda",
1547
- lambda_=lambda_.Function(self, "Func",
1548
- runtime=lambda_.Runtime.NODEJS_LATEST,
1549
- handler="index.handler",
1550
- code=lambda_.Code.from_inline("""
1551
- const { CodePipeline } = require('@aws-sdk/client-codepipeline');
1545
+ # pipeline: codepipeline.Pipeline
1546
+
1552
1547
 
1553
- exports.handler = async function(event, context) {
1554
- const codepipeline = new AWS.CodePipeline();
1555
- await codepipeline.putJobSuccessResult({
1556
- jobId: event['CodePipeline.job'].id,
1557
- outputVariables: {
1558
- MY_VAR: "some value",
1559
- },
1560
- });
1561
- }
1562
- """)
1563
- ),
1564
- variables_namespace="MyNamespace"
1565
- )
1566
1548
  source_output = codepipeline.Artifact()
1567
- codepipeline_actions.CodeBuildAction(
1568
- action_name="CodeBuild",
1569
- project=project,
1549
+ source_action = codepipeline_actions.CodeStarConnectionsSourceAction(
1550
+ action_name="CodeStarConnectionsSourceAction",
1551
+ output=source_output,
1552
+ connection_arn="your-connection-arn",
1553
+ owner="your-owner",
1554
+ repo="your-repo"
1555
+ )
1556
+
1557
+ scan_output = codepipeline.Artifact()
1558
+ scan_action = codepipeline_actions.InspectorSourceCodeScanAction(
1559
+ action_name="InspectorSourceCodeScanAction",
1570
1560
  input=source_output,
1571
- environment_variables={
1572
- "MyVar": codebuild.BuildEnvironmentVariable(
1573
- value=lambda_invoke_action.variable("MY_VAR")
1574
- )
1575
- }
1561
+ output=scan_output
1562
+ )
1563
+
1564
+ pipeline.add_stage(
1565
+ stage_name="Source",
1566
+ actions=[source_action]
1567
+ )
1568
+ pipeline.add_stage(
1569
+ stage_name="Scan",
1570
+ actions=[scan_action]
1576
1571
  )
1577
1572
  '''
1578
1573
 
@@ -9307,6 +9302,7 @@ class Pipeline(
9307
9302
  role: typing.Optional[_IRole_235f5d8e] = None,
9308
9303
  stages: typing.Optional[typing.Sequence[typing.Union["StageProps", typing.Dict[builtins.str, typing.Any]]]] = None,
9309
9304
  triggers: typing.Optional[typing.Sequence[typing.Union["TriggerProps", typing.Dict[builtins.str, typing.Any]]]] = None,
9305
+ use_pipeline_role_for_actions: typing.Optional[builtins.bool] = None,
9310
9306
  variables: typing.Optional[typing.Sequence["Variable"]] = None,
9311
9307
  ) -> None:
9312
9308
  '''
@@ -9324,6 +9320,7 @@ class Pipeline(
9324
9320
  :param role: The IAM role to be assumed by this Pipeline. Default: a new IAM role will be created.
9325
9321
  :param stages: The list of Stages, in order, to create this Pipeline with. You can always add more Stages later by calling ``Pipeline#addStage``. Default: - None.
9326
9322
  :param triggers: The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline. When a trigger configuration is specified, default change detection for repository and branch commits is disabled. ``triggers`` can only be used when ``pipelineType`` is set to ``PipelineType.V2``. You can always add more triggers later by calling ``Pipeline#addTrigger``. Default: - No triggers
9323
+ :param use_pipeline_role_for_actions: Use pipeline service role for actions if no action role configured. Default: - false
9327
9324
  :param variables: A list that defines the pipeline variables for a pipeline resource. ``variables`` can only be used when ``pipelineType`` is set to ``PipelineType.V2``. You can always add more variables later by calling ``Pipeline#addVariable``. Default: - No variables
9328
9325
  '''
9329
9326
  if __debug__:
@@ -9343,6 +9340,7 @@ class Pipeline(
9343
9340
  role=role,
9344
9341
  stages=stages,
9345
9342
  triggers=triggers,
9343
+ use_pipeline_role_for_actions=use_pipeline_role_for_actions,
9346
9344
  variables=variables,
9347
9345
  )
9348
9346
 
@@ -9970,6 +9968,7 @@ class PipelineNotifyOnOptions(_NotificationRuleOptions_dff73281):
9970
9968
  "role": "role",
9971
9969
  "stages": "stages",
9972
9970
  "triggers": "triggers",
9971
+ "use_pipeline_role_for_actions": "usePipelineRoleForActions",
9973
9972
  "variables": "variables",
9974
9973
  },
9975
9974
  )
@@ -9989,6 +9988,7 @@ class PipelineProps:
9989
9988
  role: typing.Optional[_IRole_235f5d8e] = None,
9990
9989
  stages: typing.Optional[typing.Sequence[typing.Union["StageProps", typing.Dict[builtins.str, typing.Any]]]] = None,
9991
9990
  triggers: typing.Optional[typing.Sequence[typing.Union["TriggerProps", typing.Dict[builtins.str, typing.Any]]]] = None,
9991
+ use_pipeline_role_for_actions: typing.Optional[builtins.bool] = None,
9992
9992
  variables: typing.Optional[typing.Sequence["Variable"]] = None,
9993
9993
  ) -> None:
9994
9994
  '''
@@ -10004,6 +10004,7 @@ class PipelineProps:
10004
10004
  :param role: The IAM role to be assumed by this Pipeline. Default: a new IAM role will be created.
10005
10005
  :param stages: The list of Stages, in order, to create this Pipeline with. You can always add more Stages later by calling ``Pipeline#addStage``. Default: - None.
10006
10006
  :param triggers: The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline. When a trigger configuration is specified, default change detection for repository and branch commits is disabled. ``triggers`` can only be used when ``pipelineType`` is set to ``PipelineType.V2``. You can always add more triggers later by calling ``Pipeline#addTrigger``. Default: - No triggers
10007
+ :param use_pipeline_role_for_actions: Use pipeline service role for actions if no action role configured. Default: - false
10007
10008
  :param variables: A list that defines the pipeline variables for a pipeline resource. ``variables`` can only be used when ``pipelineType`` is set to ``PipelineType.V2``. You can always add more variables later by calling ``Pipeline#addVariable``. Default: - No variables
10008
10009
 
10009
10010
  :exampleMetadata: infused
@@ -10057,6 +10058,7 @@ class PipelineProps:
10057
10058
  check_type(argname="argument role", value=role, expected_type=type_hints["role"])
10058
10059
  check_type(argname="argument stages", value=stages, expected_type=type_hints["stages"])
10059
10060
  check_type(argname="argument triggers", value=triggers, expected_type=type_hints["triggers"])
10061
+ check_type(argname="argument use_pipeline_role_for_actions", value=use_pipeline_role_for_actions, expected_type=type_hints["use_pipeline_role_for_actions"])
10060
10062
  check_type(argname="argument variables", value=variables, expected_type=type_hints["variables"])
10061
10063
  self._values: typing.Dict[builtins.str, typing.Any] = {}
10062
10064
  if artifact_bucket is not None:
@@ -10083,6 +10085,8 @@ class PipelineProps:
10083
10085
  self._values["stages"] = stages
10084
10086
  if triggers is not None:
10085
10087
  self._values["triggers"] = triggers
10088
+ if use_pipeline_role_for_actions is not None:
10089
+ self._values["use_pipeline_role_for_actions"] = use_pipeline_role_for_actions
10086
10090
  if variables is not None:
10087
10091
  self._values["variables"] = variables
10088
10092
 
@@ -10229,6 +10233,15 @@ class PipelineProps:
10229
10233
  result = self._values.get("triggers")
10230
10234
  return typing.cast(typing.Optional[typing.List["TriggerProps"]], result)
10231
10235
 
10236
+ @builtins.property
10237
+ def use_pipeline_role_for_actions(self) -> typing.Optional[builtins.bool]:
10238
+ '''Use pipeline service role for actions if no action role configured.
10239
+
10240
+ :default: - false
10241
+ '''
10242
+ result = self._values.get("use_pipeline_role_for_actions")
10243
+ return typing.cast(typing.Optional[builtins.bool], result)
10244
+
10232
10245
  @builtins.property
10233
10246
  def variables(self) -> typing.Optional[typing.List["Variable"]]:
10234
10247
  '''A list that defines the pipeline variables for a pipeline resource.
@@ -12729,6 +12742,7 @@ def _typecheckingstub__dccc82ea9bcac61a3fb8c34055734a04a1bee7f59ee6675fdade2d8b5
12729
12742
  role: typing.Optional[_IRole_235f5d8e] = None,
12730
12743
  stages: typing.Optional[typing.Sequence[typing.Union[StageProps, typing.Dict[builtins.str, typing.Any]]]] = None,
12731
12744
  triggers: typing.Optional[typing.Sequence[typing.Union[TriggerProps, typing.Dict[builtins.str, typing.Any]]]] = None,
12745
+ use_pipeline_role_for_actions: typing.Optional[builtins.bool] = None,
12732
12746
  variables: typing.Optional[typing.Sequence[Variable]] = None,
12733
12747
  ) -> None:
12734
12748
  """Type checking stubs"""
@@ -12876,6 +12890,7 @@ def _typecheckingstub__22f00fc379808105702c3f59369205afd36025a51e45bcaf5d1cec0a3
12876
12890
  role: typing.Optional[_IRole_235f5d8e] = None,
12877
12891
  stages: typing.Optional[typing.Sequence[typing.Union[StageProps, typing.Dict[builtins.str, typing.Any]]]] = None,
12878
12892
  triggers: typing.Optional[typing.Sequence[typing.Union[TriggerProps, typing.Dict[builtins.str, typing.Any]]]] = None,
12893
+ use_pipeline_role_for_actions: typing.Optional[builtins.bool] = None,
12879
12894
  variables: typing.Optional[typing.Sequence[Variable]] = None,
12880
12895
  ) -> None:
12881
12896
  """Type checking stubs"""