aws-cdk-lib 2.187.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 (53) hide show
  1. aws_cdk/__init__.py +22 -3
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.187.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +21 -9
  5. aws_cdk/aws_apigateway/__init__.py +25 -19
  6. aws_cdk/aws_apigatewayv2/__init__.py +88 -0
  7. aws_cdk/aws_appconfig/__init__.py +30 -14
  8. aws_cdk/aws_arczonalshift/__init__.py +4 -4
  9. aws_cdk/aws_bedrock/__init__.py +605 -10
  10. aws_cdk/aws_budgets/__init__.py +8 -8
  11. aws_cdk/aws_cassandra/__init__.py +3 -1
  12. aws_cdk/aws_ce/__init__.py +2 -2
  13. aws_cdk/aws_cloudformation/__init__.py +3 -3
  14. aws_cdk/aws_codebuild/__init__.py +23 -1
  15. aws_cdk/aws_codepipeline/__init__.py +47 -32
  16. aws_cdk/aws_codepipeline_actions/__init__.py +2786 -1042
  17. aws_cdk/aws_codestarnotifications/__init__.py +16 -16
  18. aws_cdk/aws_cognito/__init__.py +8 -2
  19. aws_cdk/aws_ec2/__init__.py +2091 -227
  20. aws_cdk/aws_eks/__init__.py +112 -10
  21. aws_cdk/aws_events_targets/__init__.py +136 -0
  22. aws_cdk/aws_gamelift/__init__.py +5 -5
  23. aws_cdk/aws_iam/__init__.py +6 -4
  24. aws_cdk/aws_identitystore/__init__.py +15 -13
  25. aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
  26. aws_cdk/aws_lambda_event_sources/__init__.py +22 -22
  27. aws_cdk/aws_lex/__init__.py +21 -17
  28. aws_cdk/aws_logs/__init__.py +18 -0
  29. aws_cdk/aws_logs_destinations/__init__.py +146 -0
  30. aws_cdk/aws_notifications/__init__.py +4 -4
  31. aws_cdk/aws_omics/__init__.py +9 -1
  32. aws_cdk/aws_opensearchserverless/__init__.py +31 -23
  33. aws_cdk/aws_organizations/__init__.py +1 -1
  34. aws_cdk/aws_pcaconnectorad/__init__.py +3 -2
  35. aws_cdk/aws_quicksight/__init__.py +35 -22
  36. aws_cdk/aws_rds/__init__.py +84 -0
  37. aws_cdk/aws_route53/__init__.py +3 -3
  38. aws_cdk/aws_route53recoverycontrol/__init__.py +4 -6
  39. aws_cdk/aws_rum/__init__.py +13 -10
  40. aws_cdk/aws_s3/__init__.py +3 -6
  41. aws_cdk/aws_sagemaker/__init__.py +41 -0
  42. aws_cdk/aws_ssmincidents/__init__.py +10 -10
  43. aws_cdk/aws_systemsmanagersap/__init__.py +17 -7
  44. aws_cdk/aws_transfer/__init__.py +19 -10
  45. aws_cdk/aws_wafv2/__init__.py +80 -35
  46. aws_cdk/cx_api/__init__.py +23 -2
  47. aws_cdk/pipelines/__init__.py +32 -0
  48. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +1 -1
  49. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +53 -53
  50. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
  51. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
  52. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +0 -0
  53. {aws_cdk_lib-2.187.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
@@ -76,7 +76,7 @@ class CfnBudget(
76
76
  ):
77
77
  '''The ``AWS::Budgets::Budget`` resource allows customers to take pre-defined actions that will trigger once a budget threshold has been exceeded.
78
78
 
79
- creates, replaces, or deletes budgets for Billing and Cost Management. For more information, see `Managing Your Costs with Budgets <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html>`_ in the *AWS Billing and Cost Management User Guide* .
79
+ creates, replaces, or deletes budgets for Billing and Cost Management. For more information, see `Managing Your Costs with Budgets <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html>`_ in the *Billing and Cost Management User Guide* .
80
80
 
81
81
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html
82
82
  :cloudformationResource: AWS::Budgets::Budget
@@ -405,7 +405,7 @@ class CfnBudget(
405
405
  :param cost_filters: The cost filters, such as ``Region`` , ``Service`` , ``LinkedAccount`` , ``Tag`` , or ``CostCategory`` , that are applied to a budget. AWS Budgets supports the following services as a ``Service`` filter for RI budgets: - Amazon EC2 - Amazon Redshift - Amazon Relational Database Service - Amazon ElastiCache - Amazon OpenSearch Service
406
406
  :param cost_types: The types of costs that are included in this ``COST`` budget. ``USAGE`` , ``RI_UTILIZATION`` , ``RI_COVERAGE`` , ``SAVINGS_PLANS_UTILIZATION`` , and ``SAVINGS_PLANS_COVERAGE`` budgets do not have ``CostTypes`` .
407
407
  :param planned_budget_limits: A map containing multiple ``BudgetLimit`` , including current or future limits. ``PlannedBudgetLimits`` is available for cost or usage budget and supports both monthly and quarterly ``TimeUnit`` . For monthly budgets, provide 12 months of ``PlannedBudgetLimits`` values. This must start from the current month and include the next 11 months. The ``key`` is the start of the month, ``UTC`` in epoch seconds. For quarterly budgets, provide four quarters of ``PlannedBudgetLimits`` value entries in standard calendar quarter increments. This must start from the current quarter and include the next three quarters. The ``key`` is the start of the quarter, ``UTC`` in epoch seconds. If the planned budget expires before 12 months for monthly or four quarters for quarterly, provide the ``PlannedBudgetLimits`` values only for the remaining periods. If the budget begins at a date in the future, provide ``PlannedBudgetLimits`` values from the start date of the budget. After all of the ``BudgetLimit`` values in ``PlannedBudgetLimits`` are used, the budget continues to use the last limit as the ``BudgetLimit`` . At that point, the planned budget provides the same experience as a fixed budget. ``DescribeBudget`` and ``DescribeBudgets`` response along with ``PlannedBudgetLimits`` also contain ``BudgetLimit`` representing the current month or quarter limit present in ``PlannedBudgetLimits`` . This only applies to budgets that are created with ``PlannedBudgetLimits`` . Budgets that are created without ``PlannedBudgetLimits`` only contain ``BudgetLimit`` . They don't contain ``PlannedBudgetLimits`` .
408
- :param time_period: The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date. The start date for a budget. If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the AWS Billing and Cost Management console and the API. You can change your start date with the ``UpdateBudget`` operation. After the end date, AWS deletes the budget and all associated notifications and subscribers.
408
+ :param time_period: The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date. The start date for a budget. If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the Billing and Cost Management console and the API. You can change your start date with the ``UpdateBudget`` operation. After the end date, AWS deletes the budget and all associated notifications and subscribers.
409
409
 
410
410
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html
411
411
  :exampleMetadata: fixture=_generated
@@ -606,7 +606,7 @@ class CfnBudget(
606
606
 
607
607
  The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
608
608
 
609
- The start date for a budget. If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the AWS Billing and Cost Management console and the API.
609
+ The start date for a budget. If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the Billing and Cost Management console and the API.
610
610
 
611
611
  You can change your start date with the ``UpdateBudget`` operation.
612
612
 
@@ -1403,8 +1403,8 @@ class CfnBudget(
1403
1403
 
1404
1404
  The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
1405
1405
 
1406
- :param end: The end date for a budget. If you didn't specify an end date, AWS set your end date to ``06/15/87 00:00 UTC`` . The defaults are the same for the AWS Billing and Cost Management console and the API. After the end date, AWS deletes the budget and all the associated notifications and subscribers. You can change your end date with the ``UpdateBudget`` operation.
1407
- :param start: The start date for a budget. If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the AWS Billing and Cost Management console and the API. You can change your start date with the ``UpdateBudget`` operation. Valid values depend on the value of ``BudgetType`` : - If ``BudgetType`` is ``COST`` or ``USAGE`` : Valid values are ``MONTHLY`` , ``QUARTERLY`` , and ``ANNUALLY`` . - If ``BudgetType`` is ``RI_UTILIZATION`` or ``RI_COVERAGE`` : Valid values are ``DAILY`` , ``MONTHLY`` , ``QUARTERLY`` , and ``ANNUALLY`` .
1406
+ :param end: The end date for a budget. If you didn't specify an end date, AWS set your end date to ``06/15/87 00:00 UTC`` . The defaults are the same for the Billing and Cost Management console and the API. After the end date, AWS deletes the budget and all the associated notifications and subscribers. You can change your end date with the ``UpdateBudget`` operation.
1407
+ :param start: The start date for a budget. If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the Billing and Cost Management console and the API. You can change your start date with the ``UpdateBudget`` operation. Valid values depend on the value of ``BudgetType`` : - If ``BudgetType`` is ``COST`` or ``USAGE`` : Valid values are ``MONTHLY`` , ``QUARTERLY`` , and ``ANNUALLY`` . - If ``BudgetType`` is ``RI_UTILIZATION`` or ``RI_COVERAGE`` : Valid values are ``DAILY`` , ``MONTHLY`` , ``QUARTERLY`` , and ``ANNUALLY`` .
1408
1408
 
1409
1409
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-timeperiod.html
1410
1410
  :exampleMetadata: fixture=_generated
@@ -1434,7 +1434,7 @@ class CfnBudget(
1434
1434
  def end(self) -> typing.Optional[builtins.str]:
1435
1435
  '''The end date for a budget.
1436
1436
 
1437
- If you didn't specify an end date, AWS set your end date to ``06/15/87 00:00 UTC`` . The defaults are the same for the AWS Billing and Cost Management console and the API.
1437
+ If you didn't specify an end date, AWS set your end date to ``06/15/87 00:00 UTC`` . The defaults are the same for the Billing and Cost Management console and the API.
1438
1438
 
1439
1439
  After the end date, AWS deletes the budget and all the associated notifications and subscribers. You can change your end date with the ``UpdateBudget`` operation.
1440
1440
 
@@ -1447,7 +1447,7 @@ class CfnBudget(
1447
1447
  def start(self) -> typing.Optional[builtins.str]:
1448
1448
  '''The start date for a budget.
1449
1449
 
1450
- If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the AWS Billing and Cost Management console and the API.
1450
+ If you created your budget and didn't specify a start date, the start date defaults to the start of the chosen time period (MONTHLY, QUARTERLY, or ANNUALLY). For example, if you create your budget on January 24, 2019, choose ``MONTHLY`` , and don't set a start date, the start date defaults to ``01/01/19 00:00 UTC`` . The defaults are the same for the Billing and Cost Management console and the API.
1451
1451
 
1452
1452
  You can change your start date with the ``UpdateBudget`` operation.
1453
1453
 
@@ -1642,7 +1642,7 @@ class CfnBudgetsAction(
1642
1642
  ):
1643
1643
  '''The ``AWS::Budgets::BudgetsAction`` resource enables you to take predefined actions that are initiated when a budget threshold has been exceeded.
1644
1644
 
1645
- For more information, see `Managing Your Costs with Budgets <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html>`_ in the *AWS Billing and Cost Management User Guide* .
1645
+ For more information, see `Managing Your Costs with Budgets <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html>`_ in the *Billing and Cost Management User Guide* .
1646
1646
 
1647
1647
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budgetsaction.html
1648
1648
  :cloudformationResource: AWS::Budgets::BudgetsAction
@@ -263,7 +263,7 @@ class CfnKeyspace(
263
263
 
264
264
  For more information about multi-Region replication, see `Multi-Region replication <https://docs.aws.amazon.com/keyspaces/latest/devguide/multiRegion-replication.html>`_ in the *Amazon Keyspaces Developer Guide* .
265
265
 
266
- :param region_list: Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two Regions, including the Region that the keyspace is being created in.
266
+ :param region_list: Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two Regions, including the Region that the keyspace is being created in. To specify a Region `that's disabled by default <https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html#rande-manage-enable>`_ , you must first enable the Region. For more information, see `Multi-Region replication in AWS Regions disabled by default <https://docs.aws.amazon.com/keyspaces/latest/devguide/multiRegion-replication_how-it-works.html#howitworks_mrr_opt_in>`_ in the *Amazon Keyspaces Developer Guide* .
267
267
  :param replication_strategy: The options are:. - ``SINGLE_REGION`` (optional) - ``MULTI_REGION`` If no value is specified, the default is ``SINGLE_REGION`` . If ``MULTI_REGION`` is specified, ``RegionList`` is required.
268
268
 
269
269
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-keyspace-replicationspecification.html
@@ -296,6 +296,8 @@ class CfnKeyspace(
296
296
 
297
297
  You must specify at least two Regions, including the Region that the keyspace is being created in.
298
298
 
299
+ To specify a Region `that's disabled by default <https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html#rande-manage-enable>`_ , you must first enable the Region. For more information, see `Multi-Region replication in AWS Regions disabled by default <https://docs.aws.amazon.com/keyspaces/latest/devguide/multiRegion-replication_how-it-works.html#howitworks_mrr_opt_in>`_ in the *Amazon Keyspaces Developer Guide* .
300
+
299
301
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-keyspace-replicationspecification.html#cfn-cassandra-keyspace-replicationspecification-regionlist
300
302
  '''
301
303
  result = self._values.get("region_list")
@@ -1076,9 +1076,9 @@ class CfnCostCategory(
1076
1076
  metaclass=jsii.JSIIMeta,
1077
1077
  jsii_type="aws-cdk-lib.aws_ce.CfnCostCategory",
1078
1078
  ):
1079
- '''The ``AWS::CE::CostCategory`` resource creates groupings of cost that you can use across products in the AWS Billing and Cost Management console, such as Cost Explorer and AWS Budgets.
1079
+ '''The ``AWS::CE::CostCategory`` resource creates groupings of cost that you can use across products in the Billing and Cost Management console, such as Cost Explorer and AWS Budgets.
1080
1080
 
1081
- For more information, see `Managing Your Costs with Cost Categories <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html>`_ in the *AWS Billing and Cost Management User Guide* .
1081
+ For more information, see `Managing Your Costs with Cost Categories <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html>`_ in the *Billing and Cost Management User Guide* .
1082
1082
 
1083
1083
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html
1084
1084
  :cloudformationResource: AWS::CE::CostCategory
@@ -5460,7 +5460,7 @@ class CfnStack(
5460
5460
  You must acknowledge IAM capabilities for nested stacks that contain IAM resources. Also, verify that you have cancel update stack permissions, which is required if an update rolls back. For more information about IAM and CloudFormation , see `Controlling access with AWS Identity and Access Management <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html>`_ in the *AWS CloudFormation User Guide* .
5461
5461
  .. epigraph::
5462
5462
 
5463
- A subset of ``AWS::CloudFormation::Stack`` resource type properties listed below are available to customers using CloudFormation , AWS CDK , and AWS Cloud Control API to configure.
5463
+ A subset of ``AWS::CloudFormation::Stack`` resource type properties listed below are available to customers using CloudFormation , AWS CDK , and Cloud Control to configure.
5464
5464
 
5465
5465
  - ``NotificationARNs``
5466
5466
  - ``Parameters``
@@ -5468,7 +5468,7 @@ class CfnStack(
5468
5468
  - ``TemplateURL``
5469
5469
  - ``TimeoutInMinutes``
5470
5470
 
5471
- These properties can be configured only when using AWS Cloud Control API . This is because the below properties are set by the parent stack, and thus cannot be configured using CloudFormation or AWS CDK but only AWS Cloud Control API .
5471
+ These properties can be configured only when using Cloud Control . This is because the below properties are set by the parent stack, and thus cannot be configured using CloudFormation or AWS CDK but only Cloud Control .
5472
5472
 
5473
5473
  - ``Capabilities``
5474
5474
  - ``Description``
@@ -5483,7 +5483,7 @@ class CfnStack(
5483
5483
 
5484
5484
  Customers that configure ``AWS::CloudFormation::Stack`` using CloudFormation and AWS CDK can do so for nesting a CloudFormation stack as a resource in their top-level template.
5485
5485
 
5486
- These read-only properties can be accessed only when using AWS Cloud Control API .
5486
+ These read-only properties can be accessed only when using Cloud Control .
5487
5487
 
5488
5488
  - ``ChangeSetId``
5489
5489
  - ``CreationTime``
@@ -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
  ),
@@ -19082,6 +19103,7 @@ def _typecheckingstub__bd7a159b208cebb3cbebac16a64724eaec87e10d0a867f62bf9021489
19082
19103
  def _typecheckingstub__1f7b942816ca448d0a1e5b046754abe3bbf6042e79982a46edfd284c87941f59(
19083
19104
  *,
19084
19105
  type: builtins.str,
19106
+ cache_namespace: typing.Optional[builtins.str] = None,
19085
19107
  location: typing.Optional[builtins.str] = None,
19086
19108
  modes: typing.Optional[typing.Sequence[builtins.str]] = None,
19087
19109
  ) -> 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"""