aws-cdk-lib 2.190.0__py3-none-any.whl → 2.192.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.

@@ -12081,18 +12081,42 @@ class LinuxArmLambdaBuildImage(
12081
12081
  '''The ``aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet8`` build image.'''
12082
12082
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_DOTNET_8"))
12083
12083
 
12084
+ @jsii.python.classproperty
12085
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_GO_1_24")
12086
+ def AMAZON_LINUX_2023_GO_1_24(cls) -> IBuildImage:
12087
+ '''The ``aws/codebuild/amazonlinux-aarch64-lambda-standard:go1.24`` build image.'''
12088
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_GO_1_24"))
12089
+
12084
12090
  @jsii.python.classproperty
12085
12091
  @jsii.member(jsii_name="AMAZON_LINUX_2023_NODE_20")
12086
12092
  def AMAZON_LINUX_2023_NODE_20(cls) -> IBuildImage:
12087
12093
  '''The ``aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs20`` build image.'''
12088
12094
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_NODE_20"))
12089
12095
 
12096
+ @jsii.python.classproperty
12097
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_NODE_22")
12098
+ def AMAZON_LINUX_2023_NODE_22(cls) -> IBuildImage:
12099
+ '''The ``aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs22`` build image.'''
12100
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_NODE_22"))
12101
+
12090
12102
  @jsii.python.classproperty
12091
12103
  @jsii.member(jsii_name="AMAZON_LINUX_2023_PYTHON_3_12")
12092
12104
  def AMAZON_LINUX_2023_PYTHON_3_12(cls) -> IBuildImage:
12093
12105
  '''The ``aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12`` build image.'''
12094
12106
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_PYTHON_3_12"))
12095
12107
 
12108
+ @jsii.python.classproperty
12109
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_PYTHON_3_13")
12110
+ def AMAZON_LINUX_2023_PYTHON_3_13(cls) -> IBuildImage:
12111
+ '''The ``aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.13`` build image.'''
12112
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_PYTHON_3_13"))
12113
+
12114
+ @jsii.python.classproperty
12115
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_RUBY_3_4")
12116
+ def AMAZON_LINUX_2023_RUBY_3_4(cls) -> IBuildImage:
12117
+ '''The ``aws/codebuild/amazonlinux-aarch64-lambda-standard:ruby3.4`` build image.'''
12118
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_RUBY_3_4"))
12119
+
12096
12120
  @builtins.property
12097
12121
  @jsii.member(jsii_name="defaultComputeType")
12098
12122
  def default_compute_type(self) -> ComputeType:
@@ -12672,18 +12696,42 @@ class LinuxLambdaBuildImage(
12672
12696
  '''The ``aws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet8`` build image.'''
12673
12697
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_DOTNET_8"))
12674
12698
 
12699
+ @jsii.python.classproperty
12700
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_GO_1_24")
12701
+ def AMAZON_LINUX_2023_GO_1_24(cls) -> IBuildImage:
12702
+ '''The ``aws/codebuild/amazonlinux-x86_64-lambda-standard:go1.24`` build image.'''
12703
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_GO_1_24"))
12704
+
12675
12705
  @jsii.python.classproperty
12676
12706
  @jsii.member(jsii_name="AMAZON_LINUX_2023_NODE_20")
12677
12707
  def AMAZON_LINUX_2023_NODE_20(cls) -> IBuildImage:
12678
12708
  '''The ``aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs20`` build image.'''
12679
12709
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_NODE_20"))
12680
12710
 
12711
+ @jsii.python.classproperty
12712
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_NODE_22")
12713
+ def AMAZON_LINUX_2023_NODE_22(cls) -> IBuildImage:
12714
+ '''The ``aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs22`` build image.'''
12715
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_NODE_22"))
12716
+
12681
12717
  @jsii.python.classproperty
12682
12718
  @jsii.member(jsii_name="AMAZON_LINUX_2023_PYTHON_3_12")
12683
12719
  def AMAZON_LINUX_2023_PYTHON_3_12(cls) -> IBuildImage:
12684
12720
  '''The ``aws/codebuild/amazonlinux-x86_64-lambda-standard:python3.12`` build image.'''
12685
12721
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_PYTHON_3_12"))
12686
12722
 
12723
+ @jsii.python.classproperty
12724
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_PYTHON_3_13")
12725
+ def AMAZON_LINUX_2023_PYTHON_3_13(cls) -> IBuildImage:
12726
+ '''The ``aws/codebuild/amazonlinux-x86_64-lambda-standard:python3.13`` build image.'''
12727
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_PYTHON_3_13"))
12728
+
12729
+ @jsii.python.classproperty
12730
+ @jsii.member(jsii_name="AMAZON_LINUX_2023_RUBY_3_4")
12731
+ def AMAZON_LINUX_2023_RUBY_3_4(cls) -> IBuildImage:
12732
+ '''The ``aws/codebuild/amazonlinux-x86_64-lambda-standard:ruby3.4`` build image.'''
12733
+ return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2023_RUBY_3_4"))
12734
+
12687
12735
  @builtins.property
12688
12736
  @jsii.member(jsii_name="defaultComputeType")
12689
12737
  def default_compute_type(self) -> ComputeType:
@@ -8520,6 +8520,7 @@ class IAction(typing_extensions.Protocol):
8520
8520
  *,
8521
8521
  enabled: typing.Optional[builtins.bool] = None,
8522
8522
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
8523
+ role: typing.Optional[_IRole_235f5d8e] = None,
8523
8524
  schedule: typing.Optional[_Schedule_c151d01f] = None,
8524
8525
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
8525
8526
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -8533,6 +8534,7 @@ class IAction(typing_extensions.Protocol):
8533
8534
  :param target: the optional target for the Event.
8534
8535
  :param enabled: Indicates whether the rule is enabled. Default: true
8535
8536
  :param event_bus: The event bus to associate with this rule. Default: - The default event bus.
8537
+ :param role: The role that is used for target invocation. Must be assumable by principal ``events.amazonaws.com``. Default: - No role associated
8536
8538
  :param schedule: The schedule or rate (frequency) that determines when EventBridge runs the rule. You must specify this property, the ``eventPattern`` property, or both. For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide. Default: - None.
8537
8539
  :param targets: Targets to invoke when this rule matches an event. Input will be the full matched event. If you wish to specify custom target input, use ``addTarget(target[, inputOptions])``. Default: - No targets.
8538
8540
  :param cross_stack_scope: The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region). This helps dealing with cycles that often arise in these situations. Default: - none (the main scope will be used, even for cross-stack Events)
@@ -8594,6 +8596,7 @@ class _IActionProxy:
8594
8596
  *,
8595
8597
  enabled: typing.Optional[builtins.bool] = None,
8596
8598
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
8599
+ role: typing.Optional[_IRole_235f5d8e] = None,
8597
8600
  schedule: typing.Optional[_Schedule_c151d01f] = None,
8598
8601
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
8599
8602
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -8607,6 +8610,7 @@ class _IActionProxy:
8607
8610
  :param target: the optional target for the Event.
8608
8611
  :param enabled: Indicates whether the rule is enabled. Default: true
8609
8612
  :param event_bus: The event bus to associate with this rule. Default: - The default event bus.
8613
+ :param role: The role that is used for target invocation. Must be assumable by principal ``events.amazonaws.com``. Default: - No role associated
8610
8614
  :param schedule: The schedule or rate (frequency) that determines when EventBridge runs the rule. You must specify this property, the ``eventPattern`` property, or both. For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide. Default: - None.
8611
8615
  :param targets: Targets to invoke when this rule matches an event. Input will be the full matched event. If you wish to specify custom target input, use ``addTarget(target[, inputOptions])``. Default: - No targets.
8612
8616
  :param cross_stack_scope: The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region). This helps dealing with cycles that often arise in these situations. Default: - none (the main scope will be used, even for cross-stack Events)
@@ -8621,6 +8625,7 @@ class _IActionProxy:
8621
8625
  options = _RuleProps_11ecd19e(
8622
8626
  enabled=enabled,
8623
8627
  event_bus=event_bus,
8628
+ role=role,
8624
8629
  schedule=schedule,
8625
8630
  targets=targets,
8626
8631
  cross_stack_scope=cross_stack_scope,
@@ -9154,6 +9159,7 @@ class IStage(typing_extensions.Protocol):
9154
9159
  *,
9155
9160
  enabled: typing.Optional[builtins.bool] = None,
9156
9161
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
9162
+ role: typing.Optional[_IRole_235f5d8e] = None,
9157
9163
  schedule: typing.Optional[_Schedule_c151d01f] = None,
9158
9164
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
9159
9165
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -9166,6 +9172,7 @@ class IStage(typing_extensions.Protocol):
9166
9172
  :param target: -
9167
9173
  :param enabled: Indicates whether the rule is enabled. Default: true
9168
9174
  :param event_bus: The event bus to associate with this rule. Default: - The default event bus.
9175
+ :param role: The role that is used for target invocation. Must be assumable by principal ``events.amazonaws.com``. Default: - No role associated
9169
9176
  :param schedule: The schedule or rate (frequency) that determines when EventBridge runs the rule. You must specify this property, the ``eventPattern`` property, or both. For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide. Default: - None.
9170
9177
  :param targets: Targets to invoke when this rule matches an event. Input will be the full matched event. If you wish to specify custom target input, use ``addTarget(target[, inputOptions])``. Default: - No targets.
9171
9178
  :param cross_stack_scope: The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region). This helps dealing with cycles that often arise in these situations. Default: - none (the main scope will be used, even for cross-stack Events)
@@ -9216,6 +9223,7 @@ class _IStageProxy:
9216
9223
  *,
9217
9224
  enabled: typing.Optional[builtins.bool] = None,
9218
9225
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
9226
+ role: typing.Optional[_IRole_235f5d8e] = None,
9219
9227
  schedule: typing.Optional[_Schedule_c151d01f] = None,
9220
9228
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
9221
9229
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -9228,6 +9236,7 @@ class _IStageProxy:
9228
9236
  :param target: -
9229
9237
  :param enabled: Indicates whether the rule is enabled. Default: true
9230
9238
  :param event_bus: The event bus to associate with this rule. Default: - The default event bus.
9239
+ :param role: The role that is used for target invocation. Must be assumable by principal ``events.amazonaws.com``. Default: - No role associated
9231
9240
  :param schedule: The schedule or rate (frequency) that determines when EventBridge runs the rule. You must specify this property, the ``eventPattern`` property, or both. For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide. Default: - None.
9232
9241
  :param targets: Targets to invoke when this rule matches an event. Input will be the full matched event. If you wish to specify custom target input, use ``addTarget(target[, inputOptions])``. Default: - No targets.
9233
9242
  :param cross_stack_scope: The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region). This helps dealing with cycles that often arise in these situations. Default: - none (the main scope will be used, even for cross-stack Events)
@@ -9242,6 +9251,7 @@ class _IStageProxy:
9242
9251
  options = _RuleProps_11ecd19e(
9243
9252
  enabled=enabled,
9244
9253
  event_bus=event_bus,
9254
+ role=role,
9245
9255
  schedule=schedule,
9246
9256
  targets=targets,
9247
9257
  cross_stack_scope=cross_stack_scope,
@@ -11465,6 +11475,7 @@ class Action(
11465
11475
  *,
11466
11476
  enabled: typing.Optional[builtins.bool] = None,
11467
11477
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
11478
+ role: typing.Optional[_IRole_235f5d8e] = None,
11468
11479
  schedule: typing.Optional[_Schedule_c151d01f] = None,
11469
11480
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
11470
11481
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -11478,6 +11489,7 @@ class Action(
11478
11489
  :param target: -
11479
11490
  :param enabled: Indicates whether the rule is enabled. Default: true
11480
11491
  :param event_bus: The event bus to associate with this rule. Default: - The default event bus.
11492
+ :param role: The role that is used for target invocation. Must be assumable by principal ``events.amazonaws.com``. Default: - No role associated
11481
11493
  :param schedule: The schedule or rate (frequency) that determines when EventBridge runs the rule. You must specify this property, the ``eventPattern`` property, or both. For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide. Default: - None.
11482
11494
  :param targets: Targets to invoke when this rule matches an event. Input will be the full matched event. If you wish to specify custom target input, use ``addTarget(target[, inputOptions])``. Default: - No targets.
11483
11495
  :param cross_stack_scope: The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region). This helps dealing with cycles that often arise in these situations. Default: - none (the main scope will be used, even for cross-stack Events)
@@ -11492,6 +11504,7 @@ class Action(
11492
11504
  options = _RuleProps_11ecd19e(
11493
11505
  enabled=enabled,
11494
11506
  event_bus=event_bus,
11507
+ role=role,
11495
11508
  schedule=schedule,
11496
11509
  targets=targets,
11497
11510
  cross_stack_scope=cross_stack_scope,
@@ -12609,6 +12622,7 @@ def _typecheckingstub__eade87f30c22d51a2286b3ee64e16e90fb0a8ea80f7298a87d888c798
12609
12622
  *,
12610
12623
  enabled: typing.Optional[builtins.bool] = None,
12611
12624
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
12625
+ role: typing.Optional[_IRole_235f5d8e] = None,
12612
12626
  schedule: typing.Optional[_Schedule_c151d01f] = None,
12613
12627
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
12614
12628
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -12716,6 +12730,7 @@ def _typecheckingstub__0ba37766e87b23b98a0021d06208be5996c1efd9e28f67b66f737bdc2
12716
12730
  *,
12717
12731
  enabled: typing.Optional[builtins.bool] = None,
12718
12732
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
12733
+ role: typing.Optional[_IRole_235f5d8e] = None,
12719
12734
  schedule: typing.Optional[_Schedule_c151d01f] = None,
12720
12735
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
12721
12736
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -12964,6 +12979,7 @@ def _typecheckingstub__8c29cd3253c1a51c9fbbe36fbb102b2f0cef595e0d8fa41e7ec1e9e03
12964
12979
  *,
12965
12980
  enabled: typing.Optional[builtins.bool] = None,
12966
12981
  event_bus: typing.Optional[_IEventBus_88d13111] = None,
12982
+ role: typing.Optional[_IRole_235f5d8e] = None,
12967
12983
  schedule: typing.Optional[_Schedule_c151d01f] = None,
12968
12984
  targets: typing.Optional[typing.Sequence[_IRuleTarget_7a91f454]] = None,
12969
12985
  cross_stack_scope: typing.Optional[_constructs_77d1e7e8.Construct] = None,
@@ -411,7 +411,9 @@ from .._jsii import *
411
411
  import constructs as _constructs_77d1e7e8
412
412
  from .. import IResource as _IResource_c80c4260, Resource as _Resource_45bc6135
413
413
  from ..aws_cognito import (
414
- IUserPool as _IUserPool_1f1029e2, IUserPoolClient as _IUserPoolClient_75623ba4
414
+ CfnIdentityPoolRoleAttachment as _CfnIdentityPoolRoleAttachment_6213757a,
415
+ IUserPool as _IUserPool_1f1029e2,
416
+ IUserPoolClient as _IUserPoolClient_75623ba4,
415
417
  )
416
418
  from ..aws_iam import (
417
419
  IOpenIdConnectProvider as _IOpenIdConnectProvider_203f0793,
@@ -702,6 +704,12 @@ class IdentityPool(
702
704
  '''
703
705
  return typing.cast(builtins.str, jsii.get(self, "identityPoolName"))
704
706
 
707
+ @builtins.property
708
+ @jsii.member(jsii_name="roleAttachment")
709
+ def role_attachment(self) -> _CfnIdentityPoolRoleAttachment_6213757a:
710
+ '''Role Provider for the default Role for authenticated users.'''
711
+ return typing.cast(_CfnIdentityPoolRoleAttachment_6213757a, jsii.get(self, "roleAttachment"))
712
+
705
713
  @builtins.property
706
714
  @jsii.member(jsii_name="unauthenticatedRole")
707
715
  def unauthenticated_role(self) -> _IRole_235f5d8e:
@@ -5231,6 +5231,7 @@ class CfnDomain(
5231
5231
  kms_key_identifier="kmsKeyIdentifier",
5232
5232
  service_role="serviceRole",
5233
5233
  single_sign_on=datazone.CfnDomain.SingleSignOnProperty(
5234
+ idc_instance_arn="idcInstanceArn",
5234
5235
  type="type",
5235
5236
  user_assignment="userAssignment"
5236
5237
  ),
@@ -5509,17 +5510,23 @@ class CfnDomain(
5509
5510
  @jsii.data_type(
5510
5511
  jsii_type="aws-cdk-lib.aws_datazone.CfnDomain.SingleSignOnProperty",
5511
5512
  jsii_struct_bases=[],
5512
- name_mapping={"type": "type", "user_assignment": "userAssignment"},
5513
+ name_mapping={
5514
+ "idc_instance_arn": "idcInstanceArn",
5515
+ "type": "type",
5516
+ "user_assignment": "userAssignment",
5517
+ },
5513
5518
  )
5514
5519
  class SingleSignOnProperty:
5515
5520
  def __init__(
5516
5521
  self,
5517
5522
  *,
5523
+ idc_instance_arn: typing.Optional[builtins.str] = None,
5518
5524
  type: typing.Optional[builtins.str] = None,
5519
5525
  user_assignment: typing.Optional[builtins.str] = None,
5520
5526
  ) -> None:
5521
5527
  '''The single sign-on details in Amazon DataZone.
5522
5528
 
5529
+ :param idc_instance_arn: The ARN of the AWS Identity Center instance.
5523
5530
  :param type: The type of single sign-on in Amazon DataZone.
5524
5531
  :param user_assignment: The single sign-on user assignment in Amazon DataZone.
5525
5532
 
@@ -5533,20 +5540,33 @@ class CfnDomain(
5533
5540
  from aws_cdk import aws_datazone as datazone
5534
5541
 
5535
5542
  single_sign_on_property = datazone.CfnDomain.SingleSignOnProperty(
5543
+ idc_instance_arn="idcInstanceArn",
5536
5544
  type="type",
5537
5545
  user_assignment="userAssignment"
5538
5546
  )
5539
5547
  '''
5540
5548
  if __debug__:
5541
5549
  type_hints = typing.get_type_hints(_typecheckingstub__f7f4cd03b79bceb07fb9f1366c739ee9cc49b8cbf6b9077a564689e81698df16)
5550
+ check_type(argname="argument idc_instance_arn", value=idc_instance_arn, expected_type=type_hints["idc_instance_arn"])
5542
5551
  check_type(argname="argument type", value=type, expected_type=type_hints["type"])
5543
5552
  check_type(argname="argument user_assignment", value=user_assignment, expected_type=type_hints["user_assignment"])
5544
5553
  self._values: typing.Dict[builtins.str, typing.Any] = {}
5554
+ if idc_instance_arn is not None:
5555
+ self._values["idc_instance_arn"] = idc_instance_arn
5545
5556
  if type is not None:
5546
5557
  self._values["type"] = type
5547
5558
  if user_assignment is not None:
5548
5559
  self._values["user_assignment"] = user_assignment
5549
5560
 
5561
+ @builtins.property
5562
+ def idc_instance_arn(self) -> typing.Optional[builtins.str]:
5563
+ '''The ARN of the AWS Identity Center instance.
5564
+
5565
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-domain-singlesignon.html#cfn-datazone-domain-singlesignon-idcinstancearn
5566
+ '''
5567
+ result = self._values.get("idc_instance_arn")
5568
+ return typing.cast(typing.Optional[builtins.str], result)
5569
+
5550
5570
  @builtins.property
5551
5571
  def type(self) -> typing.Optional[builtins.str]:
5552
5572
  '''The type of single sign-on in Amazon DataZone.
@@ -5634,6 +5654,7 @@ class CfnDomainProps:
5634
5654
  kms_key_identifier="kmsKeyIdentifier",
5635
5655
  service_role="serviceRole",
5636
5656
  single_sign_on=datazone.CfnDomain.SingleSignOnProperty(
5657
+ idc_instance_arn="idcInstanceArn",
5637
5658
  type="type",
5638
5659
  user_assignment="userAssignment"
5639
5660
  ),
@@ -10431,6 +10452,7 @@ def _typecheckingstub__d899e2a4a220703956ab7f56e7c810107ec736f8c6281bedb3bc027e6
10431
10452
 
10432
10453
  def _typecheckingstub__f7f4cd03b79bceb07fb9f1366c739ee9cc49b8cbf6b9077a564689e81698df16(
10433
10454
  *,
10455
+ idc_instance_arn: typing.Optional[builtins.str] = None,
10434
10456
  type: typing.Optional[builtins.str] = None,
10435
10457
  user_assignment: typing.Optional[builtins.str] = None,
10436
10458
  ) -> None:
@@ -88552,17 +88552,20 @@ class Port(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_ec2.Port"):
88552
88552
 
88553
88553
  Example::
88554
88554
 
88555
- # instance_type: ec2.InstanceType
88556
-
88555
+ # vpc: ec2.Vpc
88557
88556
 
88558
- provider = ec2.NatProvider.instance_v2(
88559
- instance_type=instance_type,
88560
- default_allowed_traffic=ec2.NatTrafficDirection.OUTBOUND_ONLY
88561
- )
88562
- ec2.Vpc(self, "TheVPC",
88563
- nat_gateway_provider=provider
88557
+ cluster = msk.Cluster(self, "Cluster",
88558
+ cluster_name="myCluster",
88559
+ kafka_version=msk.KafkaVersion.V3_8_X,
88560
+ vpc=vpc
88564
88561
  )
88565
- provider.connections.allow_from(ec2.Peer.ipv4("1.2.3.4/8"), ec2.Port.HTTP)
88562
+
88563
+ cluster.connections.allow_from(
88564
+ ec2.Peer.ipv4("1.2.3.4/8"),
88565
+ ec2.Port.tcp(2181))
88566
+ cluster.connections.allow_from(
88567
+ ec2.Peer.ipv4("1.2.3.4/8"),
88568
+ ec2.Port.tcp(9094))
88566
88569
  '''
88567
88570
 
88568
88571
  def __init__(
@@ -90465,22 +90468,19 @@ class SecurityGroupProps:
90465
90468
 
90466
90469
  Example::
90467
90470
 
90468
- # vpc: ec2.Vpc
90469
-
90470
-
90471
- sg1 = ec2.SecurityGroup(self, "sg1",
90472
- vpc=vpc
90473
- )
90474
- sg2 = ec2.SecurityGroup(self, "sg2",
90475
- vpc=vpc
90476
- )
90471
+ vpc = ec2.Vpc(self, "Vpc", max_azs=1)
90472
+ cluster = ecs.Cluster(self, "EcsCluster", vpc=vpc)
90473
+ security_group = ec2.SecurityGroup(self, "SG", vpc=vpc)
90477
90474
 
90478
- launch_template = ec2.LaunchTemplate(self, "LaunchTemplate",
90479
- machine_image=ec2.MachineImage.latest_amazon_linux2023(),
90480
- security_group=sg1
90475
+ scheduled_fargate_task = ecs_patterns.ScheduledFargateTask(self, "ScheduledFargateTask",
90476
+ cluster=cluster,
90477
+ scheduled_fargate_task_image_options=ecsPatterns.ScheduledFargateTaskImageOptions(
90478
+ image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
90479
+ memory_limit_mi_b=512
90480
+ ),
90481
+ schedule=appscaling.Schedule.expression("rate(1 minute)"),
90482
+ security_groups=[security_group]
90481
90483
  )
90482
-
90483
- launch_template.add_security_group(sg2)
90484
90484
  '''
90485
90485
  if __debug__:
90486
90486
  type_hints = typing.get_type_hints(_typecheckingstub__4e55e0c52b51f92e83b1f8d6b7a5b22268d0369a14dab808b8f2f5f233e5b622)
@@ -95288,25 +95288,25 @@ class VpcProps:
95288
95288
 
95289
95289
  Example::
95290
95290
 
95291
- import aws_cdk.aws_ec2 as ec2
95292
-
95293
-
95294
- vpc = ec2.Vpc(self, "Vpc",
95295
- ip_addresses=ec2.IpAddresses.cidr("10.0.0.0/16")
95291
+ vpc = ec2.Vpc(self, "VPC",
95292
+ cidr="10.0.0.0/16",
95293
+ nat_gateways=0,
95294
+ max_azs=3,
95295
+ subnet_configuration=[ec2.SubnetConfiguration(
95296
+ name="public-subnet-1",
95297
+ subnet_type=ec2.SubnetType.PUBLIC,
95298
+ cidr_mask=24
95299
+ )
95300
+ ]
95296
95301
  )
95297
95302
 
95298
- vpc_connector = apprunner.VpcConnector(self, "VpcConnector",
95303
+ instance = ec2.Instance(self, "Instance",
95299
95304
  vpc=vpc,
95300
- vpc_subnets=vpc.select_subnets(subnet_type=ec2.SubnetType.PUBLIC),
95301
- vpc_connector_name="MyVpcConnector"
95302
- )
95303
-
95304
- apprunner.Service(self, "Service",
95305
- source=apprunner.Source.from_ecr_public(
95306
- image_configuration=apprunner.ImageConfiguration(port=8000),
95307
- image_identifier="public.ecr.aws/aws-containers/hello-app-runner:latest"
95308
- ),
95309
- vpc_connector=vpc_connector
95305
+ vpc_subnets=ec2.SubnetSelection(subnet_group_name="public-subnet-1"),
95306
+ instance_type=ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.NANO),
95307
+ machine_image=ec2.AmazonLinuxImage(generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX_2),
95308
+ detailed_monitoring=True,
95309
+ associate_public_ip_address=True
95310
95310
  )
95311
95311
  '''
95312
95312
  if isinstance(nat_gateway_subnets, dict):