aws-cdk-lib 2.128.0__py3-none-any.whl → 2.129.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 (98) hide show
  1. aws_cdk/__init__.py +2 -10
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.128.0.jsii.tgz → aws-cdk-lib@2.129.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +6 -24
  5. aws_cdk/aws_amplify/__init__.py +1 -2
  6. aws_cdk/aws_appconfig/__init__.py +0 -16
  7. aws_cdk/aws_applicationautoscaling/__init__.py +55 -22
  8. aws_cdk/aws_appstream/__init__.py +14 -14
  9. aws_cdk/aws_appsync/__init__.py +334 -3
  10. aws_cdk/aws_autoscaling/__init__.py +11 -7
  11. aws_cdk/aws_batch/__init__.py +137 -16
  12. aws_cdk/aws_cleanrooms/__init__.py +1 -2
  13. aws_cdk/aws_cloudformation/__init__.py +2 -10
  14. aws_cdk/aws_cloudfront/__init__.py +15 -8
  15. aws_cdk/aws_cloudfront/experimental/__init__.py +22 -0
  16. aws_cdk/aws_cloudfront_origins/__init__.py +332 -0
  17. aws_cdk/aws_cloudtrail/__init__.py +12 -2
  18. aws_cdk/aws_cloudwatch/__init__.py +4 -0
  19. aws_cdk/aws_codepipeline/__init__.py +463 -11
  20. aws_cdk/aws_cognito/__init__.py +0 -9
  21. aws_cdk/aws_config/__init__.py +2 -2
  22. aws_cdk/aws_connect/__init__.py +6 -1
  23. aws_cdk/aws_controltower/__init__.py +527 -7
  24. aws_cdk/aws_datasync/__init__.py +2 -2
  25. aws_cdk/aws_directoryservice/__init__.py +2 -3
  26. aws_cdk/aws_dynamodb/__init__.py +7 -0
  27. aws_cdk/aws_ec2/__init__.py +117 -210
  28. aws_cdk/aws_ecs/__init__.py +537 -3
  29. aws_cdk/aws_eks/__init__.py +1 -1
  30. aws_cdk/aws_elasticache/__init__.py +27 -20
  31. aws_cdk/aws_elasticloadbalancingv2/__init__.py +3 -4
  32. aws_cdk/aws_emr/__init__.py +23 -3
  33. aws_cdk/aws_events_targets/__init__.py +64 -20
  34. aws_cdk/aws_fis/__init__.py +4 -4
  35. aws_cdk/aws_frauddetector/__init__.py +3 -3
  36. aws_cdk/aws_globalaccelerator/__init__.py +2 -6
  37. aws_cdk/aws_glue/__init__.py +84 -55
  38. aws_cdk/aws_groundstation/__init__.py +8 -12
  39. aws_cdk/aws_guardduty/__init__.py +74 -70
  40. aws_cdk/aws_iam/__init__.py +16 -23
  41. aws_cdk/aws_imagebuilder/__init__.py +178 -156
  42. aws_cdk/aws_internetmonitor/__init__.py +12 -10
  43. aws_cdk/aws_iot/__init__.py +17 -10
  44. aws_cdk/aws_iotevents/__init__.py +4 -4
  45. aws_cdk/aws_iotfleetwise/__init__.py +10 -5
  46. aws_cdk/aws_iottwinmaker/__init__.py +3 -5
  47. aws_cdk/aws_iotwireless/__init__.py +35 -23
  48. aws_cdk/aws_kendra/__init__.py +36 -15
  49. aws_cdk/aws_kinesisfirehose/__init__.py +155 -114
  50. aws_cdk/aws_lambda/__init__.py +157 -12
  51. aws_cdk/aws_lambda_nodejs/__init__.py +22 -0
  52. aws_cdk/aws_lightsail/__init__.py +14 -18
  53. aws_cdk/aws_logs/__init__.py +15 -15
  54. aws_cdk/aws_mediaconnect/__init__.py +5 -3
  55. aws_cdk/aws_medialive/__init__.py +3 -12
  56. aws_cdk/aws_mediapackagev2/__init__.py +287 -286
  57. aws_cdk/aws_mediatailor/__init__.py +2 -2
  58. aws_cdk/aws_memorydb/__init__.py +2 -2
  59. aws_cdk/aws_msk/__init__.py +6 -3
  60. aws_cdk/aws_mwaa/__init__.py +10 -5
  61. aws_cdk/aws_neptunegraph/__init__.py +84 -66
  62. aws_cdk/aws_networkfirewall/__init__.py +5 -8
  63. aws_cdk/aws_networkmanager/__init__.py +3 -3
  64. aws_cdk/aws_nimblestudio/__init__.py +2 -4
  65. aws_cdk/aws_opensearchservice/__init__.py +6 -7
  66. aws_cdk/aws_osis/__init__.py +1 -3
  67. aws_cdk/aws_pinpoint/__init__.py +5 -5
  68. aws_cdk/aws_pipes/__init__.py +5 -5
  69. aws_cdk/aws_quicksight/__init__.py +5 -10
  70. aws_cdk/aws_rds/__init__.py +38 -21
  71. aws_cdk/aws_redshift/__init__.py +9 -5
  72. aws_cdk/aws_redshiftserverless/__init__.py +62 -38
  73. aws_cdk/aws_rolesanywhere/__init__.py +41 -53
  74. aws_cdk/aws_route53/__init__.py +532 -6
  75. aws_cdk/aws_route53recoverycontrol/__init__.py +1 -3
  76. aws_cdk/aws_route53recoveryreadiness/__init__.py +2 -2
  77. aws_cdk/aws_route53resolver/__init__.py +1 -4
  78. aws_cdk/aws_s3/__init__.py +3 -1
  79. aws_cdk/aws_s3objectlambda/__init__.py +7 -4
  80. aws_cdk/aws_s3outposts/__init__.py +1 -1
  81. aws_cdk/aws_sagemaker/__init__.py +111 -11
  82. aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -3
  83. aws_cdk/aws_sns/__init__.py +185 -38
  84. aws_cdk/aws_ssm/__init__.py +16 -16
  85. aws_cdk/aws_ssmincidents/__init__.py +1 -1
  86. aws_cdk/aws_synthetics/__init__.py +94 -21
  87. aws_cdk/aws_verifiedpermissions/__init__.py +1 -2
  88. aws_cdk/aws_vpclattice/__init__.py +8 -4
  89. aws_cdk/aws_wafv2/__init__.py +14 -59
  90. aws_cdk/aws_workspaces/__init__.py +5 -4
  91. aws_cdk/aws_workspacesweb/__init__.py +6 -12
  92. aws_cdk/triggers/__init__.py +22 -0
  93. {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/METADATA +1 -1
  94. {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/RECORD +98 -98
  95. {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/LICENSE +0 -0
  96. {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/NOTICE +0 -0
  97. {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/WHEEL +0 -0
  98. {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/top_level.txt +0 -0
@@ -2306,7 +2306,7 @@ class CfnMaster(
2306
2306
  :param scope: Scope in which this resource is defined.
2307
2307
  :param id: Construct identifier for this resource (unique in its scope).
2308
2308
  :param detector_id: The unique ID of the detector of the GuardDuty member account.
2309
- :param master_id:
2309
+ :param master_id: The AWS account ID of the account designated as the GuardDuty administrator account.
2310
2310
  :param invitation_id: The ID of the invitation that is sent to the account designated as a member account. You can find the invitation ID by using the ListInvitation action of the GuardDuty API.
2311
2311
  '''
2312
2312
  if __debug__:
@@ -2370,6 +2370,7 @@ class CfnMaster(
2370
2370
  @builtins.property
2371
2371
  @jsii.member(jsii_name="masterId")
2372
2372
  def master_id(self) -> builtins.str:
2373
+ '''The AWS account ID of the account designated as the GuardDuty administrator account.'''
2373
2374
  return typing.cast(builtins.str, jsii.get(self, "masterId"))
2374
2375
 
2375
2376
  @master_id.setter
@@ -2413,7 +2414,7 @@ class CfnMasterProps:
2413
2414
  '''Properties for defining a ``CfnMaster``.
2414
2415
 
2415
2416
  :param detector_id: The unique ID of the detector of the GuardDuty member account.
2416
- :param master_id:
2417
+ :param master_id: The AWS account ID of the account designated as the GuardDuty administrator account.
2417
2418
  :param invitation_id: The ID of the invitation that is sent to the account designated as a member account. You can find the invitation ID by using the ListInvitation action of the GuardDuty API.
2418
2419
 
2419
2420
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html
@@ -2457,7 +2458,8 @@ class CfnMasterProps:
2457
2458
 
2458
2459
  @builtins.property
2459
2460
  def master_id(self) -> builtins.str:
2460
- '''
2461
+ '''The AWS account ID of the account designated as the GuardDuty administrator account.
2462
+
2461
2463
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-masterid
2462
2464
  '''
2463
2465
  result = self._values.get("master_id")
@@ -2508,12 +2510,12 @@ class CfnMember(
2508
2510
  from aws_cdk import aws_guardduty as guardduty
2509
2511
 
2510
2512
  cfn_member = guardduty.CfnMember(self, "MyCfnMember",
2511
- detector_id="detectorId",
2512
2513
  email="email",
2513
- member_id="memberId",
2514
2514
 
2515
2515
  # the properties below are optional
2516
+ detector_id="detectorId",
2516
2517
  disable_email_notification=False,
2518
+ member_id="memberId",
2517
2519
  message="message",
2518
2520
  status="status"
2519
2521
  )
@@ -2524,20 +2526,20 @@ class CfnMember(
2524
2526
  scope: _constructs_77d1e7e8.Construct,
2525
2527
  id: builtins.str,
2526
2528
  *,
2527
- detector_id: builtins.str,
2528
2529
  email: builtins.str,
2529
- member_id: builtins.str,
2530
+ detector_id: typing.Optional[builtins.str] = None,
2530
2531
  disable_email_notification: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2532
+ member_id: typing.Optional[builtins.str] = None,
2531
2533
  message: typing.Optional[builtins.str] = None,
2532
2534
  status: typing.Optional[builtins.str] = None,
2533
2535
  ) -> None:
2534
2536
  '''
2535
2537
  :param scope: Scope in which this resource is defined.
2536
2538
  :param id: Construct identifier for this resource (unique in its scope).
2537
- :param detector_id: The ID of the detector associated with the GuardDuty service to add the member to.
2538
2539
  :param email: The email address associated with the member account.
2539
- :param member_id:
2540
+ :param detector_id: The ID of the detector associated with the GuardDuty service to add the member to.
2540
2541
  :param disable_email_notification: Specifies whether or not to disable email notification for the member account that you invite.
2542
+ :param member_id: The AWS account ID of the account to designate as a member.
2541
2543
  :param message: The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
2542
2544
  :param status: You can use the ``Status`` property to update the status of the relationship between the member account and its administrator account. Valid values are ``Created`` and ``Invited`` when using an ``AWS::GuardDuty::Member`` resource. If the value for this property is not provided or set to ``Created`` , a member account is created but not invited. If the value of this property is set to ``Invited`` , a member account is created and invited.
2543
2545
  '''
@@ -2546,10 +2548,10 @@ class CfnMember(
2546
2548
  check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
2547
2549
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
2548
2550
  props = CfnMemberProps(
2549
- detector_id=detector_id,
2550
2551
  email=email,
2551
- member_id=member_id,
2552
+ detector_id=detector_id,
2552
2553
  disable_email_notification=disable_email_notification,
2554
+ member_id=member_id,
2553
2555
  message=message,
2554
2556
  status=status,
2555
2557
  )
@@ -2591,19 +2593,6 @@ class CfnMember(
2591
2593
  def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
2592
2594
  return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
2593
2595
 
2594
- @builtins.property
2595
- @jsii.member(jsii_name="detectorId")
2596
- def detector_id(self) -> builtins.str:
2597
- '''The ID of the detector associated with the GuardDuty service to add the member to.'''
2598
- return typing.cast(builtins.str, jsii.get(self, "detectorId"))
2599
-
2600
- @detector_id.setter
2601
- def detector_id(self, value: builtins.str) -> None:
2602
- if __debug__:
2603
- type_hints = typing.get_type_hints(_typecheckingstub__d526f38412f59e2458ce2c2439621166117e2219e0b7389c37d70f65550274c4)
2604
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
2605
- jsii.set(self, "detectorId", value)
2606
-
2607
2596
  @builtins.property
2608
2597
  @jsii.member(jsii_name="email")
2609
2598
  def email(self) -> builtins.str:
@@ -2618,16 +2607,17 @@ class CfnMember(
2618
2607
  jsii.set(self, "email", value)
2619
2608
 
2620
2609
  @builtins.property
2621
- @jsii.member(jsii_name="memberId")
2622
- def member_id(self) -> builtins.str:
2623
- return typing.cast(builtins.str, jsii.get(self, "memberId"))
2610
+ @jsii.member(jsii_name="detectorId")
2611
+ def detector_id(self) -> typing.Optional[builtins.str]:
2612
+ '''The ID of the detector associated with the GuardDuty service to add the member to.'''
2613
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "detectorId"))
2624
2614
 
2625
- @member_id.setter
2626
- def member_id(self, value: builtins.str) -> None:
2615
+ @detector_id.setter
2616
+ def detector_id(self, value: typing.Optional[builtins.str]) -> None:
2627
2617
  if __debug__:
2628
- type_hints = typing.get_type_hints(_typecheckingstub__d66a842586ef2d5ec697ca62e59ef2af5353de489b001fb4687956e1766aac41)
2618
+ type_hints = typing.get_type_hints(_typecheckingstub__d526f38412f59e2458ce2c2439621166117e2219e0b7389c37d70f65550274c4)
2629
2619
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
2630
- jsii.set(self, "memberId", value)
2620
+ jsii.set(self, "detectorId", value)
2631
2621
 
2632
2622
  @builtins.property
2633
2623
  @jsii.member(jsii_name="disableEmailNotification")
@@ -2647,6 +2637,19 @@ class CfnMember(
2647
2637
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
2648
2638
  jsii.set(self, "disableEmailNotification", value)
2649
2639
 
2640
+ @builtins.property
2641
+ @jsii.member(jsii_name="memberId")
2642
+ def member_id(self) -> typing.Optional[builtins.str]:
2643
+ '''The AWS account ID of the account to designate as a member.'''
2644
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "memberId"))
2645
+
2646
+ @member_id.setter
2647
+ def member_id(self, value: typing.Optional[builtins.str]) -> None:
2648
+ if __debug__:
2649
+ type_hints = typing.get_type_hints(_typecheckingstub__d66a842586ef2d5ec697ca62e59ef2af5353de489b001fb4687956e1766aac41)
2650
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
2651
+ jsii.set(self, "memberId", value)
2652
+
2650
2653
  @builtins.property
2651
2654
  @jsii.member(jsii_name="message")
2652
2655
  def message(self) -> typing.Optional[builtins.str]:
@@ -2678,10 +2681,10 @@ class CfnMember(
2678
2681
  jsii_type="aws-cdk-lib.aws_guardduty.CfnMemberProps",
2679
2682
  jsii_struct_bases=[],
2680
2683
  name_mapping={
2681
- "detector_id": "detectorId",
2682
2684
  "email": "email",
2683
- "member_id": "memberId",
2685
+ "detector_id": "detectorId",
2684
2686
  "disable_email_notification": "disableEmailNotification",
2687
+ "member_id": "memberId",
2685
2688
  "message": "message",
2686
2689
  "status": "status",
2687
2690
  },
@@ -2690,19 +2693,19 @@ class CfnMemberProps:
2690
2693
  def __init__(
2691
2694
  self,
2692
2695
  *,
2693
- detector_id: builtins.str,
2694
2696
  email: builtins.str,
2695
- member_id: builtins.str,
2697
+ detector_id: typing.Optional[builtins.str] = None,
2696
2698
  disable_email_notification: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2699
+ member_id: typing.Optional[builtins.str] = None,
2697
2700
  message: typing.Optional[builtins.str] = None,
2698
2701
  status: typing.Optional[builtins.str] = None,
2699
2702
  ) -> None:
2700
2703
  '''Properties for defining a ``CfnMember``.
2701
2704
 
2702
- :param detector_id: The ID of the detector associated with the GuardDuty service to add the member to.
2703
2705
  :param email: The email address associated with the member account.
2704
- :param member_id:
2706
+ :param detector_id: The ID of the detector associated with the GuardDuty service to add the member to.
2705
2707
  :param disable_email_notification: Specifies whether or not to disable email notification for the member account that you invite.
2708
+ :param member_id: The AWS account ID of the account to designate as a member.
2706
2709
  :param message: The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
2707
2710
  :param status: You can use the ``Status`` property to update the status of the relationship between the member account and its administrator account. Valid values are ``Created`` and ``Invited`` when using an ``AWS::GuardDuty::Member`` resource. If the value for this property is not provided or set to ``Created`` , a member account is created but not invited. If the value of this property is set to ``Invited`` , a member account is created and invited.
2708
2711
 
@@ -2716,46 +2719,38 @@ class CfnMemberProps:
2716
2719
  from aws_cdk import aws_guardduty as guardduty
2717
2720
 
2718
2721
  cfn_member_props = guardduty.CfnMemberProps(
2719
- detector_id="detectorId",
2720
2722
  email="email",
2721
- member_id="memberId",
2722
2723
 
2723
2724
  # the properties below are optional
2725
+ detector_id="detectorId",
2724
2726
  disable_email_notification=False,
2727
+ member_id="memberId",
2725
2728
  message="message",
2726
2729
  status="status"
2727
2730
  )
2728
2731
  '''
2729
2732
  if __debug__:
2730
2733
  type_hints = typing.get_type_hints(_typecheckingstub__707033ab8b51a1c3cb64594f2a7e13ff03829ca7aed824af4d8509b6302ad443)
2731
- check_type(argname="argument detector_id", value=detector_id, expected_type=type_hints["detector_id"])
2732
2734
  check_type(argname="argument email", value=email, expected_type=type_hints["email"])
2733
- check_type(argname="argument member_id", value=member_id, expected_type=type_hints["member_id"])
2735
+ check_type(argname="argument detector_id", value=detector_id, expected_type=type_hints["detector_id"])
2734
2736
  check_type(argname="argument disable_email_notification", value=disable_email_notification, expected_type=type_hints["disable_email_notification"])
2737
+ check_type(argname="argument member_id", value=member_id, expected_type=type_hints["member_id"])
2735
2738
  check_type(argname="argument message", value=message, expected_type=type_hints["message"])
2736
2739
  check_type(argname="argument status", value=status, expected_type=type_hints["status"])
2737
2740
  self._values: typing.Dict[builtins.str, typing.Any] = {
2738
- "detector_id": detector_id,
2739
2741
  "email": email,
2740
- "member_id": member_id,
2741
2742
  }
2743
+ if detector_id is not None:
2744
+ self._values["detector_id"] = detector_id
2742
2745
  if disable_email_notification is not None:
2743
2746
  self._values["disable_email_notification"] = disable_email_notification
2747
+ if member_id is not None:
2748
+ self._values["member_id"] = member_id
2744
2749
  if message is not None:
2745
2750
  self._values["message"] = message
2746
2751
  if status is not None:
2747
2752
  self._values["status"] = status
2748
2753
 
2749
- @builtins.property
2750
- def detector_id(self) -> builtins.str:
2751
- '''The ID of the detector associated with the GuardDuty service to add the member to.
2752
-
2753
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-detectorid
2754
- '''
2755
- result = self._values.get("detector_id")
2756
- assert result is not None, "Required property 'detector_id' is missing"
2757
- return typing.cast(builtins.str, result)
2758
-
2759
2754
  @builtins.property
2760
2755
  def email(self) -> builtins.str:
2761
2756
  '''The email address associated with the member account.
@@ -2767,13 +2762,13 @@ class CfnMemberProps:
2767
2762
  return typing.cast(builtins.str, result)
2768
2763
 
2769
2764
  @builtins.property
2770
- def member_id(self) -> builtins.str:
2771
- '''
2772
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-memberid
2765
+ def detector_id(self) -> typing.Optional[builtins.str]:
2766
+ '''The ID of the detector associated with the GuardDuty service to add the member to.
2767
+
2768
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-detectorid
2773
2769
  '''
2774
- result = self._values.get("member_id")
2775
- assert result is not None, "Required property 'member_id' is missing"
2776
- return typing.cast(builtins.str, result)
2770
+ result = self._values.get("detector_id")
2771
+ return typing.cast(typing.Optional[builtins.str], result)
2777
2772
 
2778
2773
  @builtins.property
2779
2774
  def disable_email_notification(
@@ -2786,6 +2781,15 @@ class CfnMemberProps:
2786
2781
  result = self._values.get("disable_email_notification")
2787
2782
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
2788
2783
 
2784
+ @builtins.property
2785
+ def member_id(self) -> typing.Optional[builtins.str]:
2786
+ '''The AWS account ID of the account to designate as a member.
2787
+
2788
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-memberid
2789
+ '''
2790
+ result = self._values.get("member_id")
2791
+ return typing.cast(typing.Optional[builtins.str], result)
2792
+
2789
2793
  @builtins.property
2790
2794
  def message(self) -> typing.Optional[builtins.str]:
2791
2795
  '''The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
@@ -3561,10 +3565,10 @@ def _typecheckingstub__f44a0908d294a573f190a54e5b7ef824c88df12f421c2066261062645
3561
3565
  scope: _constructs_77d1e7e8.Construct,
3562
3566
  id: builtins.str,
3563
3567
  *,
3564
- detector_id: builtins.str,
3565
3568
  email: builtins.str,
3566
- member_id: builtins.str,
3569
+ detector_id: typing.Optional[builtins.str] = None,
3567
3570
  disable_email_notification: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3571
+ member_id: typing.Optional[builtins.str] = None,
3568
3572
  message: typing.Optional[builtins.str] = None,
3569
3573
  status: typing.Optional[builtins.str] = None,
3570
3574
  ) -> None:
@@ -3583,26 +3587,26 @@ def _typecheckingstub__aed253523c72485b59fa49b2da3826b766e320b488e0889727ad37f72
3583
3587
  """Type checking stubs"""
3584
3588
  pass
3585
3589
 
3586
- def _typecheckingstub__d526f38412f59e2458ce2c2439621166117e2219e0b7389c37d70f65550274c4(
3590
+ def _typecheckingstub__440534181e19dc546b7c107a5ec6269f67af73284cea8e784c8e3133ff4dbe38(
3587
3591
  value: builtins.str,
3588
3592
  ) -> None:
3589
3593
  """Type checking stubs"""
3590
3594
  pass
3591
3595
 
3592
- def _typecheckingstub__440534181e19dc546b7c107a5ec6269f67af73284cea8e784c8e3133ff4dbe38(
3593
- value: builtins.str,
3596
+ def _typecheckingstub__d526f38412f59e2458ce2c2439621166117e2219e0b7389c37d70f65550274c4(
3597
+ value: typing.Optional[builtins.str],
3594
3598
  ) -> None:
3595
3599
  """Type checking stubs"""
3596
3600
  pass
3597
3601
 
3598
- def _typecheckingstub__d66a842586ef2d5ec697ca62e59ef2af5353de489b001fb4687956e1766aac41(
3599
- value: builtins.str,
3602
+ def _typecheckingstub__a0d936d65b44cfdbfcf7b0213e06a4664e73ffce48a3399a6c5e192b98602f0e(
3603
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
3600
3604
  ) -> None:
3601
3605
  """Type checking stubs"""
3602
3606
  pass
3603
3607
 
3604
- def _typecheckingstub__a0d936d65b44cfdbfcf7b0213e06a4664e73ffce48a3399a6c5e192b98602f0e(
3605
- value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
3608
+ def _typecheckingstub__d66a842586ef2d5ec697ca62e59ef2af5353de489b001fb4687956e1766aac41(
3609
+ value: typing.Optional[builtins.str],
3606
3610
  ) -> None:
3607
3611
  """Type checking stubs"""
3608
3612
  pass
@@ -3621,10 +3625,10 @@ def _typecheckingstub__9c6a13c5df833c1f8928aa6ad329e356681a0e7ca00f52f83fb00c4fd
3621
3625
 
3622
3626
  def _typecheckingstub__707033ab8b51a1c3cb64594f2a7e13ff03829ca7aed824af4d8509b6302ad443(
3623
3627
  *,
3624
- detector_id: builtins.str,
3625
3628
  email: builtins.str,
3626
- member_id: builtins.str,
3629
+ detector_id: typing.Optional[builtins.str] = None,
3627
3630
  disable_email_notification: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3631
+ member_id: typing.Optional[builtins.str] = None,
3628
3632
  message: typing.Optional[builtins.str] = None,
3629
3633
  status: typing.Optional[builtins.str] = None,
3630
3634
  ) -> None:
@@ -9869,34 +9869,27 @@ class PolicyStatement(
9869
9869
  ):
9870
9870
  '''Represents a statement in an IAM policy document.
9871
9871
 
9872
- :exampleMetadata: lit=aws-ec2/test/integ.vpc-endpoint.lit.ts infused
9872
+ :exampleMetadata: infused
9873
9873
 
9874
9874
  Example::
9875
9875
 
9876
- # Add gateway endpoints when creating the VPC
9877
- vpc = ec2.Vpc(self, "MyVpc",
9878
- gateway_endpoints={
9879
- "S3": cdk.aws_ec2.GatewayVpcEndpointOptions(
9880
- service=ec2.GatewayVpcEndpointAwsService.S3
9881
- )
9882
- }
9883
- )
9876
+ cross_account_role_arn = "arn:aws:iam::OTHERACCOUNT:role/CrossAccountRoleName" # arn of role deployed in separate account
9884
9877
 
9885
- # Alternatively gateway endpoints can be added on the VPC
9886
- dynamo_db_endpoint = vpc.add_gateway_endpoint("DynamoDbEndpoint",
9887
- service=ec2.GatewayVpcEndpointAwsService.DYNAMODB
9888
- )
9889
-
9890
- # This allows to customize the endpoint policy
9891
- dynamo_db_endpoint.add_to_policy(
9892
- iam.PolicyStatement( # Restrict to listing and describing tables
9893
- principals=[iam.AnyPrincipal()],
9894
- actions=["dynamodb:DescribeTable", "dynamodb:ListTables"],
9895
- resources=["*"]))
9878
+ call_region = "us-west-1" # sdk call to be made in specified region (optional)
9896
9879
 
9897
- # Add an interface endpoint
9898
- vpc.add_interface_endpoint("EcrDockerEndpoint",
9899
- service=ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER
9880
+ cr.AwsCustomResource(self, "CrossAccount",
9881
+ on_create=cr.AwsSdkCall(
9882
+ assumed_role_arn=cross_account_role_arn,
9883
+ region=call_region, # optional
9884
+ service="sts",
9885
+ action="GetCallerIdentity",
9886
+ physical_resource_id=cr.PhysicalResourceId.of("id")
9887
+ ),
9888
+ policy=cr.AwsCustomResourcePolicy.from_statements([iam.PolicyStatement.from_json({
9889
+ "Effect": "Allow",
9890
+ "Action": "sts:AssumeRole",
9891
+ "Resource": cross_account_role_arn
9892
+ })])
9900
9893
  )
9901
9894
  '''
9902
9895