aws-cdk-lib 2.164.1__py3-none-any.whl → 2.166.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 (52) hide show
  1. aws_cdk/__init__.py +20 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.164.1.jsii.tgz → aws-cdk-lib@2.166.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_appsync/__init__.py +2163 -375
  5. aws_cdk/aws_autoscaling/__init__.py +145 -8
  6. aws_cdk/aws_backup/__init__.py +627 -3
  7. aws_cdk/aws_bedrock/__init__.py +982 -191
  8. aws_cdk/aws_codebuild/__init__.py +88 -33
  9. aws_cdk/aws_codepipeline/__init__.py +98 -5
  10. aws_cdk/aws_codestar/__init__.py +1 -1
  11. aws_cdk/aws_cognito/__init__.py +656 -102
  12. aws_cdk/aws_connect/__init__.py +1 -1
  13. aws_cdk/aws_datasync/__init__.py +9 -7
  14. aws_cdk/aws_devopsguru/__init__.py +2 -2
  15. aws_cdk/aws_dms/__init__.py +762 -0
  16. aws_cdk/aws_dynamodb/__init__.py +13 -8
  17. aws_cdk/aws_ec2/__init__.py +134 -35
  18. aws_cdk/aws_ecs/__init__.py +41 -31
  19. aws_cdk/aws_eks/__init__.py +10 -12
  20. aws_cdk/aws_elasticache/__init__.py +52 -6
  21. aws_cdk/aws_emrserverless/__init__.py +35 -33
  22. aws_cdk/aws_events/__init__.py +25 -30
  23. aws_cdk/aws_imagebuilder/__init__.py +183 -0
  24. aws_cdk/aws_iot/__init__.py +37 -43
  25. aws_cdk/aws_iotwireless/__init__.py +2 -2
  26. aws_cdk/aws_kinesis/__init__.py +297 -1
  27. aws_cdk/aws_lambda/__init__.py +3 -3
  28. aws_cdk/aws_m2/__init__.py +58 -58
  29. aws_cdk/aws_mediapackagev2/__init__.py +191 -0
  30. aws_cdk/aws_memorydb/__init__.py +41 -0
  31. aws_cdk/aws_networkfirewall/__init__.py +14 -5
  32. aws_cdk/aws_opensearchservice/__init__.py +969 -0
  33. aws_cdk/aws_pipes/__init__.py +1 -1
  34. aws_cdk/aws_qbusiness/__init__.py +23 -14
  35. aws_cdk/aws_rds/__init__.py +187 -48
  36. aws_cdk/aws_redshift/__init__.py +23 -23
  37. aws_cdk/aws_refactorspaces/__init__.py +56 -61
  38. aws_cdk/aws_resiliencehub/__init__.py +4 -4
  39. aws_cdk/aws_route53/__init__.py +37 -9
  40. aws_cdk/aws_s3_deployment/__init__.py +13 -7
  41. aws_cdk/aws_sagemaker/__init__.py +128 -23
  42. aws_cdk/aws_secretsmanager/__init__.py +2 -1
  43. aws_cdk/aws_ses/__init__.py +19 -0
  44. aws_cdk/aws_synthetics/__init__.py +121 -0
  45. aws_cdk/aws_timestream/__init__.py +41 -0
  46. aws_cdk/aws_wisdom/__init__.py +2035 -61
  47. {aws_cdk_lib-2.164.1.dist-info → aws_cdk_lib-2.166.0.dist-info}/METADATA +6 -6
  48. {aws_cdk_lib-2.164.1.dist-info → aws_cdk_lib-2.166.0.dist-info}/RECORD +52 -52
  49. {aws_cdk_lib-2.164.1.dist-info → aws_cdk_lib-2.166.0.dist-info}/LICENSE +0 -0
  50. {aws_cdk_lib-2.164.1.dist-info → aws_cdk_lib-2.166.0.dist-info}/NOTICE +0 -0
  51. {aws_cdk_lib-2.164.1.dist-info → aws_cdk_lib-2.166.0.dist-info}/WHEEL +0 -0
  52. {aws_cdk_lib-2.164.1.dist-info → aws_cdk_lib-2.166.0.dist-info}/top_level.txt +0 -0
@@ -73,7 +73,7 @@ Example:
73
73
  ```python
74
74
  git_hub_source = codebuild.Source.git_hub(
75
75
  owner="awslabs",
76
- repo="aws-cdk",
76
+ repo="aws-cdk", # optional, default: undefined if unspecified will create organization webhook
77
77
  webhook=True, # optional, default: true if `webhookFilters` were provided, false otherwise
78
78
  webhook_triggers_batch_build=True, # optional, default is false
79
79
  webhook_filters=[
@@ -83,6 +83,19 @@ git_hub_source = codebuild.Source.git_hub(
83
83
  )
84
84
  ```
85
85
 
86
+ The `GitHubSource` is also able to trigger all repos in GitHub Organizations
87
+ Example:
88
+
89
+ ```python
90
+ git_hub_source = codebuild.Source.git_hub(
91
+ owner="aws",
92
+ webhook_triggers_batch_build=True, # optional, default is false
93
+ webhook_filters=[
94
+ codebuild.FilterGroup.in_event_of(codebuild.EventAction.WORKFLOW_JOB_QUEUED).and_repository_name_is("aws-.*").and_repository_name_is_not("aws-cdk-lib")
95
+ ]
96
+ )
97
+ ```
98
+
86
99
  To provide GitHub credentials, please either go to AWS CodeBuild Console to connect
87
100
  or call `ImportSourceCredentials` to persist your personal access token.
88
101
  Example:
@@ -8369,7 +8382,7 @@ class EventAction(enum.Enum):
8369
8382
 
8370
8383
  git_hub_source = codebuild.Source.git_hub(
8371
8384
  owner="awslabs",
8372
- repo="aws-cdk",
8385
+ repo="aws-cdk", # optional, default: undefined if unspecified will create organization webhook
8373
8386
  webhook=True, # optional, default: true if `webhookFilters` were provided, false otherwise
8374
8387
  webhook_triggers_batch_build=True, # optional, default is false
8375
8388
  webhook_filters=[
@@ -8551,7 +8564,7 @@ class FilterGroup(
8551
8564
 
8552
8565
  git_hub_source = codebuild.Source.git_hub(
8553
8566
  owner="awslabs",
8554
- repo="aws-cdk",
8567
+ repo="aws-cdk", # optional, default: undefined if unspecified will create organization webhook
8555
8568
  webhook=True, # optional, default: true if `webhookFilters` were provided, false otherwise
8556
8569
  webhook_triggers_batch_build=True, # optional, default is false
8557
8570
  webhook_filters=[
@@ -8741,6 +8754,34 @@ class FilterGroup(
8741
8754
  check_type(argname="argument pattern", value=pattern, expected_type=type_hints["pattern"])
8742
8755
  return typing.cast("FilterGroup", jsii.invoke(self, "andHeadRefIsNot", [pattern]))
8743
8756
 
8757
+ @jsii.member(jsii_name="andRepositoryNameIs")
8758
+ def and_repository_name_is(self, pattern: builtins.str) -> "FilterGroup":
8759
+ '''Create a new FilterGroup with an added condition: the push that is the source of the event affect only a repository name that matches the given pattern.
8760
+
8761
+ Note that you can only use this method if this Group contains only the ``WORKFLOW_JOB_QUEUED`` event action,
8762
+ only for GitHub sources and only for organization webhook.
8763
+
8764
+ :param pattern: a regular expression.
8765
+ '''
8766
+ if __debug__:
8767
+ type_hints = typing.get_type_hints(_typecheckingstub__9e7d3f169fef6e265f8052a45ab6fd4a3fd2974d9cbf918ba5d79bbc11b6c0b3)
8768
+ check_type(argname="argument pattern", value=pattern, expected_type=type_hints["pattern"])
8769
+ return typing.cast("FilterGroup", jsii.invoke(self, "andRepositoryNameIs", [pattern]))
8770
+
8771
+ @jsii.member(jsii_name="andRepositoryNameIsNot")
8772
+ def and_repository_name_is_not(self, pattern: builtins.str) -> "FilterGroup":
8773
+ '''Create a new FilterGroup with an added condition: the push that is the source of the event must not affect a repository name that matches the given pattern.
8774
+
8775
+ Note that you can only use this method if this Group contains only the ``WORKFLOW_JOB_QUEUED`` event action,
8776
+ only for GitHub sources and only for organization webhook.
8777
+
8778
+ :param pattern: a regular expression.
8779
+ '''
8780
+ if __debug__:
8781
+ type_hints = typing.get_type_hints(_typecheckingstub__e84ee81a663b5ed60423a7ba14b5db0cf1deeb13dee287175257f878aedcc7b2)
8782
+ check_type(argname="argument pattern", value=pattern, expected_type=type_hints["pattern"])
8783
+ return typing.cast("FilterGroup", jsii.invoke(self, "andRepositoryNameIsNot", [pattern]))
8784
+
8744
8785
  @jsii.member(jsii_name="andTagIs")
8745
8786
  def and_tag_is(self, tag_name: builtins.str) -> "FilterGroup":
8746
8787
  '''Create a new FilterGroup with an added condition: the event must affect the given tag.
@@ -14850,12 +14891,12 @@ class Source(
14850
14891
  cls,
14851
14892
  *,
14852
14893
  owner: builtins.str,
14853
- repo: builtins.str,
14854
14894
  branch_or_ref: typing.Optional[builtins.str] = None,
14855
14895
  build_status_context: typing.Optional[builtins.str] = None,
14856
14896
  build_status_url: typing.Optional[builtins.str] = None,
14857
14897
  clone_depth: typing.Optional[jsii.Number] = None,
14858
14898
  fetch_submodules: typing.Optional[builtins.bool] = None,
14899
+ repo: typing.Optional[builtins.str] = None,
14859
14900
  report_build_status: typing.Optional[builtins.bool] = None,
14860
14901
  webhook: typing.Optional[builtins.bool] = None,
14861
14902
  webhook_filters: typing.Optional[typing.Sequence[FilterGroup]] = None,
@@ -14863,13 +14904,13 @@ class Source(
14863
14904
  identifier: typing.Optional[builtins.str] = None,
14864
14905
  ) -> ISource:
14865
14906
  '''
14866
- :param owner: The GitHub account/user that owns the repo.
14867
- :param repo: The name of the repo (without the username).
14907
+ :param owner: The GitHub Organization/user that owns the repo.
14868
14908
  :param branch_or_ref: The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. Default: the default branch's HEAD commit ID is used
14869
14909
  :param build_status_context: This parameter is used for the ``context`` parameter in the GitHub commit status. Can use built-in CodeBuild variables, like $AWS_REGION. Default: "AWS CodeBuild $AWS_REGION ($PROJECT_NAME)"
14870
14910
  :param build_status_url: The URL that the build will report back to the source provider. Can use built-in CodeBuild variables, like $AWS_REGION. Default: - link to the AWS Console for CodeBuild to a particular build execution
14871
14911
  :param clone_depth: The depth of history to download. Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build of the project.
14872
14912
  :param fetch_submodules: Whether to fetch submodules while cloning git repo. Default: false
14913
+ :param repo: The name of the repo (without the username). Default: undefined will create an organization webhook
14873
14914
  :param report_build_status: Whether to send notifications on your build's start and end. Default: true
14874
14915
  :param webhook: Whether to create a webhook that will trigger a build every time an event happens in the repository. Default: true if any ``webhookFilters`` were provided, false otherwise
14875
14916
  :param webhook_filters: A list of webhook filters that can constraint what events in the repository will trigger a build. A build is triggered if any of the provided filter groups match. Only valid if ``webhook`` was not provided as false. Default: every push and every Pull Request (create or update) triggers a build
@@ -14878,12 +14919,12 @@ class Source(
14878
14919
  '''
14879
14920
  props = GitHubSourceProps(
14880
14921
  owner=owner,
14881
- repo=repo,
14882
14922
  branch_or_ref=branch_or_ref,
14883
14923
  build_status_context=build_status_context,
14884
14924
  build_status_url=build_status_url,
14885
14925
  clone_depth=clone_depth,
14886
14926
  fetch_submodules=fetch_submodules,
14927
+ repo=repo,
14887
14928
  report_build_status=report_build_status,
14888
14929
  webhook=webhook,
14889
14930
  webhook_filters=webhook_filters,
@@ -16499,12 +16540,12 @@ class GitHubEnterpriseSourceProps(SourceProps):
16499
16540
  name_mapping={
16500
16541
  "identifier": "identifier",
16501
16542
  "owner": "owner",
16502
- "repo": "repo",
16503
16543
  "branch_or_ref": "branchOrRef",
16504
16544
  "build_status_context": "buildStatusContext",
16505
16545
  "build_status_url": "buildStatusUrl",
16506
16546
  "clone_depth": "cloneDepth",
16507
16547
  "fetch_submodules": "fetchSubmodules",
16548
+ "repo": "repo",
16508
16549
  "report_build_status": "reportBuildStatus",
16509
16550
  "webhook": "webhook",
16510
16551
  "webhook_filters": "webhookFilters",
@@ -16517,12 +16558,12 @@ class GitHubSourceProps(SourceProps):
16517
16558
  *,
16518
16559
  identifier: typing.Optional[builtins.str] = None,
16519
16560
  owner: builtins.str,
16520
- repo: builtins.str,
16521
16561
  branch_or_ref: typing.Optional[builtins.str] = None,
16522
16562
  build_status_context: typing.Optional[builtins.str] = None,
16523
16563
  build_status_url: typing.Optional[builtins.str] = None,
16524
16564
  clone_depth: typing.Optional[jsii.Number] = None,
16525
16565
  fetch_submodules: typing.Optional[builtins.bool] = None,
16566
+ repo: typing.Optional[builtins.str] = None,
16526
16567
  report_build_status: typing.Optional[builtins.bool] = None,
16527
16568
  webhook: typing.Optional[builtins.bool] = None,
16528
16569
  webhook_filters: typing.Optional[typing.Sequence[FilterGroup]] = None,
@@ -16531,13 +16572,13 @@ class GitHubSourceProps(SourceProps):
16531
16572
  '''Construction properties for ``GitHubSource`` and ``GitHubEnterpriseSource``.
16532
16573
 
16533
16574
  :param identifier: The source identifier. This property is required on secondary sources.
16534
- :param owner: The GitHub account/user that owns the repo.
16535
- :param repo: The name of the repo (without the username).
16575
+ :param owner: The GitHub Organization/user that owns the repo.
16536
16576
  :param branch_or_ref: The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. Default: the default branch's HEAD commit ID is used
16537
16577
  :param build_status_context: This parameter is used for the ``context`` parameter in the GitHub commit status. Can use built-in CodeBuild variables, like $AWS_REGION. Default: "AWS CodeBuild $AWS_REGION ($PROJECT_NAME)"
16538
16578
  :param build_status_url: The URL that the build will report back to the source provider. Can use built-in CodeBuild variables, like $AWS_REGION. Default: - link to the AWS Console for CodeBuild to a particular build execution
16539
16579
  :param clone_depth: The depth of history to download. Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build of the project.
16540
16580
  :param fetch_submodules: Whether to fetch submodules while cloning git repo. Default: false
16581
+ :param repo: The name of the repo (without the username). Default: undefined will create an organization webhook
16541
16582
  :param report_build_status: Whether to send notifications on your build's start and end. Default: true
16542
16583
  :param webhook: Whether to create a webhook that will trigger a build every time an event happens in the repository. Default: true if any ``webhookFilters`` were provided, false otherwise
16543
16584
  :param webhook_filters: A list of webhook filters that can constraint what events in the repository will trigger a build. A build is triggered if any of the provided filter groups match. Only valid if ``webhook`` was not provided as false. Default: every push and every Pull Request (create or update) triggers a build
@@ -16547,31 +16588,30 @@ class GitHubSourceProps(SourceProps):
16547
16588
 
16548
16589
  Example::
16549
16590
 
16550
- project = codebuild.Project(self, "MyProject",
16551
- build_spec=codebuild.BuildSpec.from_source_filename("my-buildspec.yml"),
16552
- source=codebuild.Source.git_hub(
16553
- owner="awslabs",
16554
- repo="aws-cdk"
16555
- )
16591
+ git_hub_source = codebuild.Source.git_hub(
16592
+ owner="aws",
16593
+ webhook_triggers_batch_build=True, # optional, default is false
16594
+ webhook_filters=[
16595
+ codebuild.FilterGroup.in_event_of(codebuild.EventAction.WORKFLOW_JOB_QUEUED).and_repository_name_is("aws-.*").and_repository_name_is_not("aws-cdk-lib")
16596
+ ]
16556
16597
  )
16557
16598
  '''
16558
16599
  if __debug__:
16559
16600
  type_hints = typing.get_type_hints(_typecheckingstub__d3b887e14634bc45819a77709375f77df36f65342d6d36aacb8fa50fb075226a)
16560
16601
  check_type(argname="argument identifier", value=identifier, expected_type=type_hints["identifier"])
16561
16602
  check_type(argname="argument owner", value=owner, expected_type=type_hints["owner"])
16562
- check_type(argname="argument repo", value=repo, expected_type=type_hints["repo"])
16563
16603
  check_type(argname="argument branch_or_ref", value=branch_or_ref, expected_type=type_hints["branch_or_ref"])
16564
16604
  check_type(argname="argument build_status_context", value=build_status_context, expected_type=type_hints["build_status_context"])
16565
16605
  check_type(argname="argument build_status_url", value=build_status_url, expected_type=type_hints["build_status_url"])
16566
16606
  check_type(argname="argument clone_depth", value=clone_depth, expected_type=type_hints["clone_depth"])
16567
16607
  check_type(argname="argument fetch_submodules", value=fetch_submodules, expected_type=type_hints["fetch_submodules"])
16608
+ check_type(argname="argument repo", value=repo, expected_type=type_hints["repo"])
16568
16609
  check_type(argname="argument report_build_status", value=report_build_status, expected_type=type_hints["report_build_status"])
16569
16610
  check_type(argname="argument webhook", value=webhook, expected_type=type_hints["webhook"])
16570
16611
  check_type(argname="argument webhook_filters", value=webhook_filters, expected_type=type_hints["webhook_filters"])
16571
16612
  check_type(argname="argument webhook_triggers_batch_build", value=webhook_triggers_batch_build, expected_type=type_hints["webhook_triggers_batch_build"])
16572
16613
  self._values: typing.Dict[builtins.str, typing.Any] = {
16573
16614
  "owner": owner,
16574
- "repo": repo,
16575
16615
  }
16576
16616
  if identifier is not None:
16577
16617
  self._values["identifier"] = identifier
@@ -16585,6 +16625,8 @@ class GitHubSourceProps(SourceProps):
16585
16625
  self._values["clone_depth"] = clone_depth
16586
16626
  if fetch_submodules is not None:
16587
16627
  self._values["fetch_submodules"] = fetch_submodules
16628
+ if repo is not None:
16629
+ self._values["repo"] = repo
16588
16630
  if report_build_status is not None:
16589
16631
  self._values["report_build_status"] = report_build_status
16590
16632
  if webhook is not None:
@@ -16605,7 +16647,7 @@ class GitHubSourceProps(SourceProps):
16605
16647
 
16606
16648
  @builtins.property
16607
16649
  def owner(self) -> builtins.str:
16608
- '''The GitHub account/user that owns the repo.
16650
+ '''The GitHub Organization/user that owns the repo.
16609
16651
 
16610
16652
  Example::
16611
16653
 
@@ -16615,18 +16657,6 @@ class GitHubSourceProps(SourceProps):
16615
16657
  assert result is not None, "Required property 'owner' is missing"
16616
16658
  return typing.cast(builtins.str, result)
16617
16659
 
16618
- @builtins.property
16619
- def repo(self) -> builtins.str:
16620
- '''The name of the repo (without the username).
16621
-
16622
- Example::
16623
-
16624
- "aws-cdk"
16625
- '''
16626
- result = self._values.get("repo")
16627
- assert result is not None, "Required property 'repo' is missing"
16628
- return typing.cast(builtins.str, result)
16629
-
16630
16660
  @builtins.property
16631
16661
  def branch_or_ref(self) -> typing.Optional[builtins.str]:
16632
16662
  '''The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build.
@@ -16694,6 +16724,19 @@ class GitHubSourceProps(SourceProps):
16694
16724
  result = self._values.get("fetch_submodules")
16695
16725
  return typing.cast(typing.Optional[builtins.bool], result)
16696
16726
 
16727
+ @builtins.property
16728
+ def repo(self) -> typing.Optional[builtins.str]:
16729
+ '''The name of the repo (without the username).
16730
+
16731
+ :default: undefined will create an organization webhook
16732
+
16733
+ Example::
16734
+
16735
+ "aws-cdk"
16736
+ '''
16737
+ result = self._values.get("repo")
16738
+ return typing.cast(typing.Optional[builtins.str], result)
16739
+
16697
16740
  @builtins.property
16698
16741
  def report_build_status(self) -> typing.Optional[builtins.bool]:
16699
16742
  '''Whether to send notifications on your build's start and end.
@@ -18332,6 +18375,18 @@ def _typecheckingstub__a2e6773d7ae0ebb1e84bc59b0802dbef393b54896f56ef64f567d576e
18332
18375
  """Type checking stubs"""
18333
18376
  pass
18334
18377
 
18378
+ def _typecheckingstub__9e7d3f169fef6e265f8052a45ab6fd4a3fd2974d9cbf918ba5d79bbc11b6c0b3(
18379
+ pattern: builtins.str,
18380
+ ) -> None:
18381
+ """Type checking stubs"""
18382
+ pass
18383
+
18384
+ def _typecheckingstub__e84ee81a663b5ed60423a7ba14b5db0cf1deeb13dee287175257f878aedcc7b2(
18385
+ pattern: builtins.str,
18386
+ ) -> None:
18387
+ """Type checking stubs"""
18388
+ pass
18389
+
18335
18390
  def _typecheckingstub__9ffb04f4c6555e4c32bf26674c6978ab767449655616070b2b0002f145554f3c(
18336
18391
  tag_name: builtins.str,
18337
18392
  ) -> None:
@@ -19200,12 +19255,12 @@ def _typecheckingstub__d3b887e14634bc45819a77709375f77df36f65342d6d36aacb8fa50fb
19200
19255
  *,
19201
19256
  identifier: typing.Optional[builtins.str] = None,
19202
19257
  owner: builtins.str,
19203
- repo: builtins.str,
19204
19258
  branch_or_ref: typing.Optional[builtins.str] = None,
19205
19259
  build_status_context: typing.Optional[builtins.str] = None,
19206
19260
  build_status_url: typing.Optional[builtins.str] = None,
19207
19261
  clone_depth: typing.Optional[jsii.Number] = None,
19208
19262
  fetch_submodules: typing.Optional[builtins.bool] = None,
19263
+ repo: typing.Optional[builtins.str] = None,
19209
19264
  report_build_status: typing.Optional[builtins.bool] = None,
19210
19265
  webhook: typing.Optional[builtins.bool] = None,
19211
19266
  webhook_filters: typing.Optional[typing.Sequence[FilterGroup]] = None,
@@ -2538,7 +2538,10 @@ class CfnPipeline(
2538
2538
  )
2539
2539
  )]
2540
2540
  )],
2541
- result="result"
2541
+ result="result",
2542
+ retry_configuration=codepipeline.CfnPipeline.RetryConfigurationProperty(
2543
+ retry_mode="retryMode"
2544
+ )
2542
2545
  ),
2543
2546
  on_success=codepipeline.CfnPipeline.SuccessConditionsProperty(
2544
2547
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
@@ -3852,7 +3855,11 @@ class CfnPipeline(
3852
3855
  @jsii.data_type(
3853
3856
  jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.FailureConditionsProperty",
3854
3857
  jsii_struct_bases=[],
3855
- name_mapping={"conditions": "conditions", "result": "result"},
3858
+ name_mapping={
3859
+ "conditions": "conditions",
3860
+ "result": "result",
3861
+ "retry_configuration": "retryConfiguration",
3862
+ },
3856
3863
  )
3857
3864
  class FailureConditionsProperty:
3858
3865
  def __init__(
@@ -3860,11 +3867,13 @@ class CfnPipeline(
3860
3867
  *,
3861
3868
  conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.ConditionProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
3862
3869
  result: typing.Optional[builtins.str] = None,
3870
+ retry_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPipeline.RetryConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
3863
3871
  ) -> None:
3864
3872
  '''The configuration that specifies the result, such as rollback, to occur upon stage failure.
3865
3873
 
3866
3874
  :param conditions: The conditions that are configured as failure conditions.
3867
3875
  :param result: The specified result for when the failure conditions are met, such as rolling back the stage.
3876
+ :param retry_configuration: The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
3868
3877
 
3869
3878
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html
3870
3879
  :exampleMetadata: fixture=_generated
@@ -3896,18 +3905,24 @@ class CfnPipeline(
3896
3905
  )
3897
3906
  )]
3898
3907
  )],
3899
- result="result"
3908
+ result="result",
3909
+ retry_configuration=codepipeline.CfnPipeline.RetryConfigurationProperty(
3910
+ retry_mode="retryMode"
3911
+ )
3900
3912
  )
3901
3913
  '''
3902
3914
  if __debug__:
3903
3915
  type_hints = typing.get_type_hints(_typecheckingstub__24827e49ed35c3622e48ed5d5a7874646b28153667949aaac3a40638392631b8)
3904
3916
  check_type(argname="argument conditions", value=conditions, expected_type=type_hints["conditions"])
3905
3917
  check_type(argname="argument result", value=result, expected_type=type_hints["result"])
3918
+ check_type(argname="argument retry_configuration", value=retry_configuration, expected_type=type_hints["retry_configuration"])
3906
3919
  self._values: typing.Dict[builtins.str, typing.Any] = {}
3907
3920
  if conditions is not None:
3908
3921
  self._values["conditions"] = conditions
3909
3922
  if result is not None:
3910
3923
  self._values["result"] = result
3924
+ if retry_configuration is not None:
3925
+ self._values["retry_configuration"] = retry_configuration
3911
3926
 
3912
3927
  @builtins.property
3913
3928
  def conditions(
@@ -3929,6 +3944,17 @@ class CfnPipeline(
3929
3944
  result = self._values.get("result")
3930
3945
  return typing.cast(typing.Optional[builtins.str], result)
3931
3946
 
3947
+ @builtins.property
3948
+ def retry_configuration(
3949
+ self,
3950
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPipeline.RetryConfigurationProperty"]]:
3951
+ '''The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
3952
+
3953
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-failureconditions.html#cfn-codepipeline-pipeline-failureconditions-retryconfiguration
3954
+ '''
3955
+ result = self._values.get("retry_configuration")
3956
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPipeline.RetryConfigurationProperty"]], result)
3957
+
3932
3958
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
3933
3959
  return isinstance(rhs, self.__class__) and rhs._values == self._values
3934
3960
 
@@ -4725,6 +4751,59 @@ class CfnPipeline(
4725
4751
  k + "=" + repr(v) for k, v in self._values.items()
4726
4752
  )
4727
4753
 
4754
+ @jsii.data_type(
4755
+ jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.RetryConfigurationProperty",
4756
+ jsii_struct_bases=[],
4757
+ name_mapping={"retry_mode": "retryMode"},
4758
+ )
4759
+ class RetryConfigurationProperty:
4760
+ def __init__(self, *, retry_mode: typing.Optional[builtins.str] = None) -> None:
4761
+ '''The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
4762
+
4763
+ :param retry_mode: The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage.
4764
+
4765
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-retryconfiguration.html
4766
+ :exampleMetadata: fixture=_generated
4767
+
4768
+ Example::
4769
+
4770
+ # The code below shows an example of how to instantiate this type.
4771
+ # The values are placeholders you should change.
4772
+ from aws_cdk import aws_codepipeline as codepipeline
4773
+
4774
+ retry_configuration_property = codepipeline.CfnPipeline.RetryConfigurationProperty(
4775
+ retry_mode="retryMode"
4776
+ )
4777
+ '''
4778
+ if __debug__:
4779
+ type_hints = typing.get_type_hints(_typecheckingstub__ffc8deb7765afd70d3fe572ffa86634cd8936e44aafd092f3182c532d39fd363)
4780
+ check_type(argname="argument retry_mode", value=retry_mode, expected_type=type_hints["retry_mode"])
4781
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
4782
+ if retry_mode is not None:
4783
+ self._values["retry_mode"] = retry_mode
4784
+
4785
+ @builtins.property
4786
+ def retry_mode(self) -> typing.Optional[builtins.str]:
4787
+ '''The method that you want to configure for automatic stage retry on stage failure.
4788
+
4789
+ You can specify to retry only failed action in the stage or all actions in the stage.
4790
+
4791
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-retryconfiguration.html#cfn-codepipeline-pipeline-retryconfiguration-retrymode
4792
+ '''
4793
+ result = self._values.get("retry_mode")
4794
+ return typing.cast(typing.Optional[builtins.str], result)
4795
+
4796
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
4797
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
4798
+
4799
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
4800
+ return not (rhs == self)
4801
+
4802
+ def __repr__(self) -> str:
4803
+ return "RetryConfigurationProperty(%s)" % ", ".join(
4804
+ k + "=" + repr(v) for k, v in self._values.items()
4805
+ )
4806
+
4728
4807
  @jsii.data_type(
4729
4808
  jsii_type="aws-cdk-lib.aws_codepipeline.CfnPipeline.RuleDeclarationProperty",
4730
4809
  jsii_struct_bases=[],
@@ -5104,7 +5183,10 @@ class CfnPipeline(
5104
5183
  )
5105
5184
  )]
5106
5185
  )],
5107
- result="result"
5186
+ result="result",
5187
+ retry_configuration=codepipeline.CfnPipeline.RetryConfigurationProperty(
5188
+ retry_mode="retryMode"
5189
+ )
5108
5190
  ),
5109
5191
  on_success=codepipeline.CfnPipeline.SuccessConditionsProperty(
5110
5192
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
@@ -5609,7 +5691,10 @@ class CfnPipelineProps:
5609
5691
  )
5610
5692
  )]
5611
5693
  )],
5612
- result="result"
5694
+ result="result",
5695
+ retry_configuration=codepipeline.CfnPipeline.RetryConfigurationProperty(
5696
+ retry_mode="retryMode"
5697
+ )
5613
5698
  ),
5614
5699
  on_success=codepipeline.CfnPipeline.SuccessConditionsProperty(
5615
5700
  conditions=[codepipeline.CfnPipeline.ConditionProperty(
@@ -10804,6 +10889,7 @@ def _typecheckingstub__24827e49ed35c3622e48ed5d5a7874646b28153667949aaac3a406383
10804
10889
  *,
10805
10890
  conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.ConditionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
10806
10891
  result: typing.Optional[builtins.str] = None,
10892
+ retry_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPipeline.RetryConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
10807
10893
  ) -> None:
10808
10894
  """Type checking stubs"""
10809
10895
  pass
@@ -10882,6 +10968,13 @@ def _typecheckingstub__4824b4ebe4c9c0ddbf15b9dd3cf1a2ffc31a1e5dfc394ba57c68b45d7
10882
10968
  """Type checking stubs"""
10883
10969
  pass
10884
10970
 
10971
+ def _typecheckingstub__ffc8deb7765afd70d3fe572ffa86634cd8936e44aafd092f3182c532d39fd363(
10972
+ *,
10973
+ retry_mode: typing.Optional[builtins.str] = None,
10974
+ ) -> None:
10975
+ """Type checking stubs"""
10976
+ pass
10977
+
10885
10978
  def _typecheckingstub__8b4c62f005bd4f9080fa5e8c7f7671821e7ac1c9314d5d3b1130fbf53e40fa51(
10886
10979
  *,
10887
10980
  configuration: typing.Any = None,
@@ -79,7 +79,7 @@ class CfnGitHubRepository(
79
79
  ):
80
80
  '''The ``AWS::CodeStar::GitHubRepository`` resource creates a GitHub repository where users can store source code for use with AWS workflows.
81
81
 
82
- You must provide a location for the source code ZIP file in the AWS CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the AWS CloudFormation template. AWS uses this token to connect to GitHub on your behalf. For more information about using a GitHub source repository with AWS CodeStar projects, see `AWS CodeStar Project Files and Resources <https://docs.aws.amazon.com/codestar/latest/userguide/templates.html#templates-whatis>`_ .
82
+ You must provide a location for the source code ZIP file in the AWS CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the AWS CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
83
83
 
84
84
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestar-githubrepository.html
85
85
  :cloudformationResource: AWS::CodeStar::GitHubRepository