aws-cdk-lib 2.167.2__py3-none-any.whl → 2.169.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 (60) hide show
  1. aws_cdk/__init__.py +2083 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.167.2.jsii.tgz → aws-cdk-lib@2.169.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_accessanalyzer/__init__.py +244 -13
  5. aws_cdk/aws_applicationautoscaling/__init__.py +1691 -95
  6. aws_cdk/aws_applicationinsights/__init__.py +41 -0
  7. aws_cdk/aws_applicationsignals/__init__.py +124 -0
  8. aws_cdk/aws_autoscaling/__init__.py +743 -7
  9. aws_cdk/aws_batch/__init__.py +202 -5
  10. aws_cdk/aws_bedrock/__init__.py +12 -12
  11. aws_cdk/aws_cleanrooms/__init__.py +17 -8
  12. aws_cdk/aws_cloudformation/__init__.py +2571 -492
  13. aws_cdk/aws_cloudfront/__init__.py +281 -0
  14. aws_cdk/aws_cloudfront/experimental/__init__.py +5 -0
  15. aws_cdk/aws_cloudfront_origins/__init__.py +714 -132
  16. aws_cdk/aws_cloudtrail/__init__.py +52 -14
  17. aws_cdk/aws_codebuild/__init__.py +670 -4
  18. aws_cdk/aws_connect/__init__.py +378 -0
  19. aws_cdk/aws_connectcampaignsv2/__init__.py +3376 -0
  20. aws_cdk/aws_customerprofiles/__init__.py +44 -0
  21. aws_cdk/aws_deadline/__init__.py +299 -6
  22. aws_cdk/aws_dynamodb/__init__.py +359 -16
  23. aws_cdk/aws_ec2/__init__.py +19 -6
  24. aws_cdk/aws_ecs/__init__.py +231 -12
  25. aws_cdk/aws_efs/__init__.py +61 -4
  26. aws_cdk/aws_eks/__init__.py +116 -0
  27. aws_cdk/aws_elasticloadbalancingv2/__init__.py +160 -11
  28. aws_cdk/aws_fis/__init__.py +495 -0
  29. aws_cdk/aws_gamelift/__init__.py +3204 -1104
  30. aws_cdk/aws_iot/__init__.py +209 -0
  31. aws_cdk/aws_iotfleetwise/__init__.py +550 -0
  32. aws_cdk/aws_iotsitewise/__init__.py +6 -3
  33. aws_cdk/aws_ivs/__init__.py +458 -0
  34. aws_cdk/aws_kinesisfirehose/__init__.py +756 -8
  35. aws_cdk/aws_lambda/__init__.py +634 -259
  36. aws_cdk/aws_lambda_destinations/__init__.py +73 -0
  37. aws_cdk/aws_lambda_event_sources/__init__.py +102 -2
  38. aws_cdk/aws_location/__init__.py +18 -18
  39. aws_cdk/aws_mediastore/__init__.py +22 -10
  40. aws_cdk/aws_opensearchservice/__init__.py +6 -0
  41. aws_cdk/aws_quicksight/__init__.py +35 -19
  42. aws_cdk/aws_rbin/__init__.py +902 -0
  43. aws_cdk/aws_rds/__init__.py +166 -3
  44. aws_cdk/aws_route53resolver/__init__.py +76 -19
  45. aws_cdk/aws_sagemaker/__init__.py +32 -0
  46. aws_cdk/aws_securityhub/__init__.py +11 -14
  47. aws_cdk/aws_ses/__init__.py +58 -5
  48. aws_cdk/aws_sns/__init__.py +593 -8
  49. aws_cdk/aws_sns_subscriptions/__init__.py +68 -22
  50. aws_cdk/aws_stepfunctions_tasks/__init__.py +1601 -8
  51. aws_cdk/aws_synthetics/__init__.py +46 -0
  52. aws_cdk/aws_transfer/__init__.py +0 -8
  53. aws_cdk/aws_vpclattice/__init__.py +157 -2
  54. aws_cdk/aws_wisdom/__init__.py +113 -69
  55. {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/METADATA +1 -1
  56. {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/RECORD +60 -58
  57. {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/LICENSE +0 -0
  58. {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/NOTICE +0 -0
  59. {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/WHEEL +0 -0
  60. {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/top_level.txt +0 -0
@@ -2944,6 +2944,7 @@ class CfnIntegration(
2944
2944
  domain_name="domainName",
2945
2945
 
2946
2946
  # the properties below are optional
2947
+ event_trigger_names=["eventTriggerNames"],
2947
2948
  flow_definition=customerprofiles.CfnIntegration.FlowDefinitionProperty(
2948
2949
  flow_name="flowName",
2949
2950
  kms_arn="kmsArn",
@@ -3039,6 +3040,7 @@ class CfnIntegration(
3039
3040
  id: builtins.str,
3040
3041
  *,
3041
3042
  domain_name: builtins.str,
3043
+ event_trigger_names: typing.Optional[typing.Sequence[builtins.str]] = None,
3042
3044
  flow_definition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnIntegration.FlowDefinitionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
3043
3045
  object_type_name: typing.Optional[builtins.str] = None,
3044
3046
  object_type_names: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnIntegration.ObjectTypeMappingProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -3049,6 +3051,7 @@ class CfnIntegration(
3049
3051
  :param scope: Scope in which this resource is defined.
3050
3052
  :param id: Construct identifier for this resource (unique in its scope).
3051
3053
  :param domain_name: The unique name of the domain.
3054
+ :param event_trigger_names: A list of unique names for active event triggers associated with the integration.
3052
3055
  :param flow_definition: The configuration that controls how Customer Profiles retrieves data from the source.
3053
3056
  :param object_type_name: The name of the profile object type mapping to use.
3054
3057
  :param object_type_names: The object type mapping.
@@ -3061,6 +3064,7 @@ class CfnIntegration(
3061
3064
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
3062
3065
  props = CfnIntegrationProps(
3063
3066
  domain_name=domain_name,
3067
+ event_trigger_names=event_trigger_names,
3064
3068
  flow_definition=flow_definition,
3065
3069
  object_type_name=object_type_name,
3066
3070
  object_type_names=object_type_names,
@@ -3142,6 +3146,22 @@ class CfnIntegration(
3142
3146
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3143
3147
  jsii.set(self, "domainName", value) # pyright: ignore[reportArgumentType]
3144
3148
 
3149
+ @builtins.property
3150
+ @jsii.member(jsii_name="eventTriggerNames")
3151
+ def event_trigger_names(self) -> typing.Optional[typing.List[builtins.str]]:
3152
+ '''A list of unique names for active event triggers associated with the integration.'''
3153
+ return typing.cast(typing.Optional[typing.List[builtins.str]], jsii.get(self, "eventTriggerNames"))
3154
+
3155
+ @event_trigger_names.setter
3156
+ def event_trigger_names(
3157
+ self,
3158
+ value: typing.Optional[typing.List[builtins.str]],
3159
+ ) -> None:
3160
+ if __debug__:
3161
+ type_hints = typing.get_type_hints(_typecheckingstub__2353defad4ed0b7f19993fda09b6c2619751d1fb77397c9b4957634b704a6fba)
3162
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3163
+ jsii.set(self, "eventTriggerNames", value) # pyright: ignore[reportArgumentType]
3164
+
3145
3165
  @builtins.property
3146
3166
  @jsii.member(jsii_name="flowDefinition")
3147
3167
  def flow_definition(
@@ -4835,6 +4855,7 @@ class CfnIntegration(
4835
4855
  jsii_struct_bases=[],
4836
4856
  name_mapping={
4837
4857
  "domain_name": "domainName",
4858
+ "event_trigger_names": "eventTriggerNames",
4838
4859
  "flow_definition": "flowDefinition",
4839
4860
  "object_type_name": "objectTypeName",
4840
4861
  "object_type_names": "objectTypeNames",
@@ -4847,6 +4868,7 @@ class CfnIntegrationProps:
4847
4868
  self,
4848
4869
  *,
4849
4870
  domain_name: builtins.str,
4871
+ event_trigger_names: typing.Optional[typing.Sequence[builtins.str]] = None,
4850
4872
  flow_definition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntegration.FlowDefinitionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
4851
4873
  object_type_name: typing.Optional[builtins.str] = None,
4852
4874
  object_type_names: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntegration.ObjectTypeMappingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -4856,6 +4878,7 @@ class CfnIntegrationProps:
4856
4878
  '''Properties for defining a ``CfnIntegration``.
4857
4879
 
4858
4880
  :param domain_name: The unique name of the domain.
4881
+ :param event_trigger_names: A list of unique names for active event triggers associated with the integration.
4859
4882
  :param flow_definition: The configuration that controls how Customer Profiles retrieves data from the source.
4860
4883
  :param object_type_name: The name of the profile object type mapping to use.
4861
4884
  :param object_type_names: The object type mapping.
@@ -4875,6 +4898,7 @@ class CfnIntegrationProps:
4875
4898
  domain_name="domainName",
4876
4899
 
4877
4900
  # the properties below are optional
4901
+ event_trigger_names=["eventTriggerNames"],
4878
4902
  flow_definition=customerprofiles.CfnIntegration.FlowDefinitionProperty(
4879
4903
  flow_name="flowName",
4880
4904
  kms_arn="kmsArn",
@@ -4966,6 +4990,7 @@ class CfnIntegrationProps:
4966
4990
  if __debug__:
4967
4991
  type_hints = typing.get_type_hints(_typecheckingstub__52bfebce0bd12cb9d9ed6354b0627c3f2946899ecf1ba8120aa70c1e1e22428d)
4968
4992
  check_type(argname="argument domain_name", value=domain_name, expected_type=type_hints["domain_name"])
4993
+ check_type(argname="argument event_trigger_names", value=event_trigger_names, expected_type=type_hints["event_trigger_names"])
4969
4994
  check_type(argname="argument flow_definition", value=flow_definition, expected_type=type_hints["flow_definition"])
4970
4995
  check_type(argname="argument object_type_name", value=object_type_name, expected_type=type_hints["object_type_name"])
4971
4996
  check_type(argname="argument object_type_names", value=object_type_names, expected_type=type_hints["object_type_names"])
@@ -4974,6 +4999,8 @@ class CfnIntegrationProps:
4974
4999
  self._values: typing.Dict[builtins.str, typing.Any] = {
4975
5000
  "domain_name": domain_name,
4976
5001
  }
5002
+ if event_trigger_names is not None:
5003
+ self._values["event_trigger_names"] = event_trigger_names
4977
5004
  if flow_definition is not None:
4978
5005
  self._values["flow_definition"] = flow_definition
4979
5006
  if object_type_name is not None:
@@ -4995,6 +5022,15 @@ class CfnIntegrationProps:
4995
5022
  assert result is not None, "Required property 'domain_name' is missing"
4996
5023
  return typing.cast(builtins.str, result)
4997
5024
 
5025
+ @builtins.property
5026
+ def event_trigger_names(self) -> typing.Optional[typing.List[builtins.str]]:
5027
+ '''A list of unique names for active event triggers associated with the integration.
5028
+
5029
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-customerprofiles-integration.html#cfn-customerprofiles-integration-eventtriggernames
5030
+ '''
5031
+ result = self._values.get("event_trigger_names")
5032
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
5033
+
4998
5034
  @builtins.property
4999
5035
  def flow_definition(
5000
5036
  self,
@@ -6349,6 +6385,7 @@ def _typecheckingstub__b8211c08b95eabfe008b27ab5b3b74bab34f671b7bd9761e15cdb090d
6349
6385
  id: builtins.str,
6350
6386
  *,
6351
6387
  domain_name: builtins.str,
6388
+ event_trigger_names: typing.Optional[typing.Sequence[builtins.str]] = None,
6352
6389
  flow_definition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntegration.FlowDefinitionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
6353
6390
  object_type_name: typing.Optional[builtins.str] = None,
6354
6391
  object_type_names: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntegration.ObjectTypeMappingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -6376,6 +6413,12 @@ def _typecheckingstub__7d13bac4a06b95e4fadaf50aaed39e2383120484f2d6e868a652119e3
6376
6413
  """Type checking stubs"""
6377
6414
  pass
6378
6415
 
6416
+ def _typecheckingstub__2353defad4ed0b7f19993fda09b6c2619751d1fb77397c9b4957634b704a6fba(
6417
+ value: typing.Optional[typing.List[builtins.str]],
6418
+ ) -> None:
6419
+ """Type checking stubs"""
6420
+ pass
6421
+
6379
6422
  def _typecheckingstub__eda84696baed289de5f577073d9697fd7b0969af55567086ad86e6466b533e14(
6380
6423
  value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnIntegration.FlowDefinitionProperty]],
6381
6424
  ) -> None:
@@ -6553,6 +6596,7 @@ def _typecheckingstub__6fec16a3ec50ec7d597e7573ae1e24e531163b732505e322d5ef39e92
6553
6596
  def _typecheckingstub__52bfebce0bd12cb9d9ed6354b0627c3f2946899ecf1ba8120aa70c1e1e22428d(
6554
6597
  *,
6555
6598
  domain_name: builtins.str,
6599
+ event_trigger_names: typing.Optional[typing.Sequence[builtins.str]] = None,
6556
6600
  flow_definition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntegration.FlowDefinitionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
6557
6601
  object_type_name: typing.Optional[builtins.str] = None,
6558
6602
  object_type_names: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntegration.ObjectTypeMappingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -463,6 +463,22 @@ class CfnFleet(
463
463
  ),
464
464
 
465
465
  # the properties below are optional
466
+ accelerator_capabilities=deadline.CfnFleet.AcceleratorCapabilitiesProperty(
467
+ selections=[deadline.CfnFleet.AcceleratorSelectionProperty(
468
+ name="name",
469
+
470
+ # the properties below are optional
471
+ runtime="runtime"
472
+ )],
473
+
474
+ # the properties below are optional
475
+ count=deadline.CfnFleet.AcceleratorCountRangeProperty(
476
+ min=123,
477
+
478
+ # the properties below are optional
479
+ max=123
480
+ )
481
+ ),
466
482
  allowed_instance_types=["allowedInstanceTypes"],
467
483
  custom_amounts=[deadline.CfnFleet.FleetAmountCapabilityProperty(
468
484
  min=123,
@@ -739,6 +755,95 @@ class CfnFleet(
739
755
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
740
756
  jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
741
757
 
758
+ @jsii.data_type(
759
+ jsii_type="aws-cdk-lib.aws_deadline.CfnFleet.AcceleratorCapabilitiesProperty",
760
+ jsii_struct_bases=[],
761
+ name_mapping={"selections": "selections", "count": "count"},
762
+ )
763
+ class AcceleratorCapabilitiesProperty:
764
+ def __init__(
765
+ self,
766
+ *,
767
+ selections: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.AcceleratorSelectionProperty", typing.Dict[builtins.str, typing.Any]]]]],
768
+ count: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.AcceleratorCountRangeProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
769
+ ) -> None:
770
+ '''Provides information about the GPU accelerators used for jobs processed by a fleet.
771
+
772
+ :param selections: A list of accelerator capabilities requested for this fleet. Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.
773
+ :param count: The number of GPU accelerators specified for worker hosts in this fleet.
774
+
775
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorcapabilities.html
776
+ :exampleMetadata: fixture=_generated
777
+
778
+ Example::
779
+
780
+ # The code below shows an example of how to instantiate this type.
781
+ # The values are placeholders you should change.
782
+ from aws_cdk import aws_deadline as deadline
783
+
784
+ accelerator_capabilities_property = deadline.CfnFleet.AcceleratorCapabilitiesProperty(
785
+ selections=[deadline.CfnFleet.AcceleratorSelectionProperty(
786
+ name="name",
787
+
788
+ # the properties below are optional
789
+ runtime="runtime"
790
+ )],
791
+
792
+ # the properties below are optional
793
+ count=deadline.CfnFleet.AcceleratorCountRangeProperty(
794
+ min=123,
795
+
796
+ # the properties below are optional
797
+ max=123
798
+ )
799
+ )
800
+ '''
801
+ if __debug__:
802
+ type_hints = typing.get_type_hints(_typecheckingstub__8521be2862d68a89d6ed0657d975b7b035f5921c08c4e707e47a6d67e5feb805)
803
+ check_type(argname="argument selections", value=selections, expected_type=type_hints["selections"])
804
+ check_type(argname="argument count", value=count, expected_type=type_hints["count"])
805
+ self._values: typing.Dict[builtins.str, typing.Any] = {
806
+ "selections": selections,
807
+ }
808
+ if count is not None:
809
+ self._values["count"] = count
810
+
811
+ @builtins.property
812
+ def selections(
813
+ self,
814
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnFleet.AcceleratorSelectionProperty"]]]:
815
+ '''A list of accelerator capabilities requested for this fleet.
816
+
817
+ Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.
818
+
819
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorcapabilities.html#cfn-deadline-fleet-acceleratorcapabilities-selections
820
+ '''
821
+ result = self._values.get("selections")
822
+ assert result is not None, "Required property 'selections' is missing"
823
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnFleet.AcceleratorSelectionProperty"]]], result)
824
+
825
+ @builtins.property
826
+ def count(
827
+ self,
828
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFleet.AcceleratorCountRangeProperty"]]:
829
+ '''The number of GPU accelerators specified for worker hosts in this fleet.
830
+
831
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorcapabilities.html#cfn-deadline-fleet-acceleratorcapabilities-count
832
+ '''
833
+ result = self._values.get("count")
834
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFleet.AcceleratorCountRangeProperty"]], result)
835
+
836
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
837
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
838
+
839
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
840
+ return not (rhs == self)
841
+
842
+ def __repr__(self) -> str:
843
+ return "AcceleratorCapabilitiesProperty(%s)" % ", ".join(
844
+ k + "=" + repr(v) for k, v in self._values.items()
845
+ )
846
+
742
847
  @jsii.data_type(
743
848
  jsii_type="aws-cdk-lib.aws_deadline.CfnFleet.AcceleratorCountRangeProperty",
744
849
  jsii_struct_bases=[],
@@ -751,10 +856,10 @@ class CfnFleet(
751
856
  min: jsii.Number,
752
857
  max: typing.Optional[jsii.Number] = None,
753
858
  ) -> None:
754
- '''The range for the GPU fleet acceleration.
859
+ '''Defines the maximum and minimum number of GPU accelerators required for a worker instance..
755
860
 
756
- :param min: The minimum GPU for the accelerator.
757
- :param max: The maximum GPU for the accelerator.
861
+ :param min: The minimum number of GPU accelerators in the worker host.
862
+ :param max: The maximum number of GPU accelerators in the worker host.
758
863
 
759
864
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorcountrange.html
760
865
  :exampleMetadata: fixture=_generated
@@ -784,7 +889,7 @@ class CfnFleet(
784
889
 
785
890
  @builtins.property
786
891
  def min(self) -> jsii.Number:
787
- '''The minimum GPU for the accelerator.
892
+ '''The minimum number of GPU accelerators in the worker host.
788
893
 
789
894
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorcountrange.html#cfn-deadline-fleet-acceleratorcountrange-min
790
895
  '''
@@ -794,7 +899,7 @@ class CfnFleet(
794
899
 
795
900
  @builtins.property
796
901
  def max(self) -> typing.Optional[jsii.Number]:
797
- '''The maximum GPU for the accelerator.
902
+ '''The maximum number of GPU accelerators in the worker host.
798
903
 
799
904
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorcountrange.html#cfn-deadline-fleet-acceleratorcountrange-max
800
905
  '''
@@ -812,6 +917,96 @@ class CfnFleet(
812
917
  k + "=" + repr(v) for k, v in self._values.items()
813
918
  )
814
919
 
920
+ @jsii.data_type(
921
+ jsii_type="aws-cdk-lib.aws_deadline.CfnFleet.AcceleratorSelectionProperty",
922
+ jsii_struct_bases=[],
923
+ name_mapping={"name": "name", "runtime": "runtime"},
924
+ )
925
+ class AcceleratorSelectionProperty:
926
+ def __init__(
927
+ self,
928
+ *,
929
+ name: builtins.str,
930
+ runtime: typing.Optional[builtins.str] = None,
931
+ ) -> None:
932
+ '''Describes a specific GPU accelerator required for an Amazon Elastic Compute Cloud worker host.
933
+
934
+ :param name: The name of the chip used by the GPU accelerator. If you specify ``l4`` as the name of the accelerator, you must specify ``latest`` or ``grid:r550`` as the runtime. The available GPU accelerators are: - ``t4`` - NVIDIA T4 Tensor Core GPU - ``a10g`` - NVIDIA A10G Tensor Core GPU - ``l4`` - NVIDIA L4 Tensor Core GPU - ``l40s`` - NVIDIA L40S Tensor Core GPU
935
+ :param runtime: Specifies the runtime driver to use for the GPU accelerator. You must use the same runtime for all GPUs. You can choose from the following runtimes: - ``latest`` - Use the latest runtime available for the chip. If you specify ``latest`` and a new version of the runtime is released, the new version of the runtime is used. - ``grid:r550`` - `NVIDIA vGPU software 17 <https://docs.aws.amazon.com/https://docs.nvidia.com/vgpu/17.0/index.html>`_ - ``grid:r535`` - `NVIDIA vGPU software 16 <https://docs.aws.amazon.com/https://docs.nvidia.com/vgpu/16.0/index.html>`_ If you don't specify a runtime, Deadline Cloud uses ``latest`` as the default. However, if you have multiple accelerators and specify ``latest`` for some and leave others blank, Deadline Cloud raises an exception.
936
+
937
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorselection.html
938
+ :exampleMetadata: fixture=_generated
939
+
940
+ Example::
941
+
942
+ # The code below shows an example of how to instantiate this type.
943
+ # The values are placeholders you should change.
944
+ from aws_cdk import aws_deadline as deadline
945
+
946
+ accelerator_selection_property = deadline.CfnFleet.AcceleratorSelectionProperty(
947
+ name="name",
948
+
949
+ # the properties below are optional
950
+ runtime="runtime"
951
+ )
952
+ '''
953
+ if __debug__:
954
+ type_hints = typing.get_type_hints(_typecheckingstub__b2b0737e85d3743e0f3220af4b712f14bd4956008f2c4ab7d1b391c37229b79c)
955
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
956
+ check_type(argname="argument runtime", value=runtime, expected_type=type_hints["runtime"])
957
+ self._values: typing.Dict[builtins.str, typing.Any] = {
958
+ "name": name,
959
+ }
960
+ if runtime is not None:
961
+ self._values["runtime"] = runtime
962
+
963
+ @builtins.property
964
+ def name(self) -> builtins.str:
965
+ '''The name of the chip used by the GPU accelerator.
966
+
967
+ If you specify ``l4`` as the name of the accelerator, you must specify ``latest`` or ``grid:r550`` as the runtime.
968
+
969
+ The available GPU accelerators are:
970
+
971
+ - ``t4`` - NVIDIA T4 Tensor Core GPU
972
+ - ``a10g`` - NVIDIA A10G Tensor Core GPU
973
+ - ``l4`` - NVIDIA L4 Tensor Core GPU
974
+ - ``l40s`` - NVIDIA L40S Tensor Core GPU
975
+
976
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorselection.html#cfn-deadline-fleet-acceleratorselection-name
977
+ '''
978
+ result = self._values.get("name")
979
+ assert result is not None, "Required property 'name' is missing"
980
+ return typing.cast(builtins.str, result)
981
+
982
+ @builtins.property
983
+ def runtime(self) -> typing.Optional[builtins.str]:
984
+ '''Specifies the runtime driver to use for the GPU accelerator. You must use the same runtime for all GPUs.
985
+
986
+ You can choose from the following runtimes:
987
+
988
+ - ``latest`` - Use the latest runtime available for the chip. If you specify ``latest`` and a new version of the runtime is released, the new version of the runtime is used.
989
+ - ``grid:r550`` - `NVIDIA vGPU software 17 <https://docs.aws.amazon.com/https://docs.nvidia.com/vgpu/17.0/index.html>`_
990
+ - ``grid:r535`` - `NVIDIA vGPU software 16 <https://docs.aws.amazon.com/https://docs.nvidia.com/vgpu/16.0/index.html>`_
991
+
992
+ If you don't specify a runtime, Deadline Cloud uses ``latest`` as the default. However, if you have multiple accelerators and specify ``latest`` for some and leave others blank, Deadline Cloud raises an exception.
993
+
994
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-acceleratorselection.html#cfn-deadline-fleet-acceleratorselection-runtime
995
+ '''
996
+ result = self._values.get("runtime")
997
+ return typing.cast(typing.Optional[builtins.str], result)
998
+
999
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1000
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1001
+
1002
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1003
+ return not (rhs == self)
1004
+
1005
+ def __repr__(self) -> str:
1006
+ return "AcceleratorSelectionProperty(%s)" % ", ".join(
1007
+ k + "=" + repr(v) for k, v in self._values.items()
1008
+ )
1009
+
815
1010
  @jsii.data_type(
816
1011
  jsii_type="aws-cdk-lib.aws_deadline.CfnFleet.AcceleratorTotalMemoryMiBRangeProperty",
817
1012
  jsii_struct_bases=[],
@@ -824,7 +1019,7 @@ class CfnFleet(
824
1019
  min: jsii.Number,
825
1020
  max: typing.Optional[jsii.Number] = None,
826
1021
  ) -> None:
827
- '''The range for memory, in MiB, to use for the accelerator.
1022
+ '''Defines the maximum and minimum amount of memory, in MiB, to use for the accelerator.
828
1023
 
829
1024
  :param min: The minimum amount of memory to use for the accelerator, measured in MiB.
830
1025
  :param max: The maximum amount of memory to use for the accelerator, measured in MiB.
@@ -1682,6 +1877,22 @@ class CfnFleet(
1682
1877
  ),
1683
1878
 
1684
1879
  # the properties below are optional
1880
+ accelerator_capabilities=deadline.CfnFleet.AcceleratorCapabilitiesProperty(
1881
+ selections=[deadline.CfnFleet.AcceleratorSelectionProperty(
1882
+ name="name",
1883
+
1884
+ # the properties below are optional
1885
+ runtime="runtime"
1886
+ )],
1887
+
1888
+ # the properties below are optional
1889
+ count=deadline.CfnFleet.AcceleratorCountRangeProperty(
1890
+ min=123,
1891
+
1892
+ # the properties below are optional
1893
+ max=123
1894
+ )
1895
+ ),
1685
1896
  allowed_instance_types=["allowedInstanceTypes"],
1686
1897
  custom_amounts=[deadline.CfnFleet.FleetAmountCapabilityProperty(
1687
1898
  min=123,
@@ -1870,6 +2081,22 @@ class CfnFleet(
1870
2081
  ),
1871
2082
 
1872
2083
  # the properties below are optional
2084
+ accelerator_capabilities=deadline.CfnFleet.AcceleratorCapabilitiesProperty(
2085
+ selections=[deadline.CfnFleet.AcceleratorSelectionProperty(
2086
+ name="name",
2087
+
2088
+ # the properties below are optional
2089
+ runtime="runtime"
2090
+ )],
2091
+
2092
+ # the properties below are optional
2093
+ count=deadline.CfnFleet.AcceleratorCountRangeProperty(
2094
+ min=123,
2095
+
2096
+ # the properties below are optional
2097
+ max=123
2098
+ )
2099
+ ),
1873
2100
  allowed_instance_types=["allowedInstanceTypes"],
1874
2101
  custom_amounts=[deadline.CfnFleet.FleetAmountCapabilityProperty(
1875
2102
  min=123,
@@ -1946,6 +2173,7 @@ class CfnFleet(
1946
2173
  "memory_mib": "memoryMiB",
1947
2174
  "os_family": "osFamily",
1948
2175
  "v_cpu_count": "vCpuCount",
2176
+ "accelerator_capabilities": "acceleratorCapabilities",
1949
2177
  "allowed_instance_types": "allowedInstanceTypes",
1950
2178
  "custom_amounts": "customAmounts",
1951
2179
  "custom_attributes": "customAttributes",
@@ -1961,6 +2189,7 @@ class CfnFleet(
1961
2189
  memory_mib: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.MemoryMiBRangeProperty", typing.Dict[builtins.str, typing.Any]]],
1962
2190
  os_family: builtins.str,
1963
2191
  v_cpu_count: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.VCpuCountRangeProperty", typing.Dict[builtins.str, typing.Any]]],
2192
+ accelerator_capabilities: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.AcceleratorCapabilitiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
1964
2193
  allowed_instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
1965
2194
  custom_amounts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.FleetAmountCapabilityProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
1966
2195
  custom_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.FleetAttributeCapabilityProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -1973,6 +2202,7 @@ class CfnFleet(
1973
2202
  :param memory_mib: The memory, as MiB, for the Amazon EC2 instance type.
1974
2203
  :param os_family: The operating system (OS) family.
1975
2204
  :param v_cpu_count: The amount of vCPU to require for instances in this fleet.
2205
+ :param accelerator_capabilities: Describes the GPU accelerator capabilities required for worker host instances in this fleet.
1976
2206
  :param allowed_instance_types: The allowable Amazon EC2 instance types.
1977
2207
  :param custom_amounts: The custom capability amounts to require for instances in this fleet.
1978
2208
  :param custom_attributes: The custom capability attributes to require for instances in this fleet.
@@ -2005,6 +2235,22 @@ class CfnFleet(
2005
2235
  ),
2006
2236
 
2007
2237
  # the properties below are optional
2238
+ accelerator_capabilities=deadline.CfnFleet.AcceleratorCapabilitiesProperty(
2239
+ selections=[deadline.CfnFleet.AcceleratorSelectionProperty(
2240
+ name="name",
2241
+
2242
+ # the properties below are optional
2243
+ runtime="runtime"
2244
+ )],
2245
+
2246
+ # the properties below are optional
2247
+ count=deadline.CfnFleet.AcceleratorCountRangeProperty(
2248
+ min=123,
2249
+
2250
+ # the properties below are optional
2251
+ max=123
2252
+ )
2253
+ ),
2008
2254
  allowed_instance_types=["allowedInstanceTypes"],
2009
2255
  custom_amounts=[deadline.CfnFleet.FleetAmountCapabilityProperty(
2010
2256
  min=123,
@@ -2031,6 +2277,7 @@ class CfnFleet(
2031
2277
  check_type(argname="argument memory_mib", value=memory_mib, expected_type=type_hints["memory_mib"])
2032
2278
  check_type(argname="argument os_family", value=os_family, expected_type=type_hints["os_family"])
2033
2279
  check_type(argname="argument v_cpu_count", value=v_cpu_count, expected_type=type_hints["v_cpu_count"])
2280
+ check_type(argname="argument accelerator_capabilities", value=accelerator_capabilities, expected_type=type_hints["accelerator_capabilities"])
2034
2281
  check_type(argname="argument allowed_instance_types", value=allowed_instance_types, expected_type=type_hints["allowed_instance_types"])
2035
2282
  check_type(argname="argument custom_amounts", value=custom_amounts, expected_type=type_hints["custom_amounts"])
2036
2283
  check_type(argname="argument custom_attributes", value=custom_attributes, expected_type=type_hints["custom_attributes"])
@@ -2042,6 +2289,8 @@ class CfnFleet(
2042
2289
  "os_family": os_family,
2043
2290
  "v_cpu_count": v_cpu_count,
2044
2291
  }
2292
+ if accelerator_capabilities is not None:
2293
+ self._values["accelerator_capabilities"] = accelerator_capabilities
2045
2294
  if allowed_instance_types is not None:
2046
2295
  self._values["allowed_instance_types"] = allowed_instance_types
2047
2296
  if custom_amounts is not None:
@@ -2097,6 +2346,17 @@ class CfnFleet(
2097
2346
  assert result is not None, "Required property 'v_cpu_count' is missing"
2098
2347
  return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFleet.VCpuCountRangeProperty"], result)
2099
2348
 
2349
+ @builtins.property
2350
+ def accelerator_capabilities(
2351
+ self,
2352
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFleet.AcceleratorCapabilitiesProperty"]]:
2353
+ '''Describes the GPU accelerator capabilities required for worker host instances in this fleet.
2354
+
2355
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-servicemanagedec2instancecapabilities.html#cfn-deadline-fleet-servicemanagedec2instancecapabilities-acceleratorcapabilities
2356
+ '''
2357
+ result = self._values.get("accelerator_capabilities")
2358
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFleet.AcceleratorCapabilitiesProperty"]], result)
2359
+
2100
2360
  @builtins.property
2101
2361
  def allowed_instance_types(self) -> typing.Optional[typing.List[builtins.str]]:
2102
2362
  '''The allowable Amazon EC2 instance types.
@@ -2400,6 +2660,22 @@ class CfnFleetProps:
2400
2660
  ),
2401
2661
 
2402
2662
  # the properties below are optional
2663
+ accelerator_capabilities=deadline.CfnFleet.AcceleratorCapabilitiesProperty(
2664
+ selections=[deadline.CfnFleet.AcceleratorSelectionProperty(
2665
+ name="name",
2666
+
2667
+ # the properties below are optional
2668
+ runtime="runtime"
2669
+ )],
2670
+
2671
+ # the properties below are optional
2672
+ count=deadline.CfnFleet.AcceleratorCountRangeProperty(
2673
+ min=123,
2674
+
2675
+ # the properties below are optional
2676
+ max=123
2677
+ )
2678
+ ),
2403
2679
  allowed_instance_types=["allowedInstanceTypes"],
2404
2680
  custom_amounts=[deadline.CfnFleet.FleetAmountCapabilityProperty(
2405
2681
  min=123,
@@ -5296,6 +5572,14 @@ def _typecheckingstub__9c9ddff2a0e8eb5e8397bf64d0158ac4f8fba30ee673a959c2d550657
5296
5572
  """Type checking stubs"""
5297
5573
  pass
5298
5574
 
5575
+ def _typecheckingstub__8521be2862d68a89d6ed0657d975b7b035f5921c08c4e707e47a6d67e5feb805(
5576
+ *,
5577
+ selections: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.AcceleratorSelectionProperty, typing.Dict[builtins.str, typing.Any]]]]],
5578
+ count: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.AcceleratorCountRangeProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
5579
+ ) -> None:
5580
+ """Type checking stubs"""
5581
+ pass
5582
+
5299
5583
  def _typecheckingstub__f4d7e76219e8cce8e44e215b08cd1fef54b62ca3d48dbbc0bc8b3e6040db253e(
5300
5584
  *,
5301
5585
  min: jsii.Number,
@@ -5304,6 +5588,14 @@ def _typecheckingstub__f4d7e76219e8cce8e44e215b08cd1fef54b62ca3d48dbbc0bc8b3e604
5304
5588
  """Type checking stubs"""
5305
5589
  pass
5306
5590
 
5591
+ def _typecheckingstub__b2b0737e85d3743e0f3220af4b712f14bd4956008f2c4ab7d1b391c37229b79c(
5592
+ *,
5593
+ name: builtins.str,
5594
+ runtime: typing.Optional[builtins.str] = None,
5595
+ ) -> None:
5596
+ """Type checking stubs"""
5597
+ pass
5598
+
5307
5599
  def _typecheckingstub__6e87ae0b2cf7001539dfe803c414d6da11bd37d8db4fe33e1b4847d22cccfd0e(
5308
5600
  *,
5309
5601
  min: jsii.Number,
@@ -5400,6 +5692,7 @@ def _typecheckingstub__b6bce0a6fe3858a9b9eaa850b95b27731a62d9ef26b45c40b5684d658
5400
5692
  memory_mib: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.MemoryMiBRangeProperty, typing.Dict[builtins.str, typing.Any]]],
5401
5693
  os_family: builtins.str,
5402
5694
  v_cpu_count: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.VCpuCountRangeProperty, typing.Dict[builtins.str, typing.Any]]],
5695
+ accelerator_capabilities: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.AcceleratorCapabilitiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
5403
5696
  allowed_instance_types: typing.Optional[typing.Sequence[builtins.str]] = None,
5404
5697
  custom_amounts: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.FleetAmountCapabilityProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
5405
5698
  custom_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.FleetAttributeCapabilityProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,